morphik

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-morphik

Go Reference CI version license imported by

Unofficial Go client for the Morphik API, generated with oapi-codegen from the OpenAPI document Morphik publishes. I am not affiliated with Morphik.

The package is morphik, in the repository root. Everything in client.gen.go is generated. Don't edit it by hand, regenerate it.

Install

go get github.com/psyb0t/go-morphik

Usage

Every endpoint in the spec has a typed method on ClientWithResponses. Responses decode into JSON200 and the other status fields.

package main

import (
	"context"
	"net/http"
	"os"

	"github.com/psyb0t/go-morphik"
)

func main() {
	auth := morphik.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set(
				"Authorization",
				"Bearer "+os.Getenv("MORPHIK_API_KEY"),
			)

			return nil
		},
	)

	client, err := morphik.NewClientWithResponses(
		"https://api.morphik.ai",
		auth,
	)
	if err != nil {
		panic(err)
	}

	res, err := client.GetAvailableModelsModelsGetWithResponse(
		context.Background(),
		&morphik.GetAvailableModelsModelsGetParams{},
	)
	if err != nil {
		panic(err)
	}

	_ = res.JSON200
}

The same code is in example_test.go, so make test checks that it compiles.

The full API is in the Go reference; from inside your module, go doc github.com/psyb0t/go-morphik prints the same.

Method names come from the spec's operation IDs, such as GetAvailableModelsModelsGetWithResponse, ListDocsDocumentsPostWithResponse and RetrieveDocumentsRetrieveDocsPostWithResponse. The client covers all 72 operations across 63 paths, including ingestion, documents, retrieval, queries, models, cloud apps and connectors.

Auth

Morphik's TypeScript SDK uses bearer auth and defaults to https://api.morphik.ai. Read your API key from MORPHIK_API_KEY, then set Authorization: Bearer <key> through WithRequestEditorFn, as above. Pass your own deployment URL to NewClientWithResponses when using another Morphik instance.

The spec exposes optional authorization header parameters rather than a security scheme and does not declare a server URL. The generated client does not load credentials from the environment or add auth automatically.

Regenerating

The spec is not committed. make generate downloads the current OpenAPI document into the gitignored api/ directory and regenerates the client:

make generate

gen.go declares the steps, so make generate is just go generate ./...:

  • scripts/fetch-spec.sh downloads the spec the Morphik API serves at https://api.morphik.ai/openapi.json to api/openapi.yaml. The file contains JSON despite its .yaml suffix.
  • scripts/patch-spec.sh writes api/openapi.fixed.yaml, converting OpenAPI 3.1 nullable unions and numeric exclusive bounds into OpenAPI 3.0 form for oapi-codegen.
  • oapi-codegen runs with config.yaml, preserving every operation and mapping number to float64 instead of its default float32.

.github/workflows/regen.yml does the same every day in CI. When the spec changes the client, it runs make lint, make test and make sec. If a check fails, Claude edits the code and the checks run again, up to three times, and a review step reads the result. A passing change is committed with a CHANGELOG entry and tagged as the next release. Fixes cannot edit the protected paths listed in that workflow.

Agent integrations

The skill teaches a coding agent how to use go-morphik when it writes Go. It works in any agent that reads .agents/skills/, and installs natively in the clients below.

Claude Code
claude plugin marketplace add psyb0t/agents
claude plugin install go-morphik@psyb0t
Codex
codex plugin marketplace add psyb0t/agents
codex plugin add go-morphik@psyb0t

Codex also picks the skill up with no install in any checkout of this repo.

OpenClaw

The release workflow publishes the skill to ClawHub:

openclaw skills install @psyb0t/go-morphik

Development

Every command runs in the Dockerfile.dev image. The host needs only Docker and Make.

make help      # list targets
make dep       # go mod tidy + vendor
make lint      # shellcheck, shfmt, go fix, golangci-lint
make test      # go test -race
make sec       # gitleaks, govulncheck, semgrep
make generate  # download the spec and regenerate

License

MIT. The generated code comes from Morphik's published API specification. The specification itself is not redistributed here. Its metadata does not state a license or terms of service; the vendor SDK separately uses Apache-2.0.

Documentation

Overview

Package morphik 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 morphik is a Go client for the Morphik API, generated with oapi-codegen from the OpenAPI document Morphik publishes.

Example

This README example needs real credentials, so it only compiles.

package main

import (
	"context"
	"net/http"
	"os"

	"github.com/psyb0t/go-morphik"
)

func main() {
	auth := morphik.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set(
				"Authorization",
				"Bearer "+os.Getenv("MORPHIK_API_KEY"),
			)

			return nil
		},
	)

	client, err := morphik.NewClientWithResponses(
		"https://api.morphik.ai",
		auth,
	)
	if err != nil {
		panic(err)
	}

	res, err := client.GetAvailableModelsModelsGetWithResponse(
		context.Background(),
		&morphik.GetAvailableModelsModelsGetParams{},
	)
	if err != nil {
		panic(err)
	}

	_ = res.JSON200
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostRequest

func NewAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostRequest(server string, folderIdOrName string, documentId string, params *AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams) (*http.Request, error)

NewAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostRequest constructs an http.Request for the AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost method

func NewBatchGetChunksBatchChunksPostRequest

func NewBatchGetChunksBatchChunksPostRequest(server string, params *BatchGetChunksBatchChunksPostParams, body BatchGetChunksBatchChunksPostJSONRequestBody) (*http.Request, error)

NewBatchGetChunksBatchChunksPostRequest calls the generic BatchGetChunksBatchChunksPost builder with application/json body

func NewBatchGetChunksBatchChunksPostRequestWithBody

func NewBatchGetChunksBatchChunksPostRequestWithBody(server string, params *BatchGetChunksBatchChunksPostParams, contentType string, body io.Reader) (*http.Request, error)

NewBatchGetChunksBatchChunksPostRequestWithBody constructs an http.Request for the BatchGetChunksBatchChunksPost method, with any body, and a specified content type

func NewBatchGetDocumentsBatchDocumentsPostRequest

func NewBatchGetDocumentsBatchDocumentsPostRequest(server string, params *BatchGetDocumentsBatchDocumentsPostParams, body BatchGetDocumentsBatchDocumentsPostJSONRequestBody) (*http.Request, error)

NewBatchGetDocumentsBatchDocumentsPostRequest calls the generic BatchGetDocumentsBatchDocumentsPost builder with application/json body

func NewBatchGetDocumentsBatchDocumentsPostRequestWithBody

func NewBatchGetDocumentsBatchDocumentsPostRequestWithBody(server string, params *BatchGetDocumentsBatchDocumentsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewBatchGetDocumentsBatchDocumentsPostRequestWithBody constructs an http.Request for the BatchGetDocumentsBatchDocumentsPost method, with any body, and a specified content type

func NewBatchIngestFilesIngestFilesPostRequestWithBody

func NewBatchIngestFilesIngestFilesPostRequestWithBody(server string, params *BatchIngestFilesIngestFilesPostParams, contentType string, body io.Reader) (*http.Request, error)

NewBatchIngestFilesIngestFilesPostRequestWithBody constructs an http.Request for the BatchIngestFilesIngestFilesPost method, with any body, and a specified content type

func NewConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetRequest

func NewConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetRequest(server string, connectorType string, params *ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams) (*http.Request, error)

NewConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetRequest constructs an http.Request for the ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet method

func NewCreateFolderFoldersPostRequest

func NewCreateFolderFoldersPostRequest(server string, params *CreateFolderFoldersPostParams, body CreateFolderFoldersPostJSONRequestBody) (*http.Request, error)

NewCreateFolderFoldersPostRequest calls the generic CreateFolderFoldersPost builder with application/json body

func NewCreateFolderFoldersPostRequestWithBody

func NewCreateFolderFoldersPostRequestWithBody(server string, params *CreateFolderFoldersPostParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateFolderFoldersPostRequestWithBody constructs an http.Request for the CreateFolderFoldersPost method, with any body, and a specified content type

func NewDeleteCloudAppAppsDeleteRequest

func NewDeleteCloudAppAppsDeleteRequest(server string, params *DeleteCloudAppAppsDeleteParams) (*http.Request, error)

NewDeleteCloudAppAppsDeleteRequest constructs an http.Request for the DeleteCloudAppAppsDelete method

func NewDeleteDocumentDocumentsDocumentIdDeleteRequest

func NewDeleteDocumentDocumentsDocumentIdDeleteRequest(server string, documentId string, params *DeleteDocumentDocumentsDocumentIdDeleteParams) (*http.Request, error)

NewDeleteDocumentDocumentsDocumentIdDeleteRequest constructs an http.Request for the DeleteDocumentDocumentsDocumentIdDelete method

func NewDeleteDocumentV2V2DocumentsDocumentIdDeleteRequest added in v0.2.0

func NewDeleteDocumentV2V2DocumentsDocumentIdDeleteRequest(server string, documentId string, params *DeleteDocumentV2V2DocumentsDocumentIdDeleteParams) (*http.Request, error)

NewDeleteDocumentV2V2DocumentsDocumentIdDeleteRequest constructs an http.Request for the DeleteDocumentV2V2DocumentsDocumentIdDelete method

func NewDeleteFolderFoldersFolderIdOrNameDeleteRequest

func NewDeleteFolderFoldersFolderIdOrNameDeleteRequest(server string, folderIdOrName string, params *DeleteFolderFoldersFolderIdOrNameDeleteParams) (*http.Request, error)

NewDeleteFolderFoldersFolderIdOrNameDeleteRequest constructs an http.Request for the DeleteFolderFoldersFolderIdOrNameDelete method

func NewDeleteModelModelsModelIdDeleteRequest

func NewDeleteModelModelsModelIdDeleteRequest(server string, modelId string, params *DeleteModelModelsModelIdDeleteParams) (*http.Request, error)

NewDeleteModelModelsModelIdDeleteRequest constructs an http.Request for the DeleteModelModelsModelIdDelete method

func NewDisconnectEeConnectorsDisconnectPostRequest

func NewDisconnectEeConnectorsDisconnectPostRequest(server string, params *DisconnectEeConnectorsDisconnectPostParams, body DisconnectEeConnectorsDisconnectPostJSONRequestBody) (*http.Request, error)

NewDisconnectEeConnectorsDisconnectPostRequest calls the generic DisconnectEeConnectorsDisconnectPost builder with application/json body

func NewDisconnectEeConnectorsDisconnectPostRequestWithBody

func NewDisconnectEeConnectorsDisconnectPostRequestWithBody(server string, params *DisconnectEeConnectorsDisconnectPostParams, contentType string, body io.Reader) (*http.Request, error)

NewDisconnectEeConnectorsDisconnectPostRequestWithBody constructs an http.Request for the DisconnectEeConnectorsDisconnectPost method, with any body, and a specified content type

func NewDownloadDocumentFileDocumentsDocumentIdFileGetRequest

func NewDownloadDocumentFileDocumentsDocumentIdFileGetRequest(server string, documentId string, params *DownloadDocumentFileDocumentsDocumentIdFileGetParams) (*http.Request, error)

NewDownloadDocumentFileDocumentsDocumentIdFileGetRequest constructs an http.Request for the DownloadDocumentFileDocumentsDocumentIdFileGet method

func NewExtractDocumentPagesDocumentsPagesPostRequest

func NewExtractDocumentPagesDocumentsPagesPostRequest(server string, params *ExtractDocumentPagesDocumentsPagesPostParams, body ExtractDocumentPagesDocumentsPagesPostJSONRequestBody) (*http.Request, error)

NewExtractDocumentPagesDocumentsPagesPostRequest calls the generic ExtractDocumentPagesDocumentsPagesPost builder with application/json body

func NewExtractDocumentPagesDocumentsPagesPostRequestWithBody

func NewExtractDocumentPagesDocumentsPagesPostRequestWithBody(server string, params *ExtractDocumentPagesDocumentsPagesPostParams, contentType string, body io.Reader) (*http.Request, error)

NewExtractDocumentPagesDocumentsPagesPostRequestWithBody constructs an http.Request for the ExtractDocumentPagesDocumentsPagesPost method, with any body, and a specified content type

func NewFinalizeAuthEeConnectorsFinalizeAuthPostRequest

func NewFinalizeAuthEeConnectorsFinalizeAuthPostRequest(server string, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, body FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody) (*http.Request, error)

NewFinalizeAuthEeConnectorsFinalizeAuthPostRequest calls the generic FinalizeAuthEeConnectorsFinalizeAuthPost builder with application/json body

func NewFinalizeAuthEeConnectorsFinalizeAuthPostRequestWithBody

func NewFinalizeAuthEeConnectorsFinalizeAuthPostRequestWithBody(server string, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, contentType string, body io.Reader) (*http.Request, error)

NewFinalizeAuthEeConnectorsFinalizeAuthPostRequestWithBody constructs an http.Request for the FinalizeAuthEeConnectorsFinalizeAuthPost method, with any body, and a specified content type

func NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequest

func NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequest(server string, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, body FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody) (*http.Request, error)

NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequest calls the generic FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost builder with application/json body

func NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequestWithBody

func NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequestWithBody(server string, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, contentType string, body io.Reader) (*http.Request, error)

NewFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostRequestWithBody constructs an http.Request for the FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost method, with any body, and a specified content type

func NewFolderDetailsFoldersDetailsPostRequest

func NewFolderDetailsFoldersDetailsPostRequest(server string, params *FolderDetailsFoldersDetailsPostParams, body FolderDetailsFoldersDetailsPostJSONRequestBody) (*http.Request, error)

NewFolderDetailsFoldersDetailsPostRequest calls the generic FolderDetailsFoldersDetailsPost builder with application/json body

func NewFolderDetailsFoldersDetailsPostRequestWithBody

func NewFolderDetailsFoldersDetailsPostRequestWithBody(server string, params *FolderDetailsFoldersDetailsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewFolderDetailsFoldersDetailsPostRequestWithBody constructs an http.Request for the FolderDetailsFoldersDetailsPost method, with any body, and a specified content type

func NewGenerateCloudUriCloudGenerateUriPostRequest

func NewGenerateCloudUriCloudGenerateUriPostRequest(server string, params *GenerateCloudUriCloudGenerateUriPostParams, body GenerateCloudUriCloudGenerateUriPostJSONRequestBody) (*http.Request, error)

NewGenerateCloudUriCloudGenerateUriPostRequest calls the generic GenerateCloudUriCloudGenerateUriPost builder with application/json body

func NewGenerateCloudUriCloudGenerateUriPostRequestWithBody

func NewGenerateCloudUriCloudGenerateUriPostRequestWithBody(server string, params *GenerateCloudUriCloudGenerateUriPostParams, contentType string, body io.Reader) (*http.Request, error)

NewGenerateCloudUriCloudGenerateUriPostRequestWithBody constructs an http.Request for the GenerateCloudUriCloudGenerateUriPost method, with any body, and a specified content type

func NewGetAppStorageUsageUsageAppStorageGetRequest

func NewGetAppStorageUsageUsageAppStorageGetRequest(server string, params *GetAppStorageUsageUsageAppStorageGetParams) (*http.Request, error)

NewGetAppStorageUsageUsageAppStorageGetRequest constructs an http.Request for the GetAppStorageUsageUsageAppStorageGet method

func NewGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetRequest

func NewGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetRequest(server string, connectorType string, params *GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams) (*http.Request, error)

NewGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetRequest constructs an http.Request for the GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet method

func NewGetAvailableModelsForSelectionModelsAvailableGetRequest

func NewGetAvailableModelsForSelectionModelsAvailableGetRequest(server string, params *GetAvailableModelsForSelectionModelsAvailableGetParams) (*http.Request, error)

NewGetAvailableModelsForSelectionModelsAvailableGetRequest constructs an http.Request for the GetAvailableModelsForSelectionModelsAvailableGet method

func NewGetAvailableModelsModelsGetRequest

func NewGetAvailableModelsModelsGetRequest(server string, params *GetAvailableModelsModelsGetParams) (*http.Request, error)

NewGetAvailableModelsModelsGetRequest constructs an http.Request for the GetAvailableModelsModelsGet method

func NewGetChatHistoryChatChatIdGetRequest

func NewGetChatHistoryChatChatIdGetRequest(server string, chatId string, params *GetChatHistoryChatChatIdGetParams) (*http.Request, error)

NewGetChatHistoryChatChatIdGetRequest constructs an http.Request for the GetChatHistoryChatChatIdGet method

func NewGetDocumentByFilenameDocumentsFilenameFilenameGetRequest

func NewGetDocumentByFilenameDocumentsFilenameFilenameGetRequest(server string, filename string, params *GetDocumentByFilenameDocumentsFilenameFilenameGetParams) (*http.Request, error)

NewGetDocumentByFilenameDocumentsFilenameFilenameGetRequest constructs an http.Request for the GetDocumentByFilenameDocumentsFilenameFilenameGet method

func NewGetDocumentDocumentsDocumentIdGetRequest

func NewGetDocumentDocumentsDocumentIdGetRequest(server string, documentId string, params *GetDocumentDocumentsDocumentIdGetParams) (*http.Request, error)

NewGetDocumentDocumentsDocumentIdGetRequest constructs an http.Request for the GetDocumentDocumentsDocumentIdGet method

func NewGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetRequest

func NewGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetRequest(server string, documentId string, params *GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams) (*http.Request, error)

NewGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetRequest constructs an http.Request for the GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet method

func NewGetDocumentStatusDocumentsDocumentIdStatusGetRequest

func NewGetDocumentStatusDocumentsDocumentIdStatusGetRequest(server string, documentId string, params *GetDocumentStatusDocumentsDocumentIdStatusGetParams) (*http.Request, error)

NewGetDocumentStatusDocumentsDocumentIdStatusGetRequest constructs an http.Request for the GetDocumentStatusDocumentsDocumentIdStatusGet method

func NewGetDocumentSummaryDocumentsDocumentIdSummaryGetRequest

func NewGetDocumentSummaryDocumentsDocumentIdSummaryGetRequest(server string, documentId string, params *GetDocumentSummaryDocumentsDocumentIdSummaryGetParams) (*http.Request, error)

NewGetDocumentSummaryDocumentsDocumentIdSummaryGetRequest constructs an http.Request for the GetDocumentSummaryDocumentsDocumentIdSummaryGet method

func NewGetFolderFoldersFolderIdOrNameGetRequest

func NewGetFolderFoldersFolderIdOrNameGetRequest(server string, folderIdOrName string, params *GetFolderFoldersFolderIdOrNameGetParams) (*http.Request, error)

NewGetFolderFoldersFolderIdOrNameGetRequest constructs an http.Request for the GetFolderFoldersFolderIdOrNameGet method

func NewGetFolderSummaryFoldersFolderIdOrNameSummaryGetRequest

func NewGetFolderSummaryFoldersFolderIdOrNameSummaryGetRequest(server string, folderIdOrName string, params *GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams) (*http.Request, error)

NewGetFolderSummaryFoldersFolderIdOrNameSummaryGetRequest constructs an http.Request for the GetFolderSummaryFoldersFolderIdOrNameSummaryGet method

func NewGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetRequest

func NewGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetRequest(server string, connectorType string, params *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams) (*http.Request, error)

NewGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetRequest constructs an http.Request for the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet method

func NewGetLogsLogsGetRequest

func NewGetLogsLogsGetRequest(server string, params *GetLogsLogsGetParams) (*http.Request, error)

NewGetLogsLogsGetRequest constructs an http.Request for the GetLogsLogsGet method

func NewGetStatusEeConnectorsStatusPostRequest

func NewGetStatusEeConnectorsStatusPostRequest(server string, params *GetStatusEeConnectorsStatusPostParams, body GetStatusEeConnectorsStatusPostJSONRequestBody) (*http.Request, error)

NewGetStatusEeConnectorsStatusPostRequest calls the generic GetStatusEeConnectorsStatusPost builder with application/json body

func NewGetStatusEeConnectorsStatusPostRequestWithBody

func NewGetStatusEeConnectorsStatusPostRequestWithBody(server string, params *GetStatusEeConnectorsStatusPostParams, contentType string, body io.Reader) (*http.Request, error)

NewGetStatusEeConnectorsStatusPostRequestWithBody constructs an http.Request for the GetStatusEeConnectorsStatusPost method, with any body, and a specified content type

func NewHealthCheckHealthGetRequest

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

NewHealthCheckHealthGetRequest constructs an http.Request for the HealthCheckHealthGet method

func NewIngestDocumentV2V2DocumentsPostRequestWithBody added in v0.2.0

func NewIngestDocumentV2V2DocumentsPostRequestWithBody(server string, params *IngestDocumentV2V2DocumentsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewIngestDocumentV2V2DocumentsPostRequestWithBody constructs an http.Request for the IngestDocumentV2V2DocumentsPost method, with any body, and a specified content type

func NewIngestFileEeConnectorsConnectorTypeIngestPostRequest

func NewIngestFileEeConnectorsConnectorTypeIngestPostRequest(server string, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, body IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody) (*http.Request, error)

NewIngestFileEeConnectorsConnectorTypeIngestPostRequest calls the generic IngestFileEeConnectorsConnectorTypeIngestPost builder with application/json body

func NewIngestFileEeConnectorsConnectorTypeIngestPostRequestWithBody

func NewIngestFileEeConnectorsConnectorTypeIngestPostRequestWithBody(server string, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, contentType string, body io.Reader) (*http.Request, error)

NewIngestFileEeConnectorsConnectorTypeIngestPostRequestWithBody constructs an http.Request for the IngestFileEeConnectorsConnectorTypeIngestPost method, with any body, and a specified content type

func NewIngestFileIngestFilePostRequestWithBody

func NewIngestFileIngestFilePostRequestWithBody(server string, params *IngestFileIngestFilePostParams, contentType string, body io.Reader) (*http.Request, error)

NewIngestFileIngestFilePostRequestWithBody constructs an http.Request for the IngestFileIngestFilePost method, with any body, and a specified content type

func NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequest

func NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequest(server string, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, body IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody) (*http.Request, error)

NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequest calls the generic IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost builder with application/json body

func NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequestWithBody

func NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequestWithBody(server string, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, contentType string, body io.Reader) (*http.Request, error)

NewIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostRequestWithBody constructs an http.Request for the IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost method, with any body, and a specified content type

func NewIngestTextIngestTextPostRequest

func NewIngestTextIngestTextPostRequest(server string, params *IngestTextIngestTextPostParams, body IngestTextIngestTextPostJSONRequestBody) (*http.Request, error)

NewIngestTextIngestTextPostRequest calls the generic IngestTextIngestTextPost builder with application/json body

func NewIngestTextIngestTextPostRequestWithBody

func NewIngestTextIngestTextPostRequestWithBody(server string, params *IngestTextIngestTextPostParams, contentType string, body io.Reader) (*http.Request, error)

NewIngestTextIngestTextPostRequestWithBody constructs an http.Request for the IngestTextIngestTextPost method, with any body, and a specified content type

func NewInitiateAuthEeConnectorsInitiateAuthPostRequest

func NewInitiateAuthEeConnectorsInitiateAuthPostRequest(server string, params *InitiateAuthEeConnectorsInitiateAuthPostParams, body InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody) (*http.Request, error)

NewInitiateAuthEeConnectorsInitiateAuthPostRequest calls the generic InitiateAuthEeConnectorsInitiateAuthPost builder with application/json body

func NewInitiateAuthEeConnectorsInitiateAuthPostRequestWithBody

func NewInitiateAuthEeConnectorsInitiateAuthPostRequestWithBody(server string, params *InitiateAuthEeConnectorsInitiateAuthPostParams, contentType string, body io.Reader) (*http.Request, error)

NewInitiateAuthEeConnectorsInitiateAuthPostRequestWithBody constructs an http.Request for the InitiateAuthEeConnectorsInitiateAuthPost method, with any body, and a specified content type

func NewListApiKeysApiKeysGetRequest

func NewListApiKeysApiKeysGetRequest(server string, params *ListApiKeysApiKeysGetParams) (*http.Request, error)

NewListApiKeysApiKeysGetRequest constructs an http.Request for the ListApiKeysApiKeysGet method

func NewListChatConversationsChatsGetRequest

func NewListChatConversationsChatsGetRequest(server string, params *ListChatConversationsChatsGetParams) (*http.Request, error)

NewListChatConversationsChatsGetRequest constructs an http.Request for the ListChatConversationsChatsGet method

func NewListCloudAppsAppsGetRequest

func NewListCloudAppsAppsGetRequest(server string, params *ListCloudAppsAppsGetParams) (*http.Request, error)

NewListCloudAppsAppsGetRequest constructs an http.Request for the ListCloudAppsAppsGet method

func NewListCustomModelsModelsCustomGetRequest

func NewListCustomModelsModelsCustomGetRequest(server string, params *ListCustomModelsModelsCustomGetParams) (*http.Request, error)

NewListCustomModelsModelsCustomGetRequest constructs an http.Request for the ListCustomModelsModelsCustomGet method

func NewListDocsDocumentsListDocsPostRequest

func NewListDocsDocumentsListDocsPostRequest(server string, params *ListDocsDocumentsListDocsPostParams, body ListDocsDocumentsListDocsPostJSONRequestBody) (*http.Request, error)

NewListDocsDocumentsListDocsPostRequest calls the generic ListDocsDocumentsListDocsPost builder with application/json body

func NewListDocsDocumentsListDocsPostRequestWithBody

func NewListDocsDocumentsListDocsPostRequestWithBody(server string, params *ListDocsDocumentsListDocsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewListDocsDocumentsListDocsPostRequestWithBody constructs an http.Request for the ListDocsDocumentsListDocsPost method, with any body, and a specified content type

func NewListDocsDocumentsPostRequest

func NewListDocsDocumentsPostRequest(server string, params *ListDocsDocumentsPostParams, body ListDocsDocumentsPostJSONRequestBody) (*http.Request, error)

NewListDocsDocumentsPostRequest calls the generic ListDocsDocumentsPost builder with application/json body

func NewListDocsDocumentsPostRequestWithBody

func NewListDocsDocumentsPostRequestWithBody(server string, params *ListDocsDocumentsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewListDocsDocumentsPostRequestWithBody constructs an http.Request for the ListDocsDocumentsPost method, with any body, and a specified content type

func NewListFilesEeConnectorsListFilesPostRequest

func NewListFilesEeConnectorsListFilesPostRequest(server string, params *ListFilesEeConnectorsListFilesPostParams, body ListFilesEeConnectorsListFilesPostJSONRequestBody) (*http.Request, error)

NewListFilesEeConnectorsListFilesPostRequest calls the generic ListFilesEeConnectorsListFilesPost builder with application/json body

func NewListFilesEeConnectorsListFilesPostRequestWithBody

func NewListFilesEeConnectorsListFilesPostRequestWithBody(server string, params *ListFilesEeConnectorsListFilesPostParams, contentType string, body io.Reader) (*http.Request, error)

NewListFilesEeConnectorsListFilesPostRequestWithBody constructs an http.Request for the ListFilesEeConnectorsListFilesPost method, with any body, and a specified content type

func NewListFilesForConnectorEeConnectorsConnectorTypeFilesGetRequest

func NewListFilesForConnectorEeConnectorsConnectorTypeFilesGetRequest(server string, connectorType string, params *ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams) (*http.Request, error)

NewListFilesForConnectorEeConnectorsConnectorTypeFilesGetRequest constructs an http.Request for the ListFilesForConnectorEeConnectorsConnectorTypeFilesGet method

func NewListFolderSummariesFoldersSummaryGetRequest

func NewListFolderSummariesFoldersSummaryGetRequest(server string, params *ListFolderSummariesFoldersSummaryGetParams) (*http.Request, error)

NewListFolderSummariesFoldersSummaryGetRequest constructs an http.Request for the ListFolderSummariesFoldersSummaryGet method

func NewListFoldersFoldersGetRequest

func NewListFoldersFoldersGetRequest(server string, params *ListFoldersFoldersGetParams) (*http.Request, error)

NewListFoldersFoldersGetRequest constructs an http.Request for the ListFoldersFoldersGet method

func NewMigrateDocumentMigrateDocumentPostRequestWithBody added in v0.2.0

func NewMigrateDocumentMigrateDocumentPostRequestWithBody(server string, params *MigrateDocumentMigrateDocumentPostParams, contentType string, body io.Reader) (*http.Request, error)

NewMigrateDocumentMigrateDocumentPostRequestWithBody constructs an http.Request for the MigrateDocumentMigrateDocumentPost method, with any body, and a specified content type

func NewMoveFolderFoldersFolderIdOrNameMovePostRequest added in v0.2.0

func NewMoveFolderFoldersFolderIdOrNameMovePostRequest(server string, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, body MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody) (*http.Request, error)

NewMoveFolderFoldersFolderIdOrNameMovePostRequest calls the generic MoveFolderFoldersFolderIdOrNameMovePost builder with application/json body

func NewMoveFolderFoldersFolderIdOrNameMovePostRequestWithBody added in v0.2.0

func NewMoveFolderFoldersFolderIdOrNameMovePostRequestWithBody(server string, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, contentType string, body io.Reader) (*http.Request, error)

NewMoveFolderFoldersFolderIdOrNameMovePostRequestWithBody constructs an http.Request for the MoveFolderFoldersFolderIdOrNameMovePost method, with any body, and a specified content type

func NewPingHealthPingGetRequest

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

NewPingHealthPingGetRequest constructs an http.Request for the PingHealthPingGet method

func NewQueryCompletionQueryPostRequest

func NewQueryCompletionQueryPostRequest(server string, params *QueryCompletionQueryPostParams, body QueryCompletionQueryPostJSONRequestBody) (*http.Request, error)

NewQueryCompletionQueryPostRequest calls the generic QueryCompletionQueryPost builder with application/json body

func NewQueryCompletionQueryPostRequestWithBody

func NewQueryCompletionQueryPostRequestWithBody(server string, params *QueryCompletionQueryPostParams, contentType string, body io.Reader) (*http.Request, error)

NewQueryCompletionQueryPostRequestWithBody constructs an http.Request for the QueryCompletionQueryPost method, with any body, and a specified content type

func NewQueryDocumentIngestDocumentQueryPostRequestWithBody

func NewQueryDocumentIngestDocumentQueryPostRequestWithBody(server string, params *QueryDocumentIngestDocumentQueryPostParams, contentType string, body io.Reader) (*http.Request, error)

NewQueryDocumentIngestDocumentQueryPostRequestWithBody constructs an http.Request for the QueryDocumentIngestDocumentQueryPost method, with any body, and a specified content type

func NewRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteRequest

func NewRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteRequest(server string, folderIdOrName string, documentId string, params *RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams) (*http.Request, error)

NewRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteRequest constructs an http.Request for the RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete method

func NewRenameCloudAppAppsRenamePatchRequest

func NewRenameCloudAppAppsRenamePatchRequest(server string, params *RenameCloudAppAppsRenamePatchParams) (*http.Request, error)

NewRenameCloudAppAppsRenamePatchRequest constructs an http.Request for the RenameCloudAppAppsRenamePatch method

func NewRequeueIngestJobsIngestRequeuePostRequest

func NewRequeueIngestJobsIngestRequeuePostRequest(server string, params *RequeueIngestJobsIngestRequeuePostParams, body RequeueIngestJobsIngestRequeuePostJSONRequestBody) (*http.Request, error)

NewRequeueIngestJobsIngestRequeuePostRequest calls the generic RequeueIngestJobsIngestRequeuePost builder with application/json body

func NewRequeueIngestJobsIngestRequeuePostRequestWithBody

func NewRequeueIngestJobsIngestRequeuePostRequestWithBody(server string, params *RequeueIngestJobsIngestRequeuePostParams, contentType string, body io.Reader) (*http.Request, error)

NewRequeueIngestJobsIngestRequeuePostRequestWithBody constructs an http.Request for the RequeueIngestJobsIngestRequeuePost method, with any body, and a specified content type

func NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequest

func NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequest(server string, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, body RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody) (*http.Request, error)

NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequest calls the generic RetrieveChunksGroupedRetrieveChunksGroupedPost builder with application/json body

func NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequestWithBody

func NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequestWithBody(server string, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, contentType string, body io.Reader) (*http.Request, error)

NewRetrieveChunksGroupedRetrieveChunksGroupedPostRequestWithBody constructs an http.Request for the RetrieveChunksGroupedRetrieveChunksGroupedPost method, with any body, and a specified content type

func NewRetrieveChunksRetrieveChunksPostRequest

func NewRetrieveChunksRetrieveChunksPostRequest(server string, params *RetrieveChunksRetrieveChunksPostParams, body RetrieveChunksRetrieveChunksPostJSONRequestBody) (*http.Request, error)

NewRetrieveChunksRetrieveChunksPostRequest calls the generic RetrieveChunksRetrieveChunksPost builder with application/json body

func NewRetrieveChunksRetrieveChunksPostRequestWithBody

func NewRetrieveChunksRetrieveChunksPostRequestWithBody(server string, params *RetrieveChunksRetrieveChunksPostParams, contentType string, body io.Reader) (*http.Request, error)

NewRetrieveChunksRetrieveChunksPostRequestWithBody constructs an http.Request for the RetrieveChunksRetrieveChunksPost method, with any body, and a specified content type

func NewRetrieveChunksV2V2RetrieveChunksPostRequest added in v0.2.0

func NewRetrieveChunksV2V2RetrieveChunksPostRequest(server string, params *RetrieveChunksV2V2RetrieveChunksPostParams, body RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody) (*http.Request, error)

NewRetrieveChunksV2V2RetrieveChunksPostRequest calls the generic RetrieveChunksV2V2RetrieveChunksPost builder with application/json body

func NewRetrieveChunksV2V2RetrieveChunksPostRequestWithBody added in v0.2.0

func NewRetrieveChunksV2V2RetrieveChunksPostRequestWithBody(server string, params *RetrieveChunksV2V2RetrieveChunksPostParams, contentType string, body io.Reader) (*http.Request, error)

NewRetrieveChunksV2V2RetrieveChunksPostRequestWithBody constructs an http.Request for the RetrieveChunksV2V2RetrieveChunksPost method, with any body, and a specified content type

func NewRetrieveDocumentsRetrieveDocsPostRequest

func NewRetrieveDocumentsRetrieveDocsPostRequest(server string, params *RetrieveDocumentsRetrieveDocsPostParams, body RetrieveDocumentsRetrieveDocsPostJSONRequestBody) (*http.Request, error)

NewRetrieveDocumentsRetrieveDocsPostRequest calls the generic RetrieveDocumentsRetrieveDocsPost builder with application/json body

func NewRetrieveDocumentsRetrieveDocsPostRequestWithBody

func NewRetrieveDocumentsRetrieveDocsPostRequestWithBody(server string, params *RetrieveDocumentsRetrieveDocsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewRetrieveDocumentsRetrieveDocsPostRequestWithBody constructs an http.Request for the RetrieveDocumentsRetrieveDocsPost method, with any body, and a specified content type

func NewRotateAppTokenAppsRotateTokenPostRequest

func NewRotateAppTokenAppsRotateTokenPostRequest(server string, params *RotateAppTokenAppsRotateTokenPostParams) (*http.Request, error)

NewRotateAppTokenAppsRotateTokenPostRequest constructs an http.Request for the RotateAppTokenAppsRotateTokenPost method

func NewSaveApiKeyApiKeysPostRequest

func NewSaveApiKeyApiKeysPostRequest(server string, params *SaveApiKeyApiKeysPostParams, body SaveApiKeyApiKeysPostJSONRequestBody) (*http.Request, error)

NewSaveApiKeyApiKeysPostRequest calls the generic SaveApiKeyApiKeysPost builder with application/json body

func NewSaveApiKeyApiKeysPostRequestWithBody

func NewSaveApiKeyApiKeysPostRequestWithBody(server string, params *SaveApiKeyApiKeysPostParams, contentType string, body io.Reader) (*http.Request, error)

NewSaveApiKeyApiKeysPostRequestWithBody constructs an http.Request for the SaveApiKeyApiKeysPost method, with any body, and a specified content type

func NewSaveModelModelsPostRequest

func NewSaveModelModelsPostRequest(server string, params *SaveModelModelsPostParams, body SaveModelModelsPostJSONRequestBody) (*http.Request, error)

NewSaveModelModelsPostRequest calls the generic SaveModelModelsPost builder with application/json body

func NewSaveModelModelsPostRequestWithBody

func NewSaveModelModelsPostRequestWithBody(server string, params *SaveModelModelsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewSaveModelModelsPostRequestWithBody constructs an http.Request for the SaveModelModelsPost method, with any body, and a specified content type

func NewSearchDocumentsByNameSearchDocumentsPostRequest

func NewSearchDocumentsByNameSearchDocumentsPostRequest(server string, params *SearchDocumentsByNameSearchDocumentsPostParams, body SearchDocumentsByNameSearchDocumentsPostJSONRequestBody) (*http.Request, error)

NewSearchDocumentsByNameSearchDocumentsPostRequest calls the generic SearchDocumentsByNameSearchDocumentsPost builder with application/json body

func NewSearchDocumentsByNameSearchDocumentsPostRequestWithBody

func NewSearchDocumentsByNameSearchDocumentsPostRequestWithBody(server string, params *SearchDocumentsByNameSearchDocumentsPostParams, contentType string, body io.Reader) (*http.Request, error)

NewSearchDocumentsByNameSearchDocumentsPostRequestWithBody constructs an http.Request for the SearchDocumentsByNameSearchDocumentsPost method, with any body, and a specified content type

func NewUpdateChatTitleChatsChatIdTitlePatchRequest

func NewUpdateChatTitleChatsChatIdTitlePatchRequest(server string, chatId string, params *UpdateChatTitleChatsChatIdTitlePatchParams) (*http.Request, error)

NewUpdateChatTitleChatsChatIdTitlePatchRequest constructs an http.Request for the UpdateChatTitleChatsChatIdTitlePatch method

func NewUpdateDocumentFileDocumentsDocumentIdUpdateFilePostRequestWithBody

func NewUpdateDocumentFileDocumentsDocumentIdUpdateFilePostRequestWithBody(server string, documentId string, params *UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDocumentFileDocumentsDocumentIdUpdateFilePostRequestWithBody constructs an http.Request for the UpdateDocumentFileDocumentsDocumentIdUpdateFilePost method, with any body, and a specified content type

func NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequest

func NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequest(server string, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, body UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody) (*http.Request, error)

NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequest calls the generic UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost builder with application/json body

func NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequestWithBody

func NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequestWithBody(server string, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostRequestWithBody constructs an http.Request for the UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost method, with any body, and a specified content type

func NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequest

func NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequest(server string, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, body UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody) (*http.Request, error)

NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequest calls the generic UpdateDocumentTextDocumentsDocumentIdUpdateTextPost builder with application/json body

func NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequestWithBody

func NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequestWithBody(server string, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDocumentTextDocumentsDocumentIdUpdateTextPostRequestWithBody constructs an http.Request for the UpdateDocumentTextDocumentsDocumentIdUpdateTextPost method, with any body, and a specified content type

func NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequest

func NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequest(server string, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, body UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody) (*http.Request, error)

NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequest calls the generic UpsertDocumentSummaryDocumentsDocumentIdSummaryPut builder with application/json body

func NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequestWithBody

func NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequestWithBody(server string, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, contentType string, body io.Reader) (*http.Request, error)

NewUpsertDocumentSummaryDocumentsDocumentIdSummaryPutRequestWithBody constructs an http.Request for the UpsertDocumentSummaryDocumentsDocumentIdSummaryPut method, with any body, and a specified content type

func NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequest

func NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequest(server string, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, body UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody) (*http.Request, error)

NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequest calls the generic UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut builder with application/json body

func NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequestWithBody

func NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequestWithBody(server string, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, contentType string, body io.Reader) (*http.Request, error)

NewUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutRequestWithBody constructs an http.Request for the UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut method, with any body, and a specified content type

Types

type AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams

type AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams defines parameters for AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost.

type AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse

type AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentAddToFolderResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse

func ParseAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse(rsp *http.Response) (*AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse, error)

ParseAddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse parses an HTTP response from a AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse call

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) GetBody

GetBody returns the raw response body bytes

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) Status

Status returns HTTPResponse.Status

func (AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AppStorageUsageResponse

type AppStorageUsageResponse struct {
	AppId           string  `json:"app_id"`
	ChunkRawBytesMb float64 `json:"chunk_raw_bytes_mb"`
	DocRawBytesMb   float64 `json:"doc_raw_bytes_mb"`
	DocumentCount   int     `json:"document_count"`
	MultivectorMb   float64 `json:"multivector_mb"`
	TotalMb         float64 `json:"total_mb"`
}

AppStorageUsageResponse defines model for AppStorageUsageResponse.

type BatchChunksRequest

type BatchChunksRequest struct {
	// EndUserId Optional end-user scope for the operation
	EndUserId *string `json:"end_user_id,omitempty"`

	// FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
	FolderName *BatchChunksRequest_FolderName `json:"folder_name,omitempty"`

	// OutputFormat How to return image chunks: base64 (default), url, or text (markdown format)
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Sources List of chunk sources to retrieve
	Sources *[]ChunkSource `json:"sources,omitempty"`

	// UseColpali Whether to use ColPali embeddings for retrieval
	UseColpali *bool `json:"use_colpali,omitempty"`
}

BatchChunksRequest Request model for batch chunk retrieval.

type BatchChunksRequestFolderName0

type BatchChunksRequestFolderName0 = string

BatchChunksRequestFolderName0 defines model for BatchChunksRequest.FolderName.0.

type BatchChunksRequestFolderName1

type BatchChunksRequestFolderName1 = []string

BatchChunksRequestFolderName1 defines model for BatchChunksRequest.FolderName.1.

type BatchChunksRequest_FolderName

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

BatchChunksRequest_FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.

func (BatchChunksRequest_FolderName) AsBatchChunksRequestFolderName0

func (t BatchChunksRequest_FolderName) AsBatchChunksRequestFolderName0() (BatchChunksRequestFolderName0, error)

AsBatchChunksRequestFolderName0 returns the union data inside the BatchChunksRequest_FolderName as a BatchChunksRequestFolderName0

func (BatchChunksRequest_FolderName) AsBatchChunksRequestFolderName1

func (t BatchChunksRequest_FolderName) AsBatchChunksRequestFolderName1() (BatchChunksRequestFolderName1, error)

AsBatchChunksRequestFolderName1 returns the union data inside the BatchChunksRequest_FolderName as a BatchChunksRequestFolderName1

func (*BatchChunksRequest_FolderName) FromBatchChunksRequestFolderName0

func (t *BatchChunksRequest_FolderName) FromBatchChunksRequestFolderName0(v BatchChunksRequestFolderName0) error

FromBatchChunksRequestFolderName0 overwrites any union data inside the BatchChunksRequest_FolderName as the provided BatchChunksRequestFolderName0

func (*BatchChunksRequest_FolderName) FromBatchChunksRequestFolderName1

func (t *BatchChunksRequest_FolderName) FromBatchChunksRequestFolderName1(v BatchChunksRequestFolderName1) error

FromBatchChunksRequestFolderName1 overwrites any union data inside the BatchChunksRequest_FolderName as the provided BatchChunksRequestFolderName1

func (BatchChunksRequest_FolderName) MarshalJSON

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

func (*BatchChunksRequest_FolderName) MergeBatchChunksRequestFolderName0

func (t *BatchChunksRequest_FolderName) MergeBatchChunksRequestFolderName0(v BatchChunksRequestFolderName0) error

MergeBatchChunksRequestFolderName0 performs a merge with any union data inside the BatchChunksRequest_FolderName, using the provided BatchChunksRequestFolderName0

func (*BatchChunksRequest_FolderName) MergeBatchChunksRequestFolderName1

func (t *BatchChunksRequest_FolderName) MergeBatchChunksRequestFolderName1(v BatchChunksRequestFolderName1) error

MergeBatchChunksRequestFolderName1 performs a merge with any union data inside the BatchChunksRequest_FolderName, using the provided BatchChunksRequestFolderName1

func (*BatchChunksRequest_FolderName) UnmarshalJSON

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

type BatchDocumentsRequest

type BatchDocumentsRequest struct {
	// DocumentIds List of document IDs to retrieve
	DocumentIds *[]string `json:"document_ids,omitempty"`

	// EndUserId Optional end-user scope for the operation
	EndUserId *string `json:"end_user_id,omitempty"`

	// FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
	FolderName *BatchDocumentsRequest_FolderName `json:"folder_name,omitempty"`
}

BatchDocumentsRequest Request model for batch document retrieval.

type BatchDocumentsRequestFolderName0

type BatchDocumentsRequestFolderName0 = string

BatchDocumentsRequestFolderName0 defines model for BatchDocumentsRequest.FolderName.0.

type BatchDocumentsRequestFolderName1

type BatchDocumentsRequestFolderName1 = []string

BatchDocumentsRequestFolderName1 defines model for BatchDocumentsRequest.FolderName.1.

type BatchDocumentsRequest_FolderName

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

BatchDocumentsRequest_FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.

func (BatchDocumentsRequest_FolderName) AsBatchDocumentsRequestFolderName0

func (t BatchDocumentsRequest_FolderName) AsBatchDocumentsRequestFolderName0() (BatchDocumentsRequestFolderName0, error)

AsBatchDocumentsRequestFolderName0 returns the union data inside the BatchDocumentsRequest_FolderName as a BatchDocumentsRequestFolderName0

func (BatchDocumentsRequest_FolderName) AsBatchDocumentsRequestFolderName1

func (t BatchDocumentsRequest_FolderName) AsBatchDocumentsRequestFolderName1() (BatchDocumentsRequestFolderName1, error)

AsBatchDocumentsRequestFolderName1 returns the union data inside the BatchDocumentsRequest_FolderName as a BatchDocumentsRequestFolderName1

func (*BatchDocumentsRequest_FolderName) FromBatchDocumentsRequestFolderName0

func (t *BatchDocumentsRequest_FolderName) FromBatchDocumentsRequestFolderName0(v BatchDocumentsRequestFolderName0) error

FromBatchDocumentsRequestFolderName0 overwrites any union data inside the BatchDocumentsRequest_FolderName as the provided BatchDocumentsRequestFolderName0

func (*BatchDocumentsRequest_FolderName) FromBatchDocumentsRequestFolderName1

func (t *BatchDocumentsRequest_FolderName) FromBatchDocumentsRequestFolderName1(v BatchDocumentsRequestFolderName1) error

FromBatchDocumentsRequestFolderName1 overwrites any union data inside the BatchDocumentsRequest_FolderName as the provided BatchDocumentsRequestFolderName1

func (BatchDocumentsRequest_FolderName) MarshalJSON

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

func (*BatchDocumentsRequest_FolderName) MergeBatchDocumentsRequestFolderName0

func (t *BatchDocumentsRequest_FolderName) MergeBatchDocumentsRequestFolderName0(v BatchDocumentsRequestFolderName0) error

MergeBatchDocumentsRequestFolderName0 performs a merge with any union data inside the BatchDocumentsRequest_FolderName, using the provided BatchDocumentsRequestFolderName0

func (*BatchDocumentsRequest_FolderName) MergeBatchDocumentsRequestFolderName1

func (t *BatchDocumentsRequest_FolderName) MergeBatchDocumentsRequestFolderName1(v BatchDocumentsRequestFolderName1) error

MergeBatchDocumentsRequestFolderName1 performs a merge with any union data inside the BatchDocumentsRequest_FolderName, using the provided BatchDocumentsRequestFolderName1

func (*BatchDocumentsRequest_FolderName) UnmarshalJSON

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

type BatchGetChunksBatchChunksPostJSONRequestBody

type BatchGetChunksBatchChunksPostJSONRequestBody = BatchChunksRequest

BatchGetChunksBatchChunksPostJSONRequestBody defines body for BatchGetChunksBatchChunksPost for application/json ContentType.

type BatchGetChunksBatchChunksPostParams

type BatchGetChunksBatchChunksPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

BatchGetChunksBatchChunksPostParams defines parameters for BatchGetChunksBatchChunksPost.

type BatchGetChunksBatchChunksPostResponse

type BatchGetChunksBatchChunksPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ChunkResult
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseBatchGetChunksBatchChunksPostResponse

func ParseBatchGetChunksBatchChunksPostResponse(rsp *http.Response) (*BatchGetChunksBatchChunksPostResponse, error)

ParseBatchGetChunksBatchChunksPostResponse parses an HTTP response from a BatchGetChunksBatchChunksPostWithResponse call

func (BatchGetChunksBatchChunksPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BatchGetChunksBatchChunksPostResponse) GetBody

GetBody returns the raw response body bytes

func (BatchGetChunksBatchChunksPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (BatchGetChunksBatchChunksPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (BatchGetChunksBatchChunksPostResponse) Status

Status returns HTTPResponse.Status

func (BatchGetChunksBatchChunksPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BatchGetDocumentsBatchDocumentsPostJSONRequestBody

type BatchGetDocumentsBatchDocumentsPostJSONRequestBody = BatchDocumentsRequest

BatchGetDocumentsBatchDocumentsPostJSONRequestBody defines body for BatchGetDocumentsBatchDocumentsPost for application/json ContentType.

type BatchGetDocumentsBatchDocumentsPostParams

type BatchGetDocumentsBatchDocumentsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

BatchGetDocumentsBatchDocumentsPostParams defines parameters for BatchGetDocumentsBatchDocumentsPost.

type BatchGetDocumentsBatchDocumentsPostResponse

type BatchGetDocumentsBatchDocumentsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseBatchGetDocumentsBatchDocumentsPostResponse

func ParseBatchGetDocumentsBatchDocumentsPostResponse(rsp *http.Response) (*BatchGetDocumentsBatchDocumentsPostResponse, error)

ParseBatchGetDocumentsBatchDocumentsPostResponse parses an HTTP response from a BatchGetDocumentsBatchDocumentsPostWithResponse call

func (BatchGetDocumentsBatchDocumentsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BatchGetDocumentsBatchDocumentsPostResponse) GetBody

GetBody returns the raw response body bytes

func (BatchGetDocumentsBatchDocumentsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (BatchGetDocumentsBatchDocumentsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (BatchGetDocumentsBatchDocumentsPostResponse) Status

Status returns HTTPResponse.Status

func (BatchGetDocumentsBatchDocumentsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BatchIngestFilesIngestFilesPostMultipartRequestBody

type BatchIngestFilesIngestFilesPostMultipartRequestBody = BodyBatchIngestFilesIngestFilesPost

BatchIngestFilesIngestFilesPostMultipartRequestBody defines body for BatchIngestFilesIngestFilesPost for multipart/form-data ContentType.

type BatchIngestFilesIngestFilesPostParams

type BatchIngestFilesIngestFilesPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

BatchIngestFilesIngestFilesPostParams defines parameters for BatchIngestFilesIngestFilesPost.

type BatchIngestFilesIngestFilesPostResponse

type BatchIngestFilesIngestFilesPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BatchIngestResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseBatchIngestFilesIngestFilesPostResponse

func ParseBatchIngestFilesIngestFilesPostResponse(rsp *http.Response) (*BatchIngestFilesIngestFilesPostResponse, error)

ParseBatchIngestFilesIngestFilesPostResponse parses an HTTP response from a BatchIngestFilesIngestFilesPostWithResponse call

func (BatchIngestFilesIngestFilesPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BatchIngestFilesIngestFilesPostResponse) GetBody

GetBody returns the raw response body bytes

func (BatchIngestFilesIngestFilesPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (BatchIngestFilesIngestFilesPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (BatchIngestFilesIngestFilesPostResponse) Status

Status returns HTTPResponse.Status

func (BatchIngestFilesIngestFilesPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BatchIngestResponse

type BatchIngestResponse struct {
	Documents []Document          `json:"documents"`
	Errors    []map[string]string `json:"errors"`
}

BatchIngestResponse Response model for batch ingestion

type BodyBatchIngestFilesIngestFilesPost

type BodyBatchIngestFilesIngestFilesPost struct {
	EndUserId     *string              `json:"end_user_id,omitempty"`
	Files         []openapi_types.File `json:"files"`
	FolderName    *string              `json:"folder_name,omitempty"`
	Metadata      *string              `json:"metadata,omitempty"`
	MetadataTypes *string              `json:"metadata_types,omitempty"`
	UseColpali    *bool                `json:"use_colpali,omitempty"`
}

BodyBatchIngestFilesIngestFilesPost defines model for Body_batch_ingest_files_ingest_files_post.

type BodyIngestDocumentV2V2DocumentsPost added in v0.2.0

type BodyIngestDocumentV2V2DocumentsPost struct {
	Content       *string             `json:"content,omitempty"`
	EndUserId     *string             `json:"end_user_id,omitempty"`
	File          *openapi_types.File `json:"file,omitempty"`
	Filename      *string             `json:"filename,omitempty"`
	FolderPath    *string             `json:"folder_path,omitempty"`
	Metadata      *string             `json:"metadata,omitempty"`
	MetadataTypes *string             `json:"metadata_types,omitempty"`
}

BodyIngestDocumentV2V2DocumentsPost defines model for Body_ingest_document_v2_v2_documents_post.

type BodyIngestFileIngestFilePost

type BodyIngestFileIngestFilePost struct {
	EndUserId     *string            `json:"end_user_id,omitempty"`
	File          openapi_types.File `json:"file"`
	FolderName    *string            `json:"folder_name,omitempty"`
	Metadata      *string            `json:"metadata,omitempty"`
	MetadataTypes *string            `json:"metadata_types,omitempty"`
	UseColpali    *bool              `json:"use_colpali,omitempty"`
}

BodyIngestFileIngestFilePost defines model for Body_ingest_file_ingest_file_post.

type BodyMigrateDocumentMigrateDocumentPost added in v0.2.0

type BodyMigrateDocumentMigrateDocumentPost struct {
	EndUserId        *string                                           `json:"end_user_id,omitempty"`
	File             openapi_types.File                                `json:"file"`
	FolderName       *string                                           `json:"folder_name,omitempty"`
	Metadata         *string                                           `json:"metadata,omitempty"`
	MetadataTypes    *string                                           `json:"metadata_types,omitempty"`
	OnConflict       *BodyMigrateDocumentMigrateDocumentPostOnConflict `json:"on_conflict,omitempty"`
	SourceDocumentId string                                            `json:"source_document_id"`
	UseColpali       *bool                                             `json:"use_colpali,omitempty"`
}

BodyMigrateDocumentMigrateDocumentPost defines model for Body_migrate_document_migrate_document_post.

type BodyMigrateDocumentMigrateDocumentPostOnConflict added in v0.2.0

type BodyMigrateDocumentMigrateDocumentPostOnConflict string

BodyMigrateDocumentMigrateDocumentPostOnConflict defines model for BodyMigrateDocumentMigrateDocumentPost.OnConflict.

const (
	BodyMigrateDocumentMigrateDocumentPostOnConflictFail BodyMigrateDocumentMigrateDocumentPostOnConflict = "fail"
	BodyMigrateDocumentMigrateDocumentPostOnConflictSkip BodyMigrateDocumentMigrateDocumentPostOnConflict = "skip"
)

Defines values for BodyMigrateDocumentMigrateDocumentPostOnConflict.

func (BodyMigrateDocumentMigrateDocumentPostOnConflict) Valid added in v0.2.0

Valid indicates whether the value is a known member of the BodyMigrateDocumentMigrateDocumentPostOnConflict enum.

type BodyQueryDocumentIngestDocumentQueryPost

type BodyQueryDocumentIngestDocumentQueryPost struct {
	File             openapi_types.File `json:"file"`
	IngestionOptions *string            `json:"ingestion_options,omitempty"`
	Prompt           string             `json:"prompt"`
	ResponseSchema   *string            `json:"response_schema,omitempty"`
}

BodyQueryDocumentIngestDocumentQueryPost defines model for Body_query_document_ingest_document_query_post.

type BodyUpdateDocumentFileDocumentsDocumentIdUpdateFilePost

type BodyUpdateDocumentFileDocumentsDocumentIdUpdateFilePost struct {
	File          openapi_types.File `json:"file"`
	Metadata      *string            `json:"metadata,omitempty"`
	MetadataTypes *string            `json:"metadata_types,omitempty"`
	UseColpali    *bool              `json:"use_colpali,omitempty"`
}

BodyUpdateDocumentFileDocumentsDocumentIdUpdateFilePost defines model for Body_update_document_file_documents__document_id__update_file_post.

type ChatMessage

type ChatMessage struct {
	Content   string          `json:"content"`
	Role      ChatMessageRole `json:"role"`
	Timestamp *string         `json:"timestamp,omitempty"`
}

ChatMessage Simple chat message model for chat persistence.

type ChatMessageRole

type ChatMessageRole string

ChatMessageRole defines model for ChatMessage.Role.

const (
	ChatMessageRoleAssistant ChatMessageRole = "assistant"
	ChatMessageRoleUser      ChatMessageRole = "user"
)

Defines values for ChatMessageRole.

func (ChatMessageRole) Valid

func (e ChatMessageRole) Valid() bool

Valid indicates whether the value is a known member of the ChatMessageRole enum.

type ChatTitleResponse

type ChatTitleResponse struct {
	Message string `json:"message"`
	Status  string `json:"status"`
	Title   string `json:"title"`
}

ChatTitleResponse Response for chat title update endpoint

type ChunkGroup

type ChunkGroup struct {
	// MainChunk Query result at chunk level
	MainChunk     ChunkResult    `json:"main_chunk"`
	PaddingChunks *[]ChunkResult `json:"padding_chunks,omitempty"`

	// TotalChunks Total number of chunks in this group
	TotalChunks int `json:"total_chunks"`
}

ChunkGroup Represents a group of chunks: one main match + its padding chunks

type ChunkResult

type ChunkResult struct {
	ChunkNumber int     `json:"chunk_number"`
	Content     string  `json:"content"`
	ContentType string  `json:"content_type"`
	DocumentId  string  `json:"document_id"`
	DownloadUrl *string `json:"download_url,omitempty"`
	Filename    *string `json:"filename,omitempty"`

	// IsPadding Whether this chunk was added as padding
	IsPadding *bool                  `json:"is_padding,omitempty"`
	Metadata  map[string]interface{} `json:"metadata"`
	Score     float64                `json:"score"`
}

ChunkResult Query result at chunk level

type ChunkSource

type ChunkSource struct {
	ChunkNumber int      `json:"chunk_number"`
	DocumentId  string   `json:"document_id"`
	Score       *float64 `json:"score,omitempty"`
}

ChunkSource Source information for a chunk used in completion

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

func (c *Client) AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost(ctx context.Context, folderIdOrName string, documentId string, params *AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost Add Document To Folder

Add a document to a folder.

Corresponds with POST /folders/{folder_id_or_name}/documents/{document_id} (the `AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost` operationId).

func (*Client) BatchGetChunksBatchChunksPost

func (c *Client) BatchGetChunksBatchChunksPost(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, body BatchGetChunksBatchChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

BatchGetChunksBatchChunksPost Batch Get Chunks

Retrieve specific chunks by their document ID and chunk number in a single batch operation.

Takes a body of the `application/json` content type.

Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).

func (*Client) BatchGetChunksBatchChunksPostWithBody

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

BatchGetChunksBatchChunksPostWithBody Batch Get Chunks

Retrieve specific chunks by their document ID and chunk number in a single batch operation.

Takes any type of body and a specified content type.

Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).

func (*Client) BatchGetDocumentsBatchDocumentsPost

BatchGetDocumentsBatchDocumentsPost Batch Get Documents

Retrieve multiple documents by their IDs in a single batch operation.

Takes a body of the `application/json` content type.

Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).

func (*Client) BatchGetDocumentsBatchDocumentsPostWithBody

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

BatchGetDocumentsBatchDocumentsPostWithBody Batch Get Documents

Retrieve multiple documents by their IDs in a single batch operation.

Takes any type of body and a specified content type.

Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).

func (*Client) BatchIngestFilesIngestFilesPostWithBody

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

BatchIngestFilesIngestFilesPostWithBody Batch Ingest Files

Batch ingest **multiple files** (async).

Each file is treated the same as :func:`ingest_file` but sharing the same request avoids many round-trips. All heavy work is still delegated to the background worker pool.

Takes any type of body and a specified content type.

Corresponds with POST /ingest/files (the `BatchIngestFilesIngestFilesPost` operationId).

func (*Client) ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet

func (c *Client) ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet(ctx context.Context, connectorType string, params *ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet Connector Oauth Callback

Handles the OAuth 2.0 callback from the authentication provider. Validates state, finalizes authentication, and stores credentials.

Corresponds with GET /ee/connectors/{connector_type}/oauth2callback (the `ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet` operationId).

func (*Client) CreateFolderFoldersPost

func (c *Client) CreateFolderFoldersPost(ctx context.Context, params *CreateFolderFoldersPostParams, body CreateFolderFoldersPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateFolderFoldersPost Create Folder

Create a new folder.

Takes a body of the `application/json` content type.

Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).

func (*Client) CreateFolderFoldersPostWithBody

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

CreateFolderFoldersPostWithBody Create Folder

Create a new folder.

Takes any type of body and a specified content type.

Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).

func (*Client) DeleteCloudAppAppsDelete

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

DeleteCloudAppAppsDelete Delete Cloud App

Delete all resources associated with a given cloud application.

Corresponds with DELETE /apps (the `DeleteCloudAppAppsDelete` operationId).

func (*Client) DeleteDocumentDocumentsDocumentIdDelete

func (c *Client) DeleteDocumentDocumentsDocumentIdDelete(ctx context.Context, documentId string, params *DeleteDocumentDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteDocumentDocumentsDocumentIdDelete Delete Document

Delete a document and all associated data.

This endpoint deletes a document and all its associated data, including: - Document metadata - Document content in storage - Document chunks and embeddings in vector store

Corresponds with DELETE /documents/{document_id} (the `DeleteDocumentDocumentsDocumentIdDelete` operationId).

func (*Client) DeleteDocumentV2V2DocumentsDocumentIdDelete added in v0.2.0

func (c *Client) DeleteDocumentV2V2DocumentsDocumentIdDelete(ctx context.Context, documentId string, params *DeleteDocumentV2V2DocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteDocumentV2V2DocumentsDocumentIdDelete Delete Document V2

Corresponds with DELETE /v2/documents/{document_id} (the `DeleteDocumentV2V2DocumentsDocumentIdDelete` operationId).

func (*Client) DeleteFolderFoldersFolderIdOrNameDelete

func (c *Client) DeleteFolderFoldersFolderIdOrNameDelete(ctx context.Context, folderIdOrName string, params *DeleteFolderFoldersFolderIdOrNameDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteFolderFoldersFolderIdOrNameDelete Delete Folder

Delete a folder and all associated documents.

Corresponds with DELETE /folders/{folder_id_or_name} (the `DeleteFolderFoldersFolderIdOrNameDelete` operationId).

func (*Client) DeleteModelModelsModelIdDelete

func (c *Client) DeleteModelModelsModelIdDelete(ctx context.Context, modelId string, params *DeleteModelModelsModelIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteModelModelsModelIdDelete Delete Model

Delete a custom model.

Corresponds with DELETE /models/{model_id} (the `DeleteModelModelsModelIdDelete` operationId).

func (*Client) DisconnectEeConnectorsDisconnectPost

DisconnectEeConnectorsDisconnectPost Disconnect

Disconnect from a connector and remove credentials.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).

func (*Client) DisconnectEeConnectorsDisconnectPostWithBody

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

DisconnectEeConnectorsDisconnectPostWithBody Disconnect

Disconnect from a connector and remove credentials.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).

func (*Client) DownloadDocumentFileDocumentsDocumentIdFileGet

func (c *Client) DownloadDocumentFileDocumentsDocumentIdFileGet(ctx context.Context, documentId string, params *DownloadDocumentFileDocumentsDocumentIdFileGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DownloadDocumentFileDocumentsDocumentIdFileGet Download Document File

Download the actual file content for a document. This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.

Corresponds with GET /documents/{document_id}/file (the `DownloadDocumentFileDocumentsDocumentIdFileGet` operationId).

func (*Client) ExtractDocumentPagesDocumentsPagesPost

ExtractDocumentPagesDocumentsPagesPost Extract Document Pages

Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).

Takes a body of the `application/json` content type.

Corresponds with POST /documents/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).

func (*Client) ExtractDocumentPagesDocumentsPagesPostWithBody

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

ExtractDocumentPagesDocumentsPagesPostWithBody Extract Document Pages

Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).

Takes any type of body and a specified content type.

Corresponds with POST /documents/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).

func (*Client) FinalizeAuthEeConnectorsFinalizeAuthPost

FinalizeAuthEeConnectorsFinalizeAuthPost Finalize Auth

Finalize the OAuth flow and exchange the code for a token.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).

func (*Client) FinalizeAuthEeConnectorsFinalizeAuthPostWithBody

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

FinalizeAuthEeConnectorsFinalizeAuthPostWithBody Finalize Auth

Finalize the OAuth flow and exchange the code for a token.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).

func (*Client) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost

func (c *Client) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, body FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost Finalize Manual Auth

Finalize authentication using manual credentials.

This endpoint is used for connectors that require manual credential input (like Zotero) instead of OAuth flows.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).

func (*Client) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBody

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

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBody Finalize Manual Auth

Finalize authentication using manual credentials.

This endpoint is used for connectors that require manual credential input (like Zotero) instead of OAuth flows.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).

func (*Client) FolderDetailsFoldersDetailsPost

func (c *Client) FolderDetailsFoldersDetailsPost(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, body FolderDetailsFoldersDetailsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

FolderDetailsFoldersDetailsPost Folder Details

Retrieve folder metadata with optional document statistics and projections.

Takes a body of the `application/json` content type.

Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).

func (*Client) FolderDetailsFoldersDetailsPostWithBody

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

FolderDetailsFoldersDetailsPostWithBody Folder Details

Retrieve folder metadata with optional document statistics and projections.

Takes any type of body and a specified content type.

Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).

func (*Client) GenerateCloudUriCloudGenerateUriPost

GenerateCloudUriCloudGenerateUriPost Generate Cloud Uri

Generate an authenticated URI for a cloud-hosted Morphik application.

Takes a body of the `application/json` content type.

Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).

func (*Client) GenerateCloudUriCloudGenerateUriPostWithBody

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

GenerateCloudUriCloudGenerateUriPostWithBody Generate Cloud Uri

Generate an authenticated URI for a cloud-hosted Morphik application.

Takes any type of body and a specified content type.

Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).

func (*Client) GetAppStorageUsageUsageAppStorageGet

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

GetAppStorageUsageUsageAppStorageGet Get App Storage Usage

Corresponds with GET /usage/app-storage (the `GetAppStorageUsageUsageAppStorageGet` operationId).

func (*Client) GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet

func (c *Client) GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet(ctx context.Context, connectorType string, params *GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet Get Auth Status For Connector

Checks the current authentication status for the given connector type.

Corresponds with GET /ee/connectors/{connector_type}/auth_status (the `GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet` operationId).

func (*Client) GetAvailableModelsForSelectionModelsAvailableGet

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

GetAvailableModelsForSelectionModelsAvailableGet Get Available Models For Selection

Get list of available models for UI selection.

Returns a list of models that can be used for queries. Each model includes: - id: Model identifier to use in llm_config - name: Display name for the model - provider: The LLM provider (e.g., openai, anthropic, ollama) - description: Optional description of the model

Corresponds with GET /models/available (the `GetAvailableModelsForSelectionModelsAvailableGet` operationId).

func (*Client) GetAvailableModelsModelsGet

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

GetAvailableModelsModelsGet Get Available Models

Get list of available models from configuration.

Returns models grouped by type (chat, embedding, etc.) with their metadata.

Corresponds with GET /models (the `GetAvailableModelsModelsGet` operationId).

func (*Client) GetChatHistoryChatChatIdGet

func (c *Client) GetChatHistoryChatChatIdGet(ctx context.Context, chatId string, params *GetChatHistoryChatChatIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetChatHistoryChatChatIdGet Get Chat History

Retrieve the message history for a chat conversation.

Corresponds with GET /chat/{chat_id} (the `GetChatHistoryChatChatIdGet` operationId).

func (*Client) GetDocumentByFilenameDocumentsFilenameFilenameGet

func (c *Client) GetDocumentByFilenameDocumentsFilenameFilenameGet(ctx context.Context, filename string, params *GetDocumentByFilenameDocumentsFilenameFilenameGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDocumentByFilenameDocumentsFilenameFilenameGet Get Document By Filename

Get document by filename.

Corresponds with GET /documents/filename/{filename} (the `GetDocumentByFilenameDocumentsFilenameFilenameGet` operationId).

func (*Client) GetDocumentDocumentsDocumentIdGet

func (c *Client) GetDocumentDocumentsDocumentIdGet(ctx context.Context, documentId string, params *GetDocumentDocumentsDocumentIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDocumentDocumentsDocumentIdGet Get Document

Retrieve a single document by its external identifier.

Returns the :class:`Document` metadata if found or raises 404.

Corresponds with GET /documents/{document_id} (the `GetDocumentDocumentsDocumentIdGet` operationId).

func (*Client) GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet

func (c *Client) GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet(ctx context.Context, documentId string, params *GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet Get Document Download Url

Get a download URL for a specific document.

Corresponds with GET /documents/{document_id}/download_url (the `GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet` operationId).

func (*Client) GetDocumentStatusDocumentsDocumentIdStatusGet

func (c *Client) GetDocumentStatusDocumentsDocumentIdStatusGet(ctx context.Context, documentId string, params *GetDocumentStatusDocumentsDocumentIdStatusGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDocumentStatusDocumentsDocumentIdStatusGet Get Document Status

Get the processing status of a document.

Corresponds with GET /documents/{document_id}/status (the `GetDocumentStatusDocumentsDocumentIdStatusGet` operationId).

func (*Client) GetDocumentSummaryDocumentsDocumentIdSummaryGet

func (c *Client) GetDocumentSummaryDocumentsDocumentIdSummaryGet(ctx context.Context, documentId string, params *GetDocumentSummaryDocumentsDocumentIdSummaryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDocumentSummaryDocumentsDocumentIdSummaryGet Get Document Summary

Retrieve the latest summary for a document.

Corresponds with GET /documents/{document_id}/summary (the `GetDocumentSummaryDocumentsDocumentIdSummaryGet` operationId).

func (*Client) GetFolderFoldersFolderIdOrNameGet

func (c *Client) GetFolderFoldersFolderIdOrNameGet(ctx context.Context, folderIdOrName string, params *GetFolderFoldersFolderIdOrNameGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetFolderFoldersFolderIdOrNameGet Get Folder

Get a folder by ID or name.

Corresponds with GET /folders/{folder_id_or_name} (the `GetFolderFoldersFolderIdOrNameGet` operationId).

func (*Client) GetFolderSummaryFoldersFolderIdOrNameSummaryGet

func (c *Client) GetFolderSummaryFoldersFolderIdOrNameSummaryGet(ctx context.Context, folderIdOrName string, params *GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetFolderSummaryFoldersFolderIdOrNameSummaryGet Get Folder Summary

Retrieve the latest summary for a folder.

Corresponds with GET /folders/{folder_id_or_name}/summary (the `GetFolderSummaryFoldersFolderIdOrNameSummaryGet` operationId).

func (*Client) GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet

func (c *Client) GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet(ctx context.Context, connectorType string, params *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet Get Initiate Auth Url

Return the provider's *authorization_url* for the given connector.

The method mirrors the logic of the `/auth/initiate` endpoint but sends a JSON payload instead of a redirect so that browsers can stay on the same origin until they intentionally navigate away.

For OAuth-based connectors, this returns authorization_url. For manual credential connectors, this returns the credential form specification.

Corresponds with GET /ee/connectors/{connector_type}/auth/initiate_url (the `GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet` operationId).

func (*Client) GetLogsLogsGet

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

GetLogsLogsGet Get Logs

Return recent logs for the authenticated user (scoped by app_id).

Args:

hours: Number of hours of history to retrieve (default 4)
       - <= 4 hours: reads from local files
       - > 4 hours: queries logs.morphik.ai proxy (requires proxy endpoint)

Corresponds with GET /logs/ (the `GetLogsLogsGet` operationId).

func (*Client) GetStatusEeConnectorsStatusPost

func (c *Client) GetStatusEeConnectorsStatusPost(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, body GetStatusEeConnectorsStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GetStatusEeConnectorsStatusPost Get Status

Get the authentication status for a connector.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).

func (*Client) GetStatusEeConnectorsStatusPostWithBody

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

GetStatusEeConnectorsStatusPostWithBody Get Status

Get the authentication status for a connector.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).

func (*Client) HealthCheckHealthGet

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

HealthCheckHealthGet Health Check

Comprehensive health check endpoint that queries all underlying services.

Checks the following services: - PostgreSQL database - Redis - PGVector store - Storage service (Local/S3) - ColPali vector store (if enabled)

Corresponds with GET /health (the `HealthCheckHealthGet` operationId).

func (*Client) IngestDocumentV2V2DocumentsPostWithBody added in v0.2.0

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

IngestDocumentV2V2DocumentsPostWithBody Ingest Document V2

Takes any type of body and a specified content type.

Corresponds with POST /v2/documents (the `IngestDocumentV2V2DocumentsPost` operationId).

func (*Client) IngestFileEeConnectorsConnectorTypeIngestPost

func (c *Client) IngestFileEeConnectorsConnectorTypeIngestPost(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, body IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IngestFileEeConnectorsConnectorTypeIngestPost Ingest File

Ingest a single file from a connector.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).

func (*Client) IngestFileEeConnectorsConnectorTypeIngestPostWithBody

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

IngestFileEeConnectorsConnectorTypeIngestPostWithBody Ingest File

Ingest a single file from a connector.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).

func (*Client) IngestFileIngestFilePostWithBody

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

IngestFileIngestFilePostWithBody Ingest File

Ingest a **file** asynchronously.

The file is uploaded to object storage, a *Document* stub is persisted with “status='processing'“ and a background worker picks up the heavy parsing / chunking work.

Takes any type of body and a specified content type.

Corresponds with POST /ingest/file (the `IngestFileIngestFilePost` operationId).

func (*Client) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost

func (c *Client) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, body IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost Ingest Repository

Ingest an entire GitHub repository.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).

func (*Client) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBody

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

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBody Ingest Repository

Ingest an entire GitHub repository.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).

func (*Client) IngestTextIngestTextPost

func (c *Client) IngestTextIngestTextPost(ctx context.Context, params *IngestTextIngestTextPostParams, body IngestTextIngestTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IngestTextIngestTextPost Ingest Text

Ingest a **text** document asynchronously (queued like /ingest/file).

Takes a body of the `application/json` content type.

Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).

func (*Client) IngestTextIngestTextPostWithBody

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

IngestTextIngestTextPostWithBody Ingest Text

Ingest a **text** document asynchronously (queued like /ingest/file).

Takes any type of body and a specified content type.

Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).

func (*Client) InitiateAuthEeConnectorsInitiateAuthPost

InitiateAuthEeConnectorsInitiateAuthPost Initiate Auth

Initiate the OAuth flow for a connector.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).

func (*Client) InitiateAuthEeConnectorsInitiateAuthPostWithBody

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

InitiateAuthEeConnectorsInitiateAuthPostWithBody Initiate Auth

Initiate the OAuth flow for a connector.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).

func (*Client) ListApiKeysApiKeysGet

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

ListApiKeysApiKeysGet List Api Keys

List all configured API keys (sanitized).

Corresponds with GET /api-keys (the `ListApiKeysApiKeysGet` operationId).

func (*Client) ListChatConversationsChatsGet

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

ListChatConversationsChatsGet List Chat Conversations

List chat conversations available to the current user.

Corresponds with GET /chats (the `ListChatConversationsChatsGet` operationId).

func (*Client) ListCloudAppsAppsGet

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

ListCloudAppsAppsGet List Cloud Apps

List provisioned apps for the specified organization/user.

Corresponds with GET /apps (the `ListCloudAppsAppsGet` operationId).

func (*Client) ListCustomModelsModelsCustomGet

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

ListCustomModelsModelsCustomGet List Custom Models

List all custom models for the authenticated user.

Corresponds with GET /models/custom (the `ListCustomModelsModelsCustomGet` operationId).

func (*Client) ListDocsDocumentsListDocsPost

func (c *Client) ListDocsDocumentsListDocsPost(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, body ListDocsDocumentsListDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDocsDocumentsListDocsPost List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

Takes a body of the `application/json` content type.

Corresponds with POST /documents/list_docs (the `ListDocsDocumentsListDocsPost` operationId).

func (*Client) ListDocsDocumentsListDocsPostWithBody

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

ListDocsDocumentsListDocsPostWithBody List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

Takes any type of body and a specified content type.

Corresponds with POST /documents/list_docs (the `ListDocsDocumentsListDocsPost` operationId).

func (*Client) ListDocsDocumentsPost

func (c *Client) ListDocsDocumentsPost(ctx context.Context, params *ListDocsDocumentsPostParams, body ListDocsDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDocsDocumentsPost List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

Takes a body of the `application/json` content type.

Corresponds with POST /documents (the `ListDocsDocumentsPost` operationId).

func (*Client) ListDocsDocumentsPostWithBody

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

ListDocsDocumentsPostWithBody List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

Takes any type of body and a specified content type.

Corresponds with POST /documents (the `ListDocsDocumentsPost` operationId).

func (*Client) ListFilesEeConnectorsListFilesPost

func (c *Client) ListFilesEeConnectorsListFilesPost(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, body ListFilesEeConnectorsListFilesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ListFilesEeConnectorsListFilesPost List Files

List files from a connector.

Takes a body of the `application/json` content type.

Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).

func (*Client) ListFilesEeConnectorsListFilesPostWithBody

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

ListFilesEeConnectorsListFilesPostWithBody List Files

List files from a connector.

Takes any type of body and a specified content type.

Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).

func (*Client) ListFilesForConnectorEeConnectorsConnectorTypeFilesGet

func (c *Client) ListFilesForConnectorEeConnectorsConnectorTypeFilesGet(ctx context.Context, connectorType string, params *ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListFilesForConnectorEeConnectorsConnectorTypeFilesGet List Files For Connector

Lists files and folders from the specified connector.

Corresponds with GET /ee/connectors/{connector_type}/files (the `ListFilesForConnectorEeConnectorsConnectorTypeFilesGet` operationId).

func (*Client) ListFolderSummariesFoldersSummaryGet

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

ListFolderSummariesFoldersSummaryGet List Folder Summaries

Return compact folder list (id, name, doc_count, updated_at).

Corresponds with GET /folders/summary (the `ListFolderSummariesFoldersSummaryGet` operationId).

func (*Client) ListFoldersFoldersGet

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

ListFoldersFoldersGet List Folders

List all folders the user has access to.

Corresponds with GET /folders (the `ListFoldersFoldersGet` operationId).

func (*Client) MigrateDocumentMigrateDocumentPostWithBody added in v0.2.0

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

MigrateDocumentMigrateDocumentPostWithBody Migrate Document

Ingest a migrated source document while preserving its document ID.

Takes any type of body and a specified content type.

Corresponds with POST /migrate/document (the `MigrateDocumentMigrateDocumentPost` operationId).

func (*Client) MoveFolderFoldersFolderIdOrNameMovePost added in v0.2.0

func (c *Client) MoveFolderFoldersFolderIdOrNameMovePost(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, body MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

MoveFolderFoldersFolderIdOrNameMovePost Move Folder

Move and/or rename a folder by providing a new path.

- Changing the last segment renames the folder. - Changing parent segments moves it. - All descendant folders and documents are updated atomically. - Missing ancestor folders at the new location are created automatically.

Takes a body of the `application/json` content type.

Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).

func (*Client) MoveFolderFoldersFolderIdOrNameMovePostWithBody added in v0.2.0

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

MoveFolderFoldersFolderIdOrNameMovePostWithBody Move Folder

Move and/or rename a folder by providing a new path.

- Changing the last segment renames the folder. - Changing parent segments moves it. - All descendant folders and documents are updated atomically. - Missing ancestor folders at the new location are created automatically.

Takes any type of body and a specified content type.

Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).

func (*Client) PingHealthPingGet

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

PingHealthPingGet Ping Health

Simple health check endpoint that returns 200 OK.

Corresponds with GET /ping (the `PingHealthPingGet` operationId).

func (*Client) QueryCompletionQueryPost

func (c *Client) QueryCompletionQueryPost(ctx context.Context, params *QueryCompletionQueryPostParams, body QueryCompletionQueryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

QueryCompletionQueryPost Query Completion

Generate completion using relevant chunks as context.

Takes a body of the `application/json` content type.

Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).

func (*Client) QueryCompletionQueryPostWithBody

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

QueryCompletionQueryPostWithBody Query Completion

Generate completion using relevant chunks as context.

Takes any type of body and a specified content type.

Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).

func (*Client) QueryDocumentIngestDocumentQueryPostWithBody

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

QueryDocumentIngestDocumentQueryPostWithBody Query Document

Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and scheduling a follow-up ingestion.

`ingestion_options` is a JSON string controlling post-analysis ingestion behaviour via keys such as `ingest`, `metadata`, `use_colpali`, `folder_name`, and `end_user_id`. Additional keys are ignored. A :class:`DocumentQueryResponse` describing the inline analysis and any queued ingestion is returned.

Takes any type of body and a specified content type.

Corresponds with POST /ingest/document/query (the `QueryDocumentIngestDocumentQueryPost` operationId).

func (*Client) RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete

func (c *Client) RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete(ctx context.Context, folderIdOrName string, documentId string, params *RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete Remove Document From Folder

Remove a document from a folder.

Corresponds with DELETE /folders/{folder_id_or_name}/documents/{document_id} (the `RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete` operationId).

func (*Client) RenameCloudAppAppsRenamePatch

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

RenameCloudAppAppsRenamePatch Rename Cloud App

Rename an existing cloud application.

Corresponds with PATCH /apps/rename (the `RenameCloudAppAppsRenamePatch` operationId).

func (*Client) RequeueIngestJobsIngestRequeuePost

func (c *Client) RequeueIngestJobsIngestRequeuePost(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, body RequeueIngestJobsIngestRequeuePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RequeueIngestJobsIngestRequeuePost Requeue Ingest Jobs

Requeue ingestion jobs for documents stuck in processing or marked as failed.

Takes a body of the `application/json` content type.

Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).

func (*Client) RequeueIngestJobsIngestRequeuePostWithBody

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

RequeueIngestJobsIngestRequeuePostWithBody Requeue Ingest Jobs

Requeue ingestion jobs for documents stuck in processing or marked as failed.

Takes any type of body and a specified content type.

Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).

func (*Client) RetrieveChunksGroupedRetrieveChunksGroupedPost

RetrieveChunksGroupedRetrieveChunksGroupedPost Retrieve Chunks Grouped

Retrieve relevant chunks with grouped response format.

Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting supported inside `request.filters`.

Returns both flat results (for backward compatibility) and grouped results (for UI). When padding > 0, groups chunks by main matches and their padding chunks.

Takes a body of the `application/json` content type.

Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).

func (*Client) RetrieveChunksGroupedRetrieveChunksGroupedPostWithBody

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

RetrieveChunksGroupedRetrieveChunksGroupedPostWithBody Retrieve Chunks Grouped

Retrieve relevant chunks with grouped response format.

Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting supported inside `request.filters`.

Returns both flat results (for backward compatibility) and grouped results (for UI). When padding > 0, groups chunks by main matches and their padding chunks.

Takes any type of body and a specified content type.

Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).

func (*Client) RetrieveChunksRetrieveChunksPost

func (c *Client) RetrieveChunksRetrieveChunksPost(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, body RetrieveChunksRetrieveChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RetrieveChunksRetrieveChunksPost Retrieve Chunks

Retrieve relevant chunks.

The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays) plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`, and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default, configurable via `case_sensitive`). Filters can be nested freely, for example:

```json

{
  "$and": [
    {"category": "policy"},
    {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
  ]
}

``` Returns a list of `ChunkResult` objects ordered by relevance.

Takes a body of the `application/json` content type.

Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).

func (*Client) RetrieveChunksRetrieveChunksPostWithBody

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

RetrieveChunksRetrieveChunksPostWithBody Retrieve Chunks

Retrieve relevant chunks.

The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays) plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`, and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default, configurable via `case_sensitive`). Filters can be nested freely, for example:

```json

{
  "$and": [
    {"category": "policy"},
    {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
  ]
}

``` Returns a list of `ChunkResult` objects ordered by relevance.

Takes any type of body and a specified content type.

Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).

func (*Client) RetrieveChunksV2V2RetrieveChunksPost added in v0.2.0

RetrieveChunksV2V2RetrieveChunksPost Retrieve Chunks V2

Takes a body of the `application/json` content type.

Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).

func (*Client) RetrieveChunksV2V2RetrieveChunksPostWithBody added in v0.2.0

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

RetrieveChunksV2V2RetrieveChunksPostWithBody Retrieve Chunks V2

Takes any type of body and a specified content type.

Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).

func (*Client) RetrieveDocumentsRetrieveDocsPost

func (c *Client) RetrieveDocumentsRetrieveDocsPost(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, body RetrieveDocumentsRetrieveDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RetrieveDocumentsRetrieveDocsPost Retrieve Documents

Retrieve relevant documents.

`request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as `number`, `decimal`, `datetime`, or `date`.

Takes a body of the `application/json` content type.

Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).

func (*Client) RetrieveDocumentsRetrieveDocsPostWithBody

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

RetrieveDocumentsRetrieveDocsPostWithBody Retrieve Documents

Retrieve relevant documents.

`request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as `number`, `decimal`, `datetime`, or `date`.

Takes any type of body and a specified content type.

Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).

func (*Client) RotateAppTokenAppsRotateTokenPost

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

RotateAppTokenAppsRotateTokenPost Rotate App Token

Rotate the token for an existing application.

Corresponds with POST /apps/rotate_token (the `RotateAppTokenAppsRotateTokenPost` operationId).

func (*Client) SaveApiKeyApiKeysPost

func (c *Client) SaveApiKeyApiKeysPost(ctx context.Context, params *SaveApiKeyApiKeysPostParams, body SaveApiKeyApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SaveApiKeyApiKeysPost Save Api Key

Save API key for a provider.

Takes a body of the `application/json` content type.

Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).

func (*Client) SaveApiKeyApiKeysPostWithBody

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

SaveApiKeyApiKeysPostWithBody Save Api Key

Save API key for a provider.

Takes any type of body and a specified content type.

Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).

func (*Client) SaveModelModelsPost

func (c *Client) SaveModelModelsPost(ctx context.Context, params *SaveModelModelsPostParams, body SaveModelModelsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SaveModelModelsPost Save Model

Save a custom model configuration.

Takes a body of the `application/json` content type.

Corresponds with POST /models (the `SaveModelModelsPost` operationId).

func (*Client) SaveModelModelsPostWithBody

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

SaveModelModelsPostWithBody Save Model

Save a custom model configuration.

Takes any type of body and a specified content type.

Corresponds with POST /models (the `SaveModelModelsPost` operationId).

func (*Client) SearchDocumentsByNameSearchDocumentsPost

SearchDocumentsByNameSearchDocumentsPost Search Documents By Name

Search documents by filename using full-text search.

`request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`, `datetime`, `date`).

Takes a body of the `application/json` content type.

Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).

func (*Client) SearchDocumentsByNameSearchDocumentsPostWithBody

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

SearchDocumentsByNameSearchDocumentsPostWithBody Search Documents By Name

Search documents by filename using full-text search.

`request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`, `datetime`, `date`).

Takes any type of body and a specified content type.

Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).

func (*Client) UpdateChatTitleChatsChatIdTitlePatch

func (c *Client) UpdateChatTitleChatsChatIdTitlePatch(ctx context.Context, chatId string, params *UpdateChatTitleChatsChatIdTitlePatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateChatTitleChatsChatIdTitlePatch Update Chat Title

Update the title of a chat conversation.

Corresponds with PATCH /chats/{chat_id}/title (the `UpdateChatTitleChatsChatIdTitlePatch` operationId).

func (*Client) UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBody

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

UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBody Update Document File

Update a document by replacing its content with a new file and queueing re-ingestion.

Takes any type of body and a specified content type.

Corresponds with POST /documents/{document_id}/update_file (the `UpdateDocumentFileDocumentsDocumentIdUpdateFilePost` operationId).

func (*Client) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost

func (c *Client) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, body UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost Update Document Metadata

Update only a document's metadata.

Takes a body of the `application/json` content type.

Corresponds with POST /documents/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).

func (*Client) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBody

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

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBody Update Document Metadata

Update only a document's metadata.

Takes any type of body and a specified content type.

Corresponds with POST /documents/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).

func (*Client) UpdateDocumentTextDocumentsDocumentIdUpdateTextPost

func (c *Client) UpdateDocumentTextDocumentsDocumentIdUpdateTextPost(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, body UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateDocumentTextDocumentsDocumentIdUpdateTextPost Update Document Text

Update a document by replacing its text content and queueing re-ingestion.

Takes a body of the `application/json` content type.

Corresponds with POST /documents/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).

func (*Client) UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBody

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

UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBody Update Document Text

Update a document by replacing its text content and queueing re-ingestion.

Takes any type of body and a specified content type.

Corresponds with POST /documents/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).

func (*Client) UpsertDocumentSummaryDocumentsDocumentIdSummaryPut

func (c *Client) UpsertDocumentSummaryDocumentsDocumentIdSummaryPut(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, body UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpsertDocumentSummaryDocumentsDocumentIdSummaryPut Upsert Document Summary

Create or update a document summary with optional versioning.

Takes a body of the `application/json` content type.

Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).

func (*Client) UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBody

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

UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBody Upsert Document Summary

Create or update a document summary with optional versioning.

Takes any type of body and a specified content type.

Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).

func (*Client) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut

func (c *Client) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, body UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut Upsert Folder Summary

Create or update a folder summary with optional versioning.

Takes a body of the `application/json` content type.

Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).

func (*Client) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBody

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

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBody Upsert Folder Summary

Create or update a folder summary with optional versioning.

Takes any type of body and a specified content type.

Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).

type ClientInterface

type ClientInterface interface {

	// ListApiKeysApiKeysGet List Api Keys
	//
	// List all configured API keys (sanitized).
	//
	// Corresponds with GET /api-keys (the `ListApiKeysApiKeysGet` operationId).
	ListApiKeysApiKeysGet(ctx context.Context, params *ListApiKeysApiKeysGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveApiKeyApiKeysPostWithBody Save Api Key
	//
	// Save API key for a provider.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).
	SaveApiKeyApiKeysPostWithBody(ctx context.Context, params *SaveApiKeyApiKeysPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveApiKeyApiKeysPost Save Api Key
	//
	// Save API key for a provider.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).
	SaveApiKeyApiKeysPost(ctx context.Context, params *SaveApiKeyApiKeysPostParams, body SaveApiKeyApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCloudAppAppsDelete Delete Cloud App
	//
	// Delete all resources associated with a given cloud application.
	//
	// Corresponds with DELETE /apps (the `DeleteCloudAppAppsDelete` operationId).
	DeleteCloudAppAppsDelete(ctx context.Context, params *DeleteCloudAppAppsDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCloudAppsAppsGet List Cloud Apps
	//
	// List provisioned apps for the specified organization/user.
	//
	// Corresponds with GET /apps (the `ListCloudAppsAppsGet` operationId).
	ListCloudAppsAppsGet(ctx context.Context, params *ListCloudAppsAppsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameCloudAppAppsRenamePatch Rename Cloud App
	//
	// Rename an existing cloud application.
	//
	// Corresponds with PATCH /apps/rename (the `RenameCloudAppAppsRenamePatch` operationId).
	RenameCloudAppAppsRenamePatch(ctx context.Context, params *RenameCloudAppAppsRenamePatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateAppTokenAppsRotateTokenPost Rotate App Token
	//
	// Rotate the token for an existing application.
	//
	// Corresponds with POST /apps/rotate_token (the `RotateAppTokenAppsRotateTokenPost` operationId).
	RotateAppTokenAppsRotateTokenPost(ctx context.Context, params *RotateAppTokenAppsRotateTokenPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetChunksBatchChunksPostWithBody Batch Get Chunks
	//
	// Retrieve specific chunks by their document ID and chunk number in a single batch operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).
	BatchGetChunksBatchChunksPostWithBody(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetChunksBatchChunksPost Batch Get Chunks
	//
	// Retrieve specific chunks by their document ID and chunk number in a single batch operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).
	BatchGetChunksBatchChunksPost(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, body BatchGetChunksBatchChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetDocumentsBatchDocumentsPostWithBody Batch Get Documents
	//
	// Retrieve multiple documents by their IDs in a single batch operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).
	BatchGetDocumentsBatchDocumentsPostWithBody(ctx context.Context, params *BatchGetDocumentsBatchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetDocumentsBatchDocumentsPost Batch Get Documents
	//
	// Retrieve multiple documents by their IDs in a single batch operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).
	BatchGetDocumentsBatchDocumentsPost(ctx context.Context, params *BatchGetDocumentsBatchDocumentsPostParams, body BatchGetDocumentsBatchDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetChatHistoryChatChatIdGet Get Chat History
	//
	// Retrieve the message history for a chat conversation.
	//
	// Corresponds with GET /chat/{chat_id} (the `GetChatHistoryChatChatIdGet` operationId).
	GetChatHistoryChatChatIdGet(ctx context.Context, chatId string, params *GetChatHistoryChatChatIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListChatConversationsChatsGet List Chat Conversations
	//
	// List chat conversations available to the current user.
	//
	// Corresponds with GET /chats (the `ListChatConversationsChatsGet` operationId).
	ListChatConversationsChatsGet(ctx context.Context, params *ListChatConversationsChatsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatTitleChatsChatIdTitlePatch Update Chat Title
	//
	// Update the title of a chat conversation.
	//
	// Corresponds with PATCH /chats/{chat_id}/title (the `UpdateChatTitleChatsChatIdTitlePatch` operationId).
	UpdateChatTitleChatsChatIdTitlePatch(ctx context.Context, chatId string, params *UpdateChatTitleChatsChatIdTitlePatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateCloudUriCloudGenerateUriPostWithBody Generate Cloud Uri
	//
	// Generate an authenticated URI for a cloud-hosted Morphik application.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).
	GenerateCloudUriCloudGenerateUriPostWithBody(ctx context.Context, params *GenerateCloudUriCloudGenerateUriPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateCloudUriCloudGenerateUriPost Generate Cloud Uri
	//
	// Generate an authenticated URI for a cloud-hosted Morphik application.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).
	GenerateCloudUriCloudGenerateUriPost(ctx context.Context, params *GenerateCloudUriCloudGenerateUriPostParams, body GenerateCloudUriCloudGenerateUriPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDocsDocumentsPostWithBody List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents (the `ListDocsDocumentsPost` operationId).
	ListDocsDocumentsPostWithBody(ctx context.Context, params *ListDocsDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDocsDocumentsPost List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /documents (the `ListDocsDocumentsPost` operationId).
	ListDocsDocumentsPost(ctx context.Context, params *ListDocsDocumentsPostParams, body ListDocsDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDocumentByFilenameDocumentsFilenameFilenameGet Get Document By Filename
	//
	// Get document by filename.
	//
	// Corresponds with GET /documents/filename/{filename} (the `GetDocumentByFilenameDocumentsFilenameFilenameGet` operationId).
	GetDocumentByFilenameDocumentsFilenameFilenameGet(ctx context.Context, filename string, params *GetDocumentByFilenameDocumentsFilenameFilenameGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDocsDocumentsListDocsPostWithBody List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents/list_docs (the `ListDocsDocumentsListDocsPost` operationId).
	ListDocsDocumentsListDocsPostWithBody(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDocsDocumentsListDocsPost List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /documents/list_docs (the `ListDocsDocumentsListDocsPost` operationId).
	ListDocsDocumentsListDocsPost(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, body ListDocsDocumentsListDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExtractDocumentPagesDocumentsPagesPostWithBody Extract Document Pages
	//
	// Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs.
	// When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).
	ExtractDocumentPagesDocumentsPagesPostWithBody(ctx context.Context, params *ExtractDocumentPagesDocumentsPagesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExtractDocumentPagesDocumentsPagesPost Extract Document Pages
	//
	// Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs.
	// When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /documents/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).
	ExtractDocumentPagesDocumentsPagesPost(ctx context.Context, params *ExtractDocumentPagesDocumentsPagesPostParams, body ExtractDocumentPagesDocumentsPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDocumentDocumentsDocumentIdDelete Delete Document
	//
	// Delete a document and all associated data.
	//
	// This endpoint deletes a document and all its associated data, including:
	// - Document metadata
	// - Document content in storage
	// - Document chunks and embeddings in vector store
	//
	// Corresponds with DELETE /documents/{document_id} (the `DeleteDocumentDocumentsDocumentIdDelete` operationId).
	DeleteDocumentDocumentsDocumentIdDelete(ctx context.Context, documentId string, params *DeleteDocumentDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDocumentDocumentsDocumentIdGet Get Document
	//
	// Retrieve a single document by its external identifier.
	//
	// Returns the :class:`Document` metadata if found or raises 404.
	//
	// Corresponds with GET /documents/{document_id} (the `GetDocumentDocumentsDocumentIdGet` operationId).
	GetDocumentDocumentsDocumentIdGet(ctx context.Context, documentId string, params *GetDocumentDocumentsDocumentIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet Get Document Download Url
	//
	// Get a download URL for a specific document.
	//
	// Corresponds with GET /documents/{document_id}/download_url (the `GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet` operationId).
	GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet(ctx context.Context, documentId string, params *GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadDocumentFileDocumentsDocumentIdFileGet Download Document File
	//
	// Download the actual file content for a document.
	// This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.
	//
	// Corresponds with GET /documents/{document_id}/file (the `DownloadDocumentFileDocumentsDocumentIdFileGet` operationId).
	DownloadDocumentFileDocumentsDocumentIdFileGet(ctx context.Context, documentId string, params *DownloadDocumentFileDocumentsDocumentIdFileGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDocumentStatusDocumentsDocumentIdStatusGet Get Document Status
	//
	// Get the processing status of a document.
	//
	// Corresponds with GET /documents/{document_id}/status (the `GetDocumentStatusDocumentsDocumentIdStatusGet` operationId).
	GetDocumentStatusDocumentsDocumentIdStatusGet(ctx context.Context, documentId string, params *GetDocumentStatusDocumentsDocumentIdStatusGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDocumentSummaryDocumentsDocumentIdSummaryGet Get Document Summary
	//
	// Retrieve the latest summary for a document.
	//
	// Corresponds with GET /documents/{document_id}/summary (the `GetDocumentSummaryDocumentsDocumentIdSummaryGet` operationId).
	GetDocumentSummaryDocumentsDocumentIdSummaryGet(ctx context.Context, documentId string, params *GetDocumentSummaryDocumentsDocumentIdSummaryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBody Upsert Document Summary
	//
	// Create or update a document summary with optional versioning.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).
	UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBody(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertDocumentSummaryDocumentsDocumentIdSummaryPut Upsert Document Summary
	//
	// Create or update a document summary with optional versioning.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).
	UpsertDocumentSummaryDocumentsDocumentIdSummaryPut(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, body UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBody Update Document File
	//
	// Update a document by replacing its content with a new file and queueing re-ingestion.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents/{document_id}/update_file (the `UpdateDocumentFileDocumentsDocumentIdUpdateFilePost` operationId).
	UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBody(ctx context.Context, documentId string, params *UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBody Update Document Metadata
	//
	// Update only a document's metadata.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).
	UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBody(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost Update Document Metadata
	//
	// Update only a document's metadata.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /documents/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).
	UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, body UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBody Update Document Text
	//
	// Update a document by replacing its text content and queueing re-ingestion.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /documents/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).
	UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBody(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDocumentTextDocumentsDocumentIdUpdateTextPost Update Document Text
	//
	// Update a document by replacing its text content and queueing re-ingestion.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /documents/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).
	UpdateDocumentTextDocumentsDocumentIdUpdateTextPost(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, body UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisconnectEeConnectorsDisconnectPostWithBody Disconnect
	//
	// Disconnect from a connector and remove credentials.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).
	DisconnectEeConnectorsDisconnectPostWithBody(ctx context.Context, params *DisconnectEeConnectorsDisconnectPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisconnectEeConnectorsDisconnectPost Disconnect
	//
	// Disconnect from a connector and remove credentials.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).
	DisconnectEeConnectorsDisconnectPost(ctx context.Context, params *DisconnectEeConnectorsDisconnectPostParams, body DisconnectEeConnectorsDisconnectPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinalizeAuthEeConnectorsFinalizeAuthPostWithBody Finalize Auth
	//
	// Finalize the OAuth flow and exchange the code for a token.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).
	FinalizeAuthEeConnectorsFinalizeAuthPostWithBody(ctx context.Context, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinalizeAuthEeConnectorsFinalizeAuthPost Finalize Auth
	//
	// Finalize the OAuth flow and exchange the code for a token.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).
	FinalizeAuthEeConnectorsFinalizeAuthPost(ctx context.Context, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, body FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitiateAuthEeConnectorsInitiateAuthPostWithBody Initiate Auth
	//
	// Initiate the OAuth flow for a connector.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).
	InitiateAuthEeConnectorsInitiateAuthPostWithBody(ctx context.Context, params *InitiateAuthEeConnectorsInitiateAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitiateAuthEeConnectorsInitiateAuthPost Initiate Auth
	//
	// Initiate the OAuth flow for a connector.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).
	InitiateAuthEeConnectorsInitiateAuthPost(ctx context.Context, params *InitiateAuthEeConnectorsInitiateAuthPostParams, body InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFilesEeConnectorsListFilesPostWithBody List Files
	//
	// List files from a connector.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).
	ListFilesEeConnectorsListFilesPostWithBody(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFilesEeConnectorsListFilesPost List Files
	//
	// List files from a connector.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).
	ListFilesEeConnectorsListFilesPost(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, body ListFilesEeConnectorsListFilesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusEeConnectorsStatusPostWithBody Get Status
	//
	// Get the authentication status for a connector.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).
	GetStatusEeConnectorsStatusPostWithBody(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusEeConnectorsStatusPost Get Status
	//
	// Get the authentication status for a connector.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).
	GetStatusEeConnectorsStatusPost(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, body GetStatusEeConnectorsStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBody Finalize Manual Auth
	//
	// Finalize authentication using manual credentials.
	//
	// This endpoint is used for connectors that require manual credential input
	// (like Zotero) instead of OAuth flows.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).
	FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBody(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost Finalize Manual Auth
	//
	// Finalize authentication using manual credentials.
	//
	// This endpoint is used for connectors that require manual credential input
	// (like Zotero) instead of OAuth flows.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).
	FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, body FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet Get Initiate Auth Url
	//
	// Return the provider's *authorization_url* for the given connector.
	//
	// The method mirrors the logic of the `/auth/initiate` endpoint but sends a
	// JSON payload instead of a redirect so that browsers can stay on the same
	// origin until they intentionally navigate away.
	//
	// For OAuth-based connectors, this returns authorization_url.
	// For manual credential connectors, this returns the credential form specification.
	//
	// Corresponds with GET /ee/connectors/{connector_type}/auth/initiate_url (the `GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet` operationId).
	GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet(ctx context.Context, connectorType string, params *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet Get Auth Status For Connector
	//
	// Checks the current authentication status for the given connector type.
	//
	// Corresponds with GET /ee/connectors/{connector_type}/auth_status (the `GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet` operationId).
	GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet(ctx context.Context, connectorType string, params *GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFilesForConnectorEeConnectorsConnectorTypeFilesGet List Files For Connector
	//
	// Lists files and folders from the specified connector.
	//
	// Corresponds with GET /ee/connectors/{connector_type}/files (the `ListFilesForConnectorEeConnectorsConnectorTypeFilesGet` operationId).
	ListFilesForConnectorEeConnectorsConnectorTypeFilesGet(ctx context.Context, connectorType string, params *ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestFileEeConnectorsConnectorTypeIngestPostWithBody Ingest File
	//
	// Ingest a single file from a connector.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).
	IngestFileEeConnectorsConnectorTypeIngestPostWithBody(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestFileEeConnectorsConnectorTypeIngestPost Ingest File
	//
	// Ingest a single file from a connector.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).
	IngestFileEeConnectorsConnectorTypeIngestPost(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, body IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBody Ingest Repository
	//
	// Ingest an entire GitHub repository.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).
	IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBody(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost Ingest Repository
	//
	// Ingest an entire GitHub repository.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).
	IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, body IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet Connector Oauth Callback
	//
	// Handles the OAuth 2.0 callback from the authentication provider.
	// Validates state, finalizes authentication, and stores credentials.
	//
	// Corresponds with GET /ee/connectors/{connector_type}/oauth2callback (the `ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet` operationId).
	ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet(ctx context.Context, connectorType string, params *ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFoldersFoldersGet List Folders
	//
	// List all folders the user has access to.
	//
	// Corresponds with GET /folders (the `ListFoldersFoldersGet` operationId).
	ListFoldersFoldersGet(ctx context.Context, params *ListFoldersFoldersGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFolderFoldersPostWithBody Create Folder
	//
	// Create a new folder.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).
	CreateFolderFoldersPostWithBody(ctx context.Context, params *CreateFolderFoldersPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFolderFoldersPost Create Folder
	//
	// Create a new folder.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).
	CreateFolderFoldersPost(ctx context.Context, params *CreateFolderFoldersPostParams, body CreateFolderFoldersPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FolderDetailsFoldersDetailsPostWithBody Folder Details
	//
	// Retrieve folder metadata with optional document statistics and projections.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).
	FolderDetailsFoldersDetailsPostWithBody(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FolderDetailsFoldersDetailsPost Folder Details
	//
	// Retrieve folder metadata with optional document statistics and projections.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).
	FolderDetailsFoldersDetailsPost(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, body FolderDetailsFoldersDetailsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFolderSummariesFoldersSummaryGet List Folder Summaries
	//
	// Return compact folder list (id, name, doc_count, updated_at).
	//
	// Corresponds with GET /folders/summary (the `ListFolderSummariesFoldersSummaryGet` operationId).
	ListFolderSummariesFoldersSummaryGet(ctx context.Context, params *ListFolderSummariesFoldersSummaryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFolderFoldersFolderIdOrNameDelete Delete Folder
	//
	// Delete a folder and all associated documents.
	//
	// Corresponds with DELETE /folders/{folder_id_or_name} (the `DeleteFolderFoldersFolderIdOrNameDelete` operationId).
	DeleteFolderFoldersFolderIdOrNameDelete(ctx context.Context, folderIdOrName string, params *DeleteFolderFoldersFolderIdOrNameDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFolderFoldersFolderIdOrNameGet Get Folder
	//
	// Get a folder by ID or name.
	//
	// Corresponds with GET /folders/{folder_id_or_name} (the `GetFolderFoldersFolderIdOrNameGet` operationId).
	GetFolderFoldersFolderIdOrNameGet(ctx context.Context, folderIdOrName string, params *GetFolderFoldersFolderIdOrNameGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete Remove Document From Folder
	//
	// Remove a document from a folder.
	//
	// Corresponds with DELETE /folders/{folder_id_or_name}/documents/{document_id} (the `RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete` operationId).
	RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete(ctx context.Context, folderIdOrName string, documentId string, params *RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost Add Document To Folder
	//
	// Add a document to a folder.
	//
	// Corresponds with POST /folders/{folder_id_or_name}/documents/{document_id} (the `AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost` operationId).
	AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost(ctx context.Context, folderIdOrName string, documentId string, params *AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MoveFolderFoldersFolderIdOrNameMovePostWithBody Move Folder
	//
	// Move and/or rename a folder by providing a new path.
	//
	// - Changing the last segment renames the folder.
	// - Changing parent segments moves it.
	// - All descendant folders and documents are updated atomically.
	// - Missing ancestor folders at the new location are created automatically.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).
	MoveFolderFoldersFolderIdOrNameMovePostWithBody(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MoveFolderFoldersFolderIdOrNameMovePost Move Folder
	//
	// Move and/or rename a folder by providing a new path.
	//
	// - Changing the last segment renames the folder.
	// - Changing parent segments moves it.
	// - All descendant folders and documents are updated atomically.
	// - Missing ancestor folders at the new location are created automatically.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).
	MoveFolderFoldersFolderIdOrNameMovePost(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, body MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFolderSummaryFoldersFolderIdOrNameSummaryGet Get Folder Summary
	//
	// Retrieve the latest summary for a folder.
	//
	// Corresponds with GET /folders/{folder_id_or_name}/summary (the `GetFolderSummaryFoldersFolderIdOrNameSummaryGet` operationId).
	GetFolderSummaryFoldersFolderIdOrNameSummaryGet(ctx context.Context, folderIdOrName string, params *GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBody Upsert Folder Summary
	//
	// Create or update a folder summary with optional versioning.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).
	UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBody(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut Upsert Folder Summary
	//
	// Create or update a folder summary with optional versioning.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).
	UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, body UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthCheckHealthGet Health Check
	//
	// Comprehensive health check endpoint that queries all underlying services.
	//
	// Checks the following services:
	// - PostgreSQL database
	// - Redis
	// - PGVector store
	// - Storage service (Local/S3)
	// - ColPali vector store (if enabled)
	//
	// Corresponds with GET /health (the `HealthCheckHealthGet` operationId).
	HealthCheckHealthGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryDocumentIngestDocumentQueryPostWithBody Query Document
	//
	// Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and
	// scheduling a follow-up ingestion.
	//
	// `ingestion_options` is a JSON string controlling post-analysis ingestion behaviour via keys such as `ingest`,
	// `metadata`, `use_colpali`, `folder_name`, and `end_user_id`. Additional keys are ignored. A
	// :class:`DocumentQueryResponse` describing the inline analysis and any queued ingestion is returned.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/document/query (the `QueryDocumentIngestDocumentQueryPost` operationId).
	QueryDocumentIngestDocumentQueryPostWithBody(ctx context.Context, params *QueryDocumentIngestDocumentQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestFileIngestFilePostWithBody Ingest File
	//
	// Ingest a **file** asynchronously.
	//
	// The file is uploaded to object storage, a *Document* stub is persisted
	// with “status='processing'“ and a background worker picks up the heavy
	// parsing / chunking work.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/file (the `IngestFileIngestFilePost` operationId).
	IngestFileIngestFilePostWithBody(ctx context.Context, params *IngestFileIngestFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchIngestFilesIngestFilesPostWithBody Batch Ingest Files
	//
	// Batch ingest **multiple files** (async).
	//
	// Each file is treated the same as :func:`ingest_file` but sharing the same
	// request avoids many round-trips. All heavy work is still delegated to the
	// background worker pool.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/files (the `BatchIngestFilesIngestFilesPost` operationId).
	BatchIngestFilesIngestFilesPostWithBody(ctx context.Context, params *BatchIngestFilesIngestFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RequeueIngestJobsIngestRequeuePostWithBody Requeue Ingest Jobs
	//
	// Requeue ingestion jobs for documents stuck in processing or marked as failed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).
	RequeueIngestJobsIngestRequeuePostWithBody(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RequeueIngestJobsIngestRequeuePost Requeue Ingest Jobs
	//
	// Requeue ingestion jobs for documents stuck in processing or marked as failed.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).
	RequeueIngestJobsIngestRequeuePost(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, body RequeueIngestJobsIngestRequeuePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestTextIngestTextPostWithBody Ingest Text
	//
	// Ingest a **text** document asynchronously (queued like /ingest/file).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).
	IngestTextIngestTextPostWithBody(ctx context.Context, params *IngestTextIngestTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestTextIngestTextPost Ingest Text
	//
	// Ingest a **text** document asynchronously (queued like /ingest/file).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).
	IngestTextIngestTextPost(ctx context.Context, params *IngestTextIngestTextPostParams, body IngestTextIngestTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogsLogsGet Get Logs
	//
	// Return recent logs for the authenticated user (scoped by app_id).
	//
	// Args:
	//     hours: Number of hours of history to retrieve (default 4)
	//            - <= 4 hours: reads from local files
	//            - > 4 hours: queries logs.morphik.ai proxy (requires proxy endpoint)
	//
	// Corresponds with GET /logs/ (the `GetLogsLogsGet` operationId).
	GetLogsLogsGet(ctx context.Context, params *GetLogsLogsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MigrateDocumentMigrateDocumentPostWithBody Migrate Document
	//
	// Ingest a migrated source document while preserving its document ID.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /migrate/document (the `MigrateDocumentMigrateDocumentPost` operationId).
	MigrateDocumentMigrateDocumentPostWithBody(ctx context.Context, params *MigrateDocumentMigrateDocumentPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAvailableModelsModelsGet Get Available Models
	//
	// Get list of available models from configuration.
	//
	// Returns models grouped by type (chat, embedding, etc.) with their metadata.
	//
	// Corresponds with GET /models (the `GetAvailableModelsModelsGet` operationId).
	GetAvailableModelsModelsGet(ctx context.Context, params *GetAvailableModelsModelsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveModelModelsPostWithBody Save Model
	//
	// Save a custom model configuration.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /models (the `SaveModelModelsPost` operationId).
	SaveModelModelsPostWithBody(ctx context.Context, params *SaveModelModelsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveModelModelsPost Save Model
	//
	// Save a custom model configuration.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /models (the `SaveModelModelsPost` operationId).
	SaveModelModelsPost(ctx context.Context, params *SaveModelModelsPostParams, body SaveModelModelsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAvailableModelsForSelectionModelsAvailableGet Get Available Models For Selection
	//
	// Get list of available models for UI selection.
	//
	// Returns a list of models that can be used for queries. Each model includes:
	// - id: Model identifier to use in llm_config
	// - name: Display name for the model
	// - provider: The LLM provider (e.g., openai, anthropic, ollama)
	// - description: Optional description of the model
	//
	// Corresponds with GET /models/available (the `GetAvailableModelsForSelectionModelsAvailableGet` operationId).
	GetAvailableModelsForSelectionModelsAvailableGet(ctx context.Context, params *GetAvailableModelsForSelectionModelsAvailableGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCustomModelsModelsCustomGet List Custom Models
	//
	// List all custom models for the authenticated user.
	//
	// Corresponds with GET /models/custom (the `ListCustomModelsModelsCustomGet` operationId).
	ListCustomModelsModelsCustomGet(ctx context.Context, params *ListCustomModelsModelsCustomGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteModelModelsModelIdDelete Delete Model
	//
	// Delete a custom model.
	//
	// Corresponds with DELETE /models/{model_id} (the `DeleteModelModelsModelIdDelete` operationId).
	DeleteModelModelsModelIdDelete(ctx context.Context, modelId string, params *DeleteModelModelsModelIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PingHealthPingGet Ping Health
	//
	// Simple health check endpoint that returns 200 OK.
	//
	// Corresponds with GET /ping (the `PingHealthPingGet` operationId).
	PingHealthPingGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryCompletionQueryPostWithBody Query Completion
	//
	// Generate completion using relevant chunks as context.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).
	QueryCompletionQueryPostWithBody(ctx context.Context, params *QueryCompletionQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryCompletionQueryPost Query Completion
	//
	// Generate completion using relevant chunks as context.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).
	QueryCompletionQueryPost(ctx context.Context, params *QueryCompletionQueryPostParams, body QueryCompletionQueryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksRetrieveChunksPostWithBody Retrieve Chunks
	//
	// Retrieve relevant chunks.
	//
	// The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays)
	// plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`,
	// and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and
	// raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag
	// for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default,
	// configurable via `case_sensitive`). Filters can be nested freely, for example:
	//
	// “`json
	// {
	//   "$and": [
	//     {"category": "policy"},
	//     {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
	//   ]
	// }
	// “`
	// Returns a list of `ChunkResult` objects ordered by relevance.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).
	RetrieveChunksRetrieveChunksPostWithBody(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksRetrieveChunksPost Retrieve Chunks
	//
	// Retrieve relevant chunks.
	//
	// The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays)
	// plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`,
	// and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and
	// raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag
	// for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default,
	// configurable via `case_sensitive`). Filters can be nested freely, for example:
	//
	// “`json
	// {
	//   "$and": [
	//     {"category": "policy"},
	//     {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
	//   ]
	// }
	// “`
	// Returns a list of `ChunkResult` objects ordered by relevance.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).
	RetrieveChunksRetrieveChunksPost(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, body RetrieveChunksRetrieveChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksGroupedRetrieveChunksGroupedPostWithBody Retrieve Chunks Grouped
	//
	// Retrieve relevant chunks with grouped response format.
	//
	// Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`,
	// `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting
	// supported inside `request.filters`.
	//
	// Returns both flat results (for backward compatibility) and grouped results (for UI).
	// When padding > 0, groups chunks by main matches and their padding chunks.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).
	RetrieveChunksGroupedRetrieveChunksGroupedPostWithBody(ctx context.Context, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksGroupedRetrieveChunksGroupedPost Retrieve Chunks Grouped
	//
	// Retrieve relevant chunks with grouped response format.
	//
	// Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`,
	// `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting
	// supported inside `request.filters`.
	//
	// Returns both flat results (for backward compatibility) and grouped results (for UI).
	// When padding > 0, groups chunks by main matches and their padding chunks.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).
	RetrieveChunksGroupedRetrieveChunksGroupedPost(ctx context.Context, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, body RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveDocumentsRetrieveDocsPostWithBody Retrieve Documents
	//
	// Retrieve relevant documents.
	//
	// `request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as
	// `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`,
	// `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON
	// structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as
	// `number`, `decimal`, `datetime`, or `date`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).
	RetrieveDocumentsRetrieveDocsPostWithBody(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveDocumentsRetrieveDocsPost Retrieve Documents
	//
	// Retrieve relevant documents.
	//
	// `request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as
	// `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`,
	// `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON
	// structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as
	// `number`, `decimal`, `datetime`, or `date`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).
	RetrieveDocumentsRetrieveDocsPost(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, body RetrieveDocumentsRetrieveDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchDocumentsByNameSearchDocumentsPostWithBody Search Documents By Name
	//
	// Search documents by filename using full-text search.
	//
	// `request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`,
	// `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical
	// operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`,
	// `datetime`, `date`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).
	SearchDocumentsByNameSearchDocumentsPostWithBody(ctx context.Context, params *SearchDocumentsByNameSearchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchDocumentsByNameSearchDocumentsPost Search Documents By Name
	//
	// Search documents by filename using full-text search.
	//
	// `request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`,
	// `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical
	// operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`,
	// `datetime`, `date`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).
	SearchDocumentsByNameSearchDocumentsPost(ctx context.Context, params *SearchDocumentsByNameSearchDocumentsPostParams, body SearchDocumentsByNameSearchDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAppStorageUsageUsageAppStorageGet Get App Storage Usage
	//
	// Corresponds with GET /usage/app-storage (the `GetAppStorageUsageUsageAppStorageGet` operationId).
	GetAppStorageUsageUsageAppStorageGet(ctx context.Context, params *GetAppStorageUsageUsageAppStorageGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestDocumentV2V2DocumentsPostWithBody Ingest Document V2
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/documents (the `IngestDocumentV2V2DocumentsPost` operationId).
	IngestDocumentV2V2DocumentsPostWithBody(ctx context.Context, params *IngestDocumentV2V2DocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDocumentV2V2DocumentsDocumentIdDelete Delete Document V2
	//
	// Corresponds with DELETE /v2/documents/{document_id} (the `DeleteDocumentV2V2DocumentsDocumentIdDelete` operationId).
	DeleteDocumentV2V2DocumentsDocumentIdDelete(ctx context.Context, documentId string, params *DeleteDocumentV2V2DocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksV2V2RetrieveChunksPostWithBody Retrieve Chunks V2
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).
	RetrieveChunksV2V2RetrieveChunksPostWithBody(ctx context.Context, params *RetrieveChunksV2V2RetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveChunksV2V2RetrieveChunksPost Retrieve Chunks V2
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).
	RetrieveChunksV2V2RetrieveChunksPost(ctx context.Context, params *RetrieveChunksV2V2RetrieveChunksPostParams, body RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse

func (c *ClientWithResponses) AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse(ctx context.Context, folderIdOrName string, documentId string, params *AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams, reqEditors ...RequestEditorFn) (*AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse, error)

AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse Add Document To Folder

Add a document to a folder.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /folders/{folder_id_or_name}/documents/{document_id} (the `AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost` operationId).

func (*ClientWithResponses) BatchGetChunksBatchChunksPostWithBodyWithResponse

func (c *ClientWithResponses) BatchGetChunksBatchChunksPostWithBodyWithResponse(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetChunksBatchChunksPostResponse, error)

BatchGetChunksBatchChunksPostWithBodyWithResponse Batch Get Chunks

Retrieve specific chunks by their document ID and chunk number in a single batch operation.

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 /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).

func (*ClientWithResponses) BatchGetChunksBatchChunksPostWithResponse

BatchGetChunksBatchChunksPostWithResponse Batch Get Chunks

Retrieve specific chunks by their document ID and chunk number in a single batch operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).

func (*ClientWithResponses) BatchGetDocumentsBatchDocumentsPostWithBodyWithResponse

func (c *ClientWithResponses) BatchGetDocumentsBatchDocumentsPostWithBodyWithResponse(ctx context.Context, params *BatchGetDocumentsBatchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetDocumentsBatchDocumentsPostResponse, error)

BatchGetDocumentsBatchDocumentsPostWithBodyWithResponse Batch Get Documents

Retrieve multiple documents by their IDs in a single batch operation.

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 /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).

func (*ClientWithResponses) BatchGetDocumentsBatchDocumentsPostWithResponse

BatchGetDocumentsBatchDocumentsPostWithResponse Batch Get Documents

Retrieve multiple documents by their IDs in a single batch operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).

func (*ClientWithResponses) BatchIngestFilesIngestFilesPostWithBodyWithResponse

func (c *ClientWithResponses) BatchIngestFilesIngestFilesPostWithBodyWithResponse(ctx context.Context, params *BatchIngestFilesIngestFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchIngestFilesIngestFilesPostResponse, error)

BatchIngestFilesIngestFilesPostWithBodyWithResponse Batch Ingest Files

Batch ingest **multiple files** (async).

Each file is treated the same as :func:`ingest_file` but sharing the same request avoids many round-trips. All heavy work is still delegated to the background worker pool.

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 /ingest/files (the `BatchIngestFilesIngestFilesPost` operationId).

func (*ClientWithResponses) ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse

func (c *ClientWithResponses) ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse(ctx context.Context, connectorType string, params *ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams, reqEditors ...RequestEditorFn) (*ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse, error)

ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse Connector Oauth Callback

Handles the OAuth 2.0 callback from the authentication provider. Validates state, finalizes authentication, and stores credentials.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /ee/connectors/{connector_type}/oauth2callback (the `ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet` operationId).

func (*ClientWithResponses) CreateFolderFoldersPostWithBodyWithResponse

func (c *ClientWithResponses) CreateFolderFoldersPostWithBodyWithResponse(ctx context.Context, params *CreateFolderFoldersPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFolderFoldersPostResponse, error)

CreateFolderFoldersPostWithBodyWithResponse Create Folder

Create a new folder.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).

func (*ClientWithResponses) CreateFolderFoldersPostWithResponse

CreateFolderFoldersPostWithResponse Create Folder

Create a new folder.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).

func (*ClientWithResponses) DeleteCloudAppAppsDeleteWithResponse

func (c *ClientWithResponses) DeleteCloudAppAppsDeleteWithResponse(ctx context.Context, params *DeleteCloudAppAppsDeleteParams, reqEditors ...RequestEditorFn) (*DeleteCloudAppAppsDeleteResponse, error)

DeleteCloudAppAppsDeleteWithResponse Delete Cloud App

Delete all resources associated with a given cloud application.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /apps (the `DeleteCloudAppAppsDelete` operationId).

func (*ClientWithResponses) DeleteDocumentDocumentsDocumentIdDeleteWithResponse

func (c *ClientWithResponses) DeleteDocumentDocumentsDocumentIdDeleteWithResponse(ctx context.Context, documentId string, params *DeleteDocumentDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDocumentIdDeleteResponse, error)

DeleteDocumentDocumentsDocumentIdDeleteWithResponse Delete Document

Delete a document and all associated data.

This endpoint deletes a document and all its associated data, including: - Document metadata - Document content in storage - Document chunks and embeddings in vector store

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /documents/{document_id} (the `DeleteDocumentDocumentsDocumentIdDelete` operationId).

func (*ClientWithResponses) DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse(ctx context.Context, documentId string, params *DeleteDocumentV2V2DocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse, error)

DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse Delete Document V2

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v2/documents/{document_id} (the `DeleteDocumentV2V2DocumentsDocumentIdDelete` operationId).

func (*ClientWithResponses) DeleteFolderFoldersFolderIdOrNameDeleteWithResponse

func (c *ClientWithResponses) DeleteFolderFoldersFolderIdOrNameDeleteWithResponse(ctx context.Context, folderIdOrName string, params *DeleteFolderFoldersFolderIdOrNameDeleteParams, reqEditors ...RequestEditorFn) (*DeleteFolderFoldersFolderIdOrNameDeleteResponse, error)

DeleteFolderFoldersFolderIdOrNameDeleteWithResponse Delete Folder

Delete a folder and all associated documents.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /folders/{folder_id_or_name} (the `DeleteFolderFoldersFolderIdOrNameDelete` operationId).

func (*ClientWithResponses) DeleteModelModelsModelIdDeleteWithResponse

func (c *ClientWithResponses) DeleteModelModelsModelIdDeleteWithResponse(ctx context.Context, modelId string, params *DeleteModelModelsModelIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteModelModelsModelIdDeleteResponse, error)

DeleteModelModelsModelIdDeleteWithResponse Delete Model

Delete a custom model.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /models/{model_id} (the `DeleteModelModelsModelIdDelete` operationId).

func (*ClientWithResponses) DisconnectEeConnectorsDisconnectPostWithBodyWithResponse

func (c *ClientWithResponses) DisconnectEeConnectorsDisconnectPostWithBodyWithResponse(ctx context.Context, params *DisconnectEeConnectorsDisconnectPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisconnectEeConnectorsDisconnectPostResponse, error)

DisconnectEeConnectorsDisconnectPostWithBodyWithResponse Disconnect

Disconnect from a connector and remove credentials.

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 /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).

func (*ClientWithResponses) DisconnectEeConnectorsDisconnectPostWithResponse

DisconnectEeConnectorsDisconnectPostWithResponse Disconnect

Disconnect from a connector and remove credentials.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).

func (*ClientWithResponses) DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse

func (c *ClientWithResponses) DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse(ctx context.Context, documentId string, params *DownloadDocumentFileDocumentsDocumentIdFileGetParams, reqEditors ...RequestEditorFn) (*DownloadDocumentFileDocumentsDocumentIdFileGetResponse, error)

DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse Download Document File

Download the actual file content for a document. This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/{document_id}/file (the `DownloadDocumentFileDocumentsDocumentIdFileGet` operationId).

func (*ClientWithResponses) ExtractDocumentPagesDocumentsPagesPostWithBodyWithResponse

func (c *ClientWithResponses) ExtractDocumentPagesDocumentsPagesPostWithBodyWithResponse(ctx context.Context, params *ExtractDocumentPagesDocumentsPagesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtractDocumentPagesDocumentsPagesPostResponse, error)

ExtractDocumentPagesDocumentsPagesPostWithBodyWithResponse Extract Document Pages

Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).

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/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).

func (*ClientWithResponses) ExtractDocumentPagesDocumentsPagesPostWithResponse

ExtractDocumentPagesDocumentsPagesPostWithResponse Extract Document Pages

Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).

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/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).

func (*ClientWithResponses) FinalizeAuthEeConnectorsFinalizeAuthPostWithBodyWithResponse

func (c *ClientWithResponses) FinalizeAuthEeConnectorsFinalizeAuthPostWithBodyWithResponse(ctx context.Context, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeAuthEeConnectorsFinalizeAuthPostResponse, error)

FinalizeAuthEeConnectorsFinalizeAuthPostWithBodyWithResponse Finalize Auth

Finalize the OAuth flow and exchange the code for a token.

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 /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).

func (*ClientWithResponses) FinalizeAuthEeConnectorsFinalizeAuthPostWithResponse

FinalizeAuthEeConnectorsFinalizeAuthPostWithResponse Finalize Auth

Finalize the OAuth flow and exchange the code for a token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).

func (*ClientWithResponses) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBodyWithResponse

func (c *ClientWithResponses) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBodyWithResponse(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse, error)

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBodyWithResponse Finalize Manual Auth

Finalize authentication using manual credentials.

This endpoint is used for connectors that require manual credential input (like Zotero) instead of OAuth flows.

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 /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).

func (*ClientWithResponses) FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithResponse

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithResponse Finalize Manual Auth

Finalize authentication using manual credentials.

This endpoint is used for connectors that require manual credential input (like Zotero) instead of OAuth flows.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).

func (*ClientWithResponses) FolderDetailsFoldersDetailsPostWithBodyWithResponse

func (c *ClientWithResponses) FolderDetailsFoldersDetailsPostWithBodyWithResponse(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FolderDetailsFoldersDetailsPostResponse, error)

FolderDetailsFoldersDetailsPostWithBodyWithResponse Folder Details

Retrieve folder metadata with optional document statistics and projections.

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 /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).

func (*ClientWithResponses) FolderDetailsFoldersDetailsPostWithResponse

FolderDetailsFoldersDetailsPostWithResponse Folder Details

Retrieve folder metadata with optional document statistics and projections.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).

func (*ClientWithResponses) GenerateCloudUriCloudGenerateUriPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateCloudUriCloudGenerateUriPostWithBodyWithResponse(ctx context.Context, params *GenerateCloudUriCloudGenerateUriPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateCloudUriCloudGenerateUriPostResponse, error)

GenerateCloudUriCloudGenerateUriPostWithBodyWithResponse Generate Cloud Uri

Generate an authenticated URI for a cloud-hosted Morphik application.

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 /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).

func (*ClientWithResponses) GenerateCloudUriCloudGenerateUriPostWithResponse

GenerateCloudUriCloudGenerateUriPostWithResponse Generate Cloud Uri

Generate an authenticated URI for a cloud-hosted Morphik application.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).

func (*ClientWithResponses) GetAppStorageUsageUsageAppStorageGetWithResponse

func (c *ClientWithResponses) GetAppStorageUsageUsageAppStorageGetWithResponse(ctx context.Context, params *GetAppStorageUsageUsageAppStorageGetParams, reqEditors ...RequestEditorFn) (*GetAppStorageUsageUsageAppStorageGetResponse, error)

GetAppStorageUsageUsageAppStorageGetWithResponse Get App Storage Usage

Returns a wrapper object for the known response body format(s).

Corresponds with GET /usage/app-storage (the `GetAppStorageUsageUsageAppStorageGet` operationId).

func (*ClientWithResponses) GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse

func (c *ClientWithResponses) GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse(ctx context.Context, connectorType string, params *GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams, reqEditors ...RequestEditorFn) (*GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse, error)

GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse Get Auth Status For Connector

Checks the current authentication status for the given connector type.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /ee/connectors/{connector_type}/auth_status (the `GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet` operationId).

func (*ClientWithResponses) GetAvailableModelsForSelectionModelsAvailableGetWithResponse

func (c *ClientWithResponses) GetAvailableModelsForSelectionModelsAvailableGetWithResponse(ctx context.Context, params *GetAvailableModelsForSelectionModelsAvailableGetParams, reqEditors ...RequestEditorFn) (*GetAvailableModelsForSelectionModelsAvailableGetResponse, error)

GetAvailableModelsForSelectionModelsAvailableGetWithResponse Get Available Models For Selection

Get list of available models for UI selection.

Returns a list of models that can be used for queries. Each model includes: - id: Model identifier to use in llm_config - name: Display name for the model - provider: The LLM provider (e.g., openai, anthropic, ollama) - description: Optional description of the model

Returns a wrapper object for the known response body format(s).

Corresponds with GET /models/available (the `GetAvailableModelsForSelectionModelsAvailableGet` operationId).

func (*ClientWithResponses) GetAvailableModelsModelsGetWithResponse

func (c *ClientWithResponses) GetAvailableModelsModelsGetWithResponse(ctx context.Context, params *GetAvailableModelsModelsGetParams, reqEditors ...RequestEditorFn) (*GetAvailableModelsModelsGetResponse, error)

GetAvailableModelsModelsGetWithResponse Get Available Models

Get list of available models from configuration.

Returns models grouped by type (chat, embedding, etc.) with their metadata.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /models (the `GetAvailableModelsModelsGet` operationId).

func (*ClientWithResponses) GetChatHistoryChatChatIdGetWithResponse

func (c *ClientWithResponses) GetChatHistoryChatChatIdGetWithResponse(ctx context.Context, chatId string, params *GetChatHistoryChatChatIdGetParams, reqEditors ...RequestEditorFn) (*GetChatHistoryChatChatIdGetResponse, error)

GetChatHistoryChatChatIdGetWithResponse Get Chat History

Retrieve the message history for a chat conversation.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /chat/{chat_id} (the `GetChatHistoryChatChatIdGet` operationId).

func (*ClientWithResponses) GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse

func (c *ClientWithResponses) GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse(ctx context.Context, filename string, params *GetDocumentByFilenameDocumentsFilenameFilenameGetParams, reqEditors ...RequestEditorFn) (*GetDocumentByFilenameDocumentsFilenameFilenameGetResponse, error)

GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse Get Document By Filename

Get document by filename.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/filename/{filename} (the `GetDocumentByFilenameDocumentsFilenameFilenameGet` operationId).

func (*ClientWithResponses) GetDocumentDocumentsDocumentIdGetWithResponse

func (c *ClientWithResponses) GetDocumentDocumentsDocumentIdGetWithResponse(ctx context.Context, documentId string, params *GetDocumentDocumentsDocumentIdGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDocumentsDocumentIdGetResponse, error)

GetDocumentDocumentsDocumentIdGetWithResponse Get Document

Retrieve a single document by its external identifier.

Returns the :class:`Document` metadata if found or raises 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/{document_id} (the `GetDocumentDocumentsDocumentIdGet` operationId).

func (*ClientWithResponses) GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse

func (c *ClientWithResponses) GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse(ctx context.Context, documentId string, params *GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse, error)

GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse Get Document Download Url

Get a download URL for a specific document.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/{document_id}/download_url (the `GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet` operationId).

func (*ClientWithResponses) GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse

func (c *ClientWithResponses) GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse(ctx context.Context, documentId string, params *GetDocumentStatusDocumentsDocumentIdStatusGetParams, reqEditors ...RequestEditorFn) (*GetDocumentStatusDocumentsDocumentIdStatusGetResponse, error)

GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse Get Document Status

Get the processing status of a document.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/{document_id}/status (the `GetDocumentStatusDocumentsDocumentIdStatusGet` operationId).

func (*ClientWithResponses) GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse

func (c *ClientWithResponses) GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse(ctx context.Context, documentId string, params *GetDocumentSummaryDocumentsDocumentIdSummaryGetParams, reqEditors ...RequestEditorFn) (*GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse, error)

GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse Get Document Summary

Retrieve the latest summary for a document.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /documents/{document_id}/summary (the `GetDocumentSummaryDocumentsDocumentIdSummaryGet` operationId).

func (*ClientWithResponses) GetFolderFoldersFolderIdOrNameGetWithResponse

func (c *ClientWithResponses) GetFolderFoldersFolderIdOrNameGetWithResponse(ctx context.Context, folderIdOrName string, params *GetFolderFoldersFolderIdOrNameGetParams, reqEditors ...RequestEditorFn) (*GetFolderFoldersFolderIdOrNameGetResponse, error)

GetFolderFoldersFolderIdOrNameGetWithResponse Get Folder

Get a folder by ID or name.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /folders/{folder_id_or_name} (the `GetFolderFoldersFolderIdOrNameGet` operationId).

func (*ClientWithResponses) GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse

func (c *ClientWithResponses) GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse(ctx context.Context, folderIdOrName string, params *GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams, reqEditors ...RequestEditorFn) (*GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse, error)

GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse Get Folder Summary

Retrieve the latest summary for a folder.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /folders/{folder_id_or_name}/summary (the `GetFolderSummaryFoldersFolderIdOrNameSummaryGet` operationId).

func (*ClientWithResponses) GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse

func (c *ClientWithResponses) GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse(ctx context.Context, connectorType string, params *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams, reqEditors ...RequestEditorFn) (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse, error)

GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse Get Initiate Auth Url

Return the provider's *authorization_url* for the given connector.

The method mirrors the logic of the `/auth/initiate` endpoint but sends a JSON payload instead of a redirect so that browsers can stay on the same origin until they intentionally navigate away.

For OAuth-based connectors, this returns authorization_url. For manual credential connectors, this returns the credential form specification.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /ee/connectors/{connector_type}/auth/initiate_url (the `GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet` operationId).

func (*ClientWithResponses) GetLogsLogsGetWithResponse

func (c *ClientWithResponses) GetLogsLogsGetWithResponse(ctx context.Context, params *GetLogsLogsGetParams, reqEditors ...RequestEditorFn) (*GetLogsLogsGetResponse, error)

GetLogsLogsGetWithResponse Get Logs

Return recent logs for the authenticated user (scoped by app_id).

Args:

hours: Number of hours of history to retrieve (default 4)
       - <= 4 hours: reads from local files
       - > 4 hours: queries logs.morphik.ai proxy (requires proxy endpoint)

Returns a wrapper object for the known response body format(s).

Corresponds with GET /logs/ (the `GetLogsLogsGet` operationId).

func (*ClientWithResponses) GetStatusEeConnectorsStatusPostWithBodyWithResponse

func (c *ClientWithResponses) GetStatusEeConnectorsStatusPostWithBodyWithResponse(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusEeConnectorsStatusPostResponse, error)

GetStatusEeConnectorsStatusPostWithBodyWithResponse Get Status

Get the authentication status for a connector.

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 /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).

func (*ClientWithResponses) GetStatusEeConnectorsStatusPostWithResponse

GetStatusEeConnectorsStatusPostWithResponse Get Status

Get the authentication status for a connector.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).

func (*ClientWithResponses) HealthCheckHealthGetWithResponse

func (c *ClientWithResponses) HealthCheckHealthGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHealthGetResponse, error)

HealthCheckHealthGetWithResponse Health Check

Comprehensive health check endpoint that queries all underlying services.

Checks the following services: - PostgreSQL database - Redis - PGVector store - Storage service (Local/S3) - ColPali vector store (if enabled)

Returns a wrapper object for the known response body format(s).

Corresponds with GET /health (the `HealthCheckHealthGet` operationId).

func (*ClientWithResponses) IngestDocumentV2V2DocumentsPostWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) IngestDocumentV2V2DocumentsPostWithBodyWithResponse(ctx context.Context, params *IngestDocumentV2V2DocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestDocumentV2V2DocumentsPostResponse, error)

IngestDocumentV2V2DocumentsPostWithBodyWithResponse Ingest Document V2

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 /v2/documents (the `IngestDocumentV2V2DocumentsPost` operationId).

func (*ClientWithResponses) IngestFileEeConnectorsConnectorTypeIngestPostWithBodyWithResponse

func (c *ClientWithResponses) IngestFileEeConnectorsConnectorTypeIngestPostWithBodyWithResponse(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestFileEeConnectorsConnectorTypeIngestPostResponse, error)

IngestFileEeConnectorsConnectorTypeIngestPostWithBodyWithResponse Ingest File

Ingest a single file from a connector.

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 /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).

func (*ClientWithResponses) IngestFileEeConnectorsConnectorTypeIngestPostWithResponse

IngestFileEeConnectorsConnectorTypeIngestPostWithResponse Ingest File

Ingest a single file from a connector.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).

func (*ClientWithResponses) IngestFileIngestFilePostWithBodyWithResponse

func (c *ClientWithResponses) IngestFileIngestFilePostWithBodyWithResponse(ctx context.Context, params *IngestFileIngestFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestFileIngestFilePostResponse, error)

IngestFileIngestFilePostWithBodyWithResponse Ingest File

Ingest a **file** asynchronously.

The file is uploaded to object storage, a *Document* stub is persisted with “status='processing'“ and a background worker picks up the heavy parsing / chunking work.

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 /ingest/file (the `IngestFileIngestFilePost` operationId).

func (*ClientWithResponses) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBodyWithResponse

func (c *ClientWithResponses) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBodyWithResponse(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse, error)

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBodyWithResponse Ingest Repository

Ingest an entire GitHub repository.

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 /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).

func (*ClientWithResponses) IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithResponse

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithResponse Ingest Repository

Ingest an entire GitHub repository.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).

func (*ClientWithResponses) IngestTextIngestTextPostWithBodyWithResponse

func (c *ClientWithResponses) IngestTextIngestTextPostWithBodyWithResponse(ctx context.Context, params *IngestTextIngestTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestTextIngestTextPostResponse, error)

IngestTextIngestTextPostWithBodyWithResponse Ingest Text

Ingest a **text** document asynchronously (queued like /ingest/file).

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 /ingest/text (the `IngestTextIngestTextPost` operationId).

func (*ClientWithResponses) IngestTextIngestTextPostWithResponse

IngestTextIngestTextPostWithResponse Ingest Text

Ingest a **text** document asynchronously (queued like /ingest/file).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).

func (*ClientWithResponses) InitiateAuthEeConnectorsInitiateAuthPostWithBodyWithResponse

func (c *ClientWithResponses) InitiateAuthEeConnectorsInitiateAuthPostWithBodyWithResponse(ctx context.Context, params *InitiateAuthEeConnectorsInitiateAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitiateAuthEeConnectorsInitiateAuthPostResponse, error)

InitiateAuthEeConnectorsInitiateAuthPostWithBodyWithResponse Initiate Auth

Initiate the OAuth flow for a connector.

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 /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).

func (*ClientWithResponses) InitiateAuthEeConnectorsInitiateAuthPostWithResponse

InitiateAuthEeConnectorsInitiateAuthPostWithResponse Initiate Auth

Initiate the OAuth flow for a connector.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).

func (*ClientWithResponses) ListApiKeysApiKeysGetWithResponse

func (c *ClientWithResponses) ListApiKeysApiKeysGetWithResponse(ctx context.Context, params *ListApiKeysApiKeysGetParams, reqEditors ...RequestEditorFn) (*ListApiKeysApiKeysGetResponse, error)

ListApiKeysApiKeysGetWithResponse List Api Keys

List all configured API keys (sanitized).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api-keys (the `ListApiKeysApiKeysGet` operationId).

func (*ClientWithResponses) ListChatConversationsChatsGetWithResponse

func (c *ClientWithResponses) ListChatConversationsChatsGetWithResponse(ctx context.Context, params *ListChatConversationsChatsGetParams, reqEditors ...RequestEditorFn) (*ListChatConversationsChatsGetResponse, error)

ListChatConversationsChatsGetWithResponse List Chat Conversations

List chat conversations available to the current user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /chats (the `ListChatConversationsChatsGet` operationId).

func (*ClientWithResponses) ListCloudAppsAppsGetWithResponse

func (c *ClientWithResponses) ListCloudAppsAppsGetWithResponse(ctx context.Context, params *ListCloudAppsAppsGetParams, reqEditors ...RequestEditorFn) (*ListCloudAppsAppsGetResponse, error)

ListCloudAppsAppsGetWithResponse List Cloud Apps

List provisioned apps for the specified organization/user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /apps (the `ListCloudAppsAppsGet` operationId).

func (*ClientWithResponses) ListCustomModelsModelsCustomGetWithResponse

func (c *ClientWithResponses) ListCustomModelsModelsCustomGetWithResponse(ctx context.Context, params *ListCustomModelsModelsCustomGetParams, reqEditors ...RequestEditorFn) (*ListCustomModelsModelsCustomGetResponse, error)

ListCustomModelsModelsCustomGetWithResponse List Custom Models

List all custom models for the authenticated user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /models/custom (the `ListCustomModelsModelsCustomGet` operationId).

func (*ClientWithResponses) ListDocsDocumentsListDocsPostWithBodyWithResponse

func (c *ClientWithResponses) ListDocsDocumentsListDocsPostWithBodyWithResponse(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListDocsDocumentsListDocsPostResponse, error)

ListDocsDocumentsListDocsPostWithBodyWithResponse List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

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/list_docs (the `ListDocsDocumentsListDocsPost` operationId).

func (*ClientWithResponses) ListDocsDocumentsListDocsPostWithResponse

ListDocsDocumentsListDocsPostWithResponse List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

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/list_docs (the `ListDocsDocumentsListDocsPost` operationId).

func (*ClientWithResponses) ListDocsDocumentsPostWithBodyWithResponse

func (c *ClientWithResponses) ListDocsDocumentsPostWithBodyWithResponse(ctx context.Context, params *ListDocsDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListDocsDocumentsPostResponse, error)

ListDocsDocumentsPostWithBodyWithResponse List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

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 (the `ListDocsDocumentsPost` operationId).

func (*ClientWithResponses) ListDocsDocumentsPostWithResponse

ListDocsDocumentsPostWithResponse List Docs

Flexible document listing with aggregates, projections, and advanced pagination.

Alias: `/documents` and `/documents/list_docs` share this handler.

**Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.

**Implicit equality** (backwards compatible, JSONB containment): ```json {"status": "active"} ```

**Explicit operators** (typed comparisons for number, decimal, datetime, date): ```json {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}} ```

Use `document_filters` with a `filename` key to filter the filename column: ```json {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}} ```

Use `folder_name` and `end_user_id` query parameters to scope system metadata.

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 (the `ListDocsDocumentsPost` operationId).

func (*ClientWithResponses) ListFilesEeConnectorsListFilesPostWithBodyWithResponse

func (c *ClientWithResponses) ListFilesEeConnectorsListFilesPostWithBodyWithResponse(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListFilesEeConnectorsListFilesPostResponse, error)

ListFilesEeConnectorsListFilesPostWithBodyWithResponse List Files

List files from a connector.

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 /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).

func (*ClientWithResponses) ListFilesEeConnectorsListFilesPostWithResponse

ListFilesEeConnectorsListFilesPostWithResponse List Files

List files from a connector.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).

func (*ClientWithResponses) ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse

func (c *ClientWithResponses) ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse(ctx context.Context, connectorType string, params *ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams, reqEditors ...RequestEditorFn) (*ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse, error)

ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse List Files For Connector

Lists files and folders from the specified connector.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /ee/connectors/{connector_type}/files (the `ListFilesForConnectorEeConnectorsConnectorTypeFilesGet` operationId).

func (*ClientWithResponses) ListFolderSummariesFoldersSummaryGetWithResponse

func (c *ClientWithResponses) ListFolderSummariesFoldersSummaryGetWithResponse(ctx context.Context, params *ListFolderSummariesFoldersSummaryGetParams, reqEditors ...RequestEditorFn) (*ListFolderSummariesFoldersSummaryGetResponse, error)

ListFolderSummariesFoldersSummaryGetWithResponse List Folder Summaries

Return compact folder list (id, name, doc_count, updated_at).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /folders/summary (the `ListFolderSummariesFoldersSummaryGet` operationId).

func (*ClientWithResponses) ListFoldersFoldersGetWithResponse

func (c *ClientWithResponses) ListFoldersFoldersGetWithResponse(ctx context.Context, params *ListFoldersFoldersGetParams, reqEditors ...RequestEditorFn) (*ListFoldersFoldersGetResponse, error)

ListFoldersFoldersGetWithResponse List Folders

List all folders the user has access to.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /folders (the `ListFoldersFoldersGet` operationId).

func (*ClientWithResponses) MigrateDocumentMigrateDocumentPostWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) MigrateDocumentMigrateDocumentPostWithBodyWithResponse(ctx context.Context, params *MigrateDocumentMigrateDocumentPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateDocumentMigrateDocumentPostResponse, error)

MigrateDocumentMigrateDocumentPostWithBodyWithResponse Migrate Document

Ingest a migrated source document while preserving its document ID.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /migrate/document (the `MigrateDocumentMigrateDocumentPost` operationId).

func (*ClientWithResponses) MoveFolderFoldersFolderIdOrNameMovePostWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) MoveFolderFoldersFolderIdOrNameMovePostWithBodyWithResponse(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveFolderFoldersFolderIdOrNameMovePostResponse, error)

MoveFolderFoldersFolderIdOrNameMovePostWithBodyWithResponse Move Folder

Move and/or rename a folder by providing a new path.

- Changing the last segment renames the folder. - Changing parent segments moves it. - All descendant folders and documents are updated atomically. - Missing ancestor folders at the new location are created automatically.

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 /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).

func (*ClientWithResponses) MoveFolderFoldersFolderIdOrNameMovePostWithResponse added in v0.2.0

MoveFolderFoldersFolderIdOrNameMovePostWithResponse Move Folder

Move and/or rename a folder by providing a new path.

- Changing the last segment renames the folder. - Changing parent segments moves it. - All descendant folders and documents are updated atomically. - Missing ancestor folders at the new location are created automatically.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).

func (*ClientWithResponses) PingHealthPingGetWithResponse

func (c *ClientWithResponses) PingHealthPingGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingHealthPingGetResponse, error)

PingHealthPingGetWithResponse Ping Health

Simple health check endpoint that returns 200 OK.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /ping (the `PingHealthPingGet` operationId).

func (*ClientWithResponses) QueryCompletionQueryPostWithBodyWithResponse

func (c *ClientWithResponses) QueryCompletionQueryPostWithBodyWithResponse(ctx context.Context, params *QueryCompletionQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryCompletionQueryPostResponse, error)

QueryCompletionQueryPostWithBodyWithResponse Query Completion

Generate completion using relevant chunks as context.

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 /query (the `QueryCompletionQueryPost` operationId).

func (*ClientWithResponses) QueryCompletionQueryPostWithResponse

QueryCompletionQueryPostWithResponse Query Completion

Generate completion using relevant chunks as context.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).

func (*ClientWithResponses) QueryDocumentIngestDocumentQueryPostWithBodyWithResponse

func (c *ClientWithResponses) QueryDocumentIngestDocumentQueryPostWithBodyWithResponse(ctx context.Context, params *QueryDocumentIngestDocumentQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDocumentIngestDocumentQueryPostResponse, error)

QueryDocumentIngestDocumentQueryPostWithBodyWithResponse Query Document

Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and scheduling a follow-up ingestion.

`ingestion_options` is a JSON string controlling post-analysis ingestion behaviour via keys such as `ingest`, `metadata`, `use_colpali`, `folder_name`, and `end_user_id`. Additional keys are ignored. A :class:`DocumentQueryResponse` describing the inline analysis and any queued ingestion is 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 /ingest/document/query (the `QueryDocumentIngestDocumentQueryPost` operationId).

func (*ClientWithResponses) RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse

func (c *ClientWithResponses) RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse(ctx context.Context, folderIdOrName string, documentId string, params *RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse, error)

RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse Remove Document From Folder

Remove a document from a folder.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /folders/{folder_id_or_name}/documents/{document_id} (the `RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete` operationId).

func (*ClientWithResponses) RenameCloudAppAppsRenamePatchWithResponse

func (c *ClientWithResponses) RenameCloudAppAppsRenamePatchWithResponse(ctx context.Context, params *RenameCloudAppAppsRenamePatchParams, reqEditors ...RequestEditorFn) (*RenameCloudAppAppsRenamePatchResponse, error)

RenameCloudAppAppsRenamePatchWithResponse Rename Cloud App

Rename an existing cloud application.

Returns a wrapper object for the known response body format(s).

Corresponds with PATCH /apps/rename (the `RenameCloudAppAppsRenamePatch` operationId).

func (*ClientWithResponses) RequeueIngestJobsIngestRequeuePostWithBodyWithResponse

func (c *ClientWithResponses) RequeueIngestJobsIngestRequeuePostWithBodyWithResponse(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequeueIngestJobsIngestRequeuePostResponse, error)

RequeueIngestJobsIngestRequeuePostWithBodyWithResponse Requeue Ingest Jobs

Requeue ingestion jobs for documents stuck in processing or marked as failed.

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 /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).

func (*ClientWithResponses) RequeueIngestJobsIngestRequeuePostWithResponse

RequeueIngestJobsIngestRequeuePostWithResponse Requeue Ingest Jobs

Requeue ingestion jobs for documents stuck in processing or marked as failed.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).

func (*ClientWithResponses) RetrieveChunksGroupedRetrieveChunksGroupedPostWithBodyWithResponse

func (c *ClientWithResponses) RetrieveChunksGroupedRetrieveChunksGroupedPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksGroupedRetrieveChunksGroupedPostResponse, error)

RetrieveChunksGroupedRetrieveChunksGroupedPostWithBodyWithResponse Retrieve Chunks Grouped

Retrieve relevant chunks with grouped response format.

Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting supported inside `request.filters`.

Returns both flat results (for backward compatibility) and grouped results (for UI). When padding > 0, groups chunks by main matches and their padding chunks.

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 /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).

func (*ClientWithResponses) RetrieveChunksGroupedRetrieveChunksGroupedPostWithResponse

RetrieveChunksGroupedRetrieveChunksGroupedPostWithResponse Retrieve Chunks Grouped

Retrieve relevant chunks with grouped response format.

Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting supported inside `request.filters`.

Returns both flat results (for backward compatibility) and grouped results (for UI). When padding > 0, groups chunks by main matches and their padding chunks.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).

func (*ClientWithResponses) RetrieveChunksRetrieveChunksPostWithBodyWithResponse

func (c *ClientWithResponses) RetrieveChunksRetrieveChunksPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksRetrieveChunksPostResponse, error)

RetrieveChunksRetrieveChunksPostWithBodyWithResponse Retrieve Chunks

Retrieve relevant chunks.

The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays) plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`, and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default, configurable via `case_sensitive`). Filters can be nested freely, for example:

```json

{
  "$and": [
    {"category": "policy"},
    {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
  ]
}

``` Returns a list of `ChunkResult` objects ordered by relevance.

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 /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).

func (*ClientWithResponses) RetrieveChunksRetrieveChunksPostWithResponse

RetrieveChunksRetrieveChunksPostWithResponse Retrieve Chunks

Retrieve relevant chunks.

The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays) plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`, and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default, configurable via `case_sensitive`). Filters can be nested freely, for example:

```json

{
  "$and": [
    {"category": "policy"},
    {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
  ]
}

``` Returns a list of `ChunkResult` objects ordered by relevance.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).

func (*ClientWithResponses) RetrieveChunksV2V2RetrieveChunksPostWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) RetrieveChunksV2V2RetrieveChunksPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksV2V2RetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksV2V2RetrieveChunksPostResponse, error)

RetrieveChunksV2V2RetrieveChunksPostWithBodyWithResponse Retrieve Chunks V2

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 /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).

func (*ClientWithResponses) RetrieveChunksV2V2RetrieveChunksPostWithResponse added in v0.2.0

RetrieveChunksV2V2RetrieveChunksPostWithResponse Retrieve Chunks V2

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).

func (*ClientWithResponses) RetrieveDocumentsRetrieveDocsPostWithBodyWithResponse

func (c *ClientWithResponses) RetrieveDocumentsRetrieveDocsPostWithBodyWithResponse(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveDocumentsRetrieveDocsPostResponse, error)

RetrieveDocumentsRetrieveDocsPostWithBodyWithResponse Retrieve Documents

Retrieve relevant documents.

`request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as `number`, `decimal`, `datetime`, or `date`.

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 /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).

func (*ClientWithResponses) RetrieveDocumentsRetrieveDocsPostWithResponse

RetrieveDocumentsRetrieveDocsPostWithResponse Retrieve Documents

Retrieve relevant documents.

`request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as `number`, `decimal`, `datetime`, or `date`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).

func (*ClientWithResponses) RotateAppTokenAppsRotateTokenPostWithResponse

func (c *ClientWithResponses) RotateAppTokenAppsRotateTokenPostWithResponse(ctx context.Context, params *RotateAppTokenAppsRotateTokenPostParams, reqEditors ...RequestEditorFn) (*RotateAppTokenAppsRotateTokenPostResponse, error)

RotateAppTokenAppsRotateTokenPostWithResponse Rotate App Token

Rotate the token for an existing application.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /apps/rotate_token (the `RotateAppTokenAppsRotateTokenPost` operationId).

func (*ClientWithResponses) SaveApiKeyApiKeysPostWithBodyWithResponse

func (c *ClientWithResponses) SaveApiKeyApiKeysPostWithBodyWithResponse(ctx context.Context, params *SaveApiKeyApiKeysPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveApiKeyApiKeysPostResponse, error)

SaveApiKeyApiKeysPostWithBodyWithResponse Save Api Key

Save API key for a provider.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).

func (*ClientWithResponses) SaveApiKeyApiKeysPostWithResponse

SaveApiKeyApiKeysPostWithResponse Save Api Key

Save API key for a provider.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).

func (*ClientWithResponses) SaveModelModelsPostWithBodyWithResponse

func (c *ClientWithResponses) SaveModelModelsPostWithBodyWithResponse(ctx context.Context, params *SaveModelModelsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveModelModelsPostResponse, error)

SaveModelModelsPostWithBodyWithResponse Save Model

Save a custom model configuration.

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 (the `SaveModelModelsPost` operationId).

func (*ClientWithResponses) SaveModelModelsPostWithResponse

SaveModelModelsPostWithResponse Save Model

Save a custom model configuration.

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 (the `SaveModelModelsPost` operationId).

func (*ClientWithResponses) SearchDocumentsByNameSearchDocumentsPostWithBodyWithResponse

func (c *ClientWithResponses) SearchDocumentsByNameSearchDocumentsPostWithBodyWithResponse(ctx context.Context, params *SearchDocumentsByNameSearchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchDocumentsByNameSearchDocumentsPostResponse, error)

SearchDocumentsByNameSearchDocumentsPostWithBodyWithResponse Search Documents By Name

Search documents by filename using full-text search.

`request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`, `datetime`, `date`).

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 /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).

func (*ClientWithResponses) SearchDocumentsByNameSearchDocumentsPostWithResponse

SearchDocumentsByNameSearchDocumentsPostWithResponse Search Documents By Name

Search documents by filename using full-text search.

`request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`, `datetime`, `date`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).

func (*ClientWithResponses) UpdateChatTitleChatsChatIdTitlePatchWithResponse

func (c *ClientWithResponses) UpdateChatTitleChatsChatIdTitlePatchWithResponse(ctx context.Context, chatId string, params *UpdateChatTitleChatsChatIdTitlePatchParams, reqEditors ...RequestEditorFn) (*UpdateChatTitleChatsChatIdTitlePatchResponse, error)

UpdateChatTitleChatsChatIdTitlePatchWithResponse Update Chat Title

Update the title of a chat conversation.

Returns a wrapper object for the known response body format(s).

Corresponds with PATCH /chats/{chat_id}/title (the `UpdateChatTitleChatsChatIdTitlePatch` operationId).

func (*ClientWithResponses) UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBodyWithResponse

func (c *ClientWithResponses) UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse, error)

UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBodyWithResponse Update Document File

Update a document by replacing its content with a new file and queueing re-ingestion.

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/{document_id}/update_file (the `UpdateDocumentFileDocumentsDocumentIdUpdateFilePost` operationId).

func (*ClientWithResponses) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBodyWithResponse

func (c *ClientWithResponses) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse, error)

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBodyWithResponse Update Document Metadata

Update only a document's metadata.

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/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).

func (*ClientWithResponses) UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithResponse

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithResponse Update Document Metadata

Update only a document's metadata.

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/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).

func (*ClientWithResponses) UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBodyWithResponse

func (c *ClientWithResponses) UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse, error)

UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBodyWithResponse Update Document Text

Update a document by replacing its text content and queueing re-ingestion.

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/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).

func (*ClientWithResponses) UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithResponse

UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithResponse Update Document Text

Update a document by replacing its text content and queueing re-ingestion.

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/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).

func (*ClientWithResponses) UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBodyWithResponse

func (c *ClientWithResponses) UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBodyWithResponse(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse, error)

UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBodyWithResponse Upsert Document Summary

Create or update a document summary with optional versioning.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).

func (*ClientWithResponses) UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithResponse

UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithResponse Upsert Document Summary

Create or update a document summary with optional versioning.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).

func (*ClientWithResponses) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBodyWithResponse

func (c *ClientWithResponses) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBodyWithResponse(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse, error)

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBodyWithResponse Upsert Folder Summary

Create or update a folder summary with optional versioning.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).

func (*ClientWithResponses) UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithResponse

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithResponse Upsert Folder Summary

Create or update a folder summary with optional versioning.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListApiKeysApiKeysGetWithResponse List Api Keys
	//
	// List all configured API keys (sanitized).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api-keys (the `ListApiKeysApiKeysGet` operationId).
	ListApiKeysApiKeysGetWithResponse(ctx context.Context, params *ListApiKeysApiKeysGetParams, reqEditors ...RequestEditorFn) (*ListApiKeysApiKeysGetResponse, error)

	// SaveApiKeyApiKeysPostWithBodyWithResponse Save Api Key
	//
	// Save API key for a provider.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).
	SaveApiKeyApiKeysPostWithBodyWithResponse(ctx context.Context, params *SaveApiKeyApiKeysPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveApiKeyApiKeysPostResponse, error)

	// SaveApiKeyApiKeysPostWithResponse Save Api Key
	//
	// Save API key for a provider.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api-keys (the `SaveApiKeyApiKeysPost` operationId).
	SaveApiKeyApiKeysPostWithResponse(ctx context.Context, params *SaveApiKeyApiKeysPostParams, body SaveApiKeyApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveApiKeyApiKeysPostResponse, error)

	// DeleteCloudAppAppsDeleteWithResponse Delete Cloud App
	//
	// Delete all resources associated with a given cloud application.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /apps (the `DeleteCloudAppAppsDelete` operationId).
	DeleteCloudAppAppsDeleteWithResponse(ctx context.Context, params *DeleteCloudAppAppsDeleteParams, reqEditors ...RequestEditorFn) (*DeleteCloudAppAppsDeleteResponse, error)

	// ListCloudAppsAppsGetWithResponse List Cloud Apps
	//
	// List provisioned apps for the specified organization/user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /apps (the `ListCloudAppsAppsGet` operationId).
	ListCloudAppsAppsGetWithResponse(ctx context.Context, params *ListCloudAppsAppsGetParams, reqEditors ...RequestEditorFn) (*ListCloudAppsAppsGetResponse, error)

	// RenameCloudAppAppsRenamePatchWithResponse Rename Cloud App
	//
	// Rename an existing cloud application.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /apps/rename (the `RenameCloudAppAppsRenamePatch` operationId).
	RenameCloudAppAppsRenamePatchWithResponse(ctx context.Context, params *RenameCloudAppAppsRenamePatchParams, reqEditors ...RequestEditorFn) (*RenameCloudAppAppsRenamePatchResponse, error)

	// RotateAppTokenAppsRotateTokenPostWithResponse Rotate App Token
	//
	// Rotate the token for an existing application.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /apps/rotate_token (the `RotateAppTokenAppsRotateTokenPost` operationId).
	RotateAppTokenAppsRotateTokenPostWithResponse(ctx context.Context, params *RotateAppTokenAppsRotateTokenPostParams, reqEditors ...RequestEditorFn) (*RotateAppTokenAppsRotateTokenPostResponse, error)

	// BatchGetChunksBatchChunksPostWithBodyWithResponse Batch Get Chunks
	//
	// Retrieve specific chunks by their document ID and chunk number in a single batch operation.
	//
	// 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 /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).
	BatchGetChunksBatchChunksPostWithBodyWithResponse(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetChunksBatchChunksPostResponse, error)

	// BatchGetChunksBatchChunksPostWithResponse Batch Get Chunks
	//
	// Retrieve specific chunks by their document ID and chunk number in a single batch operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /batch/chunks (the `BatchGetChunksBatchChunksPost` operationId).
	BatchGetChunksBatchChunksPostWithResponse(ctx context.Context, params *BatchGetChunksBatchChunksPostParams, body BatchGetChunksBatchChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetChunksBatchChunksPostResponse, error)

	// BatchGetDocumentsBatchDocumentsPostWithBodyWithResponse Batch Get Documents
	//
	// Retrieve multiple documents by their IDs in a single batch operation.
	//
	// 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 /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).
	BatchGetDocumentsBatchDocumentsPostWithBodyWithResponse(ctx context.Context, params *BatchGetDocumentsBatchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetDocumentsBatchDocumentsPostResponse, error)

	// BatchGetDocumentsBatchDocumentsPostWithResponse Batch Get Documents
	//
	// Retrieve multiple documents by their IDs in a single batch operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /batch/documents (the `BatchGetDocumentsBatchDocumentsPost` operationId).
	BatchGetDocumentsBatchDocumentsPostWithResponse(ctx context.Context, params *BatchGetDocumentsBatchDocumentsPostParams, body BatchGetDocumentsBatchDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetDocumentsBatchDocumentsPostResponse, error)

	// GetChatHistoryChatChatIdGetWithResponse Get Chat History
	//
	// Retrieve the message history for a chat conversation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chat/{chat_id} (the `GetChatHistoryChatChatIdGet` operationId).
	GetChatHistoryChatChatIdGetWithResponse(ctx context.Context, chatId string, params *GetChatHistoryChatChatIdGetParams, reqEditors ...RequestEditorFn) (*GetChatHistoryChatChatIdGetResponse, error)

	// ListChatConversationsChatsGetWithResponse List Chat Conversations
	//
	// List chat conversations available to the current user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chats (the `ListChatConversationsChatsGet` operationId).
	ListChatConversationsChatsGetWithResponse(ctx context.Context, params *ListChatConversationsChatsGetParams, reqEditors ...RequestEditorFn) (*ListChatConversationsChatsGetResponse, error)

	// UpdateChatTitleChatsChatIdTitlePatchWithResponse Update Chat Title
	//
	// Update the title of a chat conversation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /chats/{chat_id}/title (the `UpdateChatTitleChatsChatIdTitlePatch` operationId).
	UpdateChatTitleChatsChatIdTitlePatchWithResponse(ctx context.Context, chatId string, params *UpdateChatTitleChatsChatIdTitlePatchParams, reqEditors ...RequestEditorFn) (*UpdateChatTitleChatsChatIdTitlePatchResponse, error)

	// GenerateCloudUriCloudGenerateUriPostWithBodyWithResponse Generate Cloud Uri
	//
	// Generate an authenticated URI for a cloud-hosted Morphik application.
	//
	// 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 /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).
	GenerateCloudUriCloudGenerateUriPostWithBodyWithResponse(ctx context.Context, params *GenerateCloudUriCloudGenerateUriPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateCloudUriCloudGenerateUriPostResponse, error)

	// GenerateCloudUriCloudGenerateUriPostWithResponse Generate Cloud Uri
	//
	// Generate an authenticated URI for a cloud-hosted Morphik application.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /cloud/generate_uri (the `GenerateCloudUriCloudGenerateUriPost` operationId).
	GenerateCloudUriCloudGenerateUriPostWithResponse(ctx context.Context, params *GenerateCloudUriCloudGenerateUriPostParams, body GenerateCloudUriCloudGenerateUriPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateCloudUriCloudGenerateUriPostResponse, error)

	// ListDocsDocumentsPostWithBodyWithResponse List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// 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 (the `ListDocsDocumentsPost` operationId).
	ListDocsDocumentsPostWithBodyWithResponse(ctx context.Context, params *ListDocsDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListDocsDocumentsPostResponse, error)

	// ListDocsDocumentsPostWithResponse List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// 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 (the `ListDocsDocumentsPost` operationId).
	ListDocsDocumentsPostWithResponse(ctx context.Context, params *ListDocsDocumentsPostParams, body ListDocsDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ListDocsDocumentsPostResponse, error)

	// GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse Get Document By Filename
	//
	// Get document by filename.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/filename/{filename} (the `GetDocumentByFilenameDocumentsFilenameFilenameGet` operationId).
	GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse(ctx context.Context, filename string, params *GetDocumentByFilenameDocumentsFilenameFilenameGetParams, reqEditors ...RequestEditorFn) (*GetDocumentByFilenameDocumentsFilenameFilenameGetResponse, error)

	// ListDocsDocumentsListDocsPostWithBodyWithResponse List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// 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/list_docs (the `ListDocsDocumentsListDocsPost` operationId).
	ListDocsDocumentsListDocsPostWithBodyWithResponse(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListDocsDocumentsListDocsPostResponse, error)

	// ListDocsDocumentsListDocsPostWithResponse List Docs
	//
	// Flexible document listing with aggregates, projections, and advanced pagination.
	//
	// Alias: `/documents` and `/documents/list_docs` share this handler.
	//
	// **Supported operators**: `$and`, `$or`, `$nor`, `$not`, `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`.
	//
	// **Implicit equality** (backwards compatible, JSONB containment):
	// “`json
	// {"status": "active"}
	// “`
	//
	// **Explicit operators** (typed comparisons for number, decimal, datetime, date):
	// “`json
	// {"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
	// “`
	//
	// Use `document_filters` with a `filename` key to filter the filename column:
	// “`json
	// {"filename": {"$regex": {"pattern": "^report_.*\.pdf$", "flags": "i"}}}
	// “`
	//
	// Use `folder_name` and `end_user_id` query parameters to scope system metadata.
	//
	// 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/list_docs (the `ListDocsDocumentsListDocsPost` operationId).
	ListDocsDocumentsListDocsPostWithResponse(ctx context.Context, params *ListDocsDocumentsListDocsPostParams, body ListDocsDocumentsListDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ListDocsDocumentsListDocsPostResponse, error)

	// ExtractDocumentPagesDocumentsPagesPostWithBodyWithResponse Extract Document Pages
	//
	// Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs.
	// When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).
	//
	// 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/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).
	ExtractDocumentPagesDocumentsPagesPostWithBodyWithResponse(ctx context.Context, params *ExtractDocumentPagesDocumentsPagesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtractDocumentPagesDocumentsPagesPostResponse, error)

	// ExtractDocumentPagesDocumentsPagesPostWithResponse Extract Document Pages
	//
	// Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs.
	// When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).
	//
	// 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/pages (the `ExtractDocumentPagesDocumentsPagesPost` operationId).
	ExtractDocumentPagesDocumentsPagesPostWithResponse(ctx context.Context, params *ExtractDocumentPagesDocumentsPagesPostParams, body ExtractDocumentPagesDocumentsPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtractDocumentPagesDocumentsPagesPostResponse, error)

	// DeleteDocumentDocumentsDocumentIdDeleteWithResponse Delete Document
	//
	// Delete a document and all associated data.
	//
	// This endpoint deletes a document and all its associated data, including:
	// - Document metadata
	// - Document content in storage
	// - Document chunks and embeddings in vector store
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /documents/{document_id} (the `DeleteDocumentDocumentsDocumentIdDelete` operationId).
	DeleteDocumentDocumentsDocumentIdDeleteWithResponse(ctx context.Context, documentId string, params *DeleteDocumentDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDocumentIdDeleteResponse, error)

	// GetDocumentDocumentsDocumentIdGetWithResponse Get Document
	//
	// Retrieve a single document by its external identifier.
	//
	// Returns the :class:`Document` metadata if found or raises 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/{document_id} (the `GetDocumentDocumentsDocumentIdGet` operationId).
	GetDocumentDocumentsDocumentIdGetWithResponse(ctx context.Context, documentId string, params *GetDocumentDocumentsDocumentIdGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDocumentsDocumentIdGetResponse, error)

	// GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse Get Document Download Url
	//
	// Get a download URL for a specific document.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/{document_id}/download_url (the `GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet` operationId).
	GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse(ctx context.Context, documentId string, params *GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse, error)

	// DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse Download Document File
	//
	// Download the actual file content for a document.
	// This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/{document_id}/file (the `DownloadDocumentFileDocumentsDocumentIdFileGet` operationId).
	DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse(ctx context.Context, documentId string, params *DownloadDocumentFileDocumentsDocumentIdFileGetParams, reqEditors ...RequestEditorFn) (*DownloadDocumentFileDocumentsDocumentIdFileGetResponse, error)

	// GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse Get Document Status
	//
	// Get the processing status of a document.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/{document_id}/status (the `GetDocumentStatusDocumentsDocumentIdStatusGet` operationId).
	GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse(ctx context.Context, documentId string, params *GetDocumentStatusDocumentsDocumentIdStatusGetParams, reqEditors ...RequestEditorFn) (*GetDocumentStatusDocumentsDocumentIdStatusGetResponse, error)

	// GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse Get Document Summary
	//
	// Retrieve the latest summary for a document.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /documents/{document_id}/summary (the `GetDocumentSummaryDocumentsDocumentIdSummaryGet` operationId).
	GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse(ctx context.Context, documentId string, params *GetDocumentSummaryDocumentsDocumentIdSummaryGetParams, reqEditors ...RequestEditorFn) (*GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse, error)

	// UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBodyWithResponse Upsert Document Summary
	//
	// Create or update a document summary with optional versioning.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).
	UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithBodyWithResponse(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse, error)

	// UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithResponse Upsert Document Summary
	//
	// Create or update a document summary with optional versioning.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /documents/{document_id}/summary (the `UpsertDocumentSummaryDocumentsDocumentIdSummaryPut` operationId).
	UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithResponse(ctx context.Context, documentId string, params *UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams, body UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse, error)

	// UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBodyWithResponse Update Document File
	//
	// Update a document by replacing its content with a new file and queueing re-ingestion.
	//
	// 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/{document_id}/update_file (the `UpdateDocumentFileDocumentsDocumentIdUpdateFilePost` operationId).
	UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse, error)

	// UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBodyWithResponse Update Document Metadata
	//
	// Update only a document's metadata.
	//
	// 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/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).
	UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse, error)

	// UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithResponse Update Document Metadata
	//
	// Update only a document's metadata.
	//
	// 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/{document_id}/update_metadata (the `UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost` operationId).
	UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithResponse(ctx context.Context, documentId string, params *UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams, body UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse, error)

	// UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBodyWithResponse Update Document Text
	//
	// Update a document by replacing its text content and queueing re-ingestion.
	//
	// 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/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).
	UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithBodyWithResponse(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse, error)

	// UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithResponse Update Document Text
	//
	// Update a document by replacing its text content and queueing re-ingestion.
	//
	// 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/{document_id}/update_text (the `UpdateDocumentTextDocumentsDocumentIdUpdateTextPost` operationId).
	UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithResponse(ctx context.Context, documentId string, params *UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams, body UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse, error)

	// DisconnectEeConnectorsDisconnectPostWithBodyWithResponse Disconnect
	//
	// Disconnect from a connector and remove credentials.
	//
	// 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 /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).
	DisconnectEeConnectorsDisconnectPostWithBodyWithResponse(ctx context.Context, params *DisconnectEeConnectorsDisconnectPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisconnectEeConnectorsDisconnectPostResponse, error)

	// DisconnectEeConnectorsDisconnectPostWithResponse Disconnect
	//
	// Disconnect from a connector and remove credentials.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/disconnect (the `DisconnectEeConnectorsDisconnectPost` operationId).
	DisconnectEeConnectorsDisconnectPostWithResponse(ctx context.Context, params *DisconnectEeConnectorsDisconnectPostParams, body DisconnectEeConnectorsDisconnectPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DisconnectEeConnectorsDisconnectPostResponse, error)

	// FinalizeAuthEeConnectorsFinalizeAuthPostWithBodyWithResponse Finalize Auth
	//
	// Finalize the OAuth flow and exchange the code for a token.
	//
	// 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 /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).
	FinalizeAuthEeConnectorsFinalizeAuthPostWithBodyWithResponse(ctx context.Context, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeAuthEeConnectorsFinalizeAuthPostResponse, error)

	// FinalizeAuthEeConnectorsFinalizeAuthPostWithResponse Finalize Auth
	//
	// Finalize the OAuth flow and exchange the code for a token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/finalize-auth (the `FinalizeAuthEeConnectorsFinalizeAuthPost` operationId).
	FinalizeAuthEeConnectorsFinalizeAuthPostWithResponse(ctx context.Context, params *FinalizeAuthEeConnectorsFinalizeAuthPostParams, body FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizeAuthEeConnectorsFinalizeAuthPostResponse, error)

	// InitiateAuthEeConnectorsInitiateAuthPostWithBodyWithResponse Initiate Auth
	//
	// Initiate the OAuth flow for a connector.
	//
	// 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 /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).
	InitiateAuthEeConnectorsInitiateAuthPostWithBodyWithResponse(ctx context.Context, params *InitiateAuthEeConnectorsInitiateAuthPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitiateAuthEeConnectorsInitiateAuthPostResponse, error)

	// InitiateAuthEeConnectorsInitiateAuthPostWithResponse Initiate Auth
	//
	// Initiate the OAuth flow for a connector.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/initiate-auth (the `InitiateAuthEeConnectorsInitiateAuthPost` operationId).
	InitiateAuthEeConnectorsInitiateAuthPostWithResponse(ctx context.Context, params *InitiateAuthEeConnectorsInitiateAuthPostParams, body InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody, reqEditors ...RequestEditorFn) (*InitiateAuthEeConnectorsInitiateAuthPostResponse, error)

	// ListFilesEeConnectorsListFilesPostWithBodyWithResponse List Files
	//
	// List files from a connector.
	//
	// 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 /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).
	ListFilesEeConnectorsListFilesPostWithBodyWithResponse(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListFilesEeConnectorsListFilesPostResponse, error)

	// ListFilesEeConnectorsListFilesPostWithResponse List Files
	//
	// List files from a connector.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/list-files (the `ListFilesEeConnectorsListFilesPost` operationId).
	ListFilesEeConnectorsListFilesPostWithResponse(ctx context.Context, params *ListFilesEeConnectorsListFilesPostParams, body ListFilesEeConnectorsListFilesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ListFilesEeConnectorsListFilesPostResponse, error)

	// GetStatusEeConnectorsStatusPostWithBodyWithResponse Get Status
	//
	// Get the authentication status for a connector.
	//
	// 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 /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).
	GetStatusEeConnectorsStatusPostWithBodyWithResponse(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusEeConnectorsStatusPostResponse, error)

	// GetStatusEeConnectorsStatusPostWithResponse Get Status
	//
	// Get the authentication status for a connector.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/status (the `GetStatusEeConnectorsStatusPost` operationId).
	GetStatusEeConnectorsStatusPostWithResponse(ctx context.Context, params *GetStatusEeConnectorsStatusPostParams, body GetStatusEeConnectorsStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStatusEeConnectorsStatusPostResponse, error)

	// FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBodyWithResponse Finalize Manual Auth
	//
	// Finalize authentication using manual credentials.
	//
	// This endpoint is used for connectors that require manual credential input
	// (like Zotero) instead of OAuth flows.
	//
	// 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 /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).
	FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithBodyWithResponse(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse, error)

	// FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithResponse Finalize Manual Auth
	//
	// Finalize authentication using manual credentials.
	//
	// This endpoint is used for connectors that require manual credential input
	// (like Zotero) instead of OAuth flows.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/{connector_type}/auth/finalize (the `FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost` operationId).
	FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithResponse(ctx context.Context, connectorType string, params *FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams, body FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse, error)

	// GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse Get Initiate Auth Url
	//
	// Return the provider's *authorization_url* for the given connector.
	//
	// The method mirrors the logic of the `/auth/initiate` endpoint but sends a
	// JSON payload instead of a redirect so that browsers can stay on the same
	// origin until they intentionally navigate away.
	//
	// For OAuth-based connectors, this returns authorization_url.
	// For manual credential connectors, this returns the credential form specification.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /ee/connectors/{connector_type}/auth/initiate_url (the `GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet` operationId).
	GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse(ctx context.Context, connectorType string, params *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams, reqEditors ...RequestEditorFn) (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse, error)

	// GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse Get Auth Status For Connector
	//
	// Checks the current authentication status for the given connector type.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /ee/connectors/{connector_type}/auth_status (the `GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet` operationId).
	GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse(ctx context.Context, connectorType string, params *GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams, reqEditors ...RequestEditorFn) (*GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse, error)

	// ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse List Files For Connector
	//
	// Lists files and folders from the specified connector.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /ee/connectors/{connector_type}/files (the `ListFilesForConnectorEeConnectorsConnectorTypeFilesGet` operationId).
	ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse(ctx context.Context, connectorType string, params *ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams, reqEditors ...RequestEditorFn) (*ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse, error)

	// IngestFileEeConnectorsConnectorTypeIngestPostWithBodyWithResponse Ingest File
	//
	// Ingest a single file from a connector.
	//
	// 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 /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).
	IngestFileEeConnectorsConnectorTypeIngestPostWithBodyWithResponse(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestFileEeConnectorsConnectorTypeIngestPostResponse, error)

	// IngestFileEeConnectorsConnectorTypeIngestPostWithResponse Ingest File
	//
	// Ingest a single file from a connector.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest (the `IngestFileEeConnectorsConnectorTypeIngestPost` operationId).
	IngestFileEeConnectorsConnectorTypeIngestPostWithResponse(ctx context.Context, connectorType string, params *IngestFileEeConnectorsConnectorTypeIngestPostParams, body IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestFileEeConnectorsConnectorTypeIngestPostResponse, error)

	// IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBodyWithResponse Ingest Repository
	//
	// Ingest an entire GitHub repository.
	//
	// 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 /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).
	IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithBodyWithResponse(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse, error)

	// IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithResponse Ingest Repository
	//
	// Ingest an entire GitHub repository.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ee/connectors/{connector_type}/ingest-repository (the `IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost` operationId).
	IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithResponse(ctx context.Context, connectorType string, params *IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams, body IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse, error)

	// ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse Connector Oauth Callback
	//
	// Handles the OAuth 2.0 callback from the authentication provider.
	// Validates state, finalizes authentication, and stores credentials.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /ee/connectors/{connector_type}/oauth2callback (the `ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet` operationId).
	ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse(ctx context.Context, connectorType string, params *ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams, reqEditors ...RequestEditorFn) (*ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse, error)

	// ListFoldersFoldersGetWithResponse List Folders
	//
	// List all folders the user has access to.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /folders (the `ListFoldersFoldersGet` operationId).
	ListFoldersFoldersGetWithResponse(ctx context.Context, params *ListFoldersFoldersGetParams, reqEditors ...RequestEditorFn) (*ListFoldersFoldersGetResponse, error)

	// CreateFolderFoldersPostWithBodyWithResponse Create Folder
	//
	// Create a new folder.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).
	CreateFolderFoldersPostWithBodyWithResponse(ctx context.Context, params *CreateFolderFoldersPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFolderFoldersPostResponse, error)

	// CreateFolderFoldersPostWithResponse Create Folder
	//
	// Create a new folder.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /folders (the `CreateFolderFoldersPost` operationId).
	CreateFolderFoldersPostWithResponse(ctx context.Context, params *CreateFolderFoldersPostParams, body CreateFolderFoldersPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFolderFoldersPostResponse, error)

	// FolderDetailsFoldersDetailsPostWithBodyWithResponse Folder Details
	//
	// Retrieve folder metadata with optional document statistics and projections.
	//
	// 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 /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).
	FolderDetailsFoldersDetailsPostWithBodyWithResponse(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FolderDetailsFoldersDetailsPostResponse, error)

	// FolderDetailsFoldersDetailsPostWithResponse Folder Details
	//
	// Retrieve folder metadata with optional document statistics and projections.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /folders/details (the `FolderDetailsFoldersDetailsPost` operationId).
	FolderDetailsFoldersDetailsPostWithResponse(ctx context.Context, params *FolderDetailsFoldersDetailsPostParams, body FolderDetailsFoldersDetailsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FolderDetailsFoldersDetailsPostResponse, error)

	// ListFolderSummariesFoldersSummaryGetWithResponse List Folder Summaries
	//
	// Return compact folder list (id, name, doc_count, updated_at).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /folders/summary (the `ListFolderSummariesFoldersSummaryGet` operationId).
	ListFolderSummariesFoldersSummaryGetWithResponse(ctx context.Context, params *ListFolderSummariesFoldersSummaryGetParams, reqEditors ...RequestEditorFn) (*ListFolderSummariesFoldersSummaryGetResponse, error)

	// DeleteFolderFoldersFolderIdOrNameDeleteWithResponse Delete Folder
	//
	// Delete a folder and all associated documents.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /folders/{folder_id_or_name} (the `DeleteFolderFoldersFolderIdOrNameDelete` operationId).
	DeleteFolderFoldersFolderIdOrNameDeleteWithResponse(ctx context.Context, folderIdOrName string, params *DeleteFolderFoldersFolderIdOrNameDeleteParams, reqEditors ...RequestEditorFn) (*DeleteFolderFoldersFolderIdOrNameDeleteResponse, error)

	// GetFolderFoldersFolderIdOrNameGetWithResponse Get Folder
	//
	// Get a folder by ID or name.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /folders/{folder_id_or_name} (the `GetFolderFoldersFolderIdOrNameGet` operationId).
	GetFolderFoldersFolderIdOrNameGetWithResponse(ctx context.Context, folderIdOrName string, params *GetFolderFoldersFolderIdOrNameGetParams, reqEditors ...RequestEditorFn) (*GetFolderFoldersFolderIdOrNameGetResponse, error)

	// RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse Remove Document From Folder
	//
	// Remove a document from a folder.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /folders/{folder_id_or_name}/documents/{document_id} (the `RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete` operationId).
	RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse(ctx context.Context, folderIdOrName string, documentId string, params *RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse, error)

	// AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse Add Document To Folder
	//
	// Add a document to a folder.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /folders/{folder_id_or_name}/documents/{document_id} (the `AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPost` operationId).
	AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostWithResponse(ctx context.Context, folderIdOrName string, documentId string, params *AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostParams, reqEditors ...RequestEditorFn) (*AddDocumentToFolderFoldersFolderIdOrNameDocumentsDocumentIdPostResponse, error)

	// MoveFolderFoldersFolderIdOrNameMovePostWithBodyWithResponse Move Folder
	//
	// Move and/or rename a folder by providing a new path.
	//
	// - Changing the last segment renames the folder.
	// - Changing parent segments moves it.
	// - All descendant folders and documents are updated atomically.
	// - Missing ancestor folders at the new location are created automatically.
	//
	// 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 /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).
	MoveFolderFoldersFolderIdOrNameMovePostWithBodyWithResponse(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveFolderFoldersFolderIdOrNameMovePostResponse, error)

	// MoveFolderFoldersFolderIdOrNameMovePostWithResponse Move Folder
	//
	// Move and/or rename a folder by providing a new path.
	//
	// - Changing the last segment renames the folder.
	// - Changing parent segments moves it.
	// - All descendant folders and documents are updated atomically.
	// - Missing ancestor folders at the new location are created automatically.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /folders/{folder_id_or_name}/move (the `MoveFolderFoldersFolderIdOrNameMovePost` operationId).
	MoveFolderFoldersFolderIdOrNameMovePostWithResponse(ctx context.Context, folderIdOrName string, params *MoveFolderFoldersFolderIdOrNameMovePostParams, body MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveFolderFoldersFolderIdOrNameMovePostResponse, error)

	// GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse Get Folder Summary
	//
	// Retrieve the latest summary for a folder.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /folders/{folder_id_or_name}/summary (the `GetFolderSummaryFoldersFolderIdOrNameSummaryGet` operationId).
	GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse(ctx context.Context, folderIdOrName string, params *GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams, reqEditors ...RequestEditorFn) (*GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse, error)

	// UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBodyWithResponse Upsert Folder Summary
	//
	// Create or update a folder summary with optional versioning.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).
	UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithBodyWithResponse(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse, error)

	// UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithResponse Upsert Folder Summary
	//
	// Create or update a folder summary with optional versioning.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /folders/{folder_id_or_name}/summary (the `UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut` operationId).
	UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithResponse(ctx context.Context, folderIdOrName string, params *UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams, body UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse, error)

	// HealthCheckHealthGetWithResponse Health Check
	//
	// Comprehensive health check endpoint that queries all underlying services.
	//
	// Checks the following services:
	// - PostgreSQL database
	// - Redis
	// - PGVector store
	// - Storage service (Local/S3)
	// - ColPali vector store (if enabled)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /health (the `HealthCheckHealthGet` operationId).
	HealthCheckHealthGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHealthGetResponse, error)

	// QueryDocumentIngestDocumentQueryPostWithBodyWithResponse Query Document
	//
	// Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and
	// scheduling a follow-up ingestion.
	//
	// `ingestion_options` is a JSON string controlling post-analysis ingestion behaviour via keys such as `ingest`,
	// `metadata`, `use_colpali`, `folder_name`, and `end_user_id`. Additional keys are ignored. A
	// :class:`DocumentQueryResponse` describing the inline analysis and any queued ingestion is 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 /ingest/document/query (the `QueryDocumentIngestDocumentQueryPost` operationId).
	QueryDocumentIngestDocumentQueryPostWithBodyWithResponse(ctx context.Context, params *QueryDocumentIngestDocumentQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDocumentIngestDocumentQueryPostResponse, error)

	// IngestFileIngestFilePostWithBodyWithResponse Ingest File
	//
	// Ingest a **file** asynchronously.
	//
	// The file is uploaded to object storage, a *Document* stub is persisted
	// with “status='processing'“ and a background worker picks up the heavy
	// parsing / chunking work.
	//
	// 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 /ingest/file (the `IngestFileIngestFilePost` operationId).
	IngestFileIngestFilePostWithBodyWithResponse(ctx context.Context, params *IngestFileIngestFilePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestFileIngestFilePostResponse, error)

	// BatchIngestFilesIngestFilesPostWithBodyWithResponse Batch Ingest Files
	//
	// Batch ingest **multiple files** (async).
	//
	// Each file is treated the same as :func:`ingest_file` but sharing the same
	// request avoids many round-trips. All heavy work is still delegated to the
	// background worker pool.
	//
	// 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 /ingest/files (the `BatchIngestFilesIngestFilesPost` operationId).
	BatchIngestFilesIngestFilesPostWithBodyWithResponse(ctx context.Context, params *BatchIngestFilesIngestFilesPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchIngestFilesIngestFilesPostResponse, error)

	// RequeueIngestJobsIngestRequeuePostWithBodyWithResponse Requeue Ingest Jobs
	//
	// Requeue ingestion jobs for documents stuck in processing or marked as failed.
	//
	// 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 /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).
	RequeueIngestJobsIngestRequeuePostWithBodyWithResponse(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequeueIngestJobsIngestRequeuePostResponse, error)

	// RequeueIngestJobsIngestRequeuePostWithResponse Requeue Ingest Jobs
	//
	// Requeue ingestion jobs for documents stuck in processing or marked as failed.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ingest/requeue (the `RequeueIngestJobsIngestRequeuePost` operationId).
	RequeueIngestJobsIngestRequeuePostWithResponse(ctx context.Context, params *RequeueIngestJobsIngestRequeuePostParams, body RequeueIngestJobsIngestRequeuePostJSONRequestBody, reqEditors ...RequestEditorFn) (*RequeueIngestJobsIngestRequeuePostResponse, error)

	// IngestTextIngestTextPostWithBodyWithResponse Ingest Text
	//
	// Ingest a **text** document asynchronously (queued like /ingest/file).
	//
	// 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 /ingest/text (the `IngestTextIngestTextPost` operationId).
	IngestTextIngestTextPostWithBodyWithResponse(ctx context.Context, params *IngestTextIngestTextPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestTextIngestTextPostResponse, error)

	// IngestTextIngestTextPostWithResponse Ingest Text
	//
	// Ingest a **text** document asynchronously (queued like /ingest/file).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ingest/text (the `IngestTextIngestTextPost` operationId).
	IngestTextIngestTextPostWithResponse(ctx context.Context, params *IngestTextIngestTextPostParams, body IngestTextIngestTextPostJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestTextIngestTextPostResponse, error)

	// GetLogsLogsGetWithResponse Get Logs
	//
	// Return recent logs for the authenticated user (scoped by app_id).
	//
	// Args:
	//     hours: Number of hours of history to retrieve (default 4)
	//            - <= 4 hours: reads from local files
	//            - > 4 hours: queries logs.morphik.ai proxy (requires proxy endpoint)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /logs/ (the `GetLogsLogsGet` operationId).
	GetLogsLogsGetWithResponse(ctx context.Context, params *GetLogsLogsGetParams, reqEditors ...RequestEditorFn) (*GetLogsLogsGetResponse, error)

	// MigrateDocumentMigrateDocumentPostWithBodyWithResponse Migrate Document
	//
	// Ingest a migrated source document while preserving its document ID.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /migrate/document (the `MigrateDocumentMigrateDocumentPost` operationId).
	MigrateDocumentMigrateDocumentPostWithBodyWithResponse(ctx context.Context, params *MigrateDocumentMigrateDocumentPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateDocumentMigrateDocumentPostResponse, error)

	// GetAvailableModelsModelsGetWithResponse Get Available Models
	//
	// Get list of available models from configuration.
	//
	// Returns models grouped by type (chat, embedding, etc.) with their metadata.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /models (the `GetAvailableModelsModelsGet` operationId).
	GetAvailableModelsModelsGetWithResponse(ctx context.Context, params *GetAvailableModelsModelsGetParams, reqEditors ...RequestEditorFn) (*GetAvailableModelsModelsGetResponse, error)

	// SaveModelModelsPostWithBodyWithResponse Save Model
	//
	// Save a custom model configuration.
	//
	// 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 (the `SaveModelModelsPost` operationId).
	SaveModelModelsPostWithBodyWithResponse(ctx context.Context, params *SaveModelModelsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveModelModelsPostResponse, error)

	// SaveModelModelsPostWithResponse Save Model
	//
	// Save a custom model configuration.
	//
	// 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 (the `SaveModelModelsPost` operationId).
	SaveModelModelsPostWithResponse(ctx context.Context, params *SaveModelModelsPostParams, body SaveModelModelsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveModelModelsPostResponse, error)

	// GetAvailableModelsForSelectionModelsAvailableGetWithResponse Get Available Models For Selection
	//
	// Get list of available models for UI selection.
	//
	// Returns a list of models that can be used for queries. Each model includes:
	// - id: Model identifier to use in llm_config
	// - name: Display name for the model
	// - provider: The LLM provider (e.g., openai, anthropic, ollama)
	// - description: Optional description of the model
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /models/available (the `GetAvailableModelsForSelectionModelsAvailableGet` operationId).
	GetAvailableModelsForSelectionModelsAvailableGetWithResponse(ctx context.Context, params *GetAvailableModelsForSelectionModelsAvailableGetParams, reqEditors ...RequestEditorFn) (*GetAvailableModelsForSelectionModelsAvailableGetResponse, error)

	// ListCustomModelsModelsCustomGetWithResponse List Custom Models
	//
	// List all custom models for the authenticated user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /models/custom (the `ListCustomModelsModelsCustomGet` operationId).
	ListCustomModelsModelsCustomGetWithResponse(ctx context.Context, params *ListCustomModelsModelsCustomGetParams, reqEditors ...RequestEditorFn) (*ListCustomModelsModelsCustomGetResponse, error)

	// DeleteModelModelsModelIdDeleteWithResponse Delete Model
	//
	// Delete a custom model.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /models/{model_id} (the `DeleteModelModelsModelIdDelete` operationId).
	DeleteModelModelsModelIdDeleteWithResponse(ctx context.Context, modelId string, params *DeleteModelModelsModelIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteModelModelsModelIdDeleteResponse, error)

	// PingHealthPingGetWithResponse Ping Health
	//
	// Simple health check endpoint that returns 200 OK.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /ping (the `PingHealthPingGet` operationId).
	PingHealthPingGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingHealthPingGetResponse, error)

	// QueryCompletionQueryPostWithBodyWithResponse Query Completion
	//
	// Generate completion using relevant chunks as context.
	//
	// 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 /query (the `QueryCompletionQueryPost` operationId).
	QueryCompletionQueryPostWithBodyWithResponse(ctx context.Context, params *QueryCompletionQueryPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryCompletionQueryPostResponse, error)

	// QueryCompletionQueryPostWithResponse Query Completion
	//
	// Generate completion using relevant chunks as context.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /query (the `QueryCompletionQueryPost` operationId).
	QueryCompletionQueryPostWithResponse(ctx context.Context, params *QueryCompletionQueryPostParams, body QueryCompletionQueryPostJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryCompletionQueryPostResponse, error)

	// RetrieveChunksRetrieveChunksPostWithBodyWithResponse Retrieve Chunks
	//
	// Retrieve relevant chunks.
	//
	// The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays)
	// plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`,
	// and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and
	// raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag
	// for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default,
	// configurable via `case_sensitive`). Filters can be nested freely, for example:
	//
	// “`json
	// {
	//   "$and": [
	//     {"category": "policy"},
	//     {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
	//   ]
	// }
	// “`
	// Returns a list of `ChunkResult` objects ordered by relevance.
	//
	// 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 /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).
	RetrieveChunksRetrieveChunksPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksRetrieveChunksPostResponse, error)

	// RetrieveChunksRetrieveChunksPostWithResponse Retrieve Chunks
	//
	// Retrieve relevant chunks.
	//
	// The optional `request.filters` payload accepts equality checks (which also match scalars inside JSON arrays)
	// plus the logical operators `$and`, `$or`, `$nor`, and `$not`. Field-level predicates include `$eq`, `$ne`,
	// `$in`, `$nin`, `$exists`, `$type`, `$regex`, `$contains`, and the comparison operators `$gt`, `$gte`, `$lt`,
	// and `$lte`. Comparison clauses evaluate typed metadata (`number`, `decimal`, `datetime`, or `date`) and
	// raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional `i` flag
	// for case-insensitive matching, while `$contains` performs substring checks (case-insensitive by default,
	// configurable via `case_sensitive`). Filters can be nested freely, for example:
	//
	// “`json
	// {
	//   "$and": [
	//     {"category": "policy"},
	//     {"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
	//   ]
	// }
	// “`
	// Returns a list of `ChunkResult` objects ordered by relevance.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /retrieve/chunks (the `RetrieveChunksRetrieveChunksPost` operationId).
	RetrieveChunksRetrieveChunksPostWithResponse(ctx context.Context, params *RetrieveChunksRetrieveChunksPostParams, body RetrieveChunksRetrieveChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RetrieveChunksRetrieveChunksPostResponse, error)

	// RetrieveChunksGroupedRetrieveChunksGroupedPostWithBodyWithResponse Retrieve Chunks Grouped
	//
	// Retrieve relevant chunks with grouped response format.
	//
	// Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`,
	// `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting
	// supported inside `request.filters`.
	//
	// Returns both flat results (for backward compatibility) and grouped results (for UI).
	// When padding > 0, groups chunks by main matches and their padding chunks.
	//
	// 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 /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).
	RetrieveChunksGroupedRetrieveChunksGroupedPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksGroupedRetrieveChunksGroupedPostResponse, error)

	// RetrieveChunksGroupedRetrieveChunksGroupedPostWithResponse Retrieve Chunks Grouped
	//
	// Retrieve relevant chunks with grouped response format.
	//
	// Uses the same filter operators as `/retrieve/chunks` (equality, `$eq/$ne`, `$gt/$gte/$lt/$lte`, `$in/$nin`,
	// `$exists`, `$type`, `$regex`, `$contains`, and the logical `$and/$or/$nor/$not`), with arbitrary nesting
	// supported inside `request.filters`.
	//
	// Returns both flat results (for backward compatibility) and grouped results (for UI).
	// When padding > 0, groups chunks by main matches and their padding chunks.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /retrieve/chunks/grouped (the `RetrieveChunksGroupedRetrieveChunksGroupedPost` operationId).
	RetrieveChunksGroupedRetrieveChunksGroupedPostWithResponse(ctx context.Context, params *RetrieveChunksGroupedRetrieveChunksGroupedPostParams, body RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RetrieveChunksGroupedRetrieveChunksGroupedPostResponse, error)

	// RetrieveDocumentsRetrieveDocsPostWithBodyWithResponse Retrieve Documents
	//
	// Retrieve relevant documents.
	//
	// `request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as
	// `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`,
	// `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON
	// structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as
	// `number`, `decimal`, `datetime`, or `date`.
	//
	// 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 /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).
	RetrieveDocumentsRetrieveDocsPostWithBodyWithResponse(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveDocumentsRetrieveDocsPostResponse, error)

	// RetrieveDocumentsRetrieveDocsPostWithResponse Retrieve Documents
	//
	// Retrieve relevant documents.
	//
	// `request.filters` supports equality checks (including scalar-to-array matches) and the same operator set as
	// `/retrieve/chunks`: logical composition via `$and`, `$or`, `$nor`, `$not`, plus field predicates `$eq`, `$ne`,
	// `$gt`, `$gte`, `$lt`, `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex`, and `$contains`. Use the same JSON
	// structure as `/retrieve/chunks` when expressing complex logic. Comparison operators require metadata typed as
	// `number`, `decimal`, `datetime`, or `date`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /retrieve/docs (the `RetrieveDocumentsRetrieveDocsPost` operationId).
	RetrieveDocumentsRetrieveDocsPostWithResponse(ctx context.Context, params *RetrieveDocumentsRetrieveDocsPostParams, body RetrieveDocumentsRetrieveDocsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RetrieveDocumentsRetrieveDocsPostResponse, error)

	// SearchDocumentsByNameSearchDocumentsPostWithBodyWithResponse Search Documents By Name
	//
	// Search documents by filename using full-text search.
	//
	// `request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`,
	// `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical
	// operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`,
	// `datetime`, `date`).
	//
	// 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 /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).
	SearchDocumentsByNameSearchDocumentsPostWithBodyWithResponse(ctx context.Context, params *SearchDocumentsByNameSearchDocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchDocumentsByNameSearchDocumentsPostResponse, error)

	// SearchDocumentsByNameSearchDocumentsPostWithResponse Search Documents By Name
	//
	// Search documents by filename using full-text search.
	//
	// `request.filters` accepts the same operator set as `/retrieve/chunks`: `$eq`, `$ne`, `$gt`, `$gte`, `$lt`,
	// `$lte`, `$in`, `$nin`, `$exists`, `$type`, `$regex` (with optional `i` flag), `$contains`, and the logical
	// operators `$and`, `$or`, `$nor`, `$not`. Comparison clauses honor typed metadata (`number`, `decimal`,
	// `datetime`, `date`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /search/documents (the `SearchDocumentsByNameSearchDocumentsPost` operationId).
	SearchDocumentsByNameSearchDocumentsPostWithResponse(ctx context.Context, params *SearchDocumentsByNameSearchDocumentsPostParams, body SearchDocumentsByNameSearchDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchDocumentsByNameSearchDocumentsPostResponse, error)

	// GetAppStorageUsageUsageAppStorageGetWithResponse Get App Storage Usage
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /usage/app-storage (the `GetAppStorageUsageUsageAppStorageGet` operationId).
	GetAppStorageUsageUsageAppStorageGetWithResponse(ctx context.Context, params *GetAppStorageUsageUsageAppStorageGetParams, reqEditors ...RequestEditorFn) (*GetAppStorageUsageUsageAppStorageGetResponse, error)

	// IngestDocumentV2V2DocumentsPostWithBodyWithResponse Ingest Document V2
	//
	// 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 /v2/documents (the `IngestDocumentV2V2DocumentsPost` operationId).
	IngestDocumentV2V2DocumentsPostWithBodyWithResponse(ctx context.Context, params *IngestDocumentV2V2DocumentsPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestDocumentV2V2DocumentsPostResponse, error)

	// DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse Delete Document V2
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/documents/{document_id} (the `DeleteDocumentV2V2DocumentsDocumentIdDelete` operationId).
	DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse(ctx context.Context, documentId string, params *DeleteDocumentV2V2DocumentsDocumentIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse, error)

	// RetrieveChunksV2V2RetrieveChunksPostWithBodyWithResponse Retrieve Chunks V2
	//
	// 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 /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).
	RetrieveChunksV2V2RetrieveChunksPostWithBodyWithResponse(ctx context.Context, params *RetrieveChunksV2V2RetrieveChunksPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveChunksV2V2RetrieveChunksPostResponse, error)

	// RetrieveChunksV2V2RetrieveChunksPostWithResponse Retrieve Chunks V2
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/retrieve/chunks (the `RetrieveChunksV2V2RetrieveChunksPost` operationId).
	RetrieveChunksV2V2RetrieveChunksPostWithResponse(ctx context.Context, params *RetrieveChunksV2V2RetrieveChunksPostParams, body RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RetrieveChunksV2V2RetrieveChunksPostResponse, error)
}

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

type CompletionQueryRequest

type CompletionQueryRequest struct {
	// ChatId Optional chat session ID for persisting conversation history
	ChatId *string `json:"chat_id,omitempty"`

	// EndUserId Optional end-user scope for the operation
	EndUserId *string `json:"end_user_id,omitempty"`

	// Filters Metadata filters supporting logical operators ($and/$or/$not/$nor) and field predicates ($eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$type/$regex/$contains).
	Filters *map[string]interface{} `json:"filters,omitempty"`

	// FolderDepth Folder scope depth. 0 or None = exact folder only, -1 = include all descendants, n > 0 = include descendants up to n levels deeper.
	FolderDepth *int `json:"folder_depth,omitempty"`

	// FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
	FolderName *CompletionQueryRequest_FolderName `json:"folder_name,omitempty"`

	// InlineCitations Whether to include inline citations with filename and page number in the response
	InlineCitations *bool `json:"inline_citations,omitempty"`

	// K Maximum number of chunks or documents to return.
	K *int `json:"k,omitempty"`

	// LlmConfig LiteLLM-compatible model configuration (e.g., model name, API key, base URL)
	LlmConfig *map[string]interface{} `json:"llm_config,omitempty"`

	// MaxTokens Maximum number of tokens allowed in the generated completion.
	MaxTokens *int `json:"max_tokens,omitempty"`

	// MinScore Minimum similarity score a result must meet before it is returned.
	MinScore *float64 `json:"min_score,omitempty"`

	// OutputFormat How to return image chunks: base64 (default), url, or text (markdown format)
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Padding Number of additional chunks/pages to retrieve before and after matched chunks (ColPali only)
	Padding *int `json:"padding,omitempty"`

	// PromptOverrides Optional customizations for entity extraction, resolution, and query prompts
	PromptOverrides *QueryPromptOverrides `json:"prompt_overrides,omitempty"`

	// Query Natural-language query used to retrieve relevant chunks or documents.
	Query *string `json:"query,omitempty"`

	// QueryImage Base64-encoded image to use as query for Morphik multimodal retrieval. Requires use_colpali=True. Mutually exclusive with 'query'.
	QueryImage *string `json:"query_image,omitempty"`

	// Schema Schema for structured output, can be a Pydantic model or JSON schema dict
	Schema *CompletionQueryRequest_Schema `json:"schema,omitempty"`

	// StreamResponse Whether to stream the response back in chunks
	StreamResponse *bool `json:"stream_response,omitempty"`

	// Temperature Sampling temperature passed to the completion model (None uses provider default).
	Temperature *float64 `json:"temperature,omitempty"`

	// UseColpali When provided, uses Morphik's finetuned ColPali style embeddings (recommended to be True for high quality retrieval).
	UseColpali *bool `json:"use_colpali,omitempty"`

	// UseReranking When provided, overrides the workspace reranking configuration for this request.
	UseReranking *bool `json:"use_reranking,omitempty"`
}

CompletionQueryRequest Request model for completion generation

type CompletionQueryRequestFolderName0

type CompletionQueryRequestFolderName0 = string

CompletionQueryRequestFolderName0 defines model for CompletionQueryRequest.FolderName.0.

type CompletionQueryRequestFolderName1

type CompletionQueryRequestFolderName1 = []string

CompletionQueryRequestFolderName1 defines model for CompletionQueryRequest.FolderName.1.

type CompletionQueryRequestSchema0

type CompletionQueryRequestSchema0 = interface{}

CompletionQueryRequestSchema0 defines model for CompletionQueryRequest.Schema.0.

type CompletionQueryRequestSchema1

type CompletionQueryRequestSchema1 map[string]interface{}

CompletionQueryRequestSchema1 defines model for CompletionQueryRequest.Schema.1.

type CompletionQueryRequest_FolderName

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

CompletionQueryRequest_FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.

func (CompletionQueryRequest_FolderName) AsCompletionQueryRequestFolderName0

func (t CompletionQueryRequest_FolderName) AsCompletionQueryRequestFolderName0() (CompletionQueryRequestFolderName0, error)

AsCompletionQueryRequestFolderName0 returns the union data inside the CompletionQueryRequest_FolderName as a CompletionQueryRequestFolderName0

func (CompletionQueryRequest_FolderName) AsCompletionQueryRequestFolderName1

func (t CompletionQueryRequest_FolderName) AsCompletionQueryRequestFolderName1() (CompletionQueryRequestFolderName1, error)

AsCompletionQueryRequestFolderName1 returns the union data inside the CompletionQueryRequest_FolderName as a CompletionQueryRequestFolderName1

func (*CompletionQueryRequest_FolderName) FromCompletionQueryRequestFolderName0

func (t *CompletionQueryRequest_FolderName) FromCompletionQueryRequestFolderName0(v CompletionQueryRequestFolderName0) error

FromCompletionQueryRequestFolderName0 overwrites any union data inside the CompletionQueryRequest_FolderName as the provided CompletionQueryRequestFolderName0

func (*CompletionQueryRequest_FolderName) FromCompletionQueryRequestFolderName1

func (t *CompletionQueryRequest_FolderName) FromCompletionQueryRequestFolderName1(v CompletionQueryRequestFolderName1) error

FromCompletionQueryRequestFolderName1 overwrites any union data inside the CompletionQueryRequest_FolderName as the provided CompletionQueryRequestFolderName1

func (CompletionQueryRequest_FolderName) MarshalJSON

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

func (*CompletionQueryRequest_FolderName) MergeCompletionQueryRequestFolderName0

func (t *CompletionQueryRequest_FolderName) MergeCompletionQueryRequestFolderName0(v CompletionQueryRequestFolderName0) error

MergeCompletionQueryRequestFolderName0 performs a merge with any union data inside the CompletionQueryRequest_FolderName, using the provided CompletionQueryRequestFolderName0

func (*CompletionQueryRequest_FolderName) MergeCompletionQueryRequestFolderName1

func (t *CompletionQueryRequest_FolderName) MergeCompletionQueryRequestFolderName1(v CompletionQueryRequestFolderName1) error

MergeCompletionQueryRequestFolderName1 performs a merge with any union data inside the CompletionQueryRequest_FolderName, using the provided CompletionQueryRequestFolderName1

func (*CompletionQueryRequest_FolderName) UnmarshalJSON

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

type CompletionQueryRequest_Schema

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

CompletionQueryRequest_Schema Schema for structured output, can be a Pydantic model or JSON schema dict

func (CompletionQueryRequest_Schema) AsCompletionQueryRequestSchema0

func (t CompletionQueryRequest_Schema) AsCompletionQueryRequestSchema0() (CompletionQueryRequestSchema0, error)

AsCompletionQueryRequestSchema0 returns the union data inside the CompletionQueryRequest_Schema as a CompletionQueryRequestSchema0

func (CompletionQueryRequest_Schema) AsCompletionQueryRequestSchema1

func (t CompletionQueryRequest_Schema) AsCompletionQueryRequestSchema1() (CompletionQueryRequestSchema1, error)

AsCompletionQueryRequestSchema1 returns the union data inside the CompletionQueryRequest_Schema as a CompletionQueryRequestSchema1

func (*CompletionQueryRequest_Schema) FromCompletionQueryRequestSchema0

func (t *CompletionQueryRequest_Schema) FromCompletionQueryRequestSchema0(v CompletionQueryRequestSchema0) error

FromCompletionQueryRequestSchema0 overwrites any union data inside the CompletionQueryRequest_Schema as the provided CompletionQueryRequestSchema0

func (*CompletionQueryRequest_Schema) FromCompletionQueryRequestSchema1

func (t *CompletionQueryRequest_Schema) FromCompletionQueryRequestSchema1(v CompletionQueryRequestSchema1) error

FromCompletionQueryRequestSchema1 overwrites any union data inside the CompletionQueryRequest_Schema as the provided CompletionQueryRequestSchema1

func (CompletionQueryRequest_Schema) MarshalJSON

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

func (*CompletionQueryRequest_Schema) MergeCompletionQueryRequestSchema0

func (t *CompletionQueryRequest_Schema) MergeCompletionQueryRequestSchema0(v CompletionQueryRequestSchema0) error

MergeCompletionQueryRequestSchema0 performs a merge with any union data inside the CompletionQueryRequest_Schema, using the provided CompletionQueryRequestSchema0

func (*CompletionQueryRequest_Schema) MergeCompletionQueryRequestSchema1

func (t *CompletionQueryRequest_Schema) MergeCompletionQueryRequestSchema1(v CompletionQueryRequestSchema1) error

MergeCompletionQueryRequestSchema1 performs a merge with any union data inside the CompletionQueryRequest_Schema, using the provided CompletionQueryRequestSchema1

func (*CompletionQueryRequest_Schema) UnmarshalJSON

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

type CompletionResponse

type CompletionResponse struct {
	Completion   CompletionResponse_Completion `json:"completion"`
	FinishReason *string                       `json:"finish_reason,omitempty"`
	Metadata     *map[string]interface{}       `json:"metadata,omitempty"`
	Sources      *[]ChunkSource                `json:"sources,omitempty"`
	Usage        map[string]int                `json:"usage"`
}

CompletionResponse Response from completion generation

type CompletionResponseCompletion0

type CompletionResponseCompletion0 = string

CompletionResponseCompletion0 defines model for CompletionResponse.Completion.0.

type CompletionResponse_Completion

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

CompletionResponse_Completion defines model for CompletionResponse.Completion.

func (CompletionResponse_Completion) AsCompletionResponseCompletion0

func (t CompletionResponse_Completion) AsCompletionResponseCompletion0() (CompletionResponseCompletion0, error)

AsCompletionResponseCompletion0 returns the union data inside the CompletionResponse_Completion as a CompletionResponseCompletion0

func (CompletionResponse_Completion) AsStructuredCompletion

func (t CompletionResponse_Completion) AsStructuredCompletion() (StructuredCompletion, error)

AsStructuredCompletion returns the union data inside the CompletionResponse_Completion as a StructuredCompletion

func (*CompletionResponse_Completion) FromCompletionResponseCompletion0

func (t *CompletionResponse_Completion) FromCompletionResponseCompletion0(v CompletionResponseCompletion0) error

FromCompletionResponseCompletion0 overwrites any union data inside the CompletionResponse_Completion as the provided CompletionResponseCompletion0

func (*CompletionResponse_Completion) FromStructuredCompletion

func (t *CompletionResponse_Completion) FromStructuredCompletion(v StructuredCompletion) error

FromStructuredCompletion overwrites any union data inside the CompletionResponse_Completion as the provided StructuredCompletion

func (CompletionResponse_Completion) MarshalJSON

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

func (*CompletionResponse_Completion) MergeCompletionResponseCompletion0

func (t *CompletionResponse_Completion) MergeCompletionResponseCompletion0(v CompletionResponseCompletion0) error

MergeCompletionResponseCompletion0 performs a merge with any union data inside the CompletionResponse_Completion, using the provided CompletionResponseCompletion0

func (*CompletionResponse_Completion) MergeStructuredCompletion

func (t *CompletionResponse_Completion) MergeStructuredCompletion(v StructuredCompletion) error

MergeStructuredCompletion performs a merge with any union data inside the CompletionResponse_Completion, using the provided StructuredCompletion

func (*CompletionResponse_Completion) UnmarshalJSON

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

type ConnectorAuthRequest

type ConnectorAuthRequest struct {
	ConnectorType string `json:"connector_type"`
}

ConnectorAuthRequest defines model for ConnectorAuthRequest.

type ConnectorAuthResponse

type ConnectorAuthResponse struct {
	AuthResponseData map[string]interface{} `json:"auth_response_data"`
	ConnectorType    string                 `json:"connector_type"`
}

ConnectorAuthResponse defines model for ConnectorAuthResponse.

type ConnectorAuthStatus

type ConnectorAuthStatus struct {
	AuthUrl         *string `json:"auth_url,omitempty"`
	IsAuthenticated bool    `json:"is_authenticated"`
	Message         *string `json:"message,omitempty"`
}

ConnectorAuthStatus defines model for ConnectorAuthStatus.

type ConnectorFile

type ConnectorFile struct {
	Id           string  `json:"id"`
	IsFolder     *bool   `json:"is_folder,omitempty"`
	MimeType     *string `json:"mime_type,omitempty"`
	ModifiedDate *string `json:"modified_date,omitempty"`
	Name         string  `json:"name"`
	Size         *int    `json:"size,omitempty"`
}

ConnectorFile defines model for ConnectorFile.

type ConnectorIngestRequest

type ConnectorIngestRequest struct {
	// FileId Identifier of the connector file being ingested.
	FileId string `json:"file_id"`

	// FolderName Optional Morphik folder name applied to the ingested document.
	FolderName *string `json:"folder_name,omitempty"`

	// Metadata Metadata attached to the document when ingesting from the connector.
	Metadata             *map[string]interface{} `json:"metadata,omitempty"`
	AdditionalProperties map[string]interface{}  `json:"-"`
}

ConnectorIngestRequest defines model for ConnectorIngestRequest.

func (ConnectorIngestRequest) Get

func (a ConnectorIngestRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ConnectorIngestRequest. Returns the specified element and whether it was found

func (ConnectorIngestRequest) MarshalJSON

func (a ConnectorIngestRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for ConnectorIngestRequest to handle AdditionalProperties

func (*ConnectorIngestRequest) Set

func (a *ConnectorIngestRequest) Set(fieldName string, value interface{})

Setter for additional properties for ConnectorIngestRequest

func (*ConnectorIngestRequest) UnmarshalJSON

func (a *ConnectorIngestRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for ConnectorIngestRequest to handle AdditionalProperties

type ConnectorListFilesRequest

type ConnectorListFilesRequest struct {
	ConnectorType string  `json:"connector_type"`
	PageToken     *string `json:"page_token,omitempty"`
	Path          *string `json:"path,omitempty"`
}

ConnectorListFilesRequest defines model for ConnectorListFilesRequest.

type ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams

type ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams struct {
	Code             *string `form:"code,omitempty" json:"code,omitempty"`
	State            *string `form:"state,omitempty" json:"state,omitempty"`
	Error            *string `form:"error,omitempty" json:"error,omitempty"`
	ErrorDescription *string `form:"error_description,omitempty" json:"error_description,omitempty"`
}

ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetParams defines parameters for ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGet.

type ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse

type ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse

func ParseConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse(rsp *http.Response) (*ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse, error)

ParseConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse parses an HTTP response from a ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetWithResponse call

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) GetBody

GetBody returns the raw response body bytes

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) Status

Status returns HTTPResponse.Status

func (ConnectorOauthCallbackEeConnectorsConnectorTypeOauth2callbackGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateFolderFoldersPostJSONRequestBody

type CreateFolderFoldersPostJSONRequestBody = FolderCreate

CreateFolderFoldersPostJSONRequestBody defines body for CreateFolderFoldersPost for application/json ContentType.

type CreateFolderFoldersPostParams

type CreateFolderFoldersPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

CreateFolderFoldersPostParams defines parameters for CreateFolderFoldersPost.

type CreateFolderFoldersPostResponse

type CreateFolderFoldersPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Folder
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateFolderFoldersPostResponse

func ParseCreateFolderFoldersPostResponse(rsp *http.Response) (*CreateFolderFoldersPostResponse, error)

ParseCreateFolderFoldersPostResponse parses an HTTP response from a CreateFolderFoldersPostWithResponse call

func (CreateFolderFoldersPostResponse) ContentType

func (r CreateFolderFoldersPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateFolderFoldersPostResponse) GetBody

func (r CreateFolderFoldersPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateFolderFoldersPostResponse) GetJSON200

func (r CreateFolderFoldersPostResponse) GetJSON200() *Folder

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateFolderFoldersPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateFolderFoldersPostResponse) Status

Status returns HTTPResponse.Status

func (CreateFolderFoldersPostResponse) StatusCode

func (r CreateFolderFoldersPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialField

type CredentialField struct {
	Description string                   `json:"description"`
	Label       string                   `json:"label"`
	Name        string                   `json:"name"`
	Options     *[]CredentialFieldOption `json:"options,omitempty"`
	Required    bool                     `json:"required"`
	Type        string                   `json:"type"`
}

CredentialField defines model for CredentialField.

type CredentialFieldOption

type CredentialFieldOption struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

CredentialFieldOption defines model for CredentialFieldOption.

type DeleteCloudAppAppsDeleteParams

type DeleteCloudAppAppsDeleteParams struct {
	// AppName Name of the application to delete
	AppName             string  `form:"app_name" json:"app_name"`
	Authorization       *string `json:"authorization,omitempty"`
	XMorphikAdminSecret *string `json:"X-Morphik-Admin-Secret,omitempty"`
}

DeleteCloudAppAppsDeleteParams defines parameters for DeleteCloudAppAppsDelete.

type DeleteCloudAppAppsDeleteResponse

type DeleteCloudAppAppsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteCloudAppAppsDeleteResponse

func ParseDeleteCloudAppAppsDeleteResponse(rsp *http.Response) (*DeleteCloudAppAppsDeleteResponse, error)

ParseDeleteCloudAppAppsDeleteResponse parses an HTTP response from a DeleteCloudAppAppsDeleteWithResponse call

func (DeleteCloudAppAppsDeleteResponse) ContentType

func (r DeleteCloudAppAppsDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteCloudAppAppsDeleteResponse) GetBody

func (r DeleteCloudAppAppsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteCloudAppAppsDeleteResponse) GetJSON200

func (r DeleteCloudAppAppsDeleteResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteCloudAppAppsDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteCloudAppAppsDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteCloudAppAppsDeleteResponse) StatusCode

func (r DeleteCloudAppAppsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDocumentDocumentsDocumentIdDeleteParams

type DeleteDocumentDocumentsDocumentIdDeleteParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

DeleteDocumentDocumentsDocumentIdDeleteParams defines parameters for DeleteDocumentDocumentsDocumentIdDelete.

type DeleteDocumentDocumentsDocumentIdDeleteResponse

type DeleteDocumentDocumentsDocumentIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentDeleteResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteDocumentDocumentsDocumentIdDeleteResponse

func ParseDeleteDocumentDocumentsDocumentIdDeleteResponse(rsp *http.Response) (*DeleteDocumentDocumentsDocumentIdDeleteResponse, error)

ParseDeleteDocumentDocumentsDocumentIdDeleteResponse parses an HTTP response from a DeleteDocumentDocumentsDocumentIdDeleteWithResponse call

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteDocumentDocumentsDocumentIdDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteDocumentV2V2DocumentsDocumentIdDeleteParams added in v0.2.0

type DeleteDocumentV2V2DocumentsDocumentIdDeleteParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

DeleteDocumentV2V2DocumentsDocumentIdDeleteParams defines parameters for DeleteDocumentV2V2DocumentsDocumentIdDelete.

type DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse added in v0.2.0

type DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentDeleteResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteDocumentV2V2DocumentsDocumentIdDeleteResponse added in v0.2.0

func ParseDeleteDocumentV2V2DocumentsDocumentIdDeleteResponse(rsp *http.Response) (*DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse, error)

ParseDeleteDocumentV2V2DocumentsDocumentIdDeleteResponse parses an HTTP response from a DeleteDocumentV2V2DocumentsDocumentIdDeleteWithResponse call

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) ContentType added in v0.2.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) GetBody added in v0.2.0

GetBody returns the raw response body bytes

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) GetJSON422 added in v0.2.0

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (DeleteDocumentV2V2DocumentsDocumentIdDeleteResponse) StatusCode added in v0.2.0

StatusCode returns HTTPResponse.StatusCode

type DeleteFolderFoldersFolderIdOrNameDeleteParams

type DeleteFolderFoldersFolderIdOrNameDeleteParams struct {
	Recursive     *bool   `form:"recursive,omitempty" json:"recursive,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

DeleteFolderFoldersFolderIdOrNameDeleteParams defines parameters for DeleteFolderFoldersFolderIdOrNameDelete.

type DeleteFolderFoldersFolderIdOrNameDeleteResponse

type DeleteFolderFoldersFolderIdOrNameDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FolderDeleteResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteFolderFoldersFolderIdOrNameDeleteResponse

func ParseDeleteFolderFoldersFolderIdOrNameDeleteResponse(rsp *http.Response) (*DeleteFolderFoldersFolderIdOrNameDeleteResponse, error)

ParseDeleteFolderFoldersFolderIdOrNameDeleteResponse parses an HTTP response from a DeleteFolderFoldersFolderIdOrNameDeleteWithResponse call

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteFolderFoldersFolderIdOrNameDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteModelModelsModelIdDeleteParams

type DeleteModelModelsModelIdDeleteParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

DeleteModelModelsModelIdDeleteParams defines parameters for DeleteModelModelsModelIdDelete.

type DeleteModelModelsModelIdDeleteResponse

type DeleteModelModelsModelIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]string
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteModelModelsModelIdDeleteResponse

func ParseDeleteModelModelsModelIdDeleteResponse(rsp *http.Response) (*DeleteModelModelsModelIdDeleteResponse, error)

ParseDeleteModelModelsModelIdDeleteResponse parses an HTTP response from a DeleteModelModelsModelIdDeleteWithResponse call

func (DeleteModelModelsModelIdDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteModelModelsModelIdDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteModelModelsModelIdDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteModelModelsModelIdDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteModelModelsModelIdDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteModelModelsModelIdDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DetailedHealthCheckResponse

type DetailedHealthCheckResponse struct {
	Services  []ServiceStatus `json:"services"`
	Status    string          `json:"status"`
	Timestamp string          `json:"timestamp"`
}

DetailedHealthCheckResponse Response for detailed health check endpoint

type DisconnectEeConnectorsDisconnectPostJSONRequestBody

type DisconnectEeConnectorsDisconnectPostJSONRequestBody = ConnectorAuthRequest

DisconnectEeConnectorsDisconnectPostJSONRequestBody defines body for DisconnectEeConnectorsDisconnectPost for application/json ContentType.

type DisconnectEeConnectorsDisconnectPostParams

type DisconnectEeConnectorsDisconnectPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

DisconnectEeConnectorsDisconnectPostParams defines parameters for DisconnectEeConnectorsDisconnectPost.

type DisconnectEeConnectorsDisconnectPostResponse

type DisconnectEeConnectorsDisconnectPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDisconnectEeConnectorsDisconnectPostResponse

func ParseDisconnectEeConnectorsDisconnectPostResponse(rsp *http.Response) (*DisconnectEeConnectorsDisconnectPostResponse, error)

ParseDisconnectEeConnectorsDisconnectPostResponse parses an HTTP response from a DisconnectEeConnectorsDisconnectPostWithResponse call

func (DisconnectEeConnectorsDisconnectPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DisconnectEeConnectorsDisconnectPostResponse) GetBody

GetBody returns the raw response body bytes

func (DisconnectEeConnectorsDisconnectPostResponse) GetJSON200

func (r DisconnectEeConnectorsDisconnectPostResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DisconnectEeConnectorsDisconnectPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DisconnectEeConnectorsDisconnectPostResponse) Status

Status returns HTTPResponse.Status

func (DisconnectEeConnectorsDisconnectPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Document

type Document struct {
	AdditionalMetadata *map[string]interface{} `json:"additional_metadata,omitempty"`
	AppId              *string                 `json:"app_id,omitempty"`
	ChunkIds           *[]string               `json:"chunk_ids,omitempty"`
	ContentType        string                  `json:"content_type"`
	EndUserId          *string                 `json:"end_user_id,omitempty"`
	ExternalId         *string                 `json:"external_id,omitempty"`
	Filename           *string                 `json:"filename,omitempty"`
	FolderId           *string                 `json:"folder_id,omitempty"`
	FolderName         *string                 `json:"folder_name,omitempty"`
	FolderPath         *string                 `json:"folder_path,omitempty"`
	Metadata           *map[string]interface{} `json:"metadata,omitempty"`
	MetadataTypes      *map[string]string      `json:"metadata_types,omitempty"`
	StorageInfo        *map[string]interface{} `json:"storage_info,omitempty"`
	SummaryBucket      *string                 `json:"summary_bucket,omitempty"`
	SummaryStorageKey  *string                 `json:"summary_storage_key,omitempty"`
	SummaryUpdatedAt   *string                 `json:"summary_updated_at,omitempty"`
	SummaryVersion     *int                    `json:"summary_version,omitempty"`
	SystemMetadata     *map[string]interface{} `json:"system_metadata,omitempty"`
}

Document Represents a document stored in the database documents collection

type DocumentAddToFolderResponse

type DocumentAddToFolderResponse struct {
	Message string `json:"message"`
	Status  string `json:"status"`
}

DocumentAddToFolderResponse Response for adding document to folder endpoint

type DocumentContent

type DocumentContent struct {
	// Filename Filename when type is url
	Filename *string             `json:"filename,omitempty"`
	Type     DocumentContentType `json:"type"`
	Value    string              `json:"value"`
}

DocumentContent Represents either a URL or content string

type DocumentContentType

type DocumentContentType string

DocumentContentType defines model for DocumentContent.Type.

const (
	DocumentContentTypeString DocumentContentType = "string"
	DocumentContentTypeUrl    DocumentContentType = "url"
)

Defines values for DocumentContentType.

func (DocumentContentType) Valid

func (e DocumentContentType) Valid() bool

Valid indicates whether the value is a known member of the DocumentContentType enum.

type DocumentDeleteResponse

type DocumentDeleteResponse struct {
	Message string `json:"message"`
	Status  string `json:"status"`
}

DocumentDeleteResponse Response for document deletion endpoint

type DocumentDownloadUrlResponse

type DocumentDownloadUrlResponse struct {
	DownloadUrl string `json:"download_url"`
	ExpiresIn   int    `json:"expires_in"`
}

DocumentDownloadUrlResponse Response for document download URL endpoint

type DocumentPagesRequest

type DocumentPagesRequest struct {
	// DocumentId ID of the document to extract pages from
	DocumentId string `json:"document_id"`

	// EndPage Ending page number (1-indexed)
	EndPage int `json:"end_page"`

	// OutputFormat How to return page images: base64 (default) or url
	OutputFormat *DocumentPagesRequestOutputFormat `json:"output_format,omitempty"`

	// StartPage Starting page number (1-indexed)
	StartPage int `json:"start_page"`
}

DocumentPagesRequest Request model for extracting pages from a document

type DocumentPagesRequestOutputFormat

type DocumentPagesRequestOutputFormat string

DocumentPagesRequestOutputFormat How to return page images: base64 (default) or url

const (
	DocumentPagesRequestOutputFormatBase64 DocumentPagesRequestOutputFormat = "base64"
	DocumentPagesRequestOutputFormatUrl    DocumentPagesRequestOutputFormat = "url"
)

Defines values for DocumentPagesRequestOutputFormat.

func (DocumentPagesRequestOutputFormat) Valid

Valid indicates whether the value is a known member of the DocumentPagesRequestOutputFormat enum.

type DocumentPagesResponse

type DocumentPagesResponse struct {
	DocumentId string   `json:"document_id"`
	EndPage    int      `json:"end_page"`
	Pages      []string `json:"pages"`
	StartPage  int      `json:"start_page"`
	TotalPages int      `json:"total_pages"`
}

DocumentPagesResponse Response for document pages extraction endpoint

type DocumentQueryResponse

type DocumentQueryResponse struct {
	// CombinedMetadata Metadata that would be used if ingestion is performed
	CombinedMetadata *map[string]interface{} `json:"combined_metadata,omitempty"`

	// ExtractedMetadata Structured output coerced to metadata when possible
	ExtractedMetadata *map[string]interface{} `json:"extracted_metadata,omitempty"`

	// IngestionDocument Queued document stub when ingestion_enqueued is true
	IngestionDocument *Document `json:"ingestion_document,omitempty"`

	// IngestionEnqueued True when the document was queued for ingestion after extraction
	IngestionEnqueued *bool `json:"ingestion_enqueued,omitempty"`

	// IngestionOptions Normalized options controlling post-analysis ingestion.
	IngestionOptions *IngestionOptions `json:"ingestion_options,omitempty"`

	// InputMetadata Original metadata supplied alongside the request
	InputMetadata *map[string]interface{} `json:"input_metadata,omitempty"`

	// StructuredOutput Raw structured output returned from Morphik On-the-Fly (may be list/dict)
	StructuredOutput interface{} `json:"structured_output,omitempty"`

	// TextOutput Raw text returned from Morphik On-the-Fly when no schema is provided
	TextOutput *string `json:"text_output,omitempty"`
}

DocumentQueryResponse Response model for document query with optional ingestion follow-up.

type DocumentResult

type DocumentResult struct {
	AdditionalMetadata map[string]interface{} `json:"additional_metadata"`

	// Content Represents either a URL or content string
	Content    DocumentContent        `json:"content"`
	DocumentId string                 `json:"document_id"`
	Metadata   map[string]interface{} `json:"metadata"`
	Score      float64                `json:"score"`
}

DocumentResult Query result at document level

type DownloadDocumentFileDocumentsDocumentIdFileGetParams

type DownloadDocumentFileDocumentsDocumentIdFileGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

DownloadDocumentFileDocumentsDocumentIdFileGetParams defines parameters for DownloadDocumentFileDocumentsDocumentIdFileGet.

type DownloadDocumentFileDocumentsDocumentIdFileGetResponse

type DownloadDocumentFileDocumentsDocumentIdFileGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDownloadDocumentFileDocumentsDocumentIdFileGetResponse

func ParseDownloadDocumentFileDocumentsDocumentIdFileGetResponse(rsp *http.Response) (*DownloadDocumentFileDocumentsDocumentIdFileGetResponse, error)

ParseDownloadDocumentFileDocumentsDocumentIdFileGetResponse parses an HTTP response from a DownloadDocumentFileDocumentsDocumentIdFileGetWithResponse call

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) GetBody

GetBody returns the raw response body bytes

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) GetJSON200

func (r DownloadDocumentFileDocumentsDocumentIdFileGetResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) Status

Status returns HTTPResponse.Status

func (DownloadDocumentFileDocumentsDocumentIdFileGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type EntityExtractionExample

type EntityExtractionExample struct {
	// Label The entity label (e.g., 'John Doe', 'Apple Inc.')
	Label string `json:"label"`

	// Properties Optional properties of the entity (e.g., {'role': 'CEO', 'age': 42})
	Properties *map[string]interface{} `json:"properties,omitempty"`

	// Type The entity type (e.g., 'PERSON', 'ORGANIZATION', 'PRODUCT')
	Type string `json:"type"`
}

EntityExtractionExample Example entity for guiding entity extraction.

Used to provide domain-specific examples to the LLM of what entities to extract. These examples help steer the extraction process toward entities relevant to your domain.

type EntityExtractionPromptOverride

type EntityExtractionPromptOverride struct {
	// Examples Examples of entities to extract, used to guide the LLM toward domain-specific entity types and patterns.
	Examples *[]EntityExtractionExample `json:"examples,omitempty"`

	// PromptTemplate Custom prompt template, MUST include both {content} and {examples} placeholders. The {content} placeholder will be replaced with the text to analyze, and {examples} will be replaced with formatted examples.
	PromptTemplate *string `json:"prompt_template,omitempty"`
}

EntityExtractionPromptOverride Configuration for customizing entity extraction prompts.

This allows you to override both the prompt template used for entity extraction and provide domain-specific examples of entities to be extracted.

If only examples are provided (without a prompt_template), they will be incorporated into the default prompt. If only prompt_template is provided, it will be used with default examples (if any).

Required placeholders: - {content}: Will be replaced with the text to analyze for entity extraction - {examples}: Will be replaced with formatted examples of entities to extract

Example prompt template: ``` Extract entities from the following text. Look for entities similar to these examples:

{examples}

Text to analyze: {content}

Extracted entities (in JSON format): ```

type EntityResolutionExample

type EntityResolutionExample struct {
	// Canonical The canonical (standard/preferred) form of the entity
	Canonical string `json:"canonical"`

	// Variants List of variant forms that should resolve to the canonical form
	Variants []string `json:"variants"`
}

EntityResolutionExample Example for entity resolution, showing how variants should be grouped.

Entity resolution is the process of identifying when different references (variants) in text refer to the same real-world entity. These examples help the LLM understand domain-specific patterns for resolving entities.

type EntityResolutionPromptOverride

type EntityResolutionPromptOverride struct {
	// Examples Examples of entity resolution groups showing how variants of the same entity should be resolved to their canonical forms. This is particularly useful for domain-specific terminology, abbreviations, and naming conventions.
	Examples *[]EntityResolutionExample `json:"examples,omitempty"`

	// PromptTemplate Custom prompt template that MUST include both {entities_str} and {examples_json} placeholders. The {entities_str} placeholder will be replaced with the extracted entities, and {examples_json} will be replaced with JSON-formatted examples of entity resolution groups.
	PromptTemplate *string `json:"prompt_template,omitempty"`
}

EntityResolutionPromptOverride Configuration for customizing entity resolution prompts.

Entity resolution identifies and groups variant forms of the same entity. This override allows you to customize how this process works by providing a custom prompt template and/or domain-specific examples.

If only examples are provided (without a prompt_template), they will be incorporated into the default prompt. If only prompt_template is provided, it will be used with default examples (if any).

Required placeholders: - {entities_str}: Will be replaced with the extracted entities - {examples_json}: Will be replaced with JSON-formatted examples of entity resolution groups

Example prompt template: ``` I have extracted the following entities:

{entities_str}

Below are examples of how different entity references can be grouped together:

{examples_json}

Group the above entities by resolving which mentions refer to the same entity. Return the results in JSON format. ```

type ExtractDocumentPagesDocumentsPagesPostJSONRequestBody

type ExtractDocumentPagesDocumentsPagesPostJSONRequestBody = DocumentPagesRequest

ExtractDocumentPagesDocumentsPagesPostJSONRequestBody defines body for ExtractDocumentPagesDocumentsPagesPost for application/json ContentType.

type ExtractDocumentPagesDocumentsPagesPostParams

type ExtractDocumentPagesDocumentsPagesPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ExtractDocumentPagesDocumentsPagesPostParams defines parameters for ExtractDocumentPagesDocumentsPagesPost.

type ExtractDocumentPagesDocumentsPagesPostResponse

type ExtractDocumentPagesDocumentsPagesPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentPagesResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseExtractDocumentPagesDocumentsPagesPostResponse

func ParseExtractDocumentPagesDocumentsPagesPostResponse(rsp *http.Response) (*ExtractDocumentPagesDocumentsPagesPostResponse, error)

ParseExtractDocumentPagesDocumentsPagesPostResponse parses an HTTP response from a ExtractDocumentPagesDocumentsPagesPostWithResponse call

func (ExtractDocumentPagesDocumentsPagesPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ExtractDocumentPagesDocumentsPagesPostResponse) GetBody

GetBody returns the raw response body bytes

func (ExtractDocumentPagesDocumentsPagesPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ExtractDocumentPagesDocumentsPagesPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ExtractDocumentPagesDocumentsPagesPostResponse) Status

Status returns HTTPResponse.Status

func (ExtractDocumentPagesDocumentsPagesPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type FileListResponse

type FileListResponse struct {
	Files         []ConnectorFile `json:"files"`
	NextPageToken *string         `json:"next_page_token,omitempty"`
}

FileListResponse defines model for FileListResponse.

type FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody

type FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody = ConnectorAuthResponse

FinalizeAuthEeConnectorsFinalizeAuthPostJSONRequestBody defines body for FinalizeAuthEeConnectorsFinalizeAuthPost for application/json ContentType.

type FinalizeAuthEeConnectorsFinalizeAuthPostParams

type FinalizeAuthEeConnectorsFinalizeAuthPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

FinalizeAuthEeConnectorsFinalizeAuthPostParams defines parameters for FinalizeAuthEeConnectorsFinalizeAuthPost.

type FinalizeAuthEeConnectorsFinalizeAuthPostResponse

type FinalizeAuthEeConnectorsFinalizeAuthPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFinalizeAuthEeConnectorsFinalizeAuthPostResponse

func ParseFinalizeAuthEeConnectorsFinalizeAuthPostResponse(rsp *http.Response) (*FinalizeAuthEeConnectorsFinalizeAuthPostResponse, error)

ParseFinalizeAuthEeConnectorsFinalizeAuthPostResponse parses an HTTP response from a FinalizeAuthEeConnectorsFinalizeAuthPostWithResponse call

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) GetBody

GetBody returns the raw response body bytes

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) GetJSON200

func (r FinalizeAuthEeConnectorsFinalizeAuthPostResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) Status

Status returns HTTPResponse.Status

func (FinalizeAuthEeConnectorsFinalizeAuthPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody = ManualCredentialsRequest

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostJSONRequestBody defines body for FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost for application/json ContentType.

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostParams defines parameters for FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePost.

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse

type FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse

func ParseFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse(rsp *http.Response) (*FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse, error)

ParseFinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse parses an HTTP response from a FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostWithResponse call

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) GetBody

GetBody returns the raw response body bytes

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) Status

Status returns HTTPResponse.Status

func (FinalizeManualAuthEeConnectorsConnectorTypeAuthFinalizePostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Folder

type Folder struct {
	AppId             *string                 `json:"app_id,omitempty"`
	ChildCount        *int                    `json:"child_count,omitempty"`
	Depth             *int                    `json:"depth,omitempty"`
	Description       *string                 `json:"description,omitempty"`
	DocumentIds       *[]string               `json:"document_ids,omitempty"`
	EndUserId         *string                 `json:"end_user_id,omitempty"`
	FullPath          *string                 `json:"full_path,omitempty"`
	Id                *string                 `json:"id,omitempty"`
	Name              string                  `json:"name"`
	ParentId          *string                 `json:"parent_id,omitempty"`
	SummaryBucket     *string                 `json:"summary_bucket,omitempty"`
	SummaryStorageKey *string                 `json:"summary_storage_key,omitempty"`
	SummaryUpdatedAt  *string                 `json:"summary_updated_at,omitempty"`
	SummaryVersion    *int                    `json:"summary_version,omitempty"`
	SystemMetadata    *map[string]interface{} `json:"system_metadata,omitempty"`
}

Folder Represents a folder that contains documents

type FolderCount

type FolderCount struct {
	Count  int     `json:"count"`
	Folder *string `json:"folder"`
}

FolderCount Count of documents grouped by folder name.

type FolderCreate

type FolderCreate struct {
	Description *string `json:"description,omitempty"`
	FullPath    *string `json:"full_path,omitempty"`
	Name        string  `json:"name"`
	ParentId    *string `json:"parent_id,omitempty"`
}

FolderCreate Request model for folder creation

type FolderDeleteResponse

type FolderDeleteResponse struct {
	Message string `json:"message"`
	Status  string `json:"status"`
}

FolderDeleteResponse Response for folder deletion endpoint

type FolderDetails

type FolderDetails struct {
	DocumentInfo *FolderDocumentInfo `json:"document_info,omitempty"`

	// Folder Represents a folder that contains documents
	Folder Folder `json:"folder"`
}

FolderDetails Folder details with optional document summary.

type FolderDetailsFoldersDetailsPostJSONRequestBody

type FolderDetailsFoldersDetailsPostJSONRequestBody = FolderDetailsRequest

FolderDetailsFoldersDetailsPostJSONRequestBody defines body for FolderDetailsFoldersDetailsPost for application/json ContentType.

type FolderDetailsFoldersDetailsPostParams

type FolderDetailsFoldersDetailsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

FolderDetailsFoldersDetailsPostParams defines parameters for FolderDetailsFoldersDetailsPost.

type FolderDetailsFoldersDetailsPostResponse

type FolderDetailsFoldersDetailsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FolderDetailsResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFolderDetailsFoldersDetailsPostResponse

func ParseFolderDetailsFoldersDetailsPostResponse(rsp *http.Response) (*FolderDetailsFoldersDetailsPostResponse, error)

ParseFolderDetailsFoldersDetailsPostResponse parses an HTTP response from a FolderDetailsFoldersDetailsPostWithResponse call

func (FolderDetailsFoldersDetailsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FolderDetailsFoldersDetailsPostResponse) GetBody

GetBody returns the raw response body bytes

func (FolderDetailsFoldersDetailsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FolderDetailsFoldersDetailsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FolderDetailsFoldersDetailsPostResponse) Status

Status returns HTTPResponse.Status

func (FolderDetailsFoldersDetailsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type FolderDetailsRequest

type FolderDetailsRequest struct {
	// DocumentFields Optional list of fields to project for folder documents (dot notation supported)
	DocumentFields *[]string `json:"document_fields,omitempty"`

	// DocumentFilters Optional metadata filters applied when computing folder document statistics
	DocumentFilters *map[string]interface{} `json:"document_filters,omitempty"`

	// DocumentLimit Maximum number of documents to return per folder when include_documents is true
	DocumentLimit *int `json:"document_limit,omitempty"`

	// DocumentSkip Number of documents to skip within each folder when include_documents is true
	DocumentSkip *int `json:"document_skip,omitempty"`

	// Identifiers List of folder IDs or names. If omitted, returns details for all accessible folders.
	Identifiers *[]string `json:"identifiers,omitempty"`

	// IncludeDocumentCount Include total document count when true
	IncludeDocumentCount *bool `json:"include_document_count,omitempty"`

	// IncludeDocuments Include a paginated list of documents for each folder when true
	IncludeDocuments *bool `json:"include_documents,omitempty"`

	// IncludeStatusCounts Include document counts grouped by status when true
	IncludeStatusCounts *bool `json:"include_status_counts,omitempty"`

	// SortBy Field to sort folder documents by when include_documents is true
	SortBy *FolderDetailsRequestSortBy `json:"sort_by,omitempty"`

	// SortDirection Sort direction for folder documents when include_documents is true
	SortDirection *FolderDetailsRequestSortDirection `json:"sort_direction,omitempty"`
}

FolderDetailsRequest Request model for retrieving folder details with document statistics.

type FolderDetailsRequestSortBy

type FolderDetailsRequestSortBy string

FolderDetailsRequestSortBy Field to sort folder documents by when include_documents is true

const (
	FolderDetailsRequestSortByCreatedAt  FolderDetailsRequestSortBy = "created_at"
	FolderDetailsRequestSortByExternalId FolderDetailsRequestSortBy = "external_id"
	FolderDetailsRequestSortByFilename   FolderDetailsRequestSortBy = "filename"
	FolderDetailsRequestSortByUpdatedAt  FolderDetailsRequestSortBy = "updated_at"
)

Defines values for FolderDetailsRequestSortBy.

func (FolderDetailsRequestSortBy) Valid

func (e FolderDetailsRequestSortBy) Valid() bool

Valid indicates whether the value is a known member of the FolderDetailsRequestSortBy enum.

type FolderDetailsRequestSortDirection

type FolderDetailsRequestSortDirection string

FolderDetailsRequestSortDirection Sort direction for folder documents when include_documents is true

const (
	FolderDetailsRequestSortDirectionAsc  FolderDetailsRequestSortDirection = "asc"
	FolderDetailsRequestSortDirectionDesc FolderDetailsRequestSortDirection = "desc"
)

Defines values for FolderDetailsRequestSortDirection.

func (FolderDetailsRequestSortDirection) Valid

Valid indicates whether the value is a known member of the FolderDetailsRequestSortDirection enum.

type FolderDetailsResponse

type FolderDetailsResponse struct {
	Folders []FolderDetails `json:"folders"`
}

FolderDetailsResponse Response wrapping folder detail entries.

type FolderDocumentInfo

type FolderDocumentInfo struct {
	DocumentCount *int            `json:"document_count,omitempty"`
	Documents     *[]interface{}  `json:"documents,omitempty"`
	HasMore       *bool           `json:"has_more,omitempty"`
	Limit         *int            `json:"limit,omitempty"`
	NextSkip      *int            `json:"next_skip,omitempty"`
	ReturnedCount *int            `json:"returned_count,omitempty"`
	Skip          *int            `json:"skip,omitempty"`
	StatusCounts  *map[string]int `json:"status_counts,omitempty"`
}

FolderDocumentInfo Document summary for a folder.

type FolderMove added in v0.2.0

type FolderMove struct {
	// NewPath The new full path for the folder (e.g. '/NewParent/NewName')
	NewPath string `json:"new_path"`
}

FolderMove Request model for moving/renaming a folder via a new path.

type FolderSummary

type FolderSummary struct {
	Depth       *int    `json:"depth,omitempty"`
	Description *string `json:"description,omitempty"`
	DocCount    *int    `json:"doc_count,omitempty"`
	FullPath    *string `json:"full_path,omitempty"`
	Id          string  `json:"id"`
	Name        string  `json:"name"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

FolderSummary defines model for FolderSummary.

type GenerateCloudUriCloudGenerateUriPostJSONRequestBody

type GenerateCloudUriCloudGenerateUriPostJSONRequestBody = GenerateUriRequest

GenerateCloudUriCloudGenerateUriPostJSONRequestBody defines body for GenerateCloudUriCloudGenerateUriPost for application/json ContentType.

type GenerateCloudUriCloudGenerateUriPostParams

type GenerateCloudUriCloudGenerateUriPostParams struct {
	Authorization       *string `json:"authorization,omitempty"`
	XMorphikAdminSecret *string `json:"X-Morphik-Admin-Secret,omitempty"`
}

GenerateCloudUriCloudGenerateUriPostParams defines parameters for GenerateCloudUriCloudGenerateUriPost.

type GenerateCloudUriCloudGenerateUriPostResponse

type GenerateCloudUriCloudGenerateUriPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]string
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateCloudUriCloudGenerateUriPostResponse

func ParseGenerateCloudUriCloudGenerateUriPostResponse(rsp *http.Response) (*GenerateCloudUriCloudGenerateUriPostResponse, error)

ParseGenerateCloudUriCloudGenerateUriPostResponse parses an HTTP response from a GenerateCloudUriCloudGenerateUriPostWithResponse call

func (GenerateCloudUriCloudGenerateUriPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateCloudUriCloudGenerateUriPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateCloudUriCloudGenerateUriPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateCloudUriCloudGenerateUriPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateCloudUriCloudGenerateUriPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateCloudUriCloudGenerateUriPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateUriRequest

type GenerateUriRequest struct {
	// AppId Optional client-generated app ID (UUID recommended). If omitted, the server generates one.
	AppId *string `json:"app_id,omitempty"`

	// CreatedByUserId ID of the admin or service user that initiated the request
	CreatedByUserId *string `json:"created_by_user_id,omitempty"`

	// ExpiryDays Number of days until the token expires (default: 15 years)
	ExpiryDays *int `json:"expiry_days,omitempty"`

	// Name Name of the application
	Name string `json:"name"`

	// OrgId Optional organization identifier for multi-tenant control planes
	OrgId *string `json:"org_id,omitempty"`

	// UserId Optional owner user ID. If omitted, derived from the bearer token.
	UserId *string `json:"user_id,omitempty"`
}

GenerateUriRequest Request model for generating a cloud URI

type GetAppStorageUsageUsageAppStorageGetParams

type GetAppStorageUsageUsageAppStorageGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetAppStorageUsageUsageAppStorageGetParams defines parameters for GetAppStorageUsageUsageAppStorageGet.

type GetAppStorageUsageUsageAppStorageGetResponse

type GetAppStorageUsageUsageAppStorageGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AppStorageUsageResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetAppStorageUsageUsageAppStorageGetResponse

func ParseGetAppStorageUsageUsageAppStorageGetResponse(rsp *http.Response) (*GetAppStorageUsageUsageAppStorageGetResponse, error)

ParseGetAppStorageUsageUsageAppStorageGetResponse parses an HTTP response from a GetAppStorageUsageUsageAppStorageGetWithResponse call

func (GetAppStorageUsageUsageAppStorageGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAppStorageUsageUsageAppStorageGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetAppStorageUsageUsageAppStorageGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAppStorageUsageUsageAppStorageGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetAppStorageUsageUsageAppStorageGetResponse) Status

Status returns HTTPResponse.Status

func (GetAppStorageUsageUsageAppStorageGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams

type GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetParams defines parameters for GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGet.

type GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse

type GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectorAuthStatus
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse

func ParseGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse(rsp *http.Response) (*GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse, error)

ParseGetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse parses an HTTP response from a GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetWithResponse call

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) Status

Status returns HTTPResponse.Status

func (GetAuthStatusForConnectorEeConnectorsConnectorTypeAuthStatusGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAvailableModelsForSelectionModelsAvailableGetParams

type GetAvailableModelsForSelectionModelsAvailableGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetAvailableModelsForSelectionModelsAvailableGetParams defines parameters for GetAvailableModelsForSelectionModelsAvailableGet.

type GetAvailableModelsForSelectionModelsAvailableGetResponse

type GetAvailableModelsForSelectionModelsAvailableGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetAvailableModelsForSelectionModelsAvailableGetResponse

func ParseGetAvailableModelsForSelectionModelsAvailableGetResponse(rsp *http.Response) (*GetAvailableModelsForSelectionModelsAvailableGetResponse, error)

ParseGetAvailableModelsForSelectionModelsAvailableGetResponse parses an HTTP response from a GetAvailableModelsForSelectionModelsAvailableGetWithResponse call

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) Status

Status returns HTTPResponse.Status

func (GetAvailableModelsForSelectionModelsAvailableGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAvailableModelsModelsGetParams

type GetAvailableModelsModelsGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetAvailableModelsModelsGetParams defines parameters for GetAvailableModelsModelsGet.

type GetAvailableModelsModelsGetResponse

type GetAvailableModelsModelsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ModelsResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetAvailableModelsModelsGetResponse

func ParseGetAvailableModelsModelsGetResponse(rsp *http.Response) (*GetAvailableModelsModelsGetResponse, error)

ParseGetAvailableModelsModelsGetResponse parses an HTTP response from a GetAvailableModelsModelsGetWithResponse call

func (GetAvailableModelsModelsGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAvailableModelsModelsGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetAvailableModelsModelsGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAvailableModelsModelsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetAvailableModelsModelsGetResponse) Status

Status returns HTTPResponse.Status

func (GetAvailableModelsModelsGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetChatHistoryChatChatIdGetParams

type GetChatHistoryChatChatIdGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetChatHistoryChatChatIdGetParams defines parameters for GetChatHistoryChatChatIdGet.

type GetChatHistoryChatChatIdGetResponse

type GetChatHistoryChatChatIdGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ChatMessage
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetChatHistoryChatChatIdGetResponse

func ParseGetChatHistoryChatChatIdGetResponse(rsp *http.Response) (*GetChatHistoryChatChatIdGetResponse, error)

ParseGetChatHistoryChatChatIdGetResponse parses an HTTP response from a GetChatHistoryChatChatIdGetWithResponse call

func (GetChatHistoryChatChatIdGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetChatHistoryChatChatIdGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetChatHistoryChatChatIdGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetChatHistoryChatChatIdGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetChatHistoryChatChatIdGetResponse) Status

Status returns HTTPResponse.Status

func (GetChatHistoryChatChatIdGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDocumentByFilenameDocumentsFilenameFilenameGetParams

type GetDocumentByFilenameDocumentsFilenameFilenameGetParams struct {
	FolderName *struct {
		// contains filtered or unexported fields
	} `form:"folder_name,omitempty" json:"folder_name,omitempty"`

	// FolderDepth Folder scope depth: 0/None = exact, -1 = all descendants, n > 0 = include descendants up to n levels.
	FolderDepth   *int    `form:"folder_depth,omitempty" json:"folder_depth,omitempty"`
	EndUserId     *string `form:"end_user_id,omitempty" json:"end_user_id,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

GetDocumentByFilenameDocumentsFilenameFilenameGetParams defines parameters for GetDocumentByFilenameDocumentsFilenameFilenameGet.

type GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName0

type GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName0 = string

GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName0 defines parameters for GetDocumentByFilenameDocumentsFilenameFilenameGet.

type GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName1

type GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName1 = []string

GetDocumentByFilenameDocumentsFilenameFilenameGetParamsFolderName1 defines parameters for GetDocumentByFilenameDocumentsFilenameFilenameGet.

type GetDocumentByFilenameDocumentsFilenameFilenameGetResponse

type GetDocumentByFilenameDocumentsFilenameFilenameGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetDocumentByFilenameDocumentsFilenameFilenameGetResponse

func ParseGetDocumentByFilenameDocumentsFilenameFilenameGetResponse(rsp *http.Response) (*GetDocumentByFilenameDocumentsFilenameFilenameGetResponse, error)

ParseGetDocumentByFilenameDocumentsFilenameFilenameGetResponse parses an HTTP response from a GetDocumentByFilenameDocumentsFilenameFilenameGetWithResponse call

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) Status

Status returns HTTPResponse.Status

func (GetDocumentByFilenameDocumentsFilenameFilenameGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDocumentDocumentsDocumentIdGetParams

type GetDocumentDocumentsDocumentIdGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetDocumentDocumentsDocumentIdGetParams defines parameters for GetDocumentDocumentsDocumentIdGet.

type GetDocumentDocumentsDocumentIdGetResponse

type GetDocumentDocumentsDocumentIdGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetDocumentDocumentsDocumentIdGetResponse

func ParseGetDocumentDocumentsDocumentIdGetResponse(rsp *http.Response) (*GetDocumentDocumentsDocumentIdGetResponse, error)

ParseGetDocumentDocumentsDocumentIdGetResponse parses an HTTP response from a GetDocumentDocumentsDocumentIdGetWithResponse call

func (GetDocumentDocumentsDocumentIdGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDocumentDocumentsDocumentIdGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetDocumentDocumentsDocumentIdGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDocumentDocumentsDocumentIdGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetDocumentDocumentsDocumentIdGetResponse) Status

Status returns HTTPResponse.Status

func (GetDocumentDocumentsDocumentIdGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams

type GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams struct {
	// ExpiresIn URL expiration time in seconds
	ExpiresIn     *int    `form:"expires_in,omitempty" json:"expires_in,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetParams defines parameters for GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGet.

type GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse

type GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentDownloadUrlResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse

func ParseGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse(rsp *http.Response) (*GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse, error)

ParseGetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse parses an HTTP response from a GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetWithResponse call

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) Status

Status returns HTTPResponse.Status

func (GetDocumentDownloadUrlDocumentsDocumentIdDownloadUrlGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDocumentStatusDocumentsDocumentIdStatusGetParams

type GetDocumentStatusDocumentsDocumentIdStatusGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetDocumentStatusDocumentsDocumentIdStatusGetParams defines parameters for GetDocumentStatusDocumentsDocumentIdStatusGet.

type GetDocumentStatusDocumentsDocumentIdStatusGetResponse

type GetDocumentStatusDocumentsDocumentIdStatusGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetDocumentStatusDocumentsDocumentIdStatusGetResponse

func ParseGetDocumentStatusDocumentsDocumentIdStatusGetResponse(rsp *http.Response) (*GetDocumentStatusDocumentsDocumentIdStatusGetResponse, error)

ParseGetDocumentStatusDocumentsDocumentIdStatusGetResponse parses an HTTP response from a GetDocumentStatusDocumentsDocumentIdStatusGetWithResponse call

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) GetJSON200

func (r GetDocumentStatusDocumentsDocumentIdStatusGetResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) Status

Status returns HTTPResponse.Status

func (GetDocumentStatusDocumentsDocumentIdStatusGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDocumentSummaryDocumentsDocumentIdSummaryGetParams

type GetDocumentSummaryDocumentsDocumentIdSummaryGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetDocumentSummaryDocumentsDocumentIdSummaryGetParams defines parameters for GetDocumentSummaryDocumentsDocumentIdSummaryGet.

type GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse

type GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SummaryResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetDocumentSummaryDocumentsDocumentIdSummaryGetResponse

func ParseGetDocumentSummaryDocumentsDocumentIdSummaryGetResponse(rsp *http.Response) (*GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse, error)

ParseGetDocumentSummaryDocumentsDocumentIdSummaryGetResponse parses an HTTP response from a GetDocumentSummaryDocumentsDocumentIdSummaryGetWithResponse call

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) Status

Status returns HTTPResponse.Status

func (GetDocumentSummaryDocumentsDocumentIdSummaryGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetFolderFoldersFolderIdOrNameGetParams

type GetFolderFoldersFolderIdOrNameGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetFolderFoldersFolderIdOrNameGetParams defines parameters for GetFolderFoldersFolderIdOrNameGet.

type GetFolderFoldersFolderIdOrNameGetResponse

type GetFolderFoldersFolderIdOrNameGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Folder
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetFolderFoldersFolderIdOrNameGetResponse

func ParseGetFolderFoldersFolderIdOrNameGetResponse(rsp *http.Response) (*GetFolderFoldersFolderIdOrNameGetResponse, error)

ParseGetFolderFoldersFolderIdOrNameGetResponse parses an HTTP response from a GetFolderFoldersFolderIdOrNameGetWithResponse call

func (GetFolderFoldersFolderIdOrNameGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetFolderFoldersFolderIdOrNameGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetFolderFoldersFolderIdOrNameGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetFolderFoldersFolderIdOrNameGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetFolderFoldersFolderIdOrNameGetResponse) Status

Status returns HTTPResponse.Status

func (GetFolderFoldersFolderIdOrNameGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams

type GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetFolderSummaryFoldersFolderIdOrNameSummaryGetParams defines parameters for GetFolderSummaryFoldersFolderIdOrNameSummaryGet.

type GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse

type GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SummaryResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse

func ParseGetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse(rsp *http.Response) (*GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse, error)

ParseGetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse parses an HTTP response from a GetFolderSummaryFoldersFolderIdOrNameSummaryGetWithResponse call

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) Status

Status returns HTTPResponse.Status

func (GetFolderSummaryFoldersFolderIdOrNameSummaryGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody

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

GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody defines parameters for GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet.

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) AsManualCredentialsAuthResponse

AsManualCredentialsAuthResponse returns the union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody as a ManualCredentialsAuthResponse

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) AsOAuthAuthResponse

AsOAuthAuthResponse returns the union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody as a OAuthAuthResponse

func (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) FromManualCredentialsAuthResponse

FromManualCredentialsAuthResponse overwrites any union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody as the provided ManualCredentialsAuthResponse

func (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) FromOAuthAuthResponse

FromOAuthAuthResponse overwrites any union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody as the provided OAuthAuthResponse

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) MarshalJSON

func (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) MergeManualCredentialsAuthResponse

MergeManualCredentialsAuthResponse performs a merge with any union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody, using the provided ManualCredentialsAuthResponse

func (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) MergeOAuthAuthResponse

MergeOAuthAuthResponse performs a merge with any union data inside the GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody, using the provided OAuthAuthResponse

func (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody) UnmarshalJSON

type GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams

type GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams struct {
	AppRedirectUri *string `form:"app_redirect_uri,omitempty" json:"app_redirect_uri,omitempty"`
	Authorization  *string `json:"authorization,omitempty"`
}

GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetParams defines parameters for GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet.

type GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse

type GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGet200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse

func ParseGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse(rsp *http.Response) (*GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse, error)

ParseGetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse parses an HTTP response from a GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetWithResponse call

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) Status

Status returns HTTPResponse.Status

func (GetInitiateAuthUrlEeConnectorsConnectorTypeAuthInitiateUrlGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetLogsLogsGetParams

type GetLogsLogsGetParams struct {
	Limit         *int     `form:"limit,omitempty" json:"limit,omitempty"`
	Hours         *float64 `form:"hours,omitempty" json:"hours,omitempty"`
	OpType        *string  `form:"op_type,omitempty" json:"op_type,omitempty"`
	Status        *string  `form:"status,omitempty" json:"status,omitempty"`
	Authorization *string  `json:"authorization,omitempty"`
}

GetLogsLogsGetParams defines parameters for GetLogsLogsGet.

type GetLogsLogsGetResponse

type GetLogsLogsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]LogResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetLogsLogsGetResponse

func ParseGetLogsLogsGetResponse(rsp *http.Response) (*GetLogsLogsGetResponse, error)

ParseGetLogsLogsGetResponse parses an HTTP response from a GetLogsLogsGetWithResponse call

func (GetLogsLogsGetResponse) ContentType

func (r GetLogsLogsGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetLogsLogsGetResponse) GetBody

func (r GetLogsLogsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetLogsLogsGetResponse) GetJSON200

func (r GetLogsLogsGetResponse) GetJSON200() *[]LogResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetLogsLogsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetLogsLogsGetResponse) Status

func (r GetLogsLogsGetResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsLogsGetResponse) StatusCode

func (r GetLogsLogsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusEeConnectorsStatusPostJSONRequestBody

type GetStatusEeConnectorsStatusPostJSONRequestBody = ConnectorAuthRequest

GetStatusEeConnectorsStatusPostJSONRequestBody defines body for GetStatusEeConnectorsStatusPost for application/json ContentType.

type GetStatusEeConnectorsStatusPostParams

type GetStatusEeConnectorsStatusPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

GetStatusEeConnectorsStatusPostParams defines parameters for GetStatusEeConnectorsStatusPost.

type GetStatusEeConnectorsStatusPostResponse

type GetStatusEeConnectorsStatusPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetStatusEeConnectorsStatusPostResponse

func ParseGetStatusEeConnectorsStatusPostResponse(rsp *http.Response) (*GetStatusEeConnectorsStatusPostResponse, error)

ParseGetStatusEeConnectorsStatusPostResponse parses an HTTP response from a GetStatusEeConnectorsStatusPostWithResponse call

func (GetStatusEeConnectorsStatusPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStatusEeConnectorsStatusPostResponse) GetBody

GetBody returns the raw response body bytes

func (GetStatusEeConnectorsStatusPostResponse) GetJSON200

func (r GetStatusEeConnectorsStatusPostResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetStatusEeConnectorsStatusPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetStatusEeConnectorsStatusPostResponse) Status

Status returns HTTPResponse.Status

func (GetStatusEeConnectorsStatusPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GitHubRepositoryIngestRequest

type GitHubRepositoryIngestRequest struct {
	// Compress When true, package repository files before uploading to Morphik.
	Compress      *bool   `json:"compress,omitempty"`
	ConnectorType *string `json:"connector_type,omitempty"`

	// FolderName Optional Morphik folder for the ingested repository documents.
	FolderName *string `json:"folder_name,omitempty"`

	// Force Re-ingest the repository even if it was previously processed.
	Force *bool `json:"force,omitempty"`

	// IgnorePatterns Optional glob patterns for files that should be skipped.
	IgnorePatterns *[]string `json:"ignore_patterns,omitempty"`

	// IncludePatterns Optional glob patterns restricting which files are ingested.
	IncludePatterns *[]string `json:"include_patterns,omitempty"`

	// Metadata Metadata applied to each document created from the repository.
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// RepoPath Repository path in the format "owner/repo".
	RepoPath string `json:"repo_path"`
}

GitHubRepositoryIngestRequest defines model for GitHubRepositoryIngestRequest.

type GroupedChunkResponse

type GroupedChunkResponse struct {
	// Chunks Flat list of all chunks (for backward compatibility)
	Chunks []ChunkResult `json:"chunks"`

	// Groups Grouped chunks for UI display
	Groups []ChunkGroup `json:"groups"`

	// HasPadding Whether padding was applied to any results
	HasPadding bool `json:"has_padding"`

	// TotalResults Total number of unique chunks
	TotalResults int `json:"total_results"`
}

GroupedChunkResponse Response that includes both flat results and grouped results for UI

type HTTPValidationError

type HTTPValidationError struct {
	Detail *[]ValidationError `json:"detail,omitempty"`
}

HTTPValidationError defines model for HTTPValidationError.

type HealthCheckHealthGetResponse

type HealthCheckHealthGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DetailedHealthCheckResponse
}

func ParseHealthCheckHealthGetResponse

func ParseHealthCheckHealthGetResponse(rsp *http.Response) (*HealthCheckHealthGetResponse, error)

ParseHealthCheckHealthGetResponse parses an HTTP response from a HealthCheckHealthGetWithResponse call

func (HealthCheckHealthGetResponse) ContentType

func (r HealthCheckHealthGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthCheckHealthGetResponse) GetBody

func (r HealthCheckHealthGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthCheckHealthGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthCheckHealthGetResponse) Status

Status returns HTTPResponse.Status

func (HealthCheckHealthGetResponse) StatusCode

func (r HealthCheckHealthGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckResponse

type HealthCheckResponse struct {
	Message string `json:"message"`
	Status  string `json:"status"`
}

HealthCheckResponse Response for health check endpoint

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IngestDocumentV2V2DocumentsPostMultipartRequestBody added in v0.2.0

type IngestDocumentV2V2DocumentsPostMultipartRequestBody = BodyIngestDocumentV2V2DocumentsPost

IngestDocumentV2V2DocumentsPostMultipartRequestBody defines body for IngestDocumentV2V2DocumentsPost for multipart/form-data ContentType.

type IngestDocumentV2V2DocumentsPostParams added in v0.2.0

type IngestDocumentV2V2DocumentsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

IngestDocumentV2V2DocumentsPostParams defines parameters for IngestDocumentV2V2DocumentsPost.

type IngestDocumentV2V2DocumentsPostResponse added in v0.2.0

type IngestDocumentV2V2DocumentsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *V2IngestResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseIngestDocumentV2V2DocumentsPostResponse added in v0.2.0

func ParseIngestDocumentV2V2DocumentsPostResponse(rsp *http.Response) (*IngestDocumentV2V2DocumentsPostResponse, error)

ParseIngestDocumentV2V2DocumentsPostResponse parses an HTTP response from a IngestDocumentV2V2DocumentsPostWithResponse call

func (IngestDocumentV2V2DocumentsPostResponse) ContentType added in v0.2.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestDocumentV2V2DocumentsPostResponse) GetBody added in v0.2.0

GetBody returns the raw response body bytes

func (IngestDocumentV2V2DocumentsPostResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IngestDocumentV2V2DocumentsPostResponse) GetJSON422 added in v0.2.0

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IngestDocumentV2V2DocumentsPostResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (IngestDocumentV2V2DocumentsPostResponse) StatusCode added in v0.2.0

StatusCode returns HTTPResponse.StatusCode

type IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody

type IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody = ConnectorIngestRequest

IngestFileEeConnectorsConnectorTypeIngestPostJSONRequestBody defines body for IngestFileEeConnectorsConnectorTypeIngestPost for application/json ContentType.

type IngestFileEeConnectorsConnectorTypeIngestPostParams

type IngestFileEeConnectorsConnectorTypeIngestPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

IngestFileEeConnectorsConnectorTypeIngestPostParams defines parameters for IngestFileEeConnectorsConnectorTypeIngestPost.

type IngestFileEeConnectorsConnectorTypeIngestPostResponse

type IngestFileEeConnectorsConnectorTypeIngestPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseIngestFileEeConnectorsConnectorTypeIngestPostResponse

func ParseIngestFileEeConnectorsConnectorTypeIngestPostResponse(rsp *http.Response) (*IngestFileEeConnectorsConnectorTypeIngestPostResponse, error)

ParseIngestFileEeConnectorsConnectorTypeIngestPostResponse parses an HTTP response from a IngestFileEeConnectorsConnectorTypeIngestPostWithResponse call

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) GetBody

GetBody returns the raw response body bytes

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) GetJSON202

func (r IngestFileEeConnectorsConnectorTypeIngestPostResponse) GetJSON202() *interface{}

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) Status

Status returns HTTPResponse.Status

func (IngestFileEeConnectorsConnectorTypeIngestPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type IngestFileIngestFilePostMultipartRequestBody

type IngestFileIngestFilePostMultipartRequestBody = BodyIngestFileIngestFilePost

IngestFileIngestFilePostMultipartRequestBody defines body for IngestFileIngestFilePost for multipart/form-data ContentType.

type IngestFileIngestFilePostParams

type IngestFileIngestFilePostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

IngestFileIngestFilePostParams defines parameters for IngestFileIngestFilePost.

type IngestFileIngestFilePostResponse

type IngestFileIngestFilePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseIngestFileIngestFilePostResponse

func ParseIngestFileIngestFilePostResponse(rsp *http.Response) (*IngestFileIngestFilePostResponse, error)

ParseIngestFileIngestFilePostResponse parses an HTTP response from a IngestFileIngestFilePostWithResponse call

func (IngestFileIngestFilePostResponse) ContentType

func (r IngestFileIngestFilePostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestFileIngestFilePostResponse) GetBody

func (r IngestFileIngestFilePostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IngestFileIngestFilePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IngestFileIngestFilePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IngestFileIngestFilePostResponse) Status

Status returns HTTPResponse.Status

func (IngestFileIngestFilePostResponse) StatusCode

func (r IngestFileIngestFilePostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody = GitHubRepositoryIngestRequest

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostJSONRequestBody defines body for IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost for application/json ContentType.

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostParams defines parameters for IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPost.

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse

type IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse

func ParseIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse(rsp *http.Response) (*IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse, error)

ParseIngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse parses an HTTP response from a IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostWithResponse call

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) GetBody

GetBody returns the raw response body bytes

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) Status

Status returns HTTPResponse.Status

func (IngestRepositoryEeConnectorsConnectorTypeIngestRepositoryPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type IngestTextIngestTextPostJSONRequestBody

type IngestTextIngestTextPostJSONRequestBody = IngestTextRequest

IngestTextIngestTextPostJSONRequestBody defines body for IngestTextIngestTextPost for application/json ContentType.

type IngestTextIngestTextPostParams

type IngestTextIngestTextPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

IngestTextIngestTextPostParams defines parameters for IngestTextIngestTextPost.

type IngestTextIngestTextPostResponse

type IngestTextIngestTextPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseIngestTextIngestTextPostResponse

func ParseIngestTextIngestTextPostResponse(rsp *http.Response) (*IngestTextIngestTextPostResponse, error)

ParseIngestTextIngestTextPostResponse parses an HTTP response from a IngestTextIngestTextPostWithResponse call

func (IngestTextIngestTextPostResponse) ContentType

func (r IngestTextIngestTextPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestTextIngestTextPostResponse) GetBody

func (r IngestTextIngestTextPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IngestTextIngestTextPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IngestTextIngestTextPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IngestTextIngestTextPostResponse) Status

Status returns HTTPResponse.Status

func (IngestTextIngestTextPostResponse) StatusCode

func (r IngestTextIngestTextPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IngestTextRequest

type IngestTextRequest struct {
	// Content Raw text content to store as a document.
	Content string `json:"content"`

	// EndUserId Optional end-user scope for the operation
	EndUserId *string `json:"end_user_id,omitempty"`

	// Filename Optional filename hint used when inferring MIME type or displaying the document.
	Filename *string `json:"filename,omitempty"`

	// FolderName Optional folder scope for the operation
	FolderName *string `json:"folder_name,omitempty"`

	// Metadata User-defined metadata stored with the document (JSON-serializable).
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// MetadataTypes Optional per-field type hints: 'string', 'number', 'decimal', 'datetime', 'date', 'boolean', 'array', 'object'. Enables typed comparisons with $eq, $gt, etc. Types are inferred if omitted.
	MetadataTypes *map[string]string `json:"metadata_types,omitempty"`

	// UseColpali When provided, uses Morphik's finetuned ColPali style embeddings (recommended to be True for high quality retrieval).
	UseColpali           *bool                  `json:"use_colpali,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

IngestTextRequest Request model for ingesting text content

func (IngestTextRequest) Get

func (a IngestTextRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for IngestTextRequest. Returns the specified element and whether it was found

func (IngestTextRequest) MarshalJSON

func (a IngestTextRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for IngestTextRequest to handle AdditionalProperties

func (*IngestTextRequest) Set

func (a *IngestTextRequest) Set(fieldName string, value interface{})

Setter for additional properties for IngestTextRequest

func (*IngestTextRequest) UnmarshalJSON

func (a *IngestTextRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for IngestTextRequest to handle AdditionalProperties

type IngestionOptions

type IngestionOptions struct {
	// EndUserId Optional end-user scope for the operation.
	EndUserId *string `json:"end_user_id,omitempty"`

	// FolderName Optional target folder path for the ingested document. Only a single folder is supported.
	FolderName *string `json:"folder_name,omitempty"`

	// Ingest Whether to enqueue ingestion after metadata extraction.
	Ingest *bool `json:"ingest,omitempty"`

	// Metadata Metadata to merge into the ingested document when ingestion is triggered.
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// UseColpali Whether to use Morphik's ColPali-style embeddings during ingestion (recommended for quality).
	UseColpali *bool `json:"use_colpali,omitempty"`
}

IngestionOptions Normalized options controlling post-analysis ingestion.

type InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody

type InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody = ConnectorAuthRequest

InitiateAuthEeConnectorsInitiateAuthPostJSONRequestBody defines body for InitiateAuthEeConnectorsInitiateAuthPost for application/json ContentType.

type InitiateAuthEeConnectorsInitiateAuthPostParams

type InitiateAuthEeConnectorsInitiateAuthPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

InitiateAuthEeConnectorsInitiateAuthPostParams defines parameters for InitiateAuthEeConnectorsInitiateAuthPost.

type InitiateAuthEeConnectorsInitiateAuthPostResponse

type InitiateAuthEeConnectorsInitiateAuthPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseInitiateAuthEeConnectorsInitiateAuthPostResponse

func ParseInitiateAuthEeConnectorsInitiateAuthPostResponse(rsp *http.Response) (*InitiateAuthEeConnectorsInitiateAuthPostResponse, error)

ParseInitiateAuthEeConnectorsInitiateAuthPostResponse parses an HTTP response from a InitiateAuthEeConnectorsInitiateAuthPostWithResponse call

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) GetBody

GetBody returns the raw response body bytes

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) GetJSON200

func (r InitiateAuthEeConnectorsInitiateAuthPostResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) Status

Status returns HTTPResponse.Status

func (InitiateAuthEeConnectorsInitiateAuthPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListApiKeysApiKeysGetParams

type ListApiKeysApiKeysGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ListApiKeysApiKeysGetParams defines parameters for ListApiKeysApiKeysGet.

type ListApiKeysApiKeysGetResponse

type ListApiKeysApiKeysGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListApiKeysApiKeysGetResponse

func ParseListApiKeysApiKeysGetResponse(rsp *http.Response) (*ListApiKeysApiKeysGetResponse, error)

ParseListApiKeysApiKeysGetResponse parses an HTTP response from a ListApiKeysApiKeysGetWithResponse call

func (ListApiKeysApiKeysGetResponse) ContentType

func (r ListApiKeysApiKeysGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListApiKeysApiKeysGetResponse) GetBody

func (r ListApiKeysApiKeysGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListApiKeysApiKeysGetResponse) GetJSON200

func (r ListApiKeysApiKeysGetResponse) GetJSON200() *map[string]map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListApiKeysApiKeysGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListApiKeysApiKeysGetResponse) Status

Status returns HTTPResponse.Status

func (ListApiKeysApiKeysGetResponse) StatusCode

func (r ListApiKeysApiKeysGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChatConversationsChatsGetParams

type ListChatConversationsChatsGetParams struct {
	Limit         *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

ListChatConversationsChatsGetParams defines parameters for ListChatConversationsChatsGet.

type ListChatConversationsChatsGetResponse

type ListChatConversationsChatsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListChatConversationsChatsGetResponse

func ParseListChatConversationsChatsGetResponse(rsp *http.Response) (*ListChatConversationsChatsGetResponse, error)

ParseListChatConversationsChatsGetResponse parses an HTTP response from a ListChatConversationsChatsGetWithResponse call

func (ListChatConversationsChatsGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListChatConversationsChatsGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListChatConversationsChatsGetResponse) GetJSON200

func (r ListChatConversationsChatsGetResponse) GetJSON200() *[]map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListChatConversationsChatsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListChatConversationsChatsGetResponse) Status

Status returns HTTPResponse.Status

func (ListChatConversationsChatsGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListCloudAppsAppsGetParams

type ListCloudAppsAppsGetParams struct {
	// OrgId Filter apps by organization ID
	OrgId *string `form:"org_id,omitempty" json:"org_id,omitempty"`

	// UserId Filter apps by creator
	UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"`

	// AppIdFilter JSON filter expression for app IDs (supports $and/$or/$not/$nor and $eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$regex/$contains).
	AppIdFilter *string `form:"app_id_filter,omitempty" json:"app_id_filter,omitempty"`

	// AppNameFilter JSON filter expression for app name (supports $and/$or/$not/$nor and $eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$regex/$contains).
	AppNameFilter       *string `form:"app_name_filter,omitempty" json:"app_name_filter,omitempty"`
	Limit               *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Offset              *int    `form:"offset,omitempty" json:"offset,omitempty"`
	Authorization       *string `json:"authorization,omitempty"`
	XMorphikAdminSecret *string `json:"X-Morphik-Admin-Secret,omitempty"`
}

ListCloudAppsAppsGetParams defines parameters for ListCloudAppsAppsGet.

type ListCloudAppsAppsGetResponse

type ListCloudAppsAppsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListCloudAppsAppsGetResponse

func ParseListCloudAppsAppsGetResponse(rsp *http.Response) (*ListCloudAppsAppsGetResponse, error)

ParseListCloudAppsAppsGetResponse parses an HTTP response from a ListCloudAppsAppsGetWithResponse call

func (ListCloudAppsAppsGetResponse) ContentType

func (r ListCloudAppsAppsGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListCloudAppsAppsGetResponse) GetBody

func (r ListCloudAppsAppsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListCloudAppsAppsGetResponse) GetJSON200

func (r ListCloudAppsAppsGetResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListCloudAppsAppsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListCloudAppsAppsGetResponse) Status

Status returns HTTPResponse.Status

func (ListCloudAppsAppsGetResponse) StatusCode

func (r ListCloudAppsAppsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCustomModelsModelsCustomGetParams

type ListCustomModelsModelsCustomGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ListCustomModelsModelsCustomGetParams defines parameters for ListCustomModelsModelsCustomGet.

type ListCustomModelsModelsCustomGetResponse

type ListCustomModelsModelsCustomGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ModelResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListCustomModelsModelsCustomGetResponse

func ParseListCustomModelsModelsCustomGetResponse(rsp *http.Response) (*ListCustomModelsModelsCustomGetResponse, error)

ParseListCustomModelsModelsCustomGetResponse parses an HTTP response from a ListCustomModelsModelsCustomGetWithResponse call

func (ListCustomModelsModelsCustomGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListCustomModelsModelsCustomGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListCustomModelsModelsCustomGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListCustomModelsModelsCustomGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListCustomModelsModelsCustomGetResponse) Status

Status returns HTTPResponse.Status

func (ListCustomModelsModelsCustomGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListDocsDocumentsListDocsPostJSONRequestBody

type ListDocsDocumentsListDocsPostJSONRequestBody = ListDocsRequest

ListDocsDocumentsListDocsPostJSONRequestBody defines body for ListDocsDocumentsListDocsPost for application/json ContentType.

type ListDocsDocumentsListDocsPostParams

type ListDocsDocumentsListDocsPostParams struct {
	FolderName *struct {
		// contains filtered or unexported fields
	} `form:"folder_name,omitempty" json:"folder_name,omitempty"`

	// FolderDepth Folder scope depth: 0/None = exact, -1 = all descendants, n > 0 = include descendants up to n levels.
	FolderDepth   *int    `form:"folder_depth,omitempty" json:"folder_depth,omitempty"`
	EndUserId     *string `form:"end_user_id,omitempty" json:"end_user_id,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

ListDocsDocumentsListDocsPostParams defines parameters for ListDocsDocumentsListDocsPost.

type ListDocsDocumentsListDocsPostParamsFolderName0

type ListDocsDocumentsListDocsPostParamsFolderName0 = string

ListDocsDocumentsListDocsPostParamsFolderName0 defines parameters for ListDocsDocumentsListDocsPost.

type ListDocsDocumentsListDocsPostParamsFolderName1

type ListDocsDocumentsListDocsPostParamsFolderName1 = []string

ListDocsDocumentsListDocsPostParamsFolderName1 defines parameters for ListDocsDocumentsListDocsPost.

type ListDocsDocumentsListDocsPostResponse

type ListDocsDocumentsListDocsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListDocsResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListDocsDocumentsListDocsPostResponse

func ParseListDocsDocumentsListDocsPostResponse(rsp *http.Response) (*ListDocsDocumentsListDocsPostResponse, error)

ParseListDocsDocumentsListDocsPostResponse parses an HTTP response from a ListDocsDocumentsListDocsPostWithResponse call

func (ListDocsDocumentsListDocsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDocsDocumentsListDocsPostResponse) GetBody

GetBody returns the raw response body bytes

func (ListDocsDocumentsListDocsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDocsDocumentsListDocsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListDocsDocumentsListDocsPostResponse) Status

Status returns HTTPResponse.Status

func (ListDocsDocumentsListDocsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListDocsDocumentsPostJSONRequestBody

type ListDocsDocumentsPostJSONRequestBody = ListDocsRequest

ListDocsDocumentsPostJSONRequestBody defines body for ListDocsDocumentsPost for application/json ContentType.

type ListDocsDocumentsPostParams

type ListDocsDocumentsPostParams struct {
	FolderName *struct {
		// contains filtered or unexported fields
	} `form:"folder_name,omitempty" json:"folder_name,omitempty"`

	// FolderDepth Folder scope depth: 0/None = exact, -1 = all descendants, n > 0 = include descendants up to n levels.
	FolderDepth   *int    `form:"folder_depth,omitempty" json:"folder_depth,omitempty"`
	EndUserId     *string `form:"end_user_id,omitempty" json:"end_user_id,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

ListDocsDocumentsPostParams defines parameters for ListDocsDocumentsPost.

type ListDocsDocumentsPostParamsFolderName0

type ListDocsDocumentsPostParamsFolderName0 = string

ListDocsDocumentsPostParamsFolderName0 defines parameters for ListDocsDocumentsPost.

type ListDocsDocumentsPostParamsFolderName1

type ListDocsDocumentsPostParamsFolderName1 = []string

ListDocsDocumentsPostParamsFolderName1 defines parameters for ListDocsDocumentsPost.

type ListDocsDocumentsPostResponse

type ListDocsDocumentsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListDocsResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListDocsDocumentsPostResponse

func ParseListDocsDocumentsPostResponse(rsp *http.Response) (*ListDocsDocumentsPostResponse, error)

ParseListDocsDocumentsPostResponse parses an HTTP response from a ListDocsDocumentsPostWithResponse call

func (ListDocsDocumentsPostResponse) ContentType

func (r ListDocsDocumentsPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDocsDocumentsPostResponse) GetBody

func (r ListDocsDocumentsPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListDocsDocumentsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDocsDocumentsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListDocsDocumentsPostResponse) Status

Status returns HTTPResponse.Status

func (ListDocsDocumentsPostResponse) StatusCode

func (r ListDocsDocumentsPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDocsRequest

type ListDocsRequest struct {
	// CompletedOnly When true, only documents with completed processing status are returned and counted
	CompletedOnly *bool `json:"completed_only,omitempty"`

	// DocumentFilters Metadata filters with operator support: $and, $or, $nor, $not, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $exists, $type, $regex, $contains. Implicit equality uses JSONB containment; explicit operators support typed comparisons. Reserved key: 'filename' filters the filename column.
	DocumentFilters *map[string]interface{} `json:"document_filters,omitempty"`

	// Fields Optional list of fields to project for each document (dot notation supported). Derived fields such as 'page_count' are also supported.
	Fields *[]string `json:"fields,omitempty"`

	// IncludeFolderCounts Include document counts grouped by folder when true
	IncludeFolderCounts *bool `json:"include_folder_counts,omitempty"`

	// IncludeStatusCounts Include document counts grouped by processing status when true
	IncludeStatusCounts *bool `json:"include_status_counts,omitempty"`

	// IncludeTotalCount Include total number of matching documents when true
	IncludeTotalCount *bool `json:"include_total_count,omitempty"`

	// Limit Maximum number of documents to return
	Limit *int `json:"limit,omitempty"`

	// ReturnDocuments When false, only aggregates are returned
	ReturnDocuments *bool `json:"return_documents,omitempty"`

	// Skip Number of documents to skip
	Skip *int `json:"skip,omitempty"`

	// SortBy Field to sort the results by
	SortBy *ListDocsRequestSortBy `json:"sort_by,omitempty"`

	// SortDirection Sort direction for the results
	SortDirection *ListDocsRequestSortDirection `json:"sort_direction,omitempty"`
}

ListDocsRequest Flexible request model for listing documents with projection and aggregates.

type ListDocsRequestSortBy

type ListDocsRequestSortBy string

ListDocsRequestSortBy Field to sort the results by

const (
	ListDocsRequestSortByCreatedAt  ListDocsRequestSortBy = "created_at"
	ListDocsRequestSortByExternalId ListDocsRequestSortBy = "external_id"
	ListDocsRequestSortByFilename   ListDocsRequestSortBy = "filename"
	ListDocsRequestSortByUpdatedAt  ListDocsRequestSortBy = "updated_at"
)

Defines values for ListDocsRequestSortBy.

func (ListDocsRequestSortBy) Valid

func (e ListDocsRequestSortBy) Valid() bool

Valid indicates whether the value is a known member of the ListDocsRequestSortBy enum.

type ListDocsRequestSortDirection

type ListDocsRequestSortDirection string

ListDocsRequestSortDirection Sort direction for the results

const (
	ListDocsRequestSortDirectionAsc  ListDocsRequestSortDirection = "asc"
	ListDocsRequestSortDirectionDesc ListDocsRequestSortDirection = "desc"
)

Defines values for ListDocsRequestSortDirection.

func (ListDocsRequestSortDirection) Valid

Valid indicates whether the value is a known member of the ListDocsRequestSortDirection enum.

type ListDocsResponse

type ListDocsResponse struct {
	Documents     *[]interface{}  `json:"documents,omitempty"`
	FolderCounts  *[]FolderCount  `json:"folder_counts,omitempty"`
	HasMore       *bool           `json:"has_more,omitempty"`
	Limit         int             `json:"limit"`
	NextSkip      *int            `json:"next_skip,omitempty"`
	ReturnedCount int             `json:"returned_count"`
	Skip          int             `json:"skip"`
	StatusCounts  *map[string]int `json:"status_counts,omitempty"`
	TotalCount    *int            `json:"total_count,omitempty"`
}

ListDocsResponse Flexible response for listing documents with aggregates.

type ListFilesEeConnectorsListFilesPostJSONRequestBody

type ListFilesEeConnectorsListFilesPostJSONRequestBody = ConnectorListFilesRequest

ListFilesEeConnectorsListFilesPostJSONRequestBody defines body for ListFilesEeConnectorsListFilesPost for application/json ContentType.

type ListFilesEeConnectorsListFilesPostParams

type ListFilesEeConnectorsListFilesPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ListFilesEeConnectorsListFilesPostParams defines parameters for ListFilesEeConnectorsListFilesPost.

type ListFilesEeConnectorsListFilesPostResponse

type ListFilesEeConnectorsListFilesPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListFilesEeConnectorsListFilesPostResponse

func ParseListFilesEeConnectorsListFilesPostResponse(rsp *http.Response) (*ListFilesEeConnectorsListFilesPostResponse, error)

ParseListFilesEeConnectorsListFilesPostResponse parses an HTTP response from a ListFilesEeConnectorsListFilesPostWithResponse call

func (ListFilesEeConnectorsListFilesPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFilesEeConnectorsListFilesPostResponse) GetBody

GetBody returns the raw response body bytes

func (ListFilesEeConnectorsListFilesPostResponse) GetJSON200

func (r ListFilesEeConnectorsListFilesPostResponse) GetJSON200() *interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListFilesEeConnectorsListFilesPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListFilesEeConnectorsListFilesPostResponse) Status

Status returns HTTPResponse.Status

func (ListFilesEeConnectorsListFilesPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams

type ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams struct {
	Path          *string `form:"path,omitempty" json:"path,omitempty"`
	PageToken     *string `form:"page_token,omitempty" json:"page_token,omitempty"`
	QFilter       *string `form:"q_filter,omitempty" json:"q_filter,omitempty"`
	PageSize      *int    `form:"page_size,omitempty" json:"page_size,omitempty"`
	Authorization *string `json:"authorization,omitempty"`
}

ListFilesForConnectorEeConnectorsConnectorTypeFilesGetParams defines parameters for ListFilesForConnectorEeConnectorsConnectorTypeFilesGet.

type ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse

type ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileListResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse

func ParseListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse(rsp *http.Response) (*ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse, error)

ParseListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse parses an HTTP response from a ListFilesForConnectorEeConnectorsConnectorTypeFilesGetWithResponse call

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) Status

Status returns HTTPResponse.Status

func (ListFilesForConnectorEeConnectorsConnectorTypeFilesGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListFolderSummariesFoldersSummaryGetParams

type ListFolderSummariesFoldersSummaryGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ListFolderSummariesFoldersSummaryGetParams defines parameters for ListFolderSummariesFoldersSummaryGet.

type ListFolderSummariesFoldersSummaryGetResponse

type ListFolderSummariesFoldersSummaryGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]FolderSummary
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListFolderSummariesFoldersSummaryGetResponse

func ParseListFolderSummariesFoldersSummaryGetResponse(rsp *http.Response) (*ListFolderSummariesFoldersSummaryGetResponse, error)

ParseListFolderSummariesFoldersSummaryGetResponse parses an HTTP response from a ListFolderSummariesFoldersSummaryGetWithResponse call

func (ListFolderSummariesFoldersSummaryGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFolderSummariesFoldersSummaryGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListFolderSummariesFoldersSummaryGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListFolderSummariesFoldersSummaryGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListFolderSummariesFoldersSummaryGetResponse) Status

Status returns HTTPResponse.Status

func (ListFolderSummariesFoldersSummaryGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListFoldersFoldersGetParams

type ListFoldersFoldersGetParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

ListFoldersFoldersGetParams defines parameters for ListFoldersFoldersGet.

type ListFoldersFoldersGetResponse

type ListFoldersFoldersGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Folder
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListFoldersFoldersGetResponse

func ParseListFoldersFoldersGetResponse(rsp *http.Response) (*ListFoldersFoldersGetResponse, error)

ParseListFoldersFoldersGetResponse parses an HTTP response from a ListFoldersFoldersGetWithResponse call

func (ListFoldersFoldersGetResponse) ContentType

func (r ListFoldersFoldersGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFoldersFoldersGetResponse) GetBody

func (r ListFoldersFoldersGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListFoldersFoldersGetResponse) GetJSON200

func (r ListFoldersFoldersGetResponse) GetJSON200() *[]Folder

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListFoldersFoldersGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListFoldersFoldersGetResponse) Status

Status returns HTTPResponse.Status

func (ListFoldersFoldersGetResponse) StatusCode

func (r ListFoldersFoldersGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogResponse

type LogResponse struct {
	AppId         *string                 `json:"app_id,omitempty"`
	DurationMs    float64                 `json:"duration_ms"`
	Error         *string                 `json:"error,omitempty"`
	Metadata      *map[string]interface{} `json:"metadata,omitempty"`
	OperationType string                  `json:"operation_type"`
	Status        string                  `json:"status"`
	Timestamp     time.Time               `json:"timestamp"`
	TokensUsed    int                     `json:"tokens_used"`
	UserId        string                  `json:"user_id"`
}

LogResponse Public serialisable view of a telemetry event.

type ManualCredentialsAuthResponse

type ManualCredentialsAuthResponse struct {
	AuthType       string            `json:"auth_type"`
	Instructions   *string           `json:"instructions,omitempty"`
	RequiredFields []CredentialField `json:"required_fields"`
}

ManualCredentialsAuthResponse defines model for ManualCredentialsAuthResponse.

type ManualCredentialsRequest

type ManualCredentialsRequest struct {
	Credentials map[string]interface{} `json:"credentials"`
}

ManualCredentialsRequest Request model for manual credential submission.

type MetadataUpdateRequest

type MetadataUpdateRequest struct {
	// Metadata Metadata fields to merge into the document.
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// MetadataTypes Optional per-field type hints: 'string', 'number', 'decimal', 'datetime', 'date', 'boolean', 'array', 'object'. Enables typed comparisons.
	MetadataTypes *map[string]string `json:"metadata_types,omitempty"`
}

MetadataUpdateRequest Request payload for metadata-only document updates.

type MigrateDocumentMigrateDocumentPostMultipartRequestBody added in v0.2.0

type MigrateDocumentMigrateDocumentPostMultipartRequestBody = BodyMigrateDocumentMigrateDocumentPost

MigrateDocumentMigrateDocumentPostMultipartRequestBody defines body for MigrateDocumentMigrateDocumentPost for multipart/form-data ContentType.

type MigrateDocumentMigrateDocumentPostParams added in v0.2.0

type MigrateDocumentMigrateDocumentPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

MigrateDocumentMigrateDocumentPostParams defines parameters for MigrateDocumentMigrateDocumentPost.

type MigrateDocumentMigrateDocumentPostResponse added in v0.2.0

type MigrateDocumentMigrateDocumentPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MigrationIngestResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseMigrateDocumentMigrateDocumentPostResponse added in v0.2.0

func ParseMigrateDocumentMigrateDocumentPostResponse(rsp *http.Response) (*MigrateDocumentMigrateDocumentPostResponse, error)

ParseMigrateDocumentMigrateDocumentPostResponse parses an HTTP response from a MigrateDocumentMigrateDocumentPostWithResponse call

func (MigrateDocumentMigrateDocumentPostResponse) ContentType added in v0.2.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MigrateDocumentMigrateDocumentPostResponse) GetBody added in v0.2.0

GetBody returns the raw response body bytes

func (MigrateDocumentMigrateDocumentPostResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MigrateDocumentMigrateDocumentPostResponse) GetJSON422 added in v0.2.0

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (MigrateDocumentMigrateDocumentPostResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MigrateDocumentMigrateDocumentPostResponse) StatusCode added in v0.2.0

StatusCode returns HTTPResponse.StatusCode

type MigrationIngestResponse added in v0.2.0

type MigrationIngestResponse struct {
	// Document Represents a document stored in the database documents collection
	Document Document                      `json:"document"`
	Status   MigrationIngestResponseStatus `json:"status"`
}

MigrationIngestResponse Response for a migration document ingest request.

type MigrationIngestResponseStatus added in v0.2.0

type MigrationIngestResponseStatus string

MigrationIngestResponseStatus defines model for MigrationIngestResponse.Status.

const (
	MigrationIngestResponseStatusCreated MigrationIngestResponseStatus = "created"
	MigrationIngestResponseStatusSkipped MigrationIngestResponseStatus = "skipped"
)

Defines values for MigrationIngestResponseStatus.

func (MigrationIngestResponseStatus) Valid added in v0.2.0

Valid indicates whether the value is a known member of the MigrationIngestResponseStatus enum.

type ModelResponse

type ModelResponse struct {
	Config    map[string]interface{} `json:"config"`
	CreatedAt string                 `json:"created_at"`
	Id        string                 `json:"id"`
	Name      string                 `json:"name"`
	Provider  string                 `json:"provider"`
	UpdatedAt string                 `json:"updated_at"`
}

ModelResponse Response for a saved model.

type ModelsResponse

type ModelsResponse struct {
	ChatModels      []map[string]interface{} `json:"chat_models"`
	DefaultModels   map[string]*string       `json:"default_models"`
	EmbeddingModels []map[string]interface{} `json:"embedding_models"`
	Providers       []string                 `json:"providers"`
}

ModelsResponse Response for available models endpoint

type MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody added in v0.2.0

type MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody = FolderMove

MoveFolderFoldersFolderIdOrNameMovePostJSONRequestBody defines body for MoveFolderFoldersFolderIdOrNameMovePost for application/json ContentType.

type MoveFolderFoldersFolderIdOrNameMovePostParams added in v0.2.0

type MoveFolderFoldersFolderIdOrNameMovePostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

MoveFolderFoldersFolderIdOrNameMovePostParams defines parameters for MoveFolderFoldersFolderIdOrNameMovePost.

type MoveFolderFoldersFolderIdOrNameMovePostResponse added in v0.2.0

type MoveFolderFoldersFolderIdOrNameMovePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Folder
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseMoveFolderFoldersFolderIdOrNameMovePostResponse added in v0.2.0

func ParseMoveFolderFoldersFolderIdOrNameMovePostResponse(rsp *http.Response) (*MoveFolderFoldersFolderIdOrNameMovePostResponse, error)

ParseMoveFolderFoldersFolderIdOrNameMovePostResponse parses an HTTP response from a MoveFolderFoldersFolderIdOrNameMovePostWithResponse call

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) ContentType added in v0.2.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) GetBody added in v0.2.0

GetBody returns the raw response body bytes

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) GetJSON422 added in v0.2.0

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MoveFolderFoldersFolderIdOrNameMovePostResponse) StatusCode added in v0.2.0

StatusCode returns HTTPResponse.StatusCode

type OAuthAuthResponse

type OAuthAuthResponse struct {
	AuthorizationUrl string `json:"authorization_url"`
}

OAuthAuthResponse defines model for OAuthAuthResponse.

type OutputFormat

type OutputFormat string

OutputFormat Output format for image chunks in retrieval results.

const (
	OutputFormatBase64 OutputFormat = "base64"
	OutputFormatText   OutputFormat = "text"
	OutputFormatUrl    OutputFormat = "url"
)

Defines values for OutputFormat.

func (OutputFormat) Valid

func (e OutputFormat) Valid() bool

Valid indicates whether the value is a known member of the OutputFormat enum.

type PingHealthPingGetResponse

type PingHealthPingGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthCheckResponse
}

func ParsePingHealthPingGetResponse

func ParsePingHealthPingGetResponse(rsp *http.Response) (*PingHealthPingGetResponse, error)

ParsePingHealthPingGetResponse parses an HTTP response from a PingHealthPingGetWithResponse call

func (PingHealthPingGetResponse) ContentType

func (r PingHealthPingGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PingHealthPingGetResponse) GetBody

func (r PingHealthPingGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PingHealthPingGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PingHealthPingGetResponse) Status

func (r PingHealthPingGetResponse) Status() string

Status returns HTTPResponse.Status

func (PingHealthPingGetResponse) StatusCode

func (r PingHealthPingGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QueryCompletionQueryPostJSONRequestBody

type QueryCompletionQueryPostJSONRequestBody = CompletionQueryRequest

QueryCompletionQueryPostJSONRequestBody defines body for QueryCompletionQueryPost for application/json ContentType.

type QueryCompletionQueryPostParams

type QueryCompletionQueryPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

QueryCompletionQueryPostParams defines parameters for QueryCompletionQueryPost.

type QueryCompletionQueryPostResponse

type QueryCompletionQueryPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CompletionResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseQueryCompletionQueryPostResponse

func ParseQueryCompletionQueryPostResponse(rsp *http.Response) (*QueryCompletionQueryPostResponse, error)

ParseQueryCompletionQueryPostResponse parses an HTTP response from a QueryCompletionQueryPostWithResponse call

func (QueryCompletionQueryPostResponse) ContentType

func (r QueryCompletionQueryPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (QueryCompletionQueryPostResponse) GetBody

func (r QueryCompletionQueryPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (QueryCompletionQueryPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (QueryCompletionQueryPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (QueryCompletionQueryPostResponse) Status

Status returns HTTPResponse.Status

func (QueryCompletionQueryPostResponse) StatusCode

func (r QueryCompletionQueryPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QueryDocumentIngestDocumentQueryPostMultipartRequestBody

type QueryDocumentIngestDocumentQueryPostMultipartRequestBody = BodyQueryDocumentIngestDocumentQueryPost

QueryDocumentIngestDocumentQueryPostMultipartRequestBody defines body for QueryDocumentIngestDocumentQueryPost for multipart/form-data ContentType.

type QueryDocumentIngestDocumentQueryPostParams

type QueryDocumentIngestDocumentQueryPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

QueryDocumentIngestDocumentQueryPostParams defines parameters for QueryDocumentIngestDocumentQueryPost.

type QueryDocumentIngestDocumentQueryPostResponse

type QueryDocumentIngestDocumentQueryPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentQueryResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseQueryDocumentIngestDocumentQueryPostResponse

func ParseQueryDocumentIngestDocumentQueryPostResponse(rsp *http.Response) (*QueryDocumentIngestDocumentQueryPostResponse, error)

ParseQueryDocumentIngestDocumentQueryPostResponse parses an HTTP response from a QueryDocumentIngestDocumentQueryPostWithResponse call

func (QueryDocumentIngestDocumentQueryPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (QueryDocumentIngestDocumentQueryPostResponse) GetBody

GetBody returns the raw response body bytes

func (QueryDocumentIngestDocumentQueryPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (QueryDocumentIngestDocumentQueryPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (QueryDocumentIngestDocumentQueryPostResponse) Status

Status returns HTTPResponse.Status

func (QueryDocumentIngestDocumentQueryPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type QueryPromptOverride

type QueryPromptOverride struct {
	// PromptTemplate Custom prompt template for generating responses to queries. REQUIRED PLACEHOLDERS: {question} and {context} must be included in the template. The {question} placeholder will be replaced with the user query, and {context} will be replaced with the retrieved content. Use this to control response style, format, and tone.
	PromptTemplate *string `json:"prompt_template,omitempty"`

	// SystemPrompt Custom system prompt that replaces Morphik's default query agent instructions. Use this to fully control the assistant's behavior when generating responses.
	SystemPrompt *string `json:"system_prompt,omitempty"`
}

QueryPromptOverride Configuration for customizing query prompts.

This allows you to customize how responses are generated during query operations. Query prompts guide the LLM on how to format and style responses, what tone to use, and how to incorporate retrieved information into the response.

Required placeholders: - {question}: Will be replaced with the user's query - {context}: Will be replaced with the retrieved content/context

Example prompt template: ``` Answer the following question based on the provided information.

Question: {question}

Context: {context}

Answer: ```

type QueryPromptOverrides

type QueryPromptOverrides struct {
	// EntityExtraction Overrides for entity extraction prompts - controls how entities are identified in text during queries
	EntityExtraction *EntityExtractionPromptOverride `json:"entity_extraction,omitempty"`

	// EntityResolution Overrides for entity resolution prompts - controls how variant forms are grouped during queries
	EntityResolution *EntityResolutionPromptOverride `json:"entity_resolution,omitempty"`

	// Query Overrides for query prompts - controls response generation style, format, and tone
	Query *QueryPromptOverride `json:"query,omitempty"`
}

QueryPromptOverrides Container for query-related prompt overrides.

Use this class when customizing prompts for query operations, which may include customizations for entity extraction, entity resolution, and the query/response generation itself.

This is the most feature-complete override class, supporting all customization types.

Available customizations: - entity_extraction: Customize how entities are identified in text - entity_resolution: Customize how entity variants are grouped - query: Customize response generation style, format, and tone

Each type has its own required placeholders. See the specific class documentation for details and examples.

type RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams

type RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteParams defines parameters for RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDelete.

type RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse

type RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DocumentDeleteResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse

func ParseRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse(rsp *http.Response) (*RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse, error)

ParseRemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse parses an HTTP response from a RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteWithResponse call

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) Status

Status returns HTTPResponse.Status

func (RemoveDocumentFromFolderFoldersFolderIdOrNameDocumentsDocumentIdDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RenameCloudAppAppsRenamePatchParams

type RenameCloudAppAppsRenamePatchParams struct {
	// AppId Application ID to rename
	AppId *string `form:"app_id,omitempty" json:"app_id,omitempty"`

	// AppName Current application name to rename
	AppName *string `form:"app_name,omitempty" json:"app_name,omitempty"`

	// NewName New application name
	NewName             string  `form:"new_name" json:"new_name"`
	Authorization       *string `json:"authorization,omitempty"`
	XMorphikAdminSecret *string `json:"X-Morphik-Admin-Secret,omitempty"`
}

RenameCloudAppAppsRenamePatchParams defines parameters for RenameCloudAppAppsRenamePatch.

type RenameCloudAppAppsRenamePatchResponse

type RenameCloudAppAppsRenamePatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRenameCloudAppAppsRenamePatchResponse

func ParseRenameCloudAppAppsRenamePatchResponse(rsp *http.Response) (*RenameCloudAppAppsRenamePatchResponse, error)

ParseRenameCloudAppAppsRenamePatchResponse parses an HTTP response from a RenameCloudAppAppsRenamePatchWithResponse call

func (RenameCloudAppAppsRenamePatchResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RenameCloudAppAppsRenamePatchResponse) GetBody

GetBody returns the raw response body bytes

func (RenameCloudAppAppsRenamePatchResponse) GetJSON200

func (r RenameCloudAppAppsRenamePatchResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RenameCloudAppAppsRenamePatchResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RenameCloudAppAppsRenamePatchResponse) Status

Status returns HTTPResponse.Status

func (RenameCloudAppAppsRenamePatchResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequeueIngestJobsIngestRequeuePostJSONRequestBody

type RequeueIngestJobsIngestRequeuePostJSONRequestBody = RequeueIngestionRequest

RequeueIngestJobsIngestRequeuePostJSONRequestBody defines body for RequeueIngestJobsIngestRequeuePost for application/json ContentType.

type RequeueIngestJobsIngestRequeuePostParams

type RequeueIngestJobsIngestRequeuePostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RequeueIngestJobsIngestRequeuePostParams defines parameters for RequeueIngestJobsIngestRequeuePost.

type RequeueIngestJobsIngestRequeuePostResponse

type RequeueIngestJobsIngestRequeuePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RequeueIngestionResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRequeueIngestJobsIngestRequeuePostResponse

func ParseRequeueIngestJobsIngestRequeuePostResponse(rsp *http.Response) (*RequeueIngestJobsIngestRequeuePostResponse, error)

ParseRequeueIngestJobsIngestRequeuePostResponse parses an HTTP response from a RequeueIngestJobsIngestRequeuePostWithResponse call

func (RequeueIngestJobsIngestRequeuePostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RequeueIngestJobsIngestRequeuePostResponse) GetBody

GetBody returns the raw response body bytes

func (RequeueIngestJobsIngestRequeuePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RequeueIngestJobsIngestRequeuePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RequeueIngestJobsIngestRequeuePostResponse) Status

Status returns HTTPResponse.Status

func (RequeueIngestJobsIngestRequeuePostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequeueIngestionJob

type RequeueIngestionJob struct {
	// ExternalId External identifier of the document to requeue
	ExternalId string `json:"external_id"`

	// UseColpali When provided, uses Morphik's finetuned ColPali style embeddings (recommended to be True for high quality retrieval).
	UseColpali *bool `json:"use_colpali,omitempty"`
}

RequeueIngestionJob Job descriptor for requeuing an ingestion task.

type RequeueIngestionRequest

type RequeueIngestionRequest struct {
	// IncludeAll When true, requeue every accessible document whose status matches `statuses` (defaults to processing/failed).
	IncludeAll *bool `json:"include_all,omitempty"`

	// Jobs Collection of jobs to requeue, each with optional ColPali override.
	Jobs *[]RequeueIngestionJob `json:"jobs,omitempty"`

	// Limit Maximum number of documents to auto-select from the provided statuses when include_all is true.
	Limit *int `json:"limit,omitempty"`

	// Statuses Processing statuses to include when `include_all` is true. Defaults to ['processing', 'failed'].
	Statuses *[]string `json:"statuses,omitempty"`
}

RequeueIngestionRequest Request payload for requeueing ingestion jobs.

type RequeueIngestionResponse

type RequeueIngestionResponse struct {
	// Results Per-document outcomes
	Results []RequeueIngestionResult `json:"results"`
}

RequeueIngestionResponse Response payload for requeueing ingestion jobs.

type RequeueIngestionResult

type RequeueIngestionResult struct {
	// ExternalId Document external identifier
	ExternalId string `json:"external_id"`

	// Message Optional human-readable message describing the outcome
	Message *string `json:"message,omitempty"`

	// Status Outcome status for this job
	Status string `json:"status"`
}

RequeueIngestionResult Result information for an individual requeued ingestion job.

type RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody

type RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody = RetrieveRequest

RetrieveChunksGroupedRetrieveChunksGroupedPostJSONRequestBody defines body for RetrieveChunksGroupedRetrieveChunksGroupedPost for application/json ContentType.

type RetrieveChunksGroupedRetrieveChunksGroupedPostParams

type RetrieveChunksGroupedRetrieveChunksGroupedPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RetrieveChunksGroupedRetrieveChunksGroupedPostParams defines parameters for RetrieveChunksGroupedRetrieveChunksGroupedPost.

type RetrieveChunksGroupedRetrieveChunksGroupedPostResponse

type RetrieveChunksGroupedRetrieveChunksGroupedPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GroupedChunkResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRetrieveChunksGroupedRetrieveChunksGroupedPostResponse

func ParseRetrieveChunksGroupedRetrieveChunksGroupedPostResponse(rsp *http.Response) (*RetrieveChunksGroupedRetrieveChunksGroupedPostResponse, error)

ParseRetrieveChunksGroupedRetrieveChunksGroupedPostResponse parses an HTTP response from a RetrieveChunksGroupedRetrieveChunksGroupedPostWithResponse call

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) GetBody

GetBody returns the raw response body bytes

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) Status

Status returns HTTPResponse.Status

func (RetrieveChunksGroupedRetrieveChunksGroupedPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetrieveChunksRetrieveChunksPostJSONRequestBody

type RetrieveChunksRetrieveChunksPostJSONRequestBody = RetrieveRequest

RetrieveChunksRetrieveChunksPostJSONRequestBody defines body for RetrieveChunksRetrieveChunksPost for application/json ContentType.

type RetrieveChunksRetrieveChunksPostParams

type RetrieveChunksRetrieveChunksPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RetrieveChunksRetrieveChunksPostParams defines parameters for RetrieveChunksRetrieveChunksPost.

type RetrieveChunksRetrieveChunksPostResponse

type RetrieveChunksRetrieveChunksPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ChunkResult
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRetrieveChunksRetrieveChunksPostResponse

func ParseRetrieveChunksRetrieveChunksPostResponse(rsp *http.Response) (*RetrieveChunksRetrieveChunksPostResponse, error)

ParseRetrieveChunksRetrieveChunksPostResponse parses an HTTP response from a RetrieveChunksRetrieveChunksPostWithResponse call

func (RetrieveChunksRetrieveChunksPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetrieveChunksRetrieveChunksPostResponse) GetBody

GetBody returns the raw response body bytes

func (RetrieveChunksRetrieveChunksPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RetrieveChunksRetrieveChunksPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RetrieveChunksRetrieveChunksPostResponse) Status

Status returns HTTPResponse.Status

func (RetrieveChunksRetrieveChunksPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody added in v0.2.0

type RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody = V2RetrieveRequest

RetrieveChunksV2V2RetrieveChunksPostJSONRequestBody defines body for RetrieveChunksV2V2RetrieveChunksPost for application/json ContentType.

type RetrieveChunksV2V2RetrieveChunksPostParams added in v0.2.0

type RetrieveChunksV2V2RetrieveChunksPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RetrieveChunksV2V2RetrieveChunksPostParams defines parameters for RetrieveChunksV2V2RetrieveChunksPost.

type RetrieveChunksV2V2RetrieveChunksPostResponse added in v0.2.0

type RetrieveChunksV2V2RetrieveChunksPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *V2RetrieveResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRetrieveChunksV2V2RetrieveChunksPostResponse added in v0.2.0

func ParseRetrieveChunksV2V2RetrieveChunksPostResponse(rsp *http.Response) (*RetrieveChunksV2V2RetrieveChunksPostResponse, error)

ParseRetrieveChunksV2V2RetrieveChunksPostResponse parses an HTTP response from a RetrieveChunksV2V2RetrieveChunksPostWithResponse call

func (RetrieveChunksV2V2RetrieveChunksPostResponse) ContentType added in v0.2.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetrieveChunksV2V2RetrieveChunksPostResponse) GetBody added in v0.2.0

GetBody returns the raw response body bytes

func (RetrieveChunksV2V2RetrieveChunksPostResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RetrieveChunksV2V2RetrieveChunksPostResponse) GetJSON422 added in v0.2.0

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RetrieveChunksV2V2RetrieveChunksPostResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (RetrieveChunksV2V2RetrieveChunksPostResponse) StatusCode added in v0.2.0

StatusCode returns HTTPResponse.StatusCode

type RetrieveDocumentsRetrieveDocsPostJSONRequestBody

type RetrieveDocumentsRetrieveDocsPostJSONRequestBody = RetrieveRequest

RetrieveDocumentsRetrieveDocsPostJSONRequestBody defines body for RetrieveDocumentsRetrieveDocsPost for application/json ContentType.

type RetrieveDocumentsRetrieveDocsPostParams

type RetrieveDocumentsRetrieveDocsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

RetrieveDocumentsRetrieveDocsPostParams defines parameters for RetrieveDocumentsRetrieveDocsPost.

type RetrieveDocumentsRetrieveDocsPostResponse

type RetrieveDocumentsRetrieveDocsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]DocumentResult
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRetrieveDocumentsRetrieveDocsPostResponse

func ParseRetrieveDocumentsRetrieveDocsPostResponse(rsp *http.Response) (*RetrieveDocumentsRetrieveDocsPostResponse, error)

ParseRetrieveDocumentsRetrieveDocsPostResponse parses an HTTP response from a RetrieveDocumentsRetrieveDocsPostWithResponse call

func (RetrieveDocumentsRetrieveDocsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetrieveDocumentsRetrieveDocsPostResponse) GetBody

GetBody returns the raw response body bytes

func (RetrieveDocumentsRetrieveDocsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RetrieveDocumentsRetrieveDocsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RetrieveDocumentsRetrieveDocsPostResponse) Status

Status returns HTTPResponse.Status

func (RetrieveDocumentsRetrieveDocsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetrieveRequest

type RetrieveRequest struct {
	// EndUserId Optional end-user scope for the operation
	EndUserId *string `json:"end_user_id,omitempty"`

	// Filters Metadata filters supporting logical operators ($and/$or/$not/$nor) and field predicates ($eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$type/$regex/$contains).
	Filters *map[string]interface{} `json:"filters,omitempty"`

	// FolderDepth Folder scope depth. 0 or None = exact folder only, -1 = include all descendants, n > 0 = include descendants up to n levels deeper.
	FolderDepth *int `json:"folder_depth,omitempty"`

	// FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
	FolderName *RetrieveRequest_FolderName `json:"folder_name,omitempty"`

	// K Maximum number of chunks or documents to return.
	K *int `json:"k,omitempty"`

	// MinScore Minimum similarity score a result must meet before it is returned.
	MinScore *float64 `json:"min_score,omitempty"`

	// OutputFormat How to return image chunks: base64 (default), url, or text (markdown format)
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Padding Number of additional chunks/pages to retrieve before and after matched chunks (ColPali only)
	Padding *int `json:"padding,omitempty"`

	// Query Natural-language query used to retrieve relevant chunks or documents.
	Query *string `json:"query,omitempty"`

	// QueryImage Base64-encoded image to use as query for Morphik multimodal retrieval. Requires use_colpali=True. Mutually exclusive with 'query'.
	QueryImage *string `json:"query_image,omitempty"`

	// UseColpali When provided, uses Morphik's finetuned ColPali style embeddings (recommended to be True for high quality retrieval).
	UseColpali *bool `json:"use_colpali,omitempty"`

	// UseReranking When provided, overrides the workspace reranking configuration for this request.
	UseReranking *bool `json:"use_reranking,omitempty"`
}

RetrieveRequest Base retrieve request model

type RetrieveRequestFolderName0

type RetrieveRequestFolderName0 = string

RetrieveRequestFolderName0 defines model for RetrieveRequest.FolderName.0.

type RetrieveRequestFolderName1

type RetrieveRequestFolderName1 = []string

RetrieveRequestFolderName1 defines model for RetrieveRequest.FolderName.1.

type RetrieveRequest_FolderName

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

RetrieveRequest_FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.

func (RetrieveRequest_FolderName) AsRetrieveRequestFolderName0

func (t RetrieveRequest_FolderName) AsRetrieveRequestFolderName0() (RetrieveRequestFolderName0, error)

AsRetrieveRequestFolderName0 returns the union data inside the RetrieveRequest_FolderName as a RetrieveRequestFolderName0

func (RetrieveRequest_FolderName) AsRetrieveRequestFolderName1

func (t RetrieveRequest_FolderName) AsRetrieveRequestFolderName1() (RetrieveRequestFolderName1, error)

AsRetrieveRequestFolderName1 returns the union data inside the RetrieveRequest_FolderName as a RetrieveRequestFolderName1

func (*RetrieveRequest_FolderName) FromRetrieveRequestFolderName0

func (t *RetrieveRequest_FolderName) FromRetrieveRequestFolderName0(v RetrieveRequestFolderName0) error

FromRetrieveRequestFolderName0 overwrites any union data inside the RetrieveRequest_FolderName as the provided RetrieveRequestFolderName0

func (*RetrieveRequest_FolderName) FromRetrieveRequestFolderName1

func (t *RetrieveRequest_FolderName) FromRetrieveRequestFolderName1(v RetrieveRequestFolderName1) error

FromRetrieveRequestFolderName1 overwrites any union data inside the RetrieveRequest_FolderName as the provided RetrieveRequestFolderName1

func (RetrieveRequest_FolderName) MarshalJSON

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

func (*RetrieveRequest_FolderName) MergeRetrieveRequestFolderName0

func (t *RetrieveRequest_FolderName) MergeRetrieveRequestFolderName0(v RetrieveRequestFolderName0) error

MergeRetrieveRequestFolderName0 performs a merge with any union data inside the RetrieveRequest_FolderName, using the provided RetrieveRequestFolderName0

func (*RetrieveRequest_FolderName) MergeRetrieveRequestFolderName1

func (t *RetrieveRequest_FolderName) MergeRetrieveRequestFolderName1(v RetrieveRequestFolderName1) error

MergeRetrieveRequestFolderName1 performs a merge with any union data inside the RetrieveRequest_FolderName, using the provided RetrieveRequestFolderName1

func (*RetrieveRequest_FolderName) UnmarshalJSON

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

type RotateAppTokenAppsRotateTokenPostParams

type RotateAppTokenAppsRotateTokenPostParams struct {
	// AppId Application ID to rotate
	AppId *string `form:"app_id,omitempty" json:"app_id,omitempty"`

	// AppName Application name to rotate
	AppName *string `form:"app_name,omitempty" json:"app_name,omitempty"`

	// ExpiryDays Number of days until the new token expires
	ExpiryDays          *int    `form:"expiry_days,omitempty" json:"expiry_days,omitempty"`
	Authorization       *string `json:"authorization,omitempty"`
	XMorphikAdminSecret *string `json:"X-Morphik-Admin-Secret,omitempty"`
}

RotateAppTokenAppsRotateTokenPostParams defines parameters for RotateAppTokenAppsRotateTokenPost.

type RotateAppTokenAppsRotateTokenPostResponse

type RotateAppTokenAppsRotateTokenPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseRotateAppTokenAppsRotateTokenPostResponse

func ParseRotateAppTokenAppsRotateTokenPostResponse(rsp *http.Response) (*RotateAppTokenAppsRotateTokenPostResponse, error)

ParseRotateAppTokenAppsRotateTokenPostResponse parses an HTTP response from a RotateAppTokenAppsRotateTokenPostWithResponse call

func (RotateAppTokenAppsRotateTokenPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RotateAppTokenAppsRotateTokenPostResponse) GetBody

GetBody returns the raw response body bytes

func (RotateAppTokenAppsRotateTokenPostResponse) GetJSON200

func (r RotateAppTokenAppsRotateTokenPostResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RotateAppTokenAppsRotateTokenPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RotateAppTokenAppsRotateTokenPostResponse) Status

Status returns HTTPResponse.Status

func (RotateAppTokenAppsRotateTokenPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SaveApiKeyApiKeysPostJSONRequestBody

type SaveApiKeyApiKeysPostJSONRequestBody = SaveApiKeyRequest

SaveApiKeyApiKeysPostJSONRequestBody defines body for SaveApiKeyApiKeysPost for application/json ContentType.

type SaveApiKeyApiKeysPostParams

type SaveApiKeyApiKeysPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

SaveApiKeyApiKeysPostParams defines parameters for SaveApiKeyApiKeysPost.

type SaveApiKeyApiKeysPostResponse

type SaveApiKeyApiKeysPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]string
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseSaveApiKeyApiKeysPostResponse

func ParseSaveApiKeyApiKeysPostResponse(rsp *http.Response) (*SaveApiKeyApiKeysPostResponse, error)

ParseSaveApiKeyApiKeysPostResponse parses an HTTP response from a SaveApiKeyApiKeysPostWithResponse call

func (SaveApiKeyApiKeysPostResponse) ContentType

func (r SaveApiKeyApiKeysPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SaveApiKeyApiKeysPostResponse) GetBody

func (r SaveApiKeyApiKeysPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SaveApiKeyApiKeysPostResponse) GetJSON200

func (r SaveApiKeyApiKeysPostResponse) GetJSON200() *map[string]string

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SaveApiKeyApiKeysPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SaveApiKeyApiKeysPostResponse) Status

Status returns HTTPResponse.Status

func (SaveApiKeyApiKeysPostResponse) StatusCode

func (r SaveApiKeyApiKeysPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SaveApiKeyRequest

type SaveApiKeyRequest struct {
	ApiKey   string  `json:"api_key"`
	BaseUrl  *string `json:"base_url,omitempty"`
	Provider string  `json:"provider"`
}

SaveApiKeyRequest Request to save API keys.

type SaveModelModelsPostJSONRequestBody

type SaveModelModelsPostJSONRequestBody = SaveModelRequest

SaveModelModelsPostJSONRequestBody defines body for SaveModelModelsPost for application/json ContentType.

type SaveModelModelsPostParams

type SaveModelModelsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

SaveModelModelsPostParams defines parameters for SaveModelModelsPost.

type SaveModelModelsPostResponse

type SaveModelModelsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ModelResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseSaveModelModelsPostResponse

func ParseSaveModelModelsPostResponse(rsp *http.Response) (*SaveModelModelsPostResponse, error)

ParseSaveModelModelsPostResponse parses an HTTP response from a SaveModelModelsPostWithResponse call

func (SaveModelModelsPostResponse) ContentType

func (r SaveModelModelsPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SaveModelModelsPostResponse) GetBody

func (r SaveModelModelsPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SaveModelModelsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SaveModelModelsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SaveModelModelsPostResponse) Status

Status returns HTTPResponse.Status

func (SaveModelModelsPostResponse) StatusCode

func (r SaveModelModelsPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SaveModelRequest

type SaveModelRequest struct {
	Config   map[string]interface{} `json:"config"`
	Name     string                 `json:"name"`
	Provider string                 `json:"provider"`
}

SaveModelRequest Request to save a custom model.

type SearchDocumentsByNameSearchDocumentsPostJSONRequestBody

type SearchDocumentsByNameSearchDocumentsPostJSONRequestBody = SearchDocumentsRequest

SearchDocumentsByNameSearchDocumentsPostJSONRequestBody defines body for SearchDocumentsByNameSearchDocumentsPost for application/json ContentType.

type SearchDocumentsByNameSearchDocumentsPostParams

type SearchDocumentsByNameSearchDocumentsPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

SearchDocumentsByNameSearchDocumentsPostParams defines parameters for SearchDocumentsByNameSearchDocumentsPost.

type SearchDocumentsByNameSearchDocumentsPostResponse

type SearchDocumentsByNameSearchDocumentsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseSearchDocumentsByNameSearchDocumentsPostResponse

func ParseSearchDocumentsByNameSearchDocumentsPostResponse(rsp *http.Response) (*SearchDocumentsByNameSearchDocumentsPostResponse, error)

ParseSearchDocumentsByNameSearchDocumentsPostResponse parses an HTTP response from a SearchDocumentsByNameSearchDocumentsPostWithResponse call

func (SearchDocumentsByNameSearchDocumentsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchDocumentsByNameSearchDocumentsPostResponse) GetBody

GetBody returns the raw response body bytes

func (SearchDocumentsByNameSearchDocumentsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchDocumentsByNameSearchDocumentsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SearchDocumentsByNameSearchDocumentsPostResponse) Status

Status returns HTTPResponse.Status

func (SearchDocumentsByNameSearchDocumentsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SearchDocumentsRequest

type SearchDocumentsRequest struct {
	// EndUserId Optional end-user scope for the search
	EndUserId *string `json:"end_user_id,omitempty"`

	// Filters Optional metadata filters for documents
	Filters *map[string]interface{} `json:"filters,omitempty"`

	// FolderDepth Folder scope depth: 0/None exact, -1 all descendants, n>0 include descendants up to n levels.
	FolderDepth *int `json:"folder_depth,omitempty"`

	// FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
	FolderName *SearchDocumentsRequest_FolderName `json:"folder_name,omitempty"`

	// Limit Number of documents to return
	Limit *int `json:"limit,omitempty"`

	// Query Search query for document names/filenames
	Query string `json:"query"`
}

SearchDocumentsRequest Request model for searching documents by name

type SearchDocumentsRequestFolderName0

type SearchDocumentsRequestFolderName0 = string

SearchDocumentsRequestFolderName0 defines model for SearchDocumentsRequest.FolderName.0.

type SearchDocumentsRequestFolderName1

type SearchDocumentsRequestFolderName1 = []string

SearchDocumentsRequestFolderName1 defines model for SearchDocumentsRequest.FolderName.1.

type SearchDocumentsRequest_FolderName

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

SearchDocumentsRequest_FolderName Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.

func (SearchDocumentsRequest_FolderName) AsSearchDocumentsRequestFolderName0

func (t SearchDocumentsRequest_FolderName) AsSearchDocumentsRequestFolderName0() (SearchDocumentsRequestFolderName0, error)

AsSearchDocumentsRequestFolderName0 returns the union data inside the SearchDocumentsRequest_FolderName as a SearchDocumentsRequestFolderName0

func (SearchDocumentsRequest_FolderName) AsSearchDocumentsRequestFolderName1

func (t SearchDocumentsRequest_FolderName) AsSearchDocumentsRequestFolderName1() (SearchDocumentsRequestFolderName1, error)

AsSearchDocumentsRequestFolderName1 returns the union data inside the SearchDocumentsRequest_FolderName as a SearchDocumentsRequestFolderName1

func (*SearchDocumentsRequest_FolderName) FromSearchDocumentsRequestFolderName0

func (t *SearchDocumentsRequest_FolderName) FromSearchDocumentsRequestFolderName0(v SearchDocumentsRequestFolderName0) error

FromSearchDocumentsRequestFolderName0 overwrites any union data inside the SearchDocumentsRequest_FolderName as the provided SearchDocumentsRequestFolderName0

func (*SearchDocumentsRequest_FolderName) FromSearchDocumentsRequestFolderName1

func (t *SearchDocumentsRequest_FolderName) FromSearchDocumentsRequestFolderName1(v SearchDocumentsRequestFolderName1) error

FromSearchDocumentsRequestFolderName1 overwrites any union data inside the SearchDocumentsRequest_FolderName as the provided SearchDocumentsRequestFolderName1

func (SearchDocumentsRequest_FolderName) MarshalJSON

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

func (*SearchDocumentsRequest_FolderName) MergeSearchDocumentsRequestFolderName0

func (t *SearchDocumentsRequest_FolderName) MergeSearchDocumentsRequestFolderName0(v SearchDocumentsRequestFolderName0) error

MergeSearchDocumentsRequestFolderName0 performs a merge with any union data inside the SearchDocumentsRequest_FolderName, using the provided SearchDocumentsRequestFolderName0

func (*SearchDocumentsRequest_FolderName) MergeSearchDocumentsRequestFolderName1

func (t *SearchDocumentsRequest_FolderName) MergeSearchDocumentsRequestFolderName1(v SearchDocumentsRequestFolderName1) error

MergeSearchDocumentsRequestFolderName1 performs a merge with any union data inside the SearchDocumentsRequest_FolderName, using the provided SearchDocumentsRequestFolderName1

func (*SearchDocumentsRequest_FolderName) UnmarshalJSON

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

type ServiceStatus

type ServiceStatus struct {
	Message        *string  `json:"message,omitempty"`
	Name           string   `json:"name"`
	ResponseTimeMs *float64 `json:"response_time_ms,omitempty"`
	Status         string   `json:"status"`
}

ServiceStatus Status of an individual service

type StructuredCompletion

type StructuredCompletion map[string]interface{}

StructuredCompletion Structured completion object for schema-based responses

type SummaryResponse

type SummaryResponse struct {
	Bucket     *string `json:"bucket,omitempty"`
	Content    string  `json:"content"`
	StorageKey string  `json:"storage_key"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
	Version    int     `json:"version"`
}

SummaryResponse Response payload returned when reading or writing summaries.

type SummaryUpsertRequest

type SummaryUpsertRequest struct {
	// Content Summary content to persist (markdown/text)
	Content string `json:"content"`

	// OverwriteLatest Allow overwriting the latest summary when versioning is disabled
	OverwriteLatest *bool `json:"overwrite_latest,omitempty"`

	// Versioning When true, automatically increments the summary version instead of overwriting the latest version
	Versioning *bool `json:"versioning,omitempty"`
}

SummaryUpsertRequest Request payload for writing or updating an entity summary.

type UpdateChatTitleChatsChatIdTitlePatchParams

type UpdateChatTitleChatsChatIdTitlePatchParams struct {
	// Title New title for the chat
	Title         string  `form:"title" json:"title"`
	Authorization *string `json:"authorization,omitempty"`
}

UpdateChatTitleChatsChatIdTitlePatchParams defines parameters for UpdateChatTitleChatsChatIdTitlePatch.

type UpdateChatTitleChatsChatIdTitlePatchResponse

type UpdateChatTitleChatsChatIdTitlePatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ChatTitleResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateChatTitleChatsChatIdTitlePatchResponse

func ParseUpdateChatTitleChatsChatIdTitlePatchResponse(rsp *http.Response) (*UpdateChatTitleChatsChatIdTitlePatchResponse, error)

ParseUpdateChatTitleChatsChatIdTitlePatchResponse parses an HTTP response from a UpdateChatTitleChatsChatIdTitlePatchWithResponse call

func (UpdateChatTitleChatsChatIdTitlePatchResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateChatTitleChatsChatIdTitlePatchResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateChatTitleChatsChatIdTitlePatchResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateChatTitleChatsChatIdTitlePatchResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateChatTitleChatsChatIdTitlePatchResponse) Status

Status returns HTTPResponse.Status

func (UpdateChatTitleChatsChatIdTitlePatchResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostMultipartRequestBody

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostMultipartRequestBody = BodyUpdateDocumentFileDocumentsDocumentIdUpdateFilePost

UpdateDocumentFileDocumentsDocumentIdUpdateFilePostMultipartRequestBody defines body for UpdateDocumentFileDocumentsDocumentIdUpdateFilePost for multipart/form-data ContentType.

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

UpdateDocumentFileDocumentsDocumentIdUpdateFilePostParams defines parameters for UpdateDocumentFileDocumentsDocumentIdUpdateFilePost.

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse

type UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse

func ParseUpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse(rsp *http.Response) (*UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse, error)

ParseUpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse parses an HTTP response from a UpdateDocumentFileDocumentsDocumentIdUpdateFilePostWithResponse call

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) Status

Status returns HTTPResponse.Status

func (UpdateDocumentFileDocumentsDocumentIdUpdateFilePostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody = MetadataUpdateRequest

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostJSONRequestBody defines body for UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost for application/json ContentType.

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostParams defines parameters for UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPost.

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse

type UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse

func ParseUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse(rsp *http.Response) (*UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse, error)

ParseUpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse parses an HTTP response from a UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostWithResponse call

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) Status

Status returns HTTPResponse.Status

func (UpdateDocumentMetadataDocumentsDocumentIdUpdateMetadataPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody = IngestTextRequest

UpdateDocumentTextDocumentsDocumentIdUpdateTextPostJSONRequestBody defines body for UpdateDocumentTextDocumentsDocumentIdUpdateTextPost for application/json ContentType.

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

UpdateDocumentTextDocumentsDocumentIdUpdateTextPostParams defines parameters for UpdateDocumentTextDocumentsDocumentIdUpdateTextPost.

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse

type UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Document
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse

func ParseUpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse(rsp *http.Response) (*UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse, error)

ParseUpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse parses an HTTP response from a UpdateDocumentTextDocumentsDocumentIdUpdateTextPostWithResponse call

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) Status

Status returns HTTPResponse.Status

func (UpdateDocumentTextDocumentsDocumentIdUpdateTextPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody = SummaryUpsertRequest

UpsertDocumentSummaryDocumentsDocumentIdSummaryPutJSONRequestBody defines body for UpsertDocumentSummaryDocumentsDocumentIdSummaryPut for application/json ContentType.

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

UpsertDocumentSummaryDocumentsDocumentIdSummaryPutParams defines parameters for UpsertDocumentSummaryDocumentsDocumentIdSummaryPut.

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse

type UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SummaryResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse

func ParseUpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse(rsp *http.Response) (*UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse, error)

ParseUpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse parses an HTTP response from a UpsertDocumentSummaryDocumentsDocumentIdSummaryPutWithResponse call

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) GetBody

GetBody returns the raw response body bytes

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) Status

Status returns HTTPResponse.Status

func (UpsertDocumentSummaryDocumentsDocumentIdSummaryPutResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody = SummaryUpsertRequest

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutJSONRequestBody defines body for UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut for application/json ContentType.

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams struct {
	Authorization *string `json:"authorization,omitempty"`
}

UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutParams defines parameters for UpsertFolderSummaryFoldersFolderIdOrNameSummaryPut.

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse

type UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SummaryResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse

func ParseUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse(rsp *http.Response) (*UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse, error)

ParseUpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse parses an HTTP response from a UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutWithResponse call

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) GetBody

GetBody returns the raw response body bytes

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) Status

Status returns HTTPResponse.Status

func (UpsertFolderSummaryFoldersFolderIdOrNameSummaryPutResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type V2ChunkResult added in v0.2.0

type V2ChunkResult struct {
	ChunkId     string  `json:"chunk_id"`
	ChunkNumber *int    `json:"chunk_number,omitempty"`
	Content     string  `json:"content"`
	DocumentId  string  `json:"document_id"`
	PageNumber  *int    `json:"page_number,omitempty"`
	Score       float64 `json:"score"`
}

V2ChunkResult defines model for V2ChunkResult.

type V2IngestResponse added in v0.2.0

type V2IngestResponse struct {
	ChunkCount int     `json:"chunk_count"`
	DocumentId string  `json:"document_id"`
	Filename   string  `json:"filename"`
	Status     *string `json:"status,omitempty"`
}

V2IngestResponse defines model for V2IngestResponse.

type V2RetrieveFilters added in v0.2.0

type V2RetrieveFilters struct {
	// DocumentIds Limit to specific document IDs
	DocumentIds *[]string `json:"document_ids,omitempty"`

	// FolderPaths Limit to specific folder paths
	FolderPaths *[]string `json:"folder_paths,omitempty"`

	// Metadata Chunk-level metadata filters
	Metadata *map[string]interface{} `json:"metadata,omitempty"`
}

V2RetrieveFilters defines model for V2RetrieveFilters.

type V2RetrieveRequest added in v0.2.0

type V2RetrieveRequest struct {
	// EndUserId Optional end-user scope
	EndUserId *string            `json:"end_user_id,omitempty"`
	Filters   *V2RetrieveFilters `json:"filters,omitempty"`
	Query     string             `json:"query"`
	TopK      *int               `json:"top_k,omitempty"`
}

V2RetrieveRequest defines model for V2RetrieveRequest.

type V2RetrieveResponse added in v0.2.0

type V2RetrieveResponse struct {
	Chunks []V2ChunkResult `json:"chunks"`
	Query  string          `json:"query"`
}

V2RetrieveResponse defines model for V2RetrieveResponse.

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

Jump to

Keyboard shortcuts

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