exa

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 12 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-exa

Go Reference CI version license imported by

Unofficial Go client for the Exa API, generated with oapi-codegen from the OpenAPI spec Exa publishes.

The package exa lives in the repository root and talks to https://api.exa.ai. client.gen.go is generated. Don't edit it by hand, regenerate it.

Install

go get github.com/psyb0t/go-exa

Usage

Every endpoint in the spec has a typed method on ClientWithResponses, including Search, FindSimilar, GetContents, Answer and the Agent and Websets APIs. The current specification removes the earlier research task operations and adds agent runs.

package main

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

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

func main() {
	auth := exa.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {
		req.Header.Set("x-api-key", os.Getenv("EXA_API_KEY"))

		return nil
	})

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

	res, err := client.SearchWithResponse(
		context.Background(),
		exa.SearchJSONRequestBody{Query: "latest research in LLMs"},
	)
	if err != nil {
		panic(err)
	}

	if res.JSON200 == nil {
		return
	}

	results, err := res.JSON200.AsSearchResultsResponse()
	if err != nil {
		panic(err)
	}

	for _, result := range results.Results {
		fmt.Println(result.Url)
	}
}

example_test.go runs the same code against a local test server, so make test fails if the example stops compiling.

The full API, with the spec's descriptions as doc comments, is in the Go reference and in go doc github.com/psyb0t/go-exa.

The spec reuses some names for both a schema and an operation's response wrapper. The schemas keep the plain name (SearchResponse, AnswerResponse, FindSimilarResponse) and the wrappers returned by the ...WithResponse methods get a 2 suffix (SearchResponse2).

Auth

Exa authenticates with an API key from the dashboard, sent in the x-api-key header. The spec also accepts Authorization: Bearer <key>. The generated client sets neither, so pass a RequestEditorFn as shown above, either to the constructor with WithRequestEditorFn or per call as the last argument.

Regenerating

Exa's 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 exa-openapi-spec.yaml from exa-labs/openapi-spec to api/openapi.yaml.
  • oapi-codegen applies spec-overlay.yml through config.yaml before generating client.gen.go. The overlay removes unmapped discriminator hints on inline event schemas, represents arbitrary recursive JSON with json.RawMessage, and names the JSON Schema additionalProperties field AllowAdditionalProperties to avoid a collision with generated extra-field storage. Raw JSON preserves objects, arrays, scalars and null without numeric conversion.

.github/workflows/regen.yml does the same every day in CI. When the new 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: a patch version for fixes and additions, a minor version for breaking changes.

Agent integrations

The skill teaches a coding agent how to use go-exa 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-exa@psyb0t
Codex
codex plugin marketplace add psyb0t/agents
codex plugin add go-exa@psyb0t

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

OpenClaw

The skill is published to ClawHub on every release:

openclaw skills install @psyb0t/go-exa

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
Automatic regeneration

A scheduled workflow (.github/workflows/regen.yml) runs make generate once a day. When Exa's spec has changed the client, it runs make lint, make test and make sec, writes a CHANGELOG entry describing the new, removed and changed client methods and types, bumps the version, commits, tags and publishes the release. If nothing changed, the run does nothing. A failed scheduled run opens an issue instead of pushing.

License

MIT. The generated code comes from Exa's published API specification. The specification itself is not redistributed here.

Documentation

Overview

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

Example

Example is the README usage example. A local server stands in for https://api.exa.ai so the example runs without network access or a key.

package main

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

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

func main() {
	srv := httptest.NewServer(http.HandlerFunc(
		func(w http.ResponseWriter, _ *http.Request) {
			w.Header().Set("Content-Type", "application/json")
			_, _ = w.Write([]byte(
				`{"results":[{"id":"1","url":"https://example.com"}]}`,
			))
		},
	))
	defer srv.Close()

	auth := exa.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set("x-api-key", os.Getenv("EXA_API_KEY"))

			return nil
		},
	)

	client, err := exa.NewClientWithResponses(srv.URL, auth)
	if err != nil {
		panic(err)
	}

	res, err := client.SearchWithResponse(
		context.Background(),
		exa.SearchJSONRequestBody{Query: "latest research in LLMs"},
	)
	if err != nil {
		panic(err)
	}

	if res.JSON200 == nil {
		return
	}

	results, err := res.JSON200.AsSearchResultsResponse()
	if err != nil {
		panic(err)
	}

	for _, result := range results.Results {
		fmt.Println(result.Url)
	}

}
Output:
https://example.com

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnswerRequest

func NewAnswerRequest(server string, body AnswerJSONRequestBody) (*http.Request, error)

NewAnswerRequest calls the generic Answer builder with application/json body

func NewAnswerRequestWithBody

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

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

func NewBatchMonitorsRequest added in v0.2.0

func NewBatchMonitorsRequest(server string, body BatchMonitorsJSONRequestBody) (*http.Request, error)

NewBatchMonitorsRequest calls the generic BatchMonitors builder with application/json body

func NewBatchMonitorsRequestWithBody added in v0.2.0

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

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

func NewCancelAgentRunRequest added in v0.2.0

func NewCancelAgentRunRequest(server string, id AgentRunId) (*http.Request, error)

NewCancelAgentRunRequest constructs an http.Request for the CancelAgentRun method

func NewCancelBatchRequest added in v0.2.0

func NewCancelBatchRequest(server string, id string, params *CancelBatchParams) (*http.Request, error)

NewCancelBatchRequest constructs an http.Request for the CancelBatch method

func NewCreateAgentRunRequest added in v0.2.0

func NewCreateAgentRunRequest(server string, params *CreateAgentRunParams, body CreateAgentRunJSONRequestBody) (*http.Request, error)

NewCreateAgentRunRequest calls the generic CreateAgentRun builder with application/json body

func NewCreateAgentRunRequestWithBody added in v0.2.0

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

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

func NewCreateBatchRequest added in v0.2.0

func NewCreateBatchRequest(server string, params *CreateBatchParams, body CreateBatchJSONRequestBody) (*http.Request, error)

NewCreateBatchRequest calls the generic CreateBatch builder with application/json body

func NewCreateBatchRequestWithBody added in v0.2.0

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

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

func NewCreateMonitorRequest added in v0.2.0

func NewCreateMonitorRequest(server string, body CreateMonitorJSONRequestBody) (*http.Request, error)

NewCreateMonitorRequest calls the generic CreateMonitor builder with application/json body

func NewCreateMonitorRequestWithBody added in v0.2.0

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

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

func NewDeleteAgentRunRequest added in v0.2.0

func NewDeleteAgentRunRequest(server string, id AgentRunId) (*http.Request, error)

NewDeleteAgentRunRequest constructs an http.Request for the DeleteAgentRun method

func NewDeleteBatchRequest added in v0.2.0

func NewDeleteBatchRequest(server string, id string, params *DeleteBatchParams) (*http.Request, error)

NewDeleteBatchRequest constructs an http.Request for the DeleteBatch method

func NewDeleteMonitorRequest added in v0.2.0

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

NewDeleteMonitorRequest constructs an http.Request for the DeleteMonitor method

func NewEventsGetRequest added in v0.2.0

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

NewEventsGetRequest constructs an http.Request for the EventsGet method

func NewEventsListRequest added in v0.2.0

func NewEventsListRequest(server string, params *EventsListParams) (*http.Request, error)

NewEventsListRequest constructs an http.Request for the EventsList method

func NewFindSimilarRequest

func NewFindSimilarRequest(server string, body FindSimilarJSONRequestBody) (*http.Request, error)

NewFindSimilarRequest calls the generic FindSimilar builder with application/json body

func NewFindSimilarRequestWithBody

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

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

func NewGetAgentRunRequest added in v0.2.0

func NewGetAgentRunRequest(server string, id AgentRunId) (*http.Request, error)

NewGetAgentRunRequest constructs an http.Request for the GetAgentRun method

func NewGetBatchRequest added in v0.2.0

func NewGetBatchRequest(server string, id string, params *GetBatchParams) (*http.Request, error)

NewGetBatchRequest constructs an http.Request for the GetBatch method

func NewGetContentsRequest

func NewGetContentsRequest(server string, body GetContentsJSONRequestBody) (*http.Request, error)

NewGetContentsRequest calls the generic GetContents builder with application/json body

func NewGetContentsRequestWithBody

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

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

func NewGetMonitorRequest added in v0.2.0

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

NewGetMonitorRequest constructs an http.Request for the GetMonitor method

func NewGetRunRequest added in v0.2.0

func NewGetRunRequest(server string, id string, runId string) (*http.Request, error)

NewGetRunRequest constructs an http.Request for the GetRun method

func NewImportsCreateRequest added in v0.2.0

func NewImportsCreateRequest(server string, body ImportsCreateJSONRequestBody) (*http.Request, error)

NewImportsCreateRequest calls the generic ImportsCreate builder with application/json body

func NewImportsCreateRequestWithBody added in v0.2.0

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

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

func NewImportsDeleteRequest added in v0.2.0

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

NewImportsDeleteRequest constructs an http.Request for the ImportsDelete method

func NewImportsGetRequest added in v0.2.0

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

NewImportsGetRequest constructs an http.Request for the ImportsGet method

func NewImportsListRequest added in v0.2.0

func NewImportsListRequest(server string, params *ImportsListParams) (*http.Request, error)

NewImportsListRequest constructs an http.Request for the ImportsList method

func NewImportsUpdateRequest added in v0.2.0

func NewImportsUpdateRequest(server string, id string, body ImportsUpdateJSONRequestBody) (*http.Request, error)

NewImportsUpdateRequest calls the generic ImportsUpdate builder with application/json body

func NewImportsUpdateRequestWithBody added in v0.2.0

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

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

func NewListAgentRunEventsRequest added in v0.2.0

func NewListAgentRunEventsRequest(server string, id AgentRunId, params *ListAgentRunEventsParams) (*http.Request, error)

NewListAgentRunEventsRequest constructs an http.Request for the ListAgentRunEvents method

func NewListAgentRunsRequest added in v0.2.0

func NewListAgentRunsRequest(server string, params *ListAgentRunsParams) (*http.Request, error)

NewListAgentRunsRequest constructs an http.Request for the ListAgentRuns method

func NewListBatchesRequest added in v0.2.0

func NewListBatchesRequest(server string, params *ListBatchesParams) (*http.Request, error)

NewListBatchesRequest constructs an http.Request for the ListBatches method

func NewListMonitorsRequest added in v0.2.0

func NewListMonitorsRequest(server string, params *ListMonitorsParams) (*http.Request, error)

NewListMonitorsRequest constructs an http.Request for the ListMonitors method

func NewListRunsRequest added in v0.2.0

func NewListRunsRequest(server string, id string, params *ListRunsParams) (*http.Request, error)

NewListRunsRequest constructs an http.Request for the ListRuns method

func NewMonitorsCreateRequest added in v0.2.0

func NewMonitorsCreateRequest(server string, body MonitorsCreateJSONRequestBody) (*http.Request, error)

NewMonitorsCreateRequest calls the generic MonitorsCreate builder with application/json body

func NewMonitorsCreateRequestWithBody added in v0.2.0

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

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

func NewMonitorsDeleteRequest added in v0.2.0

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

NewMonitorsDeleteRequest constructs an http.Request for the MonitorsDelete method

func NewMonitorsGetRequest added in v0.2.0

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

NewMonitorsGetRequest constructs an http.Request for the MonitorsGet method

func NewMonitorsListRequest added in v0.2.0

func NewMonitorsListRequest(server string, params *MonitorsListParams) (*http.Request, error)

NewMonitorsListRequest constructs an http.Request for the MonitorsList method

func NewMonitorsRunsGetRequest added in v0.2.0

func NewMonitorsRunsGetRequest(server string, monitor string, id string) (*http.Request, error)

NewMonitorsRunsGetRequest constructs an http.Request for the MonitorsRunsGet method

func NewMonitorsRunsListRequest added in v0.2.0

func NewMonitorsRunsListRequest(server string, monitor string) (*http.Request, error)

NewMonitorsRunsListRequest constructs an http.Request for the MonitorsRunsList method

func NewMonitorsUpdateRequest added in v0.2.0

func NewMonitorsUpdateRequest(server string, id string, body MonitorsUpdateJSONRequestBody) (*http.Request, error)

NewMonitorsUpdateRequest calls the generic MonitorsUpdate builder with application/json body

func NewMonitorsUpdateRequestWithBody added in v0.2.0

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

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

func NewSearchRequest

func NewSearchRequest(server string, body SearchJSONRequestBody) (*http.Request, error)

NewSearchRequest calls the generic Search builder with application/json body

func NewSearchRequestWithBody

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

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

func NewStopAgentRunRequest added in v0.2.0

func NewStopAgentRunRequest(server string, id AgentRunId) (*http.Request, error)

NewStopAgentRunRequest constructs an http.Request for the StopAgentRun method

func NewTeamsMeGetRequest added in v0.2.0

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

NewTeamsMeGetRequest constructs an http.Request for the TeamsMeGet method

func NewTriggerMonitorRequest added in v0.2.0

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

NewTriggerMonitorRequest constructs an http.Request for the TriggerMonitor method

func NewUpdateMonitorRequest added in v0.2.0

func NewUpdateMonitorRequest(server string, id string, body UpdateMonitorJSONRequestBody) (*http.Request, error)

NewUpdateMonitorRequest calls the generic UpdateMonitor builder with application/json body

func NewUpdateMonitorRequestWithBody added in v0.2.0

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

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

func NewWebhooksAttemptsListRequest added in v0.2.0

func NewWebhooksAttemptsListRequest(server string, id string, params *WebhooksAttemptsListParams) (*http.Request, error)

NewWebhooksAttemptsListRequest constructs an http.Request for the WebhooksAttemptsList method

func NewWebhooksCreateRequest added in v0.2.0

func NewWebhooksCreateRequest(server string, body WebhooksCreateJSONRequestBody) (*http.Request, error)

NewWebhooksCreateRequest calls the generic WebhooksCreate builder with application/json body

func NewWebhooksCreateRequestWithBody added in v0.2.0

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

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

func NewWebhooksDeleteRequest added in v0.2.0

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

NewWebhooksDeleteRequest constructs an http.Request for the WebhooksDelete method

func NewWebhooksGetRequest added in v0.2.0

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

NewWebhooksGetRequest constructs an http.Request for the WebhooksGet method

func NewWebhooksListRequest added in v0.2.0

func NewWebhooksListRequest(server string, params *WebhooksListParams) (*http.Request, error)

NewWebhooksListRequest constructs an http.Request for the WebhooksList method

func NewWebhooksUpdateRequest added in v0.2.0

func NewWebhooksUpdateRequest(server string, id string, body WebhooksUpdateJSONRequestBody) (*http.Request, error)

NewWebhooksUpdateRequest calls the generic WebhooksUpdate builder with application/json body

func NewWebhooksUpdateRequestWithBody added in v0.2.0

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

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

func NewWebsetsCancelRequest added in v0.2.0

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

NewWebsetsCancelRequest constructs an http.Request for the WebsetsCancel method

func NewWebsetsCreateRequest added in v0.2.0

func NewWebsetsCreateRequest(server string, body WebsetsCreateJSONRequestBody) (*http.Request, error)

NewWebsetsCreateRequest calls the generic WebsetsCreate builder with application/json body

func NewWebsetsCreateRequestWithBody added in v0.2.0

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

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

func NewWebsetsDeleteRequest added in v0.2.0

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

NewWebsetsDeleteRequest constructs an http.Request for the WebsetsDelete method

func NewWebsetsEnrichmentsCancelRequest added in v0.2.0

func NewWebsetsEnrichmentsCancelRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsEnrichmentsCancelRequest constructs an http.Request for the WebsetsEnrichmentsCancel method

func NewWebsetsEnrichmentsCreateRequest added in v0.2.0

func NewWebsetsEnrichmentsCreateRequest(server string, webset string, body WebsetsEnrichmentsCreateJSONRequestBody) (*http.Request, error)

NewWebsetsEnrichmentsCreateRequest calls the generic WebsetsEnrichmentsCreate builder with application/json body

func NewWebsetsEnrichmentsCreateRequestWithBody added in v0.2.0

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

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

func NewWebsetsEnrichmentsDeleteRequest added in v0.2.0

func NewWebsetsEnrichmentsDeleteRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsEnrichmentsDeleteRequest constructs an http.Request for the WebsetsEnrichmentsDelete method

func NewWebsetsEnrichmentsGetRequest added in v0.2.0

func NewWebsetsEnrichmentsGetRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsEnrichmentsGetRequest constructs an http.Request for the WebsetsEnrichmentsGet method

func NewWebsetsEnrichmentsUpdateRequest added in v0.2.0

func NewWebsetsEnrichmentsUpdateRequest(server string, webset string, id string, body WebsetsEnrichmentsUpdateJSONRequestBody) (*http.Request, error)

NewWebsetsEnrichmentsUpdateRequest calls the generic WebsetsEnrichmentsUpdate builder with application/json body

func NewWebsetsEnrichmentsUpdateRequestWithBody added in v0.2.0

func NewWebsetsEnrichmentsUpdateRequestWithBody(server string, webset string, id string, contentType string, body io.Reader) (*http.Request, error)

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

func NewWebsetsGetRequest added in v0.2.0

func NewWebsetsGetRequest(server string, id string, params *WebsetsGetParams) (*http.Request, error)

NewWebsetsGetRequest constructs an http.Request for the WebsetsGet method

func NewWebsetsItemsDeleteRequest added in v0.2.0

func NewWebsetsItemsDeleteRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsItemsDeleteRequest constructs an http.Request for the WebsetsItemsDelete method

func NewWebsetsItemsGetRequest added in v0.2.0

func NewWebsetsItemsGetRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsItemsGetRequest constructs an http.Request for the WebsetsItemsGet method

func NewWebsetsItemsListRequest added in v0.2.0

func NewWebsetsItemsListRequest(server string, webset string, params *WebsetsItemsListParams) (*http.Request, error)

NewWebsetsItemsListRequest constructs an http.Request for the WebsetsItemsList method

func NewWebsetsListRequest added in v0.2.0

func NewWebsetsListRequest(server string, params *WebsetsListParams) (*http.Request, error)

NewWebsetsListRequest constructs an http.Request for the WebsetsList method

func NewWebsetsPreviewRequest added in v0.2.0

func NewWebsetsPreviewRequest(server string, params *WebsetsPreviewParams, body WebsetsPreviewJSONRequestBody) (*http.Request, error)

NewWebsetsPreviewRequest calls the generic WebsetsPreview builder with application/json body

func NewWebsetsPreviewRequestWithBody added in v0.2.0

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

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

func NewWebsetsSearchesCancelRequest added in v0.2.0

func NewWebsetsSearchesCancelRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsSearchesCancelRequest constructs an http.Request for the WebsetsSearchesCancel method

func NewWebsetsSearchesCreateRequest added in v0.2.0

func NewWebsetsSearchesCreateRequest(server string, webset string, body WebsetsSearchesCreateJSONRequestBody) (*http.Request, error)

NewWebsetsSearchesCreateRequest calls the generic WebsetsSearchesCreate builder with application/json body

func NewWebsetsSearchesCreateRequestWithBody added in v0.2.0

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

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

func NewWebsetsSearchesGetRequest added in v0.2.0

func NewWebsetsSearchesGetRequest(server string, webset string, id string) (*http.Request, error)

NewWebsetsSearchesGetRequest constructs an http.Request for the WebsetsSearchesGet method

func NewWebsetsUpdateRequest added in v0.2.0

func NewWebsetsUpdateRequest(server string, id string, body WebsetsUpdateJSONRequestBody) (*http.Request, error)

NewWebsetsUpdateRequest calls the generic WebsetsUpdate builder with application/json body

func NewWebsetsUpdateRequestWithBody added in v0.2.0

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

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

Types

type AcceptHeader added in v0.2.0

type AcceptHeader string

AcceptHeader Set to `text/event-stream` to receive server-sent events.

const (
	AcceptHeaderApplicationjson AcceptHeader = "application/json"
	AcceptHeaderTexteventStream AcceptHeader = "text/event-stream"
)

Defines values for AcceptHeader.

func (AcceptHeader) Valid added in v0.2.0

func (e AcceptHeader) Valid() bool

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

type AgentBudget added in v0.2.0

type AgentBudget struct {
	// MaxCostDollars Maximum amount this run can spend in US dollars. Accepts $1–$100 and applies only to `auto` and `ultra`; when omitted, the default cap is $5 for `auto` and $20 for `ultra`.
	MaxCostDollars *float32 `json:"maxCostDollars,omitempty"`

	// MaxDurationSeconds Soft wall-clock ceiling for the run in seconds. Accepts 300–10,800 (5 minutes to 3 hours) and applies only to `ultra`. As the run approaches the limit, the agent stops starting new work and returns what it has found with `stopReason: "time_limit_reached"`.
	MaxDurationSeconds *int `json:"maxDurationSeconds,omitempty"`
}

AgentBudget Optional per-run spending and duration limits for the metered `auto` and `ultra` efforts. Runs that finish early may cost less than the limit.

type AgentBudgetOutput added in v0.2.0

type AgentBudgetOutput struct {
	// MaxCostDollars Maximum amount this run can spend in US dollars. Accepts $1–$100 and applies only to `auto` and `ultra`; when omitted, the default cap is $5 for `auto` and $20 for `ultra`.
	MaxCostDollars *float32 `json:"maxCostDollars,omitempty"`

	// MaxDurationSeconds Soft wall-clock ceiling for the run in seconds. Accepts 300–10,800 (5 minutes to 3 hours) and applies only to `ultra`. As the run approaches the limit, the agent stops starting new work and returns what it has found with `stopReason: "time_limit_reached"`.
	MaxDurationSeconds *int `json:"maxDurationSeconds,omitempty"`
}

AgentBudgetOutput Optional per-run spending and duration limits for the metered `auto` and `ultra` efforts. Runs that finish early may cost less than the limit.

type AgentCitation added in v0.2.0

type AgentCitation struct {
	// Title Source title.
	Title *string `json:"title,omitempty"`

	// Url Source URL.
	Url string `json:"url"`
}

AgentCitation defines model for AgentCitation.

type AgentCostDollars added in v0.2.0

type AgentCostDollars struct {
	AgentCompute float32 `json:"agentCompute"`

	// DataSources Per-provider cost in dollars for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.
	DataSources  *AgentDataSourceCost `json:"dataSources,omitempty"`
	Emails       float32              `json:"emails"`
	PhoneNumbers float32              `json:"phoneNumbers"`
	Search       float32              `json:"search"`
	Total        float32              `json:"total"`
}

AgentCostDollars defines model for AgentCostDollars.

type AgentDataSource added in v0.2.0

type AgentDataSource struct {
	// Provider Identifier of an Exa Connect data provider, such as `fiber` or `financial_datasets`. A team can use the self-serve providers and any provider enabled for it; requesting any other provider returns a 400.
	Provider AgentDataSourceProvider `json:"provider"`
}

AgentDataSource defines model for AgentDataSource.

type AgentDataSourceCost added in v0.2.0

type AgentDataSourceCost map[string]float32

AgentDataSourceCost Per-provider cost in dollars for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.

type AgentDataSourceOutput added in v0.2.0

type AgentDataSourceOutput struct {
	// Provider Identifier of an Exa Connect data provider, such as `fiber` or `financial_datasets`. A team can use the self-serve providers and any provider enabled for it; requesting any other provider returns a 400.
	Provider AgentDataSourceProvider `json:"provider"`
}

AgentDataSourceOutput defines model for AgentDataSourceOutput.

type AgentDataSourceProvider added in v0.2.0

type AgentDataSourceProvider = string

AgentDataSourceProvider Identifier of an Exa Connect data provider, such as `fiber` or `financial_datasets`. A team can use the self-serve providers and any provider enabled for it; requesting any other provider returns a 400.

type AgentDataSourceUsage added in v0.2.0

type AgentDataSourceUsage map[string]int

AgentDataSourceUsage Per-provider tool call counts for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.

type AgentEffort added in v0.2.0

type AgentEffort string

AgentEffort Cost and reasoning effort preference for the run. `auto` lets Exa choose the appropriate effort. `ultra` is the highest-effort tier for work where completeness and thoroughness matter more than latency or cost, including large list building, deep multi-source research, and criteria that are hard to verify.

const (
	AgentEffortAuto    AgentEffort = "auto"
	AgentEffortHigh    AgentEffort = "high"
	AgentEffortLow     AgentEffort = "low"
	AgentEffortMedium  AgentEffort = "medium"
	AgentEffortMinimal AgentEffort = "minimal"
	AgentEffortUltra   AgentEffort = "ultra"
	AgentEffortXhigh   AgentEffort = "xhigh"
)

Defines values for AgentEffort.

func (AgentEffort) Valid added in v0.2.0

func (e AgentEffort) Valid() bool

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

type AgentError added in v0.2.0

type AgentError struct {
	Code                 AgentErrorCode       `json:"code"`
	Message              string               `json:"message"`
	Type                 AgentErrorType       `json:"type"`
	AdditionalProperties map[string]JsonValue `json:"-"`
}

AgentError defines model for AgentError.

func (AgentError) Get added in v0.2.0

func (a AgentError) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AgentError. Returns the specified element and whether it was found

func (AgentError) MarshalJSON added in v0.2.0

func (a AgentError) MarshalJSON() ([]byte, error)

Override default JSON handling for AgentError to handle AdditionalProperties

func (*AgentError) Set added in v0.2.0

func (a *AgentError) Set(fieldName string, value JsonValue)

Setter for additional properties for AgentError

func (*AgentError) UnmarshalJSON added in v0.2.0

func (a *AgentError) UnmarshalJSON(b []byte) error

Override default JSON handling for AgentError to handle AdditionalProperties

type AgentErrorCode added in v0.2.0

type AgentErrorCode string

AgentErrorCode defines model for AgentError.Code.

const (
	AgentErrorCodeCONCURRENCYLIMITREACHED AgentErrorCode = "CONCURRENCY_LIMIT_REACHED"
	AgentErrorCodeINVALIDDATASOURCE       AgentErrorCode = "INVALID_DATA_SOURCE"
	AgentErrorCodeINVALIDOUTPUTSCHEMA     AgentErrorCode = "INVALID_OUTPUT_SCHEMA"
	AgentErrorCodeINVALIDREQUEST          AgentErrorCode = "INVALID_REQUEST"
	AgentErrorCodePREVIOUSRUNNOTCOMPLETED AgentErrorCode = "PREVIOUS_RUN_NOT_COMPLETED"
	AgentErrorCodePREVIOUSRUNNOTFOUND     AgentErrorCode = "PREVIOUS_RUN_NOT_FOUND"
	AgentErrorCodeRUNNOTFOUND             AgentErrorCode = "RUN_NOT_FOUND"
	AgentErrorCodeSERVERERROR             AgentErrorCode = "SERVER_ERROR"
	AgentErrorCodeTEAMNOTFOUND            AgentErrorCode = "TEAM_NOT_FOUND"
	AgentErrorCodeTIMEOUT                 AgentErrorCode = "TIMEOUT"
)

Defines values for AgentErrorCode.

func (AgentErrorCode) Valid added in v0.2.0

func (e AgentErrorCode) Valid() bool

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

type AgentErrorResponse added in v0.2.0

type AgentErrorResponse struct {
	Error AgentError `json:"error"`
}

AgentErrorResponse defines model for AgentErrorResponse.

type AgentErrorType added in v0.2.0

type AgentErrorType string

AgentErrorType defines model for AgentError.Type.

const (
	AgentErrorTypeAUTHENTICATIONERROR AgentErrorType = "AUTHENTICATION_ERROR"
	AgentErrorTypeINVALIDREQUEST      AgentErrorType = "INVALID_REQUEST"
	AgentErrorTypeNOTFOUND            AgentErrorType = "NOT_FOUND"
	AgentErrorTypeRATELIMITERROR      AgentErrorType = "RATE_LIMIT_ERROR"
	AgentErrorTypeSERVERERROR         AgentErrorType = "SERVER_ERROR"
)

Defines values for AgentErrorType.

func (AgentErrorType) Valid added in v0.2.0

func (e AgentErrorType) Valid() bool

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

type AgentGrounding added in v0.2.0

type AgentGrounding struct {
	Citations  []AgentCitation           `json:"citations"`
	Confidence *AgentGroundingConfidence `json:"confidence,omitempty"`

	// Field Output field the citations support.
	Field string `json:"field"`
}

AgentGrounding defines model for AgentGrounding.

type AgentGroundingConfidence added in v0.2.0

type AgentGroundingConfidence string

AgentGroundingConfidence Model-reported reliability for this field.

const (
	AgentGroundingConfidenceHigh   AgentGroundingConfidence = "high"
	AgentGroundingConfidenceLow    AgentGroundingConfidence = "low"
	AgentGroundingConfidenceMedium AgentGroundingConfidence = "medium"
)

Defines values for AgentGroundingConfidence.

func (AgentGroundingConfidence) Valid added in v0.2.0

func (e AgentGroundingConfidence) Valid() bool

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

type AgentRun added in v0.2.0

type AgentRun struct {
	CompletedAt *time.Time       `json:"completedAt"`
	CostDollars AgentCostDollars `json:"costDollars"`

	// CreatedAt When the run was created
	CreatedAt time.Time `json:"createdAt"`

	// Id Agent run ID. New run IDs are returned with the `agent_run_` prefix.
	Id      AgentRunId       `json:"id"`
	Object  AgentRunObject   `json:"object"`
	Output  AgentRunOutput   `json:"output"`
	Request *AgentRunRequest `json:"request"`
	Status  AgentRunStatus   `json:"status"`

	// StopReason Why the run stopped. `null` while the run is queued or running. Every reason except `error` and `cancelled` means the run completed and returned what it found. Clients should accept values not listed here.
	StopReason *AgentStopReason `json:"stopReason"`

	// Usage Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional.
	Usage AgentUsage `json:"usage"`
}

AgentRun defines model for AgentRun.

type AgentRunEvent added in v0.2.0

type AgentRunEvent struct {
	// CreatedAt When the event was created
	CreatedAt time.Time `json:"createdAt"`

	// Data Any JSON value.
	Data  JsonValue          `json:"data"`
	Event AgentRunEventEvent `json:"event"`

	// Id Event ID within the run.
	Id string `json:"id"`
}

AgentRunEvent defines model for AgentRunEvent.

type AgentRunEventEvent added in v0.2.0

type AgentRunEventEvent string

AgentRunEventEvent defines model for AgentRunEvent.Event.

const (
	AgentRunEventEventAgentRunCancelled AgentRunEventEvent = "agent_run.cancelled"
	AgentRunEventEventAgentRunCompleted AgentRunEventEvent = "agent_run.completed"
	AgentRunEventEventAgentRunCreated   AgentRunEventEvent = "agent_run.created"
	AgentRunEventEventAgentRunFailed    AgentRunEventEvent = "agent_run.failed"
	AgentRunEventEventAgentRunStarted   AgentRunEventEvent = "agent_run.started"
)

Defines values for AgentRunEventEvent.

func (AgentRunEventEvent) Valid added in v0.2.0

func (e AgentRunEventEvent) Valid() bool

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

type AgentRunEventList added in v0.2.0

type AgentRunEventList struct {
	Data []AgentRunEvent `json:"data"`

	// HasMore Whether there are more results
	HasMore    bool                    `json:"hasMore"`
	NextCursor *string                 `json:"nextCursor"`
	Object     AgentRunEventListObject `json:"object"`
}

AgentRunEventList defines model for AgentRunEventList.

type AgentRunEventListObject added in v0.2.0

type AgentRunEventListObject string

AgentRunEventListObject defines model for AgentRunEventList.Object.

const (
	AgentRunEventListObjectList AgentRunEventListObject = "list"
)

Defines values for AgentRunEventListObject.

func (AgentRunEventListObject) Valid added in v0.2.0

func (e AgentRunEventListObject) Valid() bool

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

type AgentRunId added in v0.2.0

type AgentRunId = string

AgentRunId Agent run ID. New run IDs are returned with the `agent_run_` prefix.

type AgentRunList added in v0.2.0

type AgentRunList struct {
	Data []AgentRun `json:"data"`

	// HasMore Whether there are more results
	HasMore    bool               `json:"hasMore"`
	NextCursor *AgentRunId        `json:"nextCursor"`
	Object     AgentRunListObject `json:"object"`
}

AgentRunList defines model for AgentRunList.

type AgentRunListObject added in v0.2.0

type AgentRunListObject string

AgentRunListObject defines model for AgentRunList.Object.

const (
	AgentRunListObjectList AgentRunListObject = "list"
)

Defines values for AgentRunListObject.

func (AgentRunListObject) Valid added in v0.2.0

func (e AgentRunListObject) Valid() bool

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

type AgentRunObject added in v0.2.0

type AgentRunObject string

AgentRunObject defines model for AgentRun.Object.

const (
	AgentRunObjectAgentRun AgentRunObject = "agent_run"
)

Defines values for AgentRunObject.

func (AgentRunObject) Valid added in v0.2.0

func (e AgentRunObject) Valid() bool

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

type AgentRunOutput added in v0.2.0

type AgentRunOutput struct {
	// Grounding Field-level citations emitted by the run.
	Grounding []AgentGrounding `json:"grounding"`

	// Structured JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.
	Structured JsonValue `json:"structured"`

	// Text Natural-language answer or summary.
	Text string `json:"text"`
}

AgentRunOutput defines model for AgentRunOutput.

type AgentRunRequest added in v0.2.0

type AgentRunRequest struct {
	// Budget Optional per-run spending and duration limits for the metered `auto` and `ultra` efforts. Runs that finish early may cost less than the limit.
	Budget *AgentBudgetOutput `json:"budget,omitempty"`

	// DataSources Exa Connect data providers configured for the run.
	DataSources *[]AgentDataSourceOutput `json:"dataSources,omitempty"`

	// Effort Cost and reasoning effort preference for the run. `auto` lets Exa choose the appropriate effort. `ultra` is the highest-effort tier for work where completeness and thoroughness matter more than latency or cost, including large list building, deep multi-source research, and criteria that are hard to verify.
	Effort *AgentEffort `json:"effort,omitempty"`
	Input  *struct {
		// Data Records the agent should process or enrich.
		Data *[]map[string]JsonValue `json:"data,omitempty"`

		// Exclusion Records or entities the agent should avoid returning.
		Exclusion *[]map[string]JsonValue `json:"exclusion,omitempty"`
	} `json:"input,omitempty"`

	// Metadata Caller-provided key-value metadata for your own tracking.
	Metadata     *map[string]string    `json:"metadata,omitempty"`
	OutputSchema *map[string]JsonValue `json:"outputSchema,omitempty"`

	// PreviousRunId Agent run ID. New run IDs are returned with the `agent_run_` prefix.
	PreviousRunId *AgentRunId `json:"previousRunId,omitempty"`

	// Query Natural-language question or instructions for the request.
	Query *string `json:"query,omitempty"`

	// SystemPrompt Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance.
	SystemPrompt         *string              `json:"systemPrompt,omitempty"`
	AdditionalProperties map[string]JsonValue `json:"-"`
}

AgentRunRequest Canonicalized request fields stored with the run.

func (AgentRunRequest) Get added in v0.2.0

func (a AgentRunRequest) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AgentRunRequest. Returns the specified element and whether it was found

func (AgentRunRequest) MarshalJSON added in v0.2.0

func (a AgentRunRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for AgentRunRequest to handle AdditionalProperties

func (*AgentRunRequest) Set added in v0.2.0

func (a *AgentRunRequest) Set(fieldName string, value JsonValue)

Setter for additional properties for AgentRunRequest

func (*AgentRunRequest) UnmarshalJSON added in v0.2.0

func (a *AgentRunRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for AgentRunRequest to handle AdditionalProperties

type AgentRunStatus added in v0.2.0

type AgentRunStatus string

AgentRunStatus defines model for AgentRunStatus.

const (
	AgentRunStatusCancelled AgentRunStatus = "cancelled"
	AgentRunStatusCompleted AgentRunStatus = "completed"
	AgentRunStatusFailed    AgentRunStatus = "failed"
	AgentRunStatusQueued    AgentRunStatus = "queued"
	AgentRunStatusRunning   AgentRunStatus = "running"
)

Defines values for AgentRunStatus.

func (AgentRunStatus) Valid added in v0.2.0

func (e AgentRunStatus) Valid() bool

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

type AgentStopReason added in v0.2.0

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

AgentStopReason defines model for AgentStopReason.

func (AgentStopReason) AsAgentStopReason0 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason0() (AgentStopReason0, error)

AsAgentStopReason0 returns the union data inside the AgentStopReason as a AgentStopReason0

func (AgentStopReason) AsAgentStopReason1 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason1() (AgentStopReason1, error)

AsAgentStopReason1 returns the union data inside the AgentStopReason as a AgentStopReason1

func (AgentStopReason) AsAgentStopReason2 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason2() (AgentStopReason2, error)

AsAgentStopReason2 returns the union data inside the AgentStopReason as a AgentStopReason2

func (AgentStopReason) AsAgentStopReason3 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason3() (AgentStopReason3, error)

AsAgentStopReason3 returns the union data inside the AgentStopReason as a AgentStopReason3

func (AgentStopReason) AsAgentStopReason4 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason4() (AgentStopReason4, error)

AsAgentStopReason4 returns the union data inside the AgentStopReason as a AgentStopReason4

func (AgentStopReason) AsAgentStopReason5 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason5() (AgentStopReason5, error)

AsAgentStopReason5 returns the union data inside the AgentStopReason as a AgentStopReason5

func (AgentStopReason) AsAgentStopReason6 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason6() (AgentStopReason6, error)

AsAgentStopReason6 returns the union data inside the AgentStopReason as a AgentStopReason6

func (AgentStopReason) AsAgentStopReason7 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason7() (AgentStopReason7, error)

AsAgentStopReason7 returns the union data inside the AgentStopReason as a AgentStopReason7

func (AgentStopReason) AsAgentStopReason8 added in v0.2.0

func (t AgentStopReason) AsAgentStopReason8() (AgentStopReason8, error)

AsAgentStopReason8 returns the union data inside the AgentStopReason as a AgentStopReason8

func (*AgentStopReason) FromAgentStopReason0 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason0(v AgentStopReason0) error

FromAgentStopReason0 overwrites any union data inside the AgentStopReason as the provided AgentStopReason0

func (*AgentStopReason) FromAgentStopReason1 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason1(v AgentStopReason1) error

FromAgentStopReason1 overwrites any union data inside the AgentStopReason as the provided AgentStopReason1

func (*AgentStopReason) FromAgentStopReason2 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason2(v AgentStopReason2) error

FromAgentStopReason2 overwrites any union data inside the AgentStopReason as the provided AgentStopReason2

func (*AgentStopReason) FromAgentStopReason3 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason3(v AgentStopReason3) error

FromAgentStopReason3 overwrites any union data inside the AgentStopReason as the provided AgentStopReason3

func (*AgentStopReason) FromAgentStopReason4 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason4(v AgentStopReason4) error

FromAgentStopReason4 overwrites any union data inside the AgentStopReason as the provided AgentStopReason4

func (*AgentStopReason) FromAgentStopReason5 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason5(v AgentStopReason5) error

FromAgentStopReason5 overwrites any union data inside the AgentStopReason as the provided AgentStopReason5

func (*AgentStopReason) FromAgentStopReason6 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason6(v AgentStopReason6) error

FromAgentStopReason6 overwrites any union data inside the AgentStopReason as the provided AgentStopReason6

func (*AgentStopReason) FromAgentStopReason7 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason7(v AgentStopReason7) error

FromAgentStopReason7 overwrites any union data inside the AgentStopReason as the provided AgentStopReason7

func (*AgentStopReason) FromAgentStopReason8 added in v0.2.0

func (t *AgentStopReason) FromAgentStopReason8(v AgentStopReason8) error

FromAgentStopReason8 overwrites any union data inside the AgentStopReason as the provided AgentStopReason8

func (AgentStopReason) MarshalJSON added in v0.2.0

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

func (*AgentStopReason) MergeAgentStopReason0 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason0(v AgentStopReason0) error

MergeAgentStopReason0 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason0

func (*AgentStopReason) MergeAgentStopReason1 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason1(v AgentStopReason1) error

MergeAgentStopReason1 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason1

func (*AgentStopReason) MergeAgentStopReason2 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason2(v AgentStopReason2) error

MergeAgentStopReason2 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason2

func (*AgentStopReason) MergeAgentStopReason3 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason3(v AgentStopReason3) error

MergeAgentStopReason3 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason3

func (*AgentStopReason) MergeAgentStopReason4 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason4(v AgentStopReason4) error

MergeAgentStopReason4 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason4

func (*AgentStopReason) MergeAgentStopReason5 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason5(v AgentStopReason5) error

MergeAgentStopReason5 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason5

func (*AgentStopReason) MergeAgentStopReason6 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason6(v AgentStopReason6) error

MergeAgentStopReason6 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason6

func (*AgentStopReason) MergeAgentStopReason7 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason7(v AgentStopReason7) error

MergeAgentStopReason7 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason7

func (*AgentStopReason) MergeAgentStopReason8 added in v0.2.0

func (t *AgentStopReason) MergeAgentStopReason8(v AgentStopReason8) error

MergeAgentStopReason8 performs a merge with any union data inside the AgentStopReason, using the provided AgentStopReason8

func (*AgentStopReason) UnmarshalJSON added in v0.2.0

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

type AgentStopReason0 added in v0.2.0

type AgentStopReason0 string

AgentStopReason0 The agent finished the task.

const (
	AgentStopReason0SchemaSatisfied AgentStopReason0 = "schema_satisfied"
)

Defines values for AgentStopReason0.

func (AgentStopReason0) Valid added in v0.2.0

func (e AgentStopReason0) Valid() bool

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

type AgentStopReason1 added in v0.2.0

type AgentStopReason1 string

AgentStopReason1 The run reached `budget.maxCostDollars`.

const (
	AgentStopReason1BudgetReached AgentStopReason1 = "budget_reached"
)

Defines values for AgentStopReason1.

func (AgentStopReason1) Valid added in v0.2.0

func (e AgentStopReason1) Valid() bool

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

type AgentStopReason2 added in v0.2.0

type AgentStopReason2 string

AgentStopReason2 The run reached `budget.maxDurationSeconds`.

const (
	AgentStopReason2TimeLimitReached AgentStopReason2 = "time_limit_reached"
)

Defines values for AgentStopReason2.

func (AgentStopReason2) Valid added in v0.2.0

func (e AgentStopReason2) Valid() bool

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

type AgentStopReason3 added in v0.2.0

type AgentStopReason3 string

AgentStopReason3 The run reached its maximum number of agent steps.

const (
	AgentStopReason3IterationLimitReached AgentStopReason3 = "iteration_limit_reached"
)

Defines values for AgentStopReason3.

func (AgentStopReason3) Valid added in v0.2.0

func (e AgentStopReason3) Valid() bool

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

type AgentStopReason4 added in v0.2.0

type AgentStopReason4 string

AgentStopReason4 The run reached its limit on model tokens.

const (
	AgentStopReason4TokenLimitReached AgentStopReason4 = "token_limit_reached"
)

Defines values for AgentStopReason4.

func (AgentStopReason4) Valid added in v0.2.0

func (e AgentStopReason4) Valid() bool

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

type AgentStopReason5 added in v0.2.0

type AgentStopReason5 string

AgentStopReason5 You stopped the run.

const (
	AgentStopReason5Stopped AgentStopReason5 = "stopped"
)

Defines values for AgentStopReason5.

func (AgentStopReason5) Valid added in v0.2.0

func (e AgentStopReason5) Valid() bool

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

type AgentStopReason6 added in v0.2.0

type AgentStopReason6 string

AgentStopReason6 The run failed.

const (
	AgentStopReason6Error AgentStopReason6 = "error"
)

Defines values for AgentStopReason6.

func (AgentStopReason6) Valid added in v0.2.0

func (e AgentStopReason6) Valid() bool

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

type AgentStopReason7 added in v0.2.0

type AgentStopReason7 string

AgentStopReason7 The run was cancelled.

const (
	AgentStopReason7Cancelled AgentStopReason7 = "cancelled"
)

Defines values for AgentStopReason7.

func (AgentStopReason7) Valid added in v0.2.0

func (e AgentStopReason7) Valid() bool

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

type AgentStopReason8 added in v0.2.0

type AgentStopReason8 = string

AgentStopReason8 defines model for AgentStopReason.8.

type AgentUsage added in v0.2.0

type AgentUsage struct {
	AgentComputeUnits float32 `json:"agentComputeUnits"`

	// DataSources Per-provider tool call counts for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.
	DataSources  *AgentDataSourceUsage `json:"dataSources,omitempty"`
	Emails       float32               `json:"emails"`
	PhoneNumbers float32               `json:"phoneNumbers"`
	Searches     float32               `json:"searches"`
}

AgentUsage Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional.

type AnswerJSONRequestBody

type AnswerJSONRequestBody = AnswerRequest

AnswerJSONRequestBody defines body for Answer for application/json ContentType.

type AnswerRequest added in v0.2.0

type AnswerRequest struct {
	// Model The model used to generate the answer.
	Model *AnswerRequestModel `json:"model,omitempty"`

	// OutputSchema A [JSON Schema Draft 7](https://json-schema.org/draft-07) specification for the desired answer structure. When provided, the answer is returned as a structured object matching the schema instead of a plain string.
	OutputSchema *AnswerRequest_OutputSchema `json:"outputSchema,omitempty"`

	// Query Natural-language question or instructions for the request.
	Query string `json:"query"`

	// Stream If true, the response is returned as a server-sent events (SSE) stream.
	Stream *bool `json:"stream,omitempty"`

	// SystemPrompt Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance.
	SystemPrompt *string `json:"systemPrompt,omitempty"`

	// Text If true, returns full page text with default settings. If false, disables text return.
	Text *bool `json:"text,omitempty"`

	// UserIdentifier An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results.
	UserIdentifier *string `json:"userIdentifier,omitempty"`
	UserLocation   *struct {
		// contains filtered or unexported fields
	} `json:"userLocation,omitempty"`
}

AnswerRequest defines model for AnswerRequest.

type AnswerRequestModel added in v0.2.0

type AnswerRequestModel string

AnswerRequestModel The model used to generate the answer.

const (
	AnswerRequestModelExa         AnswerRequestModel = "exa"
	AnswerRequestModelExaFast     AnswerRequestModel = "exa-fast"
	AnswerRequestModelExaPro      AnswerRequestModel = "exa-pro"
	AnswerRequestModelExaResearch AnswerRequestModel = "exa-research"
)

Defines values for AnswerRequestModel.

func (AnswerRequestModel) Valid added in v0.2.0

func (e AnswerRequestModel) Valid() bool

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

type AnswerRequestUserLocation0 added in v0.2.0

type AnswerRequestUserLocation0 = string

AnswerRequestUserLocation0 The two-letter ISO 3166-1 country code of the user, e.g. `US`.

type AnswerRequestUserLocation1 added in v0.2.0

type AnswerRequestUserLocation1 struct {
	// Country The two-letter ISO 3166-1 country code of the user, e.g. `US`.
	Country string `json:"country"`
}

AnswerRequestUserLocation1 The user's country only. Equivalent to the string form.

type AnswerRequestUserLocation2 added in v0.2.0

type AnswerRequestUserLocation2 struct {
	// Country The two-letter ISO 3166-1 country code of the user, e.g. `US`.
	Country *string `json:"country,omitempty"`

	// Latitude The user's latitude in decimal degrees.
	Latitude float32 `json:"latitude"`

	// Longitude The user's longitude in decimal degrees.
	Longitude float32 `json:"longitude"`
}

AnswerRequestUserLocation2 The user's coordinates, with an optional country.

type AnswerRequest_OutputSchema added in v0.2.0

type AnswerRequest_OutputSchema struct {
	// AllowAdditionalProperties Whether to allow properties not listed in `properties`.
	AllowAdditionalProperties *bool `json:"additionalProperties,omitempty"`

	// Description A description of the schema.
	Description *string `json:"description,omitempty"`

	// Properties An object where each key is a property name and each value is a JSON Schema describing that property (with `type`, `description`, etc).
	Properties *map[string]JsonValue `json:"properties,omitempty"`

	// Required List of required property names.
	Required *[]string `json:"required,omitempty"`

	// Type The root schema type (typically "object").
	Type                 *string              `json:"type,omitempty"`
	AdditionalProperties map[string]JsonValue `json:"-"`
}

AnswerRequest_OutputSchema A [JSON Schema Draft 7](https://json-schema.org/draft-07) specification for the desired answer structure. When provided, the answer is returned as a structured object matching the schema instead of a plain string.

func (AnswerRequest_OutputSchema) Get added in v0.2.0

func (a AnswerRequest_OutputSchema) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AnswerRequest_OutputSchema. Returns the specified element and whether it was found

func (AnswerRequest_OutputSchema) MarshalJSON added in v0.2.0

func (a AnswerRequest_OutputSchema) MarshalJSON() ([]byte, error)

Override default JSON handling for AnswerRequest_OutputSchema to handle AdditionalProperties

func (*AnswerRequest_OutputSchema) Set added in v0.2.0

func (a *AnswerRequest_OutputSchema) Set(fieldName string, value JsonValue)

Setter for additional properties for AnswerRequest_OutputSchema

func (*AnswerRequest_OutputSchema) UnmarshalJSON added in v0.2.0

func (a *AnswerRequest_OutputSchema) UnmarshalJSON(b []byte) error

Override default JSON handling for AnswerRequest_OutputSchema to handle AdditionalProperties

type AnswerResponse

type AnswerResponse struct {
	// Answer The generated answer based on search results. Returns a string by default, or a structured object matching the provided outputSchema.
	Answer AnswerResponse_Answer `json:"answer"`

	// Citations Search results used to generate the answer.
	Citations *[]struct {
		// Author If available, the author of the content.
		Author *string `json:"author,omitempty"`

		// Favicon The URL of the favicon for the search result's domain.
		Favicon *string `json:"favicon,omitempty"`

		// Id The temporary ID for the document. Useful for the /contents endpoint.
		Id *string `json:"id,omitempty"`

		// Image The URL of an image associated with the search result, if available.
		Image *string `json:"image,omitempty"`

		// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
		PublishedDate *time.Time `json:"publishedDate,omitempty"`

		// Text The full text content of each source. Only present when text contents are requested.
		Text *string `json:"text,omitempty"`

		// Title The title of the search result.
		Title string `json:"title"`

		// Url The URL of the search result.
		Url string `json:"url"`
	} `json:"citations,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput `json:"costDollars,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`
}

AnswerResponse defines model for AnswerResponse.

type AnswerResponse2

type AnswerResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AnswerResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *PaymentRequiredResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *TooManyRequestsResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailableResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *AnswerResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *AnswerResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *AnswerResponse2401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *AnswerResponse2402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *AnswerResponse2403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AnswerResponse2429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *AnswerResponse2500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *AnswerResponse2503Headers
}

func ParseAnswerResponse2

func ParseAnswerResponse2(rsp *http.Response) (*AnswerResponse2, error)

ParseAnswerResponse2 parses an HTTP response from a AnswerWithResponse call

func (AnswerResponse2) ContentType

func (r AnswerResponse2) ContentType() string

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

func (AnswerResponse2) GetBody

func (r AnswerResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (AnswerResponse2) GetJSON200

func (r AnswerResponse2) GetJSON200() *AnswerResponse

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

func (AnswerResponse2) GetJSON400 added in v0.2.0

func (r AnswerResponse2) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (AnswerResponse2) GetJSON401 added in v0.2.0

func (r AnswerResponse2) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (AnswerResponse2) GetJSON402 added in v0.2.0

func (r AnswerResponse2) GetJSON402() *PaymentRequiredResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (AnswerResponse2) GetJSON403 added in v0.2.0

func (r AnswerResponse2) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (AnswerResponse2) GetJSON429 added in v0.2.0

func (r AnswerResponse2) GetJSON429() *TooManyRequestsResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (AnswerResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (AnswerResponse2) GetJSON503 added in v0.2.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (AnswerResponse2) Status

func (r AnswerResponse2) Status() string

Status returns HTTPResponse.Status

func (AnswerResponse2) StatusCode

func (r AnswerResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AnswerResponse2200Headers added in v0.2.0

type AnswerResponse2200Headers struct {
	XExaQueueMs *string
	XExaQueued  *string
	XRequestId  *string
}

AnswerResponse2200Headers the declared response headers of an HTTP 200 response for Answer

type AnswerResponse2400Headers added in v0.2.0

type AnswerResponse2400Headers struct {
	XRequestId *string
}

AnswerResponse2400Headers the declared response headers of an HTTP 400 response for Answer

type AnswerResponse2401Headers added in v0.2.0

type AnswerResponse2401Headers struct {
	XRequestId *string
}

AnswerResponse2401Headers the declared response headers of an HTTP 401 response for Answer

type AnswerResponse2402Headers added in v0.2.0

type AnswerResponse2402Headers struct {
	XRequestId *string
}

AnswerResponse2402Headers the declared response headers of an HTTP 402 response for Answer

type AnswerResponse2403Headers added in v0.2.0

type AnswerResponse2403Headers struct {
	XRequestId *string
}

AnswerResponse2403Headers the declared response headers of an HTTP 403 response for Answer

type AnswerResponse2429Headers added in v0.2.0

type AnswerResponse2429Headers struct {
	XRequestId *string
}

AnswerResponse2429Headers the declared response headers of an HTTP 429 response for Answer

type AnswerResponse2500Headers added in v0.2.0

type AnswerResponse2500Headers struct {
	XRequestId *string
}

AnswerResponse2500Headers the declared response headers of an HTTP 500 response for Answer

type AnswerResponse2503Headers added in v0.2.0

type AnswerResponse2503Headers struct {
	XRequestId *string
}

AnswerResponse2503Headers the declared response headers of an HTTP 503 response for Answer

type AnswerResponseAnswer0

type AnswerResponseAnswer0 = string

AnswerResponseAnswer0 defines model for AnswerResponse.Answer.0.

type AnswerResponseAnswer1

type AnswerResponseAnswer1 map[string]JsonValue

AnswerResponseAnswer1 defines model for AnswerResponse.Answer.1.

type AnswerResponse_Answer

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

AnswerResponse_Answer The generated answer based on search results. Returns a string by default, or a structured object matching the provided outputSchema.

func (AnswerResponse_Answer) AsAnswerResponseAnswer0

func (t AnswerResponse_Answer) AsAnswerResponseAnswer0() (AnswerResponseAnswer0, error)

AsAnswerResponseAnswer0 returns the union data inside the AnswerResponse_Answer as a AnswerResponseAnswer0

func (AnswerResponse_Answer) AsAnswerResponseAnswer1

func (t AnswerResponse_Answer) AsAnswerResponseAnswer1() (AnswerResponseAnswer1, error)

AsAnswerResponseAnswer1 returns the union data inside the AnswerResponse_Answer as a AnswerResponseAnswer1

func (*AnswerResponse_Answer) FromAnswerResponseAnswer0

func (t *AnswerResponse_Answer) FromAnswerResponseAnswer0(v AnswerResponseAnswer0) error

FromAnswerResponseAnswer0 overwrites any union data inside the AnswerResponse_Answer as the provided AnswerResponseAnswer0

func (*AnswerResponse_Answer) FromAnswerResponseAnswer1

func (t *AnswerResponse_Answer) FromAnswerResponseAnswer1(v AnswerResponseAnswer1) error

FromAnswerResponseAnswer1 overwrites any union data inside the AnswerResponse_Answer as the provided AnswerResponseAnswer1

func (AnswerResponse_Answer) MarshalJSON

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

func (*AnswerResponse_Answer) MergeAnswerResponseAnswer0

func (t *AnswerResponse_Answer) MergeAnswerResponseAnswer0(v AnswerResponseAnswer0) error

MergeAnswerResponseAnswer0 performs a merge with any union data inside the AnswerResponse_Answer, using the provided AnswerResponseAnswer0

func (*AnswerResponse_Answer) MergeAnswerResponseAnswer1

func (t *AnswerResponse_Answer) MergeAnswerResponseAnswer1(v AnswerResponseAnswer1) error

MergeAnswerResponseAnswer1 performs a merge with any union data inside the AnswerResponse_Answer, using the provided AnswerResponseAnswer1

func (*AnswerResponse_Answer) UnmarshalJSON

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

type AnswerStreamChunk added in v0.2.0

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

AnswerStreamChunk Schema for each JSON payload emitted in an `/answer` server-sent event stream. Each event is emitted as `data: <json>`.

func (AnswerStreamChunk) AsAnswerStreamCitationsChunkOutput added in v0.2.0

func (t AnswerStreamChunk) AsAnswerStreamCitationsChunkOutput() (AnswerStreamCitationsChunkOutput, error)

AsAnswerStreamCitationsChunkOutput returns the union data inside the AnswerStreamChunk as a AnswerStreamCitationsChunkOutput

func (AnswerStreamChunk) AsAnswerStreamCostChunkOutput added in v0.2.0

func (t AnswerStreamChunk) AsAnswerStreamCostChunkOutput() (AnswerStreamCostChunkOutput, error)

AsAnswerStreamCostChunkOutput returns the union data inside the AnswerStreamChunk as a AnswerStreamCostChunkOutput

func (AnswerStreamChunk) AsAnswerStreamErrorChunkOutput added in v0.2.0

func (t AnswerStreamChunk) AsAnswerStreamErrorChunkOutput() (AnswerStreamErrorChunkOutput, error)

AsAnswerStreamErrorChunkOutput returns the union data inside the AnswerStreamChunk as a AnswerStreamErrorChunkOutput

func (AnswerStreamChunk) AsAnswerStreamTextDeltaChunk added in v0.2.0

func (t AnswerStreamChunk) AsAnswerStreamTextDeltaChunk() (AnswerStreamTextDeltaChunk, error)

AsAnswerStreamTextDeltaChunk returns the union data inside the AnswerStreamChunk as a AnswerStreamTextDeltaChunk

func (*AnswerStreamChunk) FromAnswerStreamCitationsChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) FromAnswerStreamCitationsChunkOutput(v AnswerStreamCitationsChunkOutput) error

FromAnswerStreamCitationsChunkOutput overwrites any union data inside the AnswerStreamChunk as the provided AnswerStreamCitationsChunkOutput

func (*AnswerStreamChunk) FromAnswerStreamCostChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) FromAnswerStreamCostChunkOutput(v AnswerStreamCostChunkOutput) error

FromAnswerStreamCostChunkOutput overwrites any union data inside the AnswerStreamChunk as the provided AnswerStreamCostChunkOutput

func (*AnswerStreamChunk) FromAnswerStreamErrorChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) FromAnswerStreamErrorChunkOutput(v AnswerStreamErrorChunkOutput) error

FromAnswerStreamErrorChunkOutput overwrites any union data inside the AnswerStreamChunk as the provided AnswerStreamErrorChunkOutput

func (*AnswerStreamChunk) FromAnswerStreamTextDeltaChunk added in v0.2.0

func (t *AnswerStreamChunk) FromAnswerStreamTextDeltaChunk(v AnswerStreamTextDeltaChunk) error

FromAnswerStreamTextDeltaChunk overwrites any union data inside the AnswerStreamChunk as the provided AnswerStreamTextDeltaChunk

func (AnswerStreamChunk) MarshalJSON added in v0.2.0

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

func (*AnswerStreamChunk) MergeAnswerStreamCitationsChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) MergeAnswerStreamCitationsChunkOutput(v AnswerStreamCitationsChunkOutput) error

MergeAnswerStreamCitationsChunkOutput performs a merge with any union data inside the AnswerStreamChunk, using the provided AnswerStreamCitationsChunkOutput

func (*AnswerStreamChunk) MergeAnswerStreamCostChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) MergeAnswerStreamCostChunkOutput(v AnswerStreamCostChunkOutput) error

MergeAnswerStreamCostChunkOutput performs a merge with any union data inside the AnswerStreamChunk, using the provided AnswerStreamCostChunkOutput

func (*AnswerStreamChunk) MergeAnswerStreamErrorChunkOutput added in v0.2.0

func (t *AnswerStreamChunk) MergeAnswerStreamErrorChunkOutput(v AnswerStreamErrorChunkOutput) error

MergeAnswerStreamErrorChunkOutput performs a merge with any union data inside the AnswerStreamChunk, using the provided AnswerStreamErrorChunkOutput

func (*AnswerStreamChunk) MergeAnswerStreamTextDeltaChunk added in v0.2.0

func (t *AnswerStreamChunk) MergeAnswerStreamTextDeltaChunk(v AnswerStreamTextDeltaChunk) error

MergeAnswerStreamTextDeltaChunk performs a merge with any union data inside the AnswerStreamChunk, using the provided AnswerStreamTextDeltaChunk

func (*AnswerStreamChunk) UnmarshalJSON added in v0.2.0

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

type AnswerStreamCitationsChunkOutput added in v0.2.0

type AnswerStreamCitationsChunkOutput struct {
	// Citations Search results cited by the final streamed answer.
	Citations []struct {
		// Author If available, the author of the content.
		Author *string `json:"author,omitempty"`

		// Favicon The URL of the favicon for the search result's domain.
		Favicon *string `json:"favicon,omitempty"`

		// Id The temporary ID for the document. Useful for the /contents endpoint.
		Id *string `json:"id,omitempty"`

		// Image The URL of an image associated with the search result, if available.
		Image *string `json:"image,omitempty"`

		// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
		PublishedDate *time.Time `json:"publishedDate,omitempty"`

		// Text The full text content of each source. Only present when text contents are requested.
		Text *string `json:"text,omitempty"`

		// Title The title of the search result.
		Title string `json:"title"`

		// Url The URL of the search result.
		Url string `json:"url"`
	} `json:"citations"`
}

AnswerStreamCitationsChunkOutput defines model for AnswerStreamCitationsChunkOutput.

type AnswerStreamCostChunkOutput added in v0.2.0

type AnswerStreamCostChunkOutput struct {
	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars CostDollarsOutput `json:"costDollars"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`
}

AnswerStreamCostChunkOutput defines model for AnswerStreamCostChunkOutput.

type AnswerStreamErrorChunkOutput added in v0.2.0

type AnswerStreamErrorChunkOutput struct {
	Payload struct {
		Error struct {
			Code    int    `json:"code"`
			Message string `json:"message"`
		} `json:"error"`

		// RequestId Unique identifier for the request.
		RequestId *string `json:"requestId,omitempty"`
	} `json:"payload"`
	Tag AnswerStreamErrorChunkOutputTag `json:"tag"`
}

AnswerStreamErrorChunkOutput defines model for AnswerStreamErrorChunkOutput.

type AnswerStreamErrorChunkOutputTag added in v0.2.0

type AnswerStreamErrorChunkOutputTag string

AnswerStreamErrorChunkOutputTag defines model for AnswerStreamErrorChunkOutput.Tag.

const (
	AnswerStreamErrorChunkOutputTagERROR AnswerStreamErrorChunkOutputTag = "ERROR"
)

Defines values for AnswerStreamErrorChunkOutputTag.

func (AnswerStreamErrorChunkOutputTag) Valid added in v0.2.0

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

type AnswerStreamTextDeltaChunk added in v0.2.0

type AnswerStreamTextDeltaChunk struct {
	// Choices Streamed completion choices in the OpenAI chat completions format.
	Choices              []AnswerStreamTextDeltaChunk_Choices_Item `json:"choices"`
	AdditionalProperties map[string]JsonValue                      `json:"-"`
}

AnswerStreamTextDeltaChunk defines model for AnswerStreamTextDeltaChunk.

func (AnswerStreamTextDeltaChunk) Get added in v0.2.0

func (a AnswerStreamTextDeltaChunk) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AnswerStreamTextDeltaChunk. Returns the specified element and whether it was found

func (AnswerStreamTextDeltaChunk) MarshalJSON added in v0.2.0

func (a AnswerStreamTextDeltaChunk) MarshalJSON() ([]byte, error)

Override default JSON handling for AnswerStreamTextDeltaChunk to handle AdditionalProperties

func (*AnswerStreamTextDeltaChunk) Set added in v0.2.0

func (a *AnswerStreamTextDeltaChunk) Set(fieldName string, value JsonValue)

Setter for additional properties for AnswerStreamTextDeltaChunk

func (*AnswerStreamTextDeltaChunk) UnmarshalJSON added in v0.2.0

func (a *AnswerStreamTextDeltaChunk) UnmarshalJSON(b []byte) error

Override default JSON handling for AnswerStreamTextDeltaChunk to handle AdditionalProperties

type AnswerStreamTextDeltaChunkChoicesDeltaRole added in v0.2.0

type AnswerStreamTextDeltaChunkChoicesDeltaRole string

AnswerStreamTextDeltaChunkChoicesDeltaRole defines model for AnswerStreamTextDeltaChunk.Choices.Delta.Role.

const (
	AnswerStreamTextDeltaChunkChoicesDeltaRoleAssistant AnswerStreamTextDeltaChunkChoicesDeltaRole = "assistant"
)

Defines values for AnswerStreamTextDeltaChunkChoicesDeltaRole.

func (AnswerStreamTextDeltaChunkChoicesDeltaRole) Valid added in v0.2.0

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

type AnswerStreamTextDeltaChunk_Choices_Delta added in v0.2.0

type AnswerStreamTextDeltaChunk_Choices_Delta struct {
	Content              *string                                     `json:"content,omitempty"`
	Refusal              *string                                     `json:"refusal,omitempty"`
	Role                 *AnswerStreamTextDeltaChunkChoicesDeltaRole `json:"role,omitempty"`
	AdditionalProperties map[string]JsonValue                        `json:"-"`
}

AnswerStreamTextDeltaChunk_Choices_Delta Incremental answer content emitted by the model.

func (AnswerStreamTextDeltaChunk_Choices_Delta) Get added in v0.2.0

func (a AnswerStreamTextDeltaChunk_Choices_Delta) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AnswerStreamTextDeltaChunk_Choices_Delta. Returns the specified element and whether it was found

func (AnswerStreamTextDeltaChunk_Choices_Delta) MarshalJSON added in v0.2.0

Override default JSON handling for AnswerStreamTextDeltaChunk_Choices_Delta to handle AdditionalProperties

func (*AnswerStreamTextDeltaChunk_Choices_Delta) Set added in v0.2.0

Setter for additional properties for AnswerStreamTextDeltaChunk_Choices_Delta

func (*AnswerStreamTextDeltaChunk_Choices_Delta) UnmarshalJSON added in v0.2.0

func (a *AnswerStreamTextDeltaChunk_Choices_Delta) UnmarshalJSON(b []byte) error

Override default JSON handling for AnswerStreamTextDeltaChunk_Choices_Delta to handle AdditionalProperties

type AnswerStreamTextDeltaChunk_Choices_Item added in v0.2.0

type AnswerStreamTextDeltaChunk_Choices_Item struct {
	// Delta Incremental answer content emitted by the model.
	Delta AnswerStreamTextDeltaChunk_Choices_Delta `json:"delta"`

	// FinishReason Reason this streamed choice finished, when present.
	FinishReason *string `json:"finish_reason,omitempty"`

	// Index Index of this streamed choice.
	Index                int                  `json:"index"`
	AdditionalProperties map[string]JsonValue `json:"-"`
}

AnswerStreamTextDeltaChunk_Choices_Item defines model for AnswerStreamTextDeltaChunk.choices.Item.

func (AnswerStreamTextDeltaChunk_Choices_Item) Get added in v0.2.0

func (a AnswerStreamTextDeltaChunk_Choices_Item) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for AnswerStreamTextDeltaChunk_Choices_Item. Returns the specified element and whether it was found

func (AnswerStreamTextDeltaChunk_Choices_Item) MarshalJSON added in v0.2.0

func (a AnswerStreamTextDeltaChunk_Choices_Item) MarshalJSON() ([]byte, error)

Override default JSON handling for AnswerStreamTextDeltaChunk_Choices_Item to handle AdditionalProperties

func (*AnswerStreamTextDeltaChunk_Choices_Item) Set added in v0.2.0

func (a *AnswerStreamTextDeltaChunk_Choices_Item) Set(fieldName string, value JsonValue)

Setter for additional properties for AnswerStreamTextDeltaChunk_Choices_Item

func (*AnswerStreamTextDeltaChunk_Choices_Item) UnmarshalJSON added in v0.2.0

func (a *AnswerStreamTextDeltaChunk_Choices_Item) UnmarshalJSON(b []byte) error

Override default JSON handling for AnswerStreamTextDeltaChunk_Choices_Item to handle AdditionalProperties

type ArticleEntity added in v0.2.0

type ArticleEntity struct {
	Type ArticleEntityType `json:"type"`
}

ArticleEntity defines model for ArticleEntity.

type ArticleEntityType added in v0.2.0

type ArticleEntityType string

ArticleEntityType defines model for ArticleEntity.Type.

const (
	ArticleEntityTypeArticle ArticleEntityType = "article"
)

Defines values for ArticleEntityType.

func (ArticleEntityType) Valid added in v0.2.0

func (e ArticleEntityType) Valid() bool

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

type BadRequestResponse added in v0.2.0

type BadRequestResponse = ErrorResponse

BadRequestResponse Standard error envelope returned by the Exa API for failed requests.

type Batch added in v0.2.0

type Batch struct {
	// CreatedAt When the batch was created.
	CreatedAt time.Time `json:"createdAt"`

	// EndedAt When the batch reached a terminal status, or `null` while it is still running.
	EndedAt *time.Time `json:"endedAt"`

	// ExpiresAt When the batch expires, or `null` if it does not expire.
	ExpiresAt *time.Time `json:"expiresAt"`

	// Id Batch ID. New batch IDs are returned with the `batch_` prefix.
	Id string `json:"id"`

	// Metadata Caller-provided key-value metadata for your own tracking.
	Metadata map[string]string `json:"metadata"`

	// Object The object type, always `batch`.
	Object        BatchObject        `json:"object"`
	RequestCounts BatchRequestCounts `json:"requestCounts"`

	// ResultsUrl Short-lived download URL for the batch results file (JSONL), or `null` until the batch completes. Fetch it directly, without an API key. Retrieve the batch again for a fresh URL after it expires.
	ResultsUrl *string `json:"resultsUrl"`

	// Status Lifecycle status of the batch.
	Status BatchStatus `json:"status"`
}

Batch defines model for Batch.

type BatchList added in v0.2.0

type BatchList struct {
	// Data The page of batches, newest first.
	Data []Batch `json:"data"`

	// HasMore Whether there are more results
	HasMore bool `json:"hasMore"`

	// NextCursor Cursor for the next page
	NextCursor *string `json:"nextCursor"`

	// Object The object type, always `list`.
	Object BatchListObject `json:"object"`
}

BatchList defines model for BatchList.

type BatchListObject added in v0.2.0

type BatchListObject string

BatchListObject The object type, always `list`.

const (
	BatchListObjectList BatchListObject = "list"
)

Defines values for BatchListObject.

func (BatchListObject) Valid added in v0.2.0

func (e BatchListObject) Valid() bool

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

type BatchMonitorsJSONRequestBody added in v0.2.0

type BatchMonitorsJSONRequestBody = BatchMonitorsRequest

BatchMonitorsJSONRequestBody defines body for BatchMonitors for application/json ContentType.

type BatchMonitorsRequest added in v0.2.0

type BatchMonitorsRequest struct {
	// Action The action to perform on matching monitors. `delete` permanently removes them, `pause` sets their status to paused, and `unpause` sets their status to active.
	Action BatchMonitorsRequestAction `json:"action"`

	// DryRun When `true`, returns the monitors that would be affected without performing the action. Defaults to `true`.
	DryRun *bool `json:"dry_run,omitempty"`

	// Filter At least one filter field must be provided to prevent accidental bulk operations.
	Filter struct {
		// Metadata Filter by metadata key-value pairs (exact match, AND semantics)
		Metadata *map[string]string `json:"metadata,omitempty"`

		// Name Filter by name (case-insensitive substring match)
		Name *string `json:"name,omitempty"`

		// Status Filter by monitor status
		Status *BatchMonitorsRequestFilterStatus `json:"status,omitempty"`
	} `json:"filter"`

	// Limit Maximum number of monitors to process in a single request. Defaults to 50, maximum 500.
	Limit *int `json:"limit,omitempty"`
}

BatchMonitorsRequest defines model for BatchMonitorsRequest.

type BatchMonitorsRequestAction added in v0.2.0

type BatchMonitorsRequestAction string

BatchMonitorsRequestAction The action to perform on matching monitors. `delete` permanently removes them, `pause` sets their status to paused, and `unpause` sets their status to active.

const (
	BatchMonitorsRequestActionDelete  BatchMonitorsRequestAction = "delete"
	BatchMonitorsRequestActionPause   BatchMonitorsRequestAction = "pause"
	BatchMonitorsRequestActionUnpause BatchMonitorsRequestAction = "unpause"
)

Defines values for BatchMonitorsRequestAction.

func (BatchMonitorsRequestAction) Valid added in v0.2.0

func (e BatchMonitorsRequestAction) Valid() bool

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

type BatchMonitorsRequestFilterStatus added in v0.2.0

type BatchMonitorsRequestFilterStatus string

BatchMonitorsRequestFilterStatus Filter by monitor status

const (
	BatchMonitorsRequestFilterStatusActive   BatchMonitorsRequestFilterStatus = "active"
	BatchMonitorsRequestFilterStatusDisabled BatchMonitorsRequestFilterStatus = "disabled"
	BatchMonitorsRequestFilterStatusPaused   BatchMonitorsRequestFilterStatus = "paused"
)

Defines values for BatchMonitorsRequestFilterStatus.

func (BatchMonitorsRequestFilterStatus) Valid added in v0.2.0

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

type BatchMonitorsResponse added in v0.2.0

type BatchMonitorsResponse struct {
	// Action The action that was performed
	Action BatchMonitorsResponseAction `json:"action"`

	// Affected The number of monitors affected by the action
	Affected int `json:"affected"`

	// DryRun Whether this was a dry run
	DryRun bool `json:"dry_run"`

	// HasMore Whether there are more monitors matching the filter. If `true`, repeat the request to process the next batch.
	HasMore bool `json:"has_more"`

	// Ids The IDs of the monitors that were affected
	Ids []string `json:"ids"`
}

BatchMonitorsResponse defines model for BatchMonitorsResponse.

type BatchMonitorsResponse2 added in v0.2.0

type BatchMonitorsResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BatchMonitorsResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *BatchMonitorsResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *BatchMonitorsResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *BatchMonitorsResponse2401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *BatchMonitorsResponse2403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *BatchMonitorsResponse2500Headers
}

func ParseBatchMonitorsResponse2 added in v0.2.0

func ParseBatchMonitorsResponse2(rsp *http.Response) (*BatchMonitorsResponse2, error)

ParseBatchMonitorsResponse2 parses an HTTP response from a BatchMonitorsWithResponse call

func (BatchMonitorsResponse2) ContentType added in v0.2.0

func (r BatchMonitorsResponse2) ContentType() string

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

func (BatchMonitorsResponse2) GetBody added in v0.2.0

func (r BatchMonitorsResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (BatchMonitorsResponse2) GetJSON200 added in v0.2.0

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

func (BatchMonitorsResponse2) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (BatchMonitorsResponse2) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (BatchMonitorsResponse2) GetJSON403 added in v0.2.0

func (r BatchMonitorsResponse2) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (BatchMonitorsResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (BatchMonitorsResponse2) Status added in v0.2.0

func (r BatchMonitorsResponse2) Status() string

Status returns HTTPResponse.Status

func (BatchMonitorsResponse2) StatusCode added in v0.2.0

func (r BatchMonitorsResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BatchMonitorsResponse2200Headers added in v0.2.0

type BatchMonitorsResponse2200Headers struct {
	XRequestId *string
}

BatchMonitorsResponse2200Headers the declared response headers of an HTTP 200 response for BatchMonitors

type BatchMonitorsResponse2400Headers added in v0.2.0

type BatchMonitorsResponse2400Headers struct {
	XRequestId *string
}

BatchMonitorsResponse2400Headers the declared response headers of an HTTP 400 response for BatchMonitors

type BatchMonitorsResponse2401Headers added in v0.2.0

type BatchMonitorsResponse2401Headers struct {
	XRequestId *string
}

BatchMonitorsResponse2401Headers the declared response headers of an HTTP 401 response for BatchMonitors

type BatchMonitorsResponse2403Headers added in v0.2.0

type BatchMonitorsResponse2403Headers struct {
	XRequestId *string
}

BatchMonitorsResponse2403Headers the declared response headers of an HTTP 403 response for BatchMonitors

type BatchMonitorsResponse2500Headers added in v0.2.0

type BatchMonitorsResponse2500Headers struct {
	XRequestId *string
}

BatchMonitorsResponse2500Headers the declared response headers of an HTTP 500 response for BatchMonitors

type BatchMonitorsResponseAction added in v0.2.0

type BatchMonitorsResponseAction string

BatchMonitorsResponseAction The action that was performed

const (
	BatchMonitorsResponseActionDelete  BatchMonitorsResponseAction = "delete"
	BatchMonitorsResponseActionPause   BatchMonitorsResponseAction = "pause"
	BatchMonitorsResponseActionUnpause BatchMonitorsResponseAction = "unpause"
)

Defines values for BatchMonitorsResponseAction.

func (BatchMonitorsResponseAction) Valid added in v0.2.0

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

type BatchObject added in v0.2.0

type BatchObject string

BatchObject The object type, always `batch`.

const (
	BatchObjectBatch BatchObject = "batch"
)

Defines values for BatchObject.

func (BatchObject) Valid added in v0.2.0

func (e BatchObject) Valid() bool

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

type BatchRequestCounts added in v0.2.0

type BatchRequestCounts struct {
	// Completed Requests that have completed successfully.
	Completed int `json:"completed"`

	// Failed Requests that have failed.
	Failed int `json:"failed"`

	// Total Total requests in the batch.
	Total int `json:"total"`
}

BatchRequestCounts defines model for BatchRequestCounts.

type BatchRequestItem added in v0.2.0

type BatchRequestItem struct {
	// Body Request body for the target route. Must be a JSON object; `stream: true` is not allowed.
	Body map[string]JsonValue `json:"body"`

	// CustomId Your unique handle for this request; keys the result and must be unique in the batch.
	CustomId string `json:"customId"`

	// Method HTTP method of the batched request. POST-only in v1.
	Method BatchRequestItemMethod `json:"method"`

	// Url Target API route for the request.
	Url BatchRequestItemUrl `json:"url"`
}

BatchRequestItem defines model for BatchRequestItem.

type BatchRequestItemMethod added in v0.2.0

type BatchRequestItemMethod string

BatchRequestItemMethod HTTP method of the batched request. POST-only in v1.

const (
	BatchRequestItemMethodPOST BatchRequestItemMethod = "POST"
)

Defines values for BatchRequestItemMethod.

func (BatchRequestItemMethod) Valid added in v0.2.0

func (e BatchRequestItemMethod) Valid() bool

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

type BatchRequestItemUrl added in v0.2.0

type BatchRequestItemUrl string

BatchRequestItemUrl Target API route for the request.

const (
	BatchRequestItemUrlAgentruns BatchRequestItemUrl = "/agent/runs"
	BatchRequestItemUrlSearch    BatchRequestItemUrl = "/search"
)

Defines values for BatchRequestItemUrl.

func (BatchRequestItemUrl) Valid added in v0.2.0

func (e BatchRequestItemUrl) Valid() bool

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

type BatchStatus added in v0.2.0

type BatchStatus string

BatchStatus Lifecycle status of the batch.

const (
	BatchStatusCancelled  BatchStatus = "cancelled"
	BatchStatusCancelling BatchStatus = "cancelling"
	BatchStatusCompleted  BatchStatus = "completed"
	BatchStatusExpired    BatchStatus = "expired"
	BatchStatusInProgress BatchStatus = "in_progress"
)

Defines values for BatchStatus.

func (BatchStatus) Valid added in v0.2.0

func (e BatchStatus) Valid() bool

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

type BatchesBetaHeader added in v0.2.0

type BatchesBetaHeader string

BatchesBetaHeader Required beta token for the Batch API.

const (
	BatchesBetaHeaderBatches20260606 BatchesBetaHeader = "batches-2026-06-06"
)

Defines values for BatchesBetaHeader.

func (BatchesBetaHeader) Valid added in v0.2.0

func (e BatchesBetaHeader) Valid() bool

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

type CancelAgentRunResponse added in v0.2.0

type CancelAgentRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRun
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *AgentErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CancelAgentRunResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CancelAgentRunResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CancelAgentRunResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CancelAgentRunResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *CancelAgentRunResponse404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CancelAgentRunResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CancelAgentRunResponse500Headers
}

func ParseCancelAgentRunResponse added in v0.2.0

func ParseCancelAgentRunResponse(rsp *http.Response) (*CancelAgentRunResponse, error)

ParseCancelAgentRunResponse parses an HTTP response from a CancelAgentRunWithResponse call

func (CancelAgentRunResponse) ContentType added in v0.2.0

func (r CancelAgentRunResponse) ContentType() string

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

func (CancelAgentRunResponse) GetBody added in v0.2.0

func (r CancelAgentRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CancelAgentRunResponse) GetJSON200 added in v0.2.0

func (r CancelAgentRunResponse) GetJSON200() *AgentRun

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

func (CancelAgentRunResponse) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CancelAgentRunResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CancelAgentRunResponse) GetJSON403 added in v0.2.0

func (r CancelAgentRunResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CancelAgentRunResponse) GetJSON404 added in v0.2.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CancelAgentRunResponse) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CancelAgentRunResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CancelAgentRunResponse) Status added in v0.2.0

func (r CancelAgentRunResponse) Status() string

Status returns HTTPResponse.Status

func (CancelAgentRunResponse) StatusCode added in v0.2.0

func (r CancelAgentRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelAgentRunResponse200Headers added in v0.2.0

type CancelAgentRunResponse200Headers struct {
	XRequestId *string
}

CancelAgentRunResponse200Headers the declared response headers of an HTTP 200 response for CancelAgentRun

type CancelAgentRunResponse400Headers added in v0.2.0

type CancelAgentRunResponse400Headers struct {
	XRequestId *string
}

CancelAgentRunResponse400Headers the declared response headers of an HTTP 400 response for CancelAgentRun

type CancelAgentRunResponse401Headers added in v0.2.0

type CancelAgentRunResponse401Headers struct {
	XRequestId *string
}

CancelAgentRunResponse401Headers the declared response headers of an HTTP 401 response for CancelAgentRun

type CancelAgentRunResponse403Headers added in v0.2.0

type CancelAgentRunResponse403Headers struct {
	XRequestId *string
}

CancelAgentRunResponse403Headers the declared response headers of an HTTP 403 response for CancelAgentRun

type CancelAgentRunResponse404Headers added in v0.2.0

type CancelAgentRunResponse404Headers struct {
	XRequestId *string
}

CancelAgentRunResponse404Headers the declared response headers of an HTTP 404 response for CancelAgentRun

type CancelAgentRunResponse429Headers added in v0.2.0

type CancelAgentRunResponse429Headers struct {
	XRequestId *string
}

CancelAgentRunResponse429Headers the declared response headers of an HTTP 429 response for CancelAgentRun

type CancelAgentRunResponse500Headers added in v0.2.0

type CancelAgentRunResponse500Headers struct {
	XRequestId *string
}

CancelAgentRunResponse500Headers the declared response headers of an HTTP 500 response for CancelAgentRun

type CancelBatchParams added in v0.2.0

type CancelBatchParams struct {
	// ExaBeta Required beta token for the Batch API.
	ExaBeta CancelBatchParamsExaBeta `json:"Exa-Beta"`
}

CancelBatchParams defines parameters for CancelBatch.

type CancelBatchParamsExaBeta added in v0.2.0

type CancelBatchParamsExaBeta string

CancelBatchParamsExaBeta defines parameters for CancelBatch.

const (
	CancelBatchParamsExaBetaBatches20260606 CancelBatchParamsExaBeta = "batches-2026-06-06"
)

Defines values for CancelBatchParamsExaBeta.

func (CancelBatchParamsExaBeta) Valid added in v0.2.0

func (e CancelBatchParamsExaBeta) Valid() bool

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

type CancelBatchResponse added in v0.2.0

type CancelBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Batch
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ConflictResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CancelBatchResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CancelBatchResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CancelBatchResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CancelBatchResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *CancelBatchResponse404Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *CancelBatchResponse409Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CancelBatchResponse500Headers
}

func ParseCancelBatchResponse added in v0.2.0

func ParseCancelBatchResponse(rsp *http.Response) (*CancelBatchResponse, error)

ParseCancelBatchResponse parses an HTTP response from a CancelBatchWithResponse call

func (CancelBatchResponse) ContentType added in v0.2.0

func (r CancelBatchResponse) ContentType() string

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

func (CancelBatchResponse) GetBody added in v0.2.0

func (r CancelBatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CancelBatchResponse) GetJSON200 added in v0.2.0

func (r CancelBatchResponse) GetJSON200() *Batch

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

func (CancelBatchResponse) GetJSON400 added in v0.2.0

func (r CancelBatchResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CancelBatchResponse) GetJSON401 added in v0.2.0

func (r CancelBatchResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CancelBatchResponse) GetJSON403 added in v0.2.0

func (r CancelBatchResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CancelBatchResponse) GetJSON404 added in v0.2.0

func (r CancelBatchResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CancelBatchResponse) GetJSON409 added in v0.2.0

func (r CancelBatchResponse) GetJSON409() *ConflictResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CancelBatchResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CancelBatchResponse) Status added in v0.2.0

func (r CancelBatchResponse) Status() string

Status returns HTTPResponse.Status

func (CancelBatchResponse) StatusCode added in v0.2.0

func (r CancelBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelBatchResponse200Headers added in v0.2.0

type CancelBatchResponse200Headers struct {
	XRequestId *string
}

CancelBatchResponse200Headers the declared response headers of an HTTP 200 response for CancelBatch

type CancelBatchResponse400Headers added in v0.2.0

type CancelBatchResponse400Headers struct {
	XRequestId *string
}

CancelBatchResponse400Headers the declared response headers of an HTTP 400 response for CancelBatch

type CancelBatchResponse401Headers added in v0.2.0

type CancelBatchResponse401Headers struct {
	XRequestId *string
}

CancelBatchResponse401Headers the declared response headers of an HTTP 401 response for CancelBatch

type CancelBatchResponse403Headers added in v0.2.0

type CancelBatchResponse403Headers struct {
	XRequestId *string
}

CancelBatchResponse403Headers the declared response headers of an HTTP 403 response for CancelBatch

type CancelBatchResponse404Headers added in v0.2.0

type CancelBatchResponse404Headers struct {
	XRequestId *string
}

CancelBatchResponse404Headers the declared response headers of an HTTP 404 response for CancelBatch

type CancelBatchResponse409Headers added in v0.2.0

type CancelBatchResponse409Headers struct {
	XRequestId *string
}

CancelBatchResponse409Headers the declared response headers of an HTTP 409 response for CancelBatch

type CancelBatchResponse500Headers added in v0.2.0

type CancelBatchResponse500Headers struct {
	XRequestId *string
}

CancelBatchResponse500Headers the declared response headers of an HTTP 500 response for CancelBatch

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

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

Answer Answer

Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.

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

Corresponds with POST /answer (the `Answer` operationId).

func (*Client) AnswerWithBody

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

AnswerWithBody Answer

Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.

Takes any type of body and a specified content type.

Corresponds with POST /answer (the `Answer` operationId).

func (*Client) BatchMonitors added in v0.2.0

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

BatchMonitors Batch action on monitors

Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.

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

Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).

func (*Client) BatchMonitorsWithBody added in v0.2.0

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

BatchMonitorsWithBody Batch action on monitors

Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.

Takes any type of body and a specified content type.

Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).

func (*Client) CancelAgentRun added in v0.2.0

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

CancelAgentRun Cancel a run

Cancel a queued or running Agent run immediately without returning any results. You are billed for usage accrued before cancellation. If the run has already reached a terminal status, the API returns the existing run.

Corresponds with POST /agent/runs/{id}/cancel (the `CancelAgentRun` operationId).

func (*Client) CancelBatch added in v0.2.0

func (c *Client) CancelBatch(ctx context.Context, id string, params *CancelBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CancelBatch Cancel a batch

Request cancellation of a batch. The batch stops scheduling new requests and drains in-flight work before settling to `cancelled`. Cancelling a batch that is already `cancelling` or `cancelled` is idempotent and returns the batch unchanged. A batch that has already reached a terminal status (`completed` or `expired`) cannot be cancelled and the request fails with a 409.

Corresponds with POST /batches/{id}/cancel (the `CancelBatch` operationId).

func (*Client) CreateAgentRun added in v0.2.0

func (c *Client) CreateAgentRun(ctx context.Context, params *CreateAgentRunParams, body CreateAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAgentRun Create a run

Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.

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

Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).

func (*Client) CreateAgentRunWithBody added in v0.2.0

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

CreateAgentRunWithBody Create a run

Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.

Takes any type of body and a specified content type.

Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).

func (*Client) CreateBatch added in v0.2.0

func (c *Client) CreateBatch(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateBatch Create a batch

Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.

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

Corresponds with POST /batches (the `CreateBatch` operationId).

func (*Client) CreateBatchWithBody added in v0.2.0

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

CreateBatchWithBody Create a batch

Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.

Takes any type of body and a specified content type.

Corresponds with POST /batches (the `CreateBatch` operationId).

func (*Client) CreateMonitor added in v0.2.0

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

CreateMonitor Create a monitor

Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.

The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.

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

Corresponds with POST /monitors (the `CreateMonitor` operationId).

func (*Client) CreateMonitorWithBody added in v0.2.0

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

CreateMonitorWithBody Create a monitor

Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.

The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.

Takes any type of body and a specified content type.

Corresponds with POST /monitors (the `CreateMonitor` operationId).

func (*Client) DeleteAgentRun added in v0.2.0

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

DeleteAgentRun Delete a run

Delete a stored Agent run.

Corresponds with DELETE /agent/runs/{id} (the `DeleteAgentRun` operationId).

func (*Client) DeleteBatch added in v0.2.0

func (c *Client) DeleteBatch(ctx context.Context, id string, params *DeleteBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteBatch Delete a batch

Soft-delete a batch in a terminal status.

Corresponds with DELETE /batches/{id} (the `DeleteBatch` operationId).

func (*Client) DeleteMonitor added in v0.2.0

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

DeleteMonitor Delete a monitor

Deletes a monitor. This cannot be undone.

Corresponds with DELETE /monitors/{id} (the `DeleteMonitor` operationId).

func (*Client) EventsGet added in v0.2.0

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

EventsGet Get an Event

Get a single Event by id.

You can subscribe to Events by creating a Webhook.

Corresponds with GET /v0/events/{id} (the `EventsGet` operationId).

func (*Client) EventsList added in v0.2.0

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

EventsList List all Events

List all events that have occurred in the system.

You can paginate through the results using the `cursor` parameter.

Corresponds with GET /v0/events (the `EventsList` operationId).

func (*Client) FindSimilar

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

FindSimilar Find similar links

Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.

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

Corresponds with POST /findSimilar (the `FindSimilar` operationId). Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*Client) FindSimilarWithBody

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

FindSimilarWithBody Find similar links

Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.

Takes any type of body and a specified content type.

Corresponds with POST /findSimilar (the `FindSimilar` operationId). Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*Client) GetAgentRun added in v0.2.0

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

GetAgentRun Get a run

Retrieve a single Agent run by ID.

Corresponds with GET /agent/runs/{id} (the `GetAgentRun` operationId).

func (*Client) GetBatch added in v0.2.0

func (c *Client) GetBatch(ctx context.Context, id string, params *GetBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetBatch Get a batch

Retrieve a single batch by ID.

Corresponds with GET /batches/{id} (the `GetBatch` operationId).

func (*Client) GetContents

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

GetContents Contents

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

Corresponds with POST /contents (the `GetContents` operationId).

func (*Client) GetContentsWithBody

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

GetContentsWithBody Contents

Takes any type of body and a specified content type.

Corresponds with POST /contents (the `GetContents` operationId).

func (*Client) GetMonitor added in v0.2.0

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

GetMonitor Get a monitor

Retrieves a single monitor by its ID.

Corresponds with GET /monitors/{id} (the `GetMonitor` operationId).

func (*Client) GetRun added in v0.2.0

func (c *Client) GetRun(ctx context.Context, id string, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRun Get a run

Retrieves a single run by its ID, including the full output if the run is completed.

Corresponds with GET /monitors/{id}/runs/{runId} (the `GetRun` operationId).

func (*Client) ImportsCreate added in v0.2.0

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

ImportsCreate Create an Import

Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.

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

Corresponds with POST /v0/imports (the `ImportsCreate` operationId).

func (*Client) ImportsCreateWithBody added in v0.2.0

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

ImportsCreateWithBody Create an Import

Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.

Takes any type of body and a specified content type.

Corresponds with POST /v0/imports (the `ImportsCreate` operationId).

func (*Client) ImportsDelete added in v0.2.0

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

ImportsDelete Delete Import

Deletes a import.

Corresponds with DELETE /v0/imports/{id} (the `ImportsDelete` operationId).

func (*Client) ImportsGet added in v0.2.0

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

ImportsGet Get Import

Gets a specific import.

Corresponds with GET /v0/imports/{id} (the `ImportsGet` operationId).

func (*Client) ImportsList added in v0.2.0

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

ImportsList List Imports

Lists all imports for the Webset.

Corresponds with GET /v0/imports (the `ImportsList` operationId).

func (*Client) ImportsUpdate added in v0.2.0

func (c *Client) ImportsUpdate(ctx context.Context, id string, body ImportsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ImportsUpdate Update Import

Updates a import configuration.

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

Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).

func (*Client) ImportsUpdateWithBody added in v0.2.0

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

ImportsUpdateWithBody Update Import

Updates a import configuration.

Takes any type of body and a specified content type.

Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).

func (*Client) ListAgentRunEvents added in v0.2.0

func (c *Client) ListAgentRunEvents(ctx context.Context, id AgentRunId, params *ListAgentRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAgentRunEvents List run events

List stored events for an Agent run. Set `Accept: text/event-stream` to replay stored events as server-sent events. Use `cursor` for JSON pagination or `Last-Event-ID` for SSE replay.

Corresponds with GET /agent/runs/{id}/events (the `ListAgentRunEvents` operationId).

func (*Client) ListAgentRuns added in v0.2.0

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

ListAgentRuns List runs

List Agent runs for your team, ordered from newest to oldest.

Corresponds with GET /agent/runs (the `ListAgentRuns` operationId).

func (*Client) ListBatches added in v0.2.0

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

ListBatches List batches

List batches for your team, ordered from newest to oldest.

Corresponds with GET /batches (the `ListBatches` operationId).

func (*Client) ListMonitors added in v0.2.0

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

ListMonitors List monitors

Lists all monitors for the authenticated team. Supports filtering by status and cursor-based pagination.

Corresponds with GET /monitors (the `ListMonitors` operationId).

func (*Client) ListRuns added in v0.2.0

func (c *Client) ListRuns(ctx context.Context, id string, params *ListRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRuns List runs

Lists all runs for a monitor with cursor-based pagination. Runs are returned in reverse chronological order.

Corresponds with GET /monitors/{id}/runs (the `ListRuns` operationId).

func (*Client) MonitorsCreate added in v0.2.0

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

MonitorsCreate Create a Monitor

Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.

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

Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).

func (*Client) MonitorsCreateWithBody added in v0.2.0

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

MonitorsCreateWithBody Create a Monitor

Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.

Takes any type of body and a specified content type.

Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).

func (*Client) MonitorsDelete added in v0.2.0

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

MonitorsDelete Delete Monitor

Deletes a monitor.

Corresponds with DELETE /v0/monitors/{id} (the `MonitorsDelete` operationId).

func (*Client) MonitorsGet added in v0.2.0

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

MonitorsGet Get Monitor

Gets a specific monitor.

Corresponds with GET /v0/monitors/{id} (the `MonitorsGet` operationId).

func (*Client) MonitorsList added in v0.2.0

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

MonitorsList List Monitors

Lists all monitors for the Webset.

Corresponds with GET /v0/monitors (the `MonitorsList` operationId).

func (*Client) MonitorsRunsGet added in v0.2.0

func (c *Client) MonitorsRunsGet(ctx context.Context, monitor string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

MonitorsRunsGet Get Monitor Run

Gets a specific monitor run.

Corresponds with GET /v0/monitors/{monitor}/runs/{id} (the `MonitorsRunsGet` operationId).

func (*Client) MonitorsRunsList added in v0.2.0

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

MonitorsRunsList List Monitor Runs

Lists all runs for the Monitor.

Corresponds with GET /v0/monitors/{monitor}/runs (the `MonitorsRunsList` operationId).

func (*Client) MonitorsUpdate added in v0.2.0

func (c *Client) MonitorsUpdate(ctx context.Context, id string, body MonitorsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

MonitorsUpdate Update Monitor

Updates a monitor configuration.

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

Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).

func (*Client) MonitorsUpdateWithBody added in v0.2.0

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

MonitorsUpdateWithBody Update Monitor

Updates a monitor configuration.

Takes any type of body and a specified content type.

Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).

func (*Client) Search

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

Search Search

Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.

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

Corresponds with POST /search (the `Search` operationId).

func (*Client) SearchWithBody

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

SearchWithBody Search

Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.

Takes any type of body and a specified content type.

Corresponds with POST /search (the `Search` operationId).

func (*Client) StopAgentRun added in v0.2.0

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

StopAgentRun Stop a run

Complete a running Agent run early, returning the results gathered so far. You are billed for usage accrued before the stop. Currently supported only for `ultra` effort runs. If the run has already reached a terminal status, the API returns the existing run.

Corresponds with POST /agent/runs/{id}/stop (the `StopAgentRun` operationId).

func (*Client) TeamsMeGet added in v0.2.0

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

TeamsMeGet Get team info

Returns information about the authenticated team, including current concurrency usage and limits.

Corresponds with GET /v0/teams/me (the `TeamsMeGet` operationId).

func (*Client) TriggerMonitor added in v0.2.0

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

TriggerMonitor Trigger a monitor

Triggers a run immediately, regardless of the schedule. Works for monitors with status `active` or `paused`.

Corresponds with POST /monitors/{id}/trigger (the `TriggerMonitor` operationId).

func (*Client) UpdateMonitor added in v0.2.0

func (c *Client) UpdateMonitor(ctx context.Context, id string, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMonitor Update a monitor

Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.

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

Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).

func (*Client) UpdateMonitorWithBody added in v0.2.0

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

UpdateMonitorWithBody Update a monitor

Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.

Takes any type of body and a specified content type.

Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).

func (*Client) WebhooksAttemptsList added in v0.2.0

func (c *Client) WebhooksAttemptsList(ctx context.Context, id string, params *WebhooksAttemptsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WebhooksAttemptsList List webhook attempts

List all attempts made by a Webhook ordered in descending order.

Corresponds with GET /v0/webhooks/{id}/attempts (the `WebhooksAttemptsList` operationId).

func (*Client) WebhooksCreate added in v0.2.0

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

WebhooksCreate Create a Webhook

Creates a Webhook that delivers the selected events to your URL as they occur.

The response includes the signing `secret` used to verify deliveries; it is only returned on creation.

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

Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).

func (*Client) WebhooksCreateWithBody added in v0.2.0

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

WebhooksCreateWithBody Create a Webhook

Creates a Webhook that delivers the selected events to your URL as they occur.

The response includes the signing `secret` used to verify deliveries; it is only returned on creation.

Takes any type of body and a specified content type.

Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).

func (*Client) WebhooksDelete added in v0.2.0

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

WebhooksDelete Delete a Webhook

Deletes a Webhook. Its status becomes `inactive`, which stops future webhook deliveries to its URL.

Corresponds with DELETE /v0/webhooks/{id} (the `WebhooksDelete` operationId).

func (*Client) WebhooksGet added in v0.2.0

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

WebhooksGet Get a Webhook

Returns a Webhook by id, including its status, subscribed events, target URL, and metadata. The signing `secret` is not returned.

Corresponds with GET /v0/webhooks/{id} (the `WebhooksGet` operationId).

func (*Client) WebhooksList added in v0.2.0

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

WebhooksList List webhooks

Returns the active Webhooks for your team.

You can paginate through the results using the `cursor` parameter.

Corresponds with GET /v0/webhooks (the `WebhooksList` operationId).

func (*Client) WebhooksUpdate added in v0.2.0

func (c *Client) WebhooksUpdate(ctx context.Context, id string, body WebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebhooksUpdate Update a Webhook

Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.

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

Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).

func (*Client) WebhooksUpdateWithBody added in v0.2.0

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

WebhooksUpdateWithBody Update a Webhook

Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.

Takes any type of body and a specified content type.

Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).

func (*Client) WebsetsCancel added in v0.2.0

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

WebsetsCancel Cancel a running Webset

Cancels all operations being performed on a Webset.

Any enrichment or search will be stopped and the Webset will be marked as `idle`.

Corresponds with POST /v0/websets/{id}/cancel (the `WebsetsCancel` operationId).

func (*Client) WebsetsCreate added in v0.2.0

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

WebsetsCreate Create a Webset

Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.

You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.

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

Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).

func (*Client) WebsetsCreateWithBody added in v0.2.0

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

WebsetsCreateWithBody Create a Webset

Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.

You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.

Takes any type of body and a specified content type.

Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).

func (*Client) WebsetsDelete added in v0.2.0

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

WebsetsDelete Delete a Webset

Deletes a Webset.

Once deleted, the Webset and all its Items will no longer be available.

Corresponds with DELETE /v0/websets/{id} (the `WebsetsDelete` operationId).

func (*Client) WebsetsEnrichmentsCancel added in v0.2.0

func (c *Client) WebsetsEnrichmentsCancel(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsEnrichmentsCancel Cancel a running Enrichment

All running enrichments will be canceled. You can not resume an Enrichment after it has been canceled.

Corresponds with POST /v0/websets/{webset}/enrichments/{id}/cancel (the `WebsetsEnrichmentsCancel` operationId).

func (*Client) WebsetsEnrichmentsCreate added in v0.2.0

func (c *Client) WebsetsEnrichmentsCreate(ctx context.Context, webset string, body WebsetsEnrichmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsEnrichmentsCreate Create an Enrichment

Create an Enrichment for a Webset.

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

Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).

func (*Client) WebsetsEnrichmentsCreateWithBody added in v0.2.0

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

WebsetsEnrichmentsCreateWithBody Create an Enrichment

Create an Enrichment for a Webset.

Takes any type of body and a specified content type.

Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).

func (*Client) WebsetsEnrichmentsDelete added in v0.2.0

func (c *Client) WebsetsEnrichmentsDelete(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsEnrichmentsDelete Delete an Enrichment

When deleting an Enrichment, any running enrichments will be canceled and all existing `enrichment_result` generated by this Enrichment will no longer be available.

Corresponds with DELETE /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsDelete` operationId).

func (*Client) WebsetsEnrichmentsGet added in v0.2.0

func (c *Client) WebsetsEnrichmentsGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsEnrichmentsGet Get an Enrichment

Returns an Enrichment configured on a Webset, including its status, description, format, and options.

Corresponds with GET /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsGet` operationId).

func (*Client) WebsetsEnrichmentsUpdate added in v0.2.0

func (c *Client) WebsetsEnrichmentsUpdate(ctx context.Context, webset string, id string, body WebsetsEnrichmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsEnrichmentsUpdate Update an Enrichment

Update an Enrichment configuration for a Webset.

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

Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).

func (*Client) WebsetsEnrichmentsUpdateWithBody added in v0.2.0

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

WebsetsEnrichmentsUpdateWithBody Update an Enrichment

Update an Enrichment configuration for a Webset.

Takes any type of body and a specified content type.

Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).

func (*Client) WebsetsGet added in v0.2.0

func (c *Client) WebsetsGet(ctx context.Context, id string, params *WebsetsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsGet Get a Webset

Returns a Webset by `id` or `externalId`, including its status, searches, imports, enrichments, and monitors.

Pass `expand=items` to include up to the first 100 items in the response.

Corresponds with GET /v0/websets/{id} (the `WebsetsGet` operationId).

func (*Client) WebsetsItemsDelete added in v0.2.0

func (c *Client) WebsetsItemsDelete(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsItemsDelete Delete an Item

Deletes an Item from the Webset.

This will cancel any enrichment process for it.

Corresponds with DELETE /v0/websets/{webset}/items/{id} (the `WebsetsItemsDelete` operationId).

func (*Client) WebsetsItemsGet added in v0.2.0

func (c *Client) WebsetsItemsGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsItemsGet Get an Item

Returns a Webset Item.

Corresponds with GET /v0/websets/{webset}/items/{id} (the `WebsetsItemsGet` operationId).

func (*Client) WebsetsItemsList added in v0.2.0

func (c *Client) WebsetsItemsList(ctx context.Context, webset string, params *WebsetsItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsItemsList List all Items for a Webset

Returns a list of Webset Items.

You can paginate through the Items using the `cursor` parameter.

Corresponds with GET /v0/websets/{webset}/items (the `WebsetsItemsList` operationId).

func (*Client) WebsetsList added in v0.2.0

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

WebsetsList List all Websets

Returns a list of Websets.

You can paginate through the results using the `cursor` parameter.

You can filter results using the `search` parameter to find Websets by ID, external ID, or title.

Corresponds with GET /v0/websets (the `WebsetsList` operationId).

func (*Client) WebsetsPreview added in v0.2.0

func (c *Client) WebsetsPreview(ctx context.Context, params *WebsetsPreviewParams, body WebsetsPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsPreview Preview a webset

Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.

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

Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).

func (*Client) WebsetsPreviewWithBody added in v0.2.0

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

WebsetsPreviewWithBody Preview a webset

Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.

Takes any type of body and a specified content type.

Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).

func (*Client) WebsetsSearchesCancel added in v0.2.0

func (c *Client) WebsetsSearchesCancel(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsSearchesCancel Cancel a running Search

Cancels a currently running Search.

You can cancel all searches at once by using the `websets/:webset/cancel` endpoint.

Corresponds with POST /v0/websets/{webset}/searches/{id}/cancel (the `WebsetsSearchesCancel` operationId).

func (*Client) WebsetsSearchesCreate added in v0.2.0

func (c *Client) WebsetsSearchesCreate(ctx context.Context, webset string, body WebsetsSearchesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsSearchesCreate Create a Search

Creates a new Search for the Webset.

The default behavior is to reuse the previous Search results and evaluate them against the new criteria.

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

Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).

func (*Client) WebsetsSearchesCreateWithBody added in v0.2.0

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

WebsetsSearchesCreateWithBody Create a Search

Creates a new Search for the Webset.

The default behavior is to reuse the previous Search results and evaluate them against the new criteria.

Takes any type of body and a specified content type.

Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).

func (*Client) WebsetsSearchesGet added in v0.2.0

func (c *Client) WebsetsSearchesGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsSearchesGet Get a Search

Gets a Search by id.

Corresponds with GET /v0/websets/{webset}/searches/{id} (the `WebsetsSearchesGet` operationId).

func (*Client) WebsetsUpdate added in v0.2.0

func (c *Client) WebsetsUpdate(ctx context.Context, id string, body WebsetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WebsetsUpdate Update a Webset

Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.

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

Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).

func (*Client) WebsetsUpdateWithBody added in v0.2.0

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

WebsetsUpdateWithBody Update a Webset

Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.

Takes any type of body and a specified content type.

Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).

type ClientInterface

type ClientInterface interface {

	// ListAgentRuns List runs
	//
	// List Agent runs for your team, ordered from newest to oldest.
	//
	// Corresponds with GET /agent/runs (the `ListAgentRuns` operationId).
	ListAgentRuns(ctx context.Context, params *ListAgentRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAgentRunWithBody Create a run
	//
	// Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).
	CreateAgentRunWithBody(ctx context.Context, params *CreateAgentRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAgentRun Create a run
	//
	// Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).
	CreateAgentRun(ctx context.Context, params *CreateAgentRunParams, body CreateAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAgentRun Delete a run
	//
	// Delete a stored Agent run.
	//
	// Corresponds with DELETE /agent/runs/{id} (the `DeleteAgentRun` operationId).
	DeleteAgentRun(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAgentRun Get a run
	//
	// Retrieve a single Agent run by ID.
	//
	// Corresponds with GET /agent/runs/{id} (the `GetAgentRun` operationId).
	GetAgentRun(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelAgentRun Cancel a run
	//
	// Cancel a queued or running Agent run immediately without returning any results. You are billed for usage accrued before cancellation. If the run has already reached a terminal status, the API returns the existing run.
	//
	// Corresponds with POST /agent/runs/{id}/cancel (the `CancelAgentRun` operationId).
	CancelAgentRun(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAgentRunEvents List run events
	//
	// List stored events for an Agent run. Set `Accept: text/event-stream` to replay stored events as server-sent events. Use `cursor` for JSON pagination or `Last-Event-ID` for SSE replay.
	//
	// Corresponds with GET /agent/runs/{id}/events (the `ListAgentRunEvents` operationId).
	ListAgentRunEvents(ctx context.Context, id AgentRunId, params *ListAgentRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StopAgentRun Stop a run
	//
	// Complete a running Agent run early, returning the results gathered so far. You are billed for usage accrued before the stop. Currently supported only for `ultra` effort runs. If the run has already reached a terminal status, the API returns the existing run.
	//
	// Corresponds with POST /agent/runs/{id}/stop (the `StopAgentRun` operationId).
	StopAgentRun(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AnswerWithBody Answer
	//
	// Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /answer (the `Answer` operationId).
	AnswerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Answer Answer
	//
	// Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /answer (the `Answer` operationId).
	Answer(ctx context.Context, body AnswerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBatches List batches
	//
	// List batches for your team, ordered from newest to oldest.
	//
	// Corresponds with GET /batches (the `ListBatches` operationId).
	ListBatches(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBatchWithBody Create a batch
	//
	// Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /batches (the `CreateBatch` operationId).
	CreateBatchWithBody(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBatch Create a batch
	//
	// Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /batches (the `CreateBatch` operationId).
	CreateBatch(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBatch Delete a batch
	//
	// Soft-delete a batch in a terminal status.
	//
	// Corresponds with DELETE /batches/{id} (the `DeleteBatch` operationId).
	DeleteBatch(ctx context.Context, id string, params *DeleteBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBatch Get a batch
	//
	// Retrieve a single batch by ID.
	//
	// Corresponds with GET /batches/{id} (the `GetBatch` operationId).
	GetBatch(ctx context.Context, id string, params *GetBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelBatch Cancel a batch
	//
	// Request cancellation of a batch. The batch stops scheduling new requests and drains in-flight work before settling to `cancelled`. Cancelling a batch that is already `cancelling` or `cancelled` is idempotent and returns the batch unchanged. A batch that has already reached a terminal status (`completed` or `expired`) cannot be cancelled and the request fails with a 409.
	//
	// Corresponds with POST /batches/{id}/cancel (the `CancelBatch` operationId).
	CancelBatch(ctx context.Context, id string, params *CancelBatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetContentsWithBody Contents
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /contents (the `GetContents` operationId).
	GetContentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetContents Contents
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /contents (the `GetContents` operationId).
	GetContents(ctx context.Context, body GetContentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindSimilarWithBody Find similar links
	//
	// Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /findSimilar (the `FindSimilar` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	FindSimilarWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindSimilar Find similar links
	//
	// Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /findSimilar (the `FindSimilar` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	FindSimilar(ctx context.Context, body FindSimilarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMonitors List monitors
	//
	// Lists all monitors for the authenticated team. Supports filtering by status and cursor-based pagination.
	//
	// Corresponds with GET /monitors (the `ListMonitors` operationId).
	ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMonitorWithBody Create a monitor
	//
	// Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.
	//
	// The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /monitors (the `CreateMonitor` operationId).
	CreateMonitorWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMonitor Create a monitor
	//
	// Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.
	//
	// The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /monitors (the `CreateMonitor` operationId).
	CreateMonitor(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchMonitorsWithBody Batch action on monitors
	//
	// Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).
	BatchMonitorsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchMonitors Batch action on monitors
	//
	// Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).
	BatchMonitors(ctx context.Context, body BatchMonitorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMonitor Delete a monitor
	//
	// Deletes a monitor. This cannot be undone.
	//
	// Corresponds with DELETE /monitors/{id} (the `DeleteMonitor` operationId).
	DeleteMonitor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonitor Get a monitor
	//
	// Retrieves a single monitor by its ID.
	//
	// Corresponds with GET /monitors/{id} (the `GetMonitor` operationId).
	GetMonitor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMonitorWithBody Update a monitor
	//
	// Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).
	UpdateMonitorWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMonitor Update a monitor
	//
	// Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).
	UpdateMonitor(ctx context.Context, id string, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRuns List runs
	//
	// Lists all runs for a monitor with cursor-based pagination. Runs are returned in reverse chronological order.
	//
	// Corresponds with GET /monitors/{id}/runs (the `ListRuns` operationId).
	ListRuns(ctx context.Context, id string, params *ListRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRun Get a run
	//
	// Retrieves a single run by its ID, including the full output if the run is completed.
	//
	// Corresponds with GET /monitors/{id}/runs/{runId} (the `GetRun` operationId).
	GetRun(ctx context.Context, id string, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerMonitor Trigger a monitor
	//
	// Triggers a run immediately, regardless of the schedule. Works for monitors with status `active` or `paused`.
	//
	// Corresponds with POST /monitors/{id}/trigger (the `TriggerMonitor` operationId).
	TriggerMonitor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchWithBody Search
	//
	// Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /search (the `Search` operationId).
	SearchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Search Search
	//
	// Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /search (the `Search` operationId).
	Search(ctx context.Context, body SearchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EventsList List all Events
	//
	// List all events that have occurred in the system.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// Corresponds with GET /v0/events (the `EventsList` operationId).
	EventsList(ctx context.Context, params *EventsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EventsGet Get an Event
	//
	// Get a single Event by id.
	//
	// You can subscribe to Events by creating a Webhook.
	//
	// Corresponds with GET /v0/events/{id} (the `EventsGet` operationId).
	EventsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsList List Imports
	//
	// Lists all imports for the Webset.
	//
	// Corresponds with GET /v0/imports (the `ImportsList` operationId).
	ImportsList(ctx context.Context, params *ImportsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsCreateWithBody Create an Import
	//
	// Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/imports (the `ImportsCreate` operationId).
	ImportsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsCreate Create an Import
	//
	// Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/imports (the `ImportsCreate` operationId).
	ImportsCreate(ctx context.Context, body ImportsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsDelete Delete Import
	//
	// Deletes a import.
	//
	// Corresponds with DELETE /v0/imports/{id} (the `ImportsDelete` operationId).
	ImportsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsGet Get Import
	//
	// Gets a specific import.
	//
	// Corresponds with GET /v0/imports/{id} (the `ImportsGet` operationId).
	ImportsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsUpdateWithBody Update Import
	//
	// Updates a import configuration.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).
	ImportsUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportsUpdate Update Import
	//
	// Updates a import configuration.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).
	ImportsUpdate(ctx context.Context, id string, body ImportsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsList List Monitors
	//
	// Lists all monitors for the Webset.
	//
	// Corresponds with GET /v0/monitors (the `MonitorsList` operationId).
	MonitorsList(ctx context.Context, params *MonitorsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsCreateWithBody Create a Monitor
	//
	// Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).
	MonitorsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsCreate Create a Monitor
	//
	// Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).
	MonitorsCreate(ctx context.Context, body MonitorsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsDelete Delete Monitor
	//
	// Deletes a monitor.
	//
	// Corresponds with DELETE /v0/monitors/{id} (the `MonitorsDelete` operationId).
	MonitorsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsGet Get Monitor
	//
	// Gets a specific monitor.
	//
	// Corresponds with GET /v0/monitors/{id} (the `MonitorsGet` operationId).
	MonitorsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsUpdateWithBody Update Monitor
	//
	// Updates a monitor configuration.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).
	MonitorsUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsUpdate Update Monitor
	//
	// Updates a monitor configuration.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).
	MonitorsUpdate(ctx context.Context, id string, body MonitorsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsRunsList List Monitor Runs
	//
	// Lists all runs for the Monitor.
	//
	// Corresponds with GET /v0/monitors/{monitor}/runs (the `MonitorsRunsList` operationId).
	MonitorsRunsList(ctx context.Context, monitor string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MonitorsRunsGet Get Monitor Run
	//
	// Gets a specific monitor run.
	//
	// Corresponds with GET /v0/monitors/{monitor}/runs/{id} (the `MonitorsRunsGet` operationId).
	MonitorsRunsGet(ctx context.Context, monitor string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TeamsMeGet Get team info
	//
	// Returns information about the authenticated team, including current concurrency usage and limits.
	//
	// Corresponds with GET /v0/teams/me (the `TeamsMeGet` operationId).
	TeamsMeGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksList List webhooks
	//
	// Returns the active Webhooks for your team.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// Corresponds with GET /v0/webhooks (the `WebhooksList` operationId).
	WebhooksList(ctx context.Context, params *WebhooksListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksCreateWithBody Create a Webhook
	//
	// Creates a Webhook that delivers the selected events to your URL as they occur.
	//
	// The response includes the signing `secret` used to verify deliveries; it is only returned on creation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).
	WebhooksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksCreate Create a Webhook
	//
	// Creates a Webhook that delivers the selected events to your URL as they occur.
	//
	// The response includes the signing `secret` used to verify deliveries; it is only returned on creation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).
	WebhooksCreate(ctx context.Context, body WebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksDelete Delete a Webhook
	//
	// Deletes a Webhook. Its status becomes `inactive`, which stops future webhook deliveries to its URL.
	//
	// Corresponds with DELETE /v0/webhooks/{id} (the `WebhooksDelete` operationId).
	WebhooksDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksGet Get a Webhook
	//
	// Returns a Webhook by id, including its status, subscribed events, target URL, and metadata. The signing `secret` is not returned.
	//
	// Corresponds with GET /v0/webhooks/{id} (the `WebhooksGet` operationId).
	WebhooksGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksUpdateWithBody Update a Webhook
	//
	// Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).
	WebhooksUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksUpdate Update a Webhook
	//
	// Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).
	WebhooksUpdate(ctx context.Context, id string, body WebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebhooksAttemptsList List webhook attempts
	//
	// List all attempts made by a Webhook ordered in descending order.
	//
	// Corresponds with GET /v0/webhooks/{id}/attempts (the `WebhooksAttemptsList` operationId).
	WebhooksAttemptsList(ctx context.Context, id string, params *WebhooksAttemptsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsList List all Websets
	//
	// Returns a list of Websets.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// You can filter results using the `search` parameter to find Websets by ID, external ID, or title.
	//
	// Corresponds with GET /v0/websets (the `WebsetsList` operationId).
	WebsetsList(ctx context.Context, params *WebsetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsCreateWithBody Create a Webset
	//
	// Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.
	//
	// You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).
	WebsetsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsCreate Create a Webset
	//
	// Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.
	//
	// You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).
	WebsetsCreate(ctx context.Context, body WebsetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsPreviewWithBody Preview a webset
	//
	// Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).
	WebsetsPreviewWithBody(ctx context.Context, params *WebsetsPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsPreview Preview a webset
	//
	// Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).
	WebsetsPreview(ctx context.Context, params *WebsetsPreviewParams, body WebsetsPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsDelete Delete a Webset
	//
	// Deletes a Webset.
	//
	// Once deleted, the Webset and all its Items will no longer be available.
	//
	// Corresponds with DELETE /v0/websets/{id} (the `WebsetsDelete` operationId).
	WebsetsDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsGet Get a Webset
	//
	// Returns a Webset by `id` or `externalId`, including its status, searches, imports, enrichments, and monitors.
	//
	// Pass `expand=items` to include up to the first 100 items in the response.
	//
	// Corresponds with GET /v0/websets/{id} (the `WebsetsGet` operationId).
	WebsetsGet(ctx context.Context, id string, params *WebsetsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsUpdateWithBody Update a Webset
	//
	// Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).
	WebsetsUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsUpdate Update a Webset
	//
	// Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).
	WebsetsUpdate(ctx context.Context, id string, body WebsetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsCancel Cancel a running Webset
	//
	// Cancels all operations being performed on a Webset.
	//
	// Any enrichment or search will be stopped and the Webset will be marked as `idle`.
	//
	// Corresponds with POST /v0/websets/{id}/cancel (the `WebsetsCancel` operationId).
	WebsetsCancel(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsCreateWithBody Create an Enrichment
	//
	// Create an Enrichment for a Webset.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).
	WebsetsEnrichmentsCreateWithBody(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsCreate Create an Enrichment
	//
	// Create an Enrichment for a Webset.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).
	WebsetsEnrichmentsCreate(ctx context.Context, webset string, body WebsetsEnrichmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsDelete Delete an Enrichment
	//
	// When deleting an Enrichment, any running enrichments will be canceled and all existing `enrichment_result` generated by this Enrichment will no longer be available.
	//
	// Corresponds with DELETE /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsDelete` operationId).
	WebsetsEnrichmentsDelete(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsGet Get an Enrichment
	//
	// Returns an Enrichment configured on a Webset, including its status, description, format, and options.
	//
	// Corresponds with GET /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsGet` operationId).
	WebsetsEnrichmentsGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsUpdateWithBody Update an Enrichment
	//
	// Update an Enrichment configuration for a Webset.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).
	WebsetsEnrichmentsUpdateWithBody(ctx context.Context, webset string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsUpdate Update an Enrichment
	//
	// Update an Enrichment configuration for a Webset.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).
	WebsetsEnrichmentsUpdate(ctx context.Context, webset string, id string, body WebsetsEnrichmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsEnrichmentsCancel Cancel a running Enrichment
	//
	// All running enrichments will be canceled. You can not resume an Enrichment after it has been canceled.
	//
	// Corresponds with POST /v0/websets/{webset}/enrichments/{id}/cancel (the `WebsetsEnrichmentsCancel` operationId).
	WebsetsEnrichmentsCancel(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsItemsList List all Items for a Webset
	//
	// Returns a list of Webset Items.
	//
	// You can paginate through the Items using the `cursor` parameter.
	//
	// Corresponds with GET /v0/websets/{webset}/items (the `WebsetsItemsList` operationId).
	WebsetsItemsList(ctx context.Context, webset string, params *WebsetsItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsItemsDelete Delete an Item
	//
	// Deletes an Item from the Webset.
	//
	// This will cancel any enrichment process for it.
	//
	// Corresponds with DELETE /v0/websets/{webset}/items/{id} (the `WebsetsItemsDelete` operationId).
	WebsetsItemsDelete(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsItemsGet Get an Item
	//
	// Returns a Webset Item.
	//
	// Corresponds with GET /v0/websets/{webset}/items/{id} (the `WebsetsItemsGet` operationId).
	WebsetsItemsGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsSearchesCreateWithBody Create a Search
	//
	// Creates a new Search for the Webset.
	//
	// The default behavior is to reuse the previous Search results and evaluate them against the new criteria.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).
	WebsetsSearchesCreateWithBody(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsSearchesCreate Create a Search
	//
	// Creates a new Search for the Webset.
	//
	// The default behavior is to reuse the previous Search results and evaluate them against the new criteria.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).
	WebsetsSearchesCreate(ctx context.Context, webset string, body WebsetsSearchesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsSearchesGet Get a Search
	//
	// Gets a Search by id.
	//
	// Corresponds with GET /v0/websets/{webset}/searches/{id} (the `WebsetsSearchesGet` operationId).
	WebsetsSearchesGet(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WebsetsSearchesCancel Cancel a running Search
	//
	// Cancels a currently running Search.
	//
	// You can cancel all searches at once by using the `websets/:webset/cancel` endpoint.
	//
	// Corresponds with POST /v0/websets/{webset}/searches/{id}/cancel (the `WebsetsSearchesCancel` operationId).
	WebsetsSearchesCancel(ctx context.Context, webset string, id string, 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) AnswerWithBodyWithResponse

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

AnswerWithBodyWithResponse Answer

Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.

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 /answer (the `Answer` operationId).

func (*ClientWithResponses) AnswerWithResponse

func (c *ClientWithResponses) AnswerWithResponse(ctx context.Context, body AnswerJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerResponse2, error)

AnswerWithResponse Answer

Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.

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

Corresponds with POST /answer (the `Answer` operationId).

func (*ClientWithResponses) BatchMonitorsWithBodyWithResponse added in v0.2.0

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

BatchMonitorsWithBodyWithResponse Batch action on monitors

Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.

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

func (*ClientWithResponses) BatchMonitorsWithResponse added in v0.2.0

func (c *ClientWithResponses) BatchMonitorsWithResponse(ctx context.Context, body BatchMonitorsJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchMonitorsResponse2, error)

BatchMonitorsWithResponse Batch action on monitors

Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.

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

Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).

func (*ClientWithResponses) CancelAgentRunWithResponse added in v0.2.0

func (c *ClientWithResponses) CancelAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error)

CancelAgentRunWithResponse Cancel a run

Cancel a queued or running Agent run immediately without returning any results. You are billed for usage accrued before cancellation. If the run has already reached a terminal status, the API returns the existing run.

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

Corresponds with POST /agent/runs/{id}/cancel (the `CancelAgentRun` operationId).

func (*ClientWithResponses) CancelBatchWithResponse added in v0.2.0

func (c *ClientWithResponses) CancelBatchWithResponse(ctx context.Context, id string, params *CancelBatchParams, reqEditors ...RequestEditorFn) (*CancelBatchResponse, error)

CancelBatchWithResponse Cancel a batch

Request cancellation of a batch. The batch stops scheduling new requests and drains in-flight work before settling to `cancelled`. Cancelling a batch that is already `cancelling` or `cancelled` is idempotent and returns the batch unchanged. A batch that has already reached a terminal status (`completed` or `expired`) cannot be cancelled and the request fails with a 409.

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

Corresponds with POST /batches/{id}/cancel (the `CancelBatch` operationId).

func (*ClientWithResponses) CreateAgentRunWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateAgentRunWithBodyWithResponse(ctx context.Context, params *CreateAgentRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentRunResponse, error)

CreateAgentRunWithBodyWithResponse Create a run

Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.

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 /agent/runs (the `CreateAgentRun` operationId).

func (*ClientWithResponses) CreateAgentRunWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateAgentRunWithResponse(ctx context.Context, params *CreateAgentRunParams, body CreateAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentRunResponse, error)

CreateAgentRunWithResponse Create a run

Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.

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

Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).

func (*ClientWithResponses) CreateBatchWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateBatchWithBodyWithResponse(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)

CreateBatchWithBodyWithResponse Create a batch

Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.

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 /batches (the `CreateBatch` operationId).

func (*ClientWithResponses) CreateBatchWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateBatchWithResponse(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)

CreateBatchWithResponse Create a batch

Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.

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

Corresponds with POST /batches (the `CreateBatch` operationId).

func (*ClientWithResponses) CreateMonitorWithBodyWithResponse added in v0.2.0

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

CreateMonitorWithBodyWithResponse Create a monitor

Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.

The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.

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 /monitors (the `CreateMonitor` operationId).

func (*ClientWithResponses) CreateMonitorWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

CreateMonitorWithResponse Create a monitor

Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.

The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.

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

Corresponds with POST /monitors (the `CreateMonitor` operationId).

func (*ClientWithResponses) DeleteAgentRunWithResponse added in v0.2.0

func (c *ClientWithResponses) DeleteAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*DeleteAgentRunResponse2, error)

DeleteAgentRunWithResponse Delete a run

Delete a stored Agent run.

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

Corresponds with DELETE /agent/runs/{id} (the `DeleteAgentRun` operationId).

func (*ClientWithResponses) DeleteBatchWithResponse added in v0.2.0

func (c *ClientWithResponses) DeleteBatchWithResponse(ctx context.Context, id string, params *DeleteBatchParams, reqEditors ...RequestEditorFn) (*DeleteBatchResponse, error)

DeleteBatchWithResponse Delete a batch

Soft-delete a batch in a terminal status.

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

Corresponds with DELETE /batches/{id} (the `DeleteBatch` operationId).

func (*ClientWithResponses) DeleteMonitorWithResponse added in v0.2.0

func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error)

DeleteMonitorWithResponse Delete a monitor

Deletes a monitor. This cannot be undone.

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

Corresponds with DELETE /monitors/{id} (the `DeleteMonitor` operationId).

func (*ClientWithResponses) EventsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) EventsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EventsGetResponse, error)

EventsGetWithResponse Get an Event

Get a single Event by id.

You can subscribe to Events by creating a Webhook.

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

Corresponds with GET /v0/events/{id} (the `EventsGet` operationId).

func (*ClientWithResponses) EventsListWithResponse added in v0.2.0

func (c *ClientWithResponses) EventsListWithResponse(ctx context.Context, params *EventsListParams, reqEditors ...RequestEditorFn) (*EventsListResponse, error)

EventsListWithResponse List all Events

List all events that have occurred in the system.

You can paginate through the results using the `cursor` parameter.

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

Corresponds with GET /v0/events (the `EventsList` operationId).

func (*ClientWithResponses) FindSimilarWithBodyWithResponse deprecated

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

FindSimilarWithBodyWithResponse Find similar links

Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.

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 /findSimilar (the `FindSimilar` operationId).

Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*ClientWithResponses) FindSimilarWithResponse

func (c *ClientWithResponses) FindSimilarWithResponse(ctx context.Context, body FindSimilarJSONRequestBody, reqEditors ...RequestEditorFn) (*FindSimilarResponse2, error)

FindSimilarWithResponse Find similar links

Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.

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

Corresponds with POST /findSimilar (the `FindSimilar` operationId). Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*ClientWithResponses) GetAgentRunWithResponse added in v0.2.0

func (c *ClientWithResponses) GetAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*GetAgentRunResponse, error)

GetAgentRunWithResponse Get a run

Retrieve a single Agent run by ID.

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

Corresponds with GET /agent/runs/{id} (the `GetAgentRun` operationId).

func (*ClientWithResponses) GetBatchWithResponse added in v0.2.0

func (c *ClientWithResponses) GetBatchWithResponse(ctx context.Context, id string, params *GetBatchParams, reqEditors ...RequestEditorFn) (*GetBatchResponse, error)

GetBatchWithResponse Get a batch

Retrieve a single batch by ID.

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

Corresponds with GET /batches/{id} (the `GetBatch` operationId).

func (*ClientWithResponses) GetContentsWithBodyWithResponse

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

GetContentsWithBodyWithResponse Contents

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 /contents (the `GetContents` operationId).

func (*ClientWithResponses) GetContentsWithResponse

func (c *ClientWithResponses) GetContentsWithResponse(ctx context.Context, body GetContentsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetContentsResponse, error)

GetContentsWithResponse Contents

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

Corresponds with POST /contents (the `GetContents` operationId).

func (*ClientWithResponses) GetMonitorWithResponse added in v0.2.0

func (c *ClientWithResponses) GetMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)

GetMonitorWithResponse Get a monitor

Retrieves a single monitor by its ID.

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

Corresponds with GET /monitors/{id} (the `GetMonitor` operationId).

func (*ClientWithResponses) GetRunWithResponse added in v0.2.0

func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, id string, runId string, reqEditors ...RequestEditorFn) (*GetRunResponse, error)

GetRunWithResponse Get a run

Retrieves a single run by its ID, including the full output if the run is completed.

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

Corresponds with GET /monitors/{id}/runs/{runId} (the `GetRun` operationId).

func (*ClientWithResponses) ImportsCreateWithBodyWithResponse added in v0.2.0

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

ImportsCreateWithBodyWithResponse Create an Import

Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.

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 /v0/imports (the `ImportsCreate` operationId).

func (*ClientWithResponses) ImportsCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsCreateWithResponse(ctx context.Context, body ImportsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportsCreateResponse, error)

ImportsCreateWithResponse Create an Import

Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.

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

Corresponds with POST /v0/imports (the `ImportsCreate` operationId).

func (*ClientWithResponses) ImportsDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ImportsDeleteResponse, error)

ImportsDeleteWithResponse Delete Import

Deletes a import.

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

Corresponds with DELETE /v0/imports/{id} (the `ImportsDelete` operationId).

func (*ClientWithResponses) ImportsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ImportsGetResponse, error)

ImportsGetWithResponse Get Import

Gets a specific import.

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

Corresponds with GET /v0/imports/{id} (the `ImportsGet` operationId).

func (*ClientWithResponses) ImportsListWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsListWithResponse(ctx context.Context, params *ImportsListParams, reqEditors ...RequestEditorFn) (*ImportsListResponse, error)

ImportsListWithResponse List Imports

Lists all imports for the Webset.

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

Corresponds with GET /v0/imports (the `ImportsList` operationId).

func (*ClientWithResponses) ImportsUpdateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportsUpdateResponse, error)

ImportsUpdateWithBodyWithResponse Update Import

Updates a import 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 PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).

func (*ClientWithResponses) ImportsUpdateWithResponse added in v0.2.0

func (c *ClientWithResponses) ImportsUpdateWithResponse(ctx context.Context, id string, body ImportsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportsUpdateResponse, error)

ImportsUpdateWithResponse Update Import

Updates a import configuration.

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

Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).

func (*ClientWithResponses) ListAgentRunEventsWithResponse added in v0.2.0

func (c *ClientWithResponses) ListAgentRunEventsWithResponse(ctx context.Context, id AgentRunId, params *ListAgentRunEventsParams, reqEditors ...RequestEditorFn) (*ListAgentRunEventsResponse, error)

ListAgentRunEventsWithResponse List run events

List stored events for an Agent run. Set `Accept: text/event-stream` to replay stored events as server-sent events. Use `cursor` for JSON pagination or `Last-Event-ID` for SSE replay.

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

Corresponds with GET /agent/runs/{id}/events (the `ListAgentRunEvents` operationId).

func (*ClientWithResponses) ListAgentRunsWithResponse added in v0.2.0

func (c *ClientWithResponses) ListAgentRunsWithResponse(ctx context.Context, params *ListAgentRunsParams, reqEditors ...RequestEditorFn) (*ListAgentRunsResponse, error)

ListAgentRunsWithResponse List runs

List Agent runs for your team, ordered from newest to oldest.

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

Corresponds with GET /agent/runs (the `ListAgentRuns` operationId).

func (*ClientWithResponses) ListBatchesWithResponse added in v0.2.0

func (c *ClientWithResponses) ListBatchesWithResponse(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*ListBatchesResponse, error)

ListBatchesWithResponse List batches

List batches for your team, ordered from newest to oldest.

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

Corresponds with GET /batches (the `ListBatches` operationId).

func (*ClientWithResponses) ListMonitorsWithResponse added in v0.2.0

func (c *ClientWithResponses) ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse2, error)

ListMonitorsWithResponse List monitors

Lists all monitors for the authenticated team. Supports filtering by status and cursor-based pagination.

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

Corresponds with GET /monitors (the `ListMonitors` operationId).

func (*ClientWithResponses) ListRunsWithResponse added in v0.2.0

func (c *ClientWithResponses) ListRunsWithResponse(ctx context.Context, id string, params *ListRunsParams, reqEditors ...RequestEditorFn) (*ListRunsResponse, error)

ListRunsWithResponse List runs

Lists all runs for a monitor with cursor-based pagination. Runs are returned in reverse chronological order.

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

Corresponds with GET /monitors/{id}/runs (the `ListRuns` operationId).

func (*ClientWithResponses) MonitorsCreateWithBodyWithResponse added in v0.2.0

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

MonitorsCreateWithBodyWithResponse Create a Monitor

Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.

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 /v0/monitors (the `MonitorsCreate` operationId).

func (*ClientWithResponses) MonitorsCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsCreateWithResponse(ctx context.Context, body MonitorsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*MonitorsCreateResponse, error)

MonitorsCreateWithResponse Create a Monitor

Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.

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

Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).

func (*ClientWithResponses) MonitorsDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MonitorsDeleteResponse, error)

MonitorsDeleteWithResponse Delete Monitor

Deletes a monitor.

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

Corresponds with DELETE /v0/monitors/{id} (the `MonitorsDelete` operationId).

func (*ClientWithResponses) MonitorsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MonitorsGetResponse, error)

MonitorsGetWithResponse Get Monitor

Gets a specific monitor.

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

Corresponds with GET /v0/monitors/{id} (the `MonitorsGet` operationId).

func (*ClientWithResponses) MonitorsListWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsListWithResponse(ctx context.Context, params *MonitorsListParams, reqEditors ...RequestEditorFn) (*MonitorsListResponse, error)

MonitorsListWithResponse List Monitors

Lists all monitors for the Webset.

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

Corresponds with GET /v0/monitors (the `MonitorsList` operationId).

func (*ClientWithResponses) MonitorsRunsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsRunsGetWithResponse(ctx context.Context, monitor string, id string, reqEditors ...RequestEditorFn) (*MonitorsRunsGetResponse, error)

MonitorsRunsGetWithResponse Get Monitor Run

Gets a specific monitor run.

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

Corresponds with GET /v0/monitors/{monitor}/runs/{id} (the `MonitorsRunsGet` operationId).

func (*ClientWithResponses) MonitorsRunsListWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsRunsListWithResponse(ctx context.Context, monitor string, reqEditors ...RequestEditorFn) (*MonitorsRunsListResponse, error)

MonitorsRunsListWithResponse List Monitor Runs

Lists all runs for the Monitor.

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

Corresponds with GET /v0/monitors/{monitor}/runs (the `MonitorsRunsList` operationId).

func (*ClientWithResponses) MonitorsUpdateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MonitorsUpdateResponse, error)

MonitorsUpdateWithBodyWithResponse Update Monitor

Updates a monitor 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 PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).

func (*ClientWithResponses) MonitorsUpdateWithResponse added in v0.2.0

func (c *ClientWithResponses) MonitorsUpdateWithResponse(ctx context.Context, id string, body MonitorsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*MonitorsUpdateResponse, error)

MonitorsUpdateWithResponse Update Monitor

Updates a monitor configuration.

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

Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).

func (*ClientWithResponses) SearchWithBodyWithResponse

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

SearchWithBodyWithResponse Search

Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.

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 (the `Search` operationId).

func (*ClientWithResponses) SearchWithResponse

func (c *ClientWithResponses) SearchWithResponse(ctx context.Context, body SearchJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchResponse2, error)

SearchWithResponse Search

Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.

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 (the `Search` operationId).

func (*ClientWithResponses) StopAgentRunWithResponse added in v0.2.0

func (c *ClientWithResponses) StopAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*StopAgentRunResponse, error)

StopAgentRunWithResponse Stop a run

Complete a running Agent run early, returning the results gathered so far. You are billed for usage accrued before the stop. Currently supported only for `ultra` effort runs. If the run has already reached a terminal status, the API returns the existing run.

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

Corresponds with POST /agent/runs/{id}/stop (the `StopAgentRun` operationId).

func (*ClientWithResponses) TeamsMeGetWithResponse added in v0.2.0

func (c *ClientWithResponses) TeamsMeGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TeamsMeGetResponse, error)

TeamsMeGetWithResponse Get team info

Returns information about the authenticated team, including current concurrency usage and limits.

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

Corresponds with GET /v0/teams/me (the `TeamsMeGet` operationId).

func (*ClientWithResponses) TriggerMonitorWithResponse added in v0.2.0

func (c *ClientWithResponses) TriggerMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TriggerMonitorResponse, error)

TriggerMonitorWithResponse Trigger a monitor

Triggers a run immediately, regardless of the schedule. Works for monitors with status `active` or `paused`.

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

Corresponds with POST /monitors/{id}/trigger (the `TriggerMonitor` operationId).

func (*ClientWithResponses) UpdateMonitorWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) UpdateMonitorWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

UpdateMonitorWithBodyWithResponse Update a monitor

Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.

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

Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).

func (*ClientWithResponses) UpdateMonitorWithResponse added in v0.2.0

func (c *ClientWithResponses) UpdateMonitorWithResponse(ctx context.Context, id string, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

UpdateMonitorWithResponse Update a monitor

Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.

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

Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).

func (*ClientWithResponses) WebhooksAttemptsListWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksAttemptsListWithResponse(ctx context.Context, id string, params *WebhooksAttemptsListParams, reqEditors ...RequestEditorFn) (*WebhooksAttemptsListResponse, error)

WebhooksAttemptsListWithResponse List webhook attempts

List all attempts made by a Webhook ordered in descending order.

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

Corresponds with GET /v0/webhooks/{id}/attempts (the `WebhooksAttemptsList` operationId).

func (*ClientWithResponses) WebhooksCreateWithBodyWithResponse added in v0.2.0

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

WebhooksCreateWithBodyWithResponse Create a Webhook

Creates a Webhook that delivers the selected events to your URL as they occur.

The response includes the signing `secret` used to verify deliveries; it is only returned on creation.

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 /v0/webhooks (the `WebhooksCreate` operationId).

func (*ClientWithResponses) WebhooksCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksCreateWithResponse(ctx context.Context, body WebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhooksCreateResponse, error)

WebhooksCreateWithResponse Create a Webhook

Creates a Webhook that delivers the selected events to your URL as they occur.

The response includes the signing `secret` used to verify deliveries; it is only returned on creation.

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

Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).

func (*ClientWithResponses) WebhooksDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebhooksDeleteResponse, error)

WebhooksDeleteWithResponse Delete a Webhook

Deletes a Webhook. Its status becomes `inactive`, which stops future webhook deliveries to its URL.

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

Corresponds with DELETE /v0/webhooks/{id} (the `WebhooksDelete` operationId).

func (*ClientWithResponses) WebhooksGetWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebhooksGetResponse, error)

WebhooksGetWithResponse Get a Webhook

Returns a Webhook by id, including its status, subscribed events, target URL, and metadata. The signing `secret` is not returned.

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

Corresponds with GET /v0/webhooks/{id} (the `WebhooksGet` operationId).

func (*ClientWithResponses) WebhooksListWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksListWithResponse(ctx context.Context, params *WebhooksListParams, reqEditors ...RequestEditorFn) (*WebhooksListResponse, error)

WebhooksListWithResponse List webhooks

Returns the active Webhooks for your team.

You can paginate through the results using the `cursor` parameter.

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

Corresponds with GET /v0/webhooks (the `WebhooksList` operationId).

func (*ClientWithResponses) WebhooksUpdateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebhooksUpdateResponse, error)

WebhooksUpdateWithBodyWithResponse Update a Webhook

Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.

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

Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).

func (*ClientWithResponses) WebhooksUpdateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebhooksUpdateWithResponse(ctx context.Context, id string, body WebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhooksUpdateResponse, error)

WebhooksUpdateWithResponse Update a Webhook

Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.

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

Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).

func (*ClientWithResponses) WebsetsCancelWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsCancelWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebsetsCancelResponse, error)

WebsetsCancelWithResponse Cancel a running Webset

Cancels all operations being performed on a Webset.

Any enrichment or search will be stopped and the Webset will be marked as `idle`.

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

Corresponds with POST /v0/websets/{id}/cancel (the `WebsetsCancel` operationId).

func (*ClientWithResponses) WebsetsCreateWithBodyWithResponse added in v0.2.0

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

WebsetsCreateWithBodyWithResponse Create a Webset

Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.

You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.

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 /v0/websets (the `WebsetsCreate` operationId).

func (*ClientWithResponses) WebsetsCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsCreateWithResponse(ctx context.Context, body WebsetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsCreateResponse, error)

WebsetsCreateWithResponse Create a Webset

Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.

You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.

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

Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).

func (*ClientWithResponses) WebsetsDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebsetsDeleteResponse, error)

WebsetsDeleteWithResponse Delete a Webset

Deletes a Webset.

Once deleted, the Webset and all its Items will no longer be available.

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

Corresponds with DELETE /v0/websets/{id} (the `WebsetsDelete` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsCancelWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsCancelWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCancelResponse, error)

WebsetsEnrichmentsCancelWithResponse Cancel a running Enrichment

All running enrichments will be canceled. You can not resume an Enrichment after it has been canceled.

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

Corresponds with POST /v0/websets/{webset}/enrichments/{id}/cancel (the `WebsetsEnrichmentsCancel` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsCreateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsCreateWithBodyWithResponse(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCreateResponse, error)

WebsetsEnrichmentsCreateWithBodyWithResponse Create an Enrichment

Create an Enrichment for a Webset.

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 /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsCreateWithResponse(ctx context.Context, webset string, body WebsetsEnrichmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCreateResponse, error)

WebsetsEnrichmentsCreateWithResponse Create an Enrichment

Create an Enrichment for a Webset.

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

Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsDeleteWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsDeleteResponse, error)

WebsetsEnrichmentsDeleteWithResponse Delete an Enrichment

When deleting an Enrichment, any running enrichments will be canceled and all existing `enrichment_result` generated by this Enrichment will no longer be available.

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

Corresponds with DELETE /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsDelete` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsGetResponse, error)

WebsetsEnrichmentsGetWithResponse Get an Enrichment

Returns an Enrichment configured on a Webset, including its status, description, format, and options.

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

Corresponds with GET /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsGet` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsUpdateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsUpdateWithBodyWithResponse(ctx context.Context, webset string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsUpdateResponse, error)

WebsetsEnrichmentsUpdateWithBodyWithResponse Update an Enrichment

Update an Enrichment configuration for a Webset.

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

Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).

func (*ClientWithResponses) WebsetsEnrichmentsUpdateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsEnrichmentsUpdateWithResponse(ctx context.Context, webset string, id string, body WebsetsEnrichmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsUpdateResponse, error)

WebsetsEnrichmentsUpdateWithResponse Update an Enrichment

Update an Enrichment configuration for a Webset.

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

Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).

func (*ClientWithResponses) WebsetsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsGetWithResponse(ctx context.Context, id string, params *WebsetsGetParams, reqEditors ...RequestEditorFn) (*WebsetsGetResponse, error)

WebsetsGetWithResponse Get a Webset

Returns a Webset by `id` or `externalId`, including its status, searches, imports, enrichments, and monitors.

Pass `expand=items` to include up to the first 100 items in the response.

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

Corresponds with GET /v0/websets/{id} (the `WebsetsGet` operationId).

func (*ClientWithResponses) WebsetsItemsDeleteWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsItemsDeleteWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsItemsDeleteResponse, error)

WebsetsItemsDeleteWithResponse Delete an Item

Deletes an Item from the Webset.

This will cancel any enrichment process for it.

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

Corresponds with DELETE /v0/websets/{webset}/items/{id} (the `WebsetsItemsDelete` operationId).

func (*ClientWithResponses) WebsetsItemsGetWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsItemsGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsItemsGetResponse, error)

WebsetsItemsGetWithResponse Get an Item

Returns a Webset Item.

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

Corresponds with GET /v0/websets/{webset}/items/{id} (the `WebsetsItemsGet` operationId).

func (*ClientWithResponses) WebsetsItemsListWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsItemsListWithResponse(ctx context.Context, webset string, params *WebsetsItemsListParams, reqEditors ...RequestEditorFn) (*WebsetsItemsListResponse, error)

WebsetsItemsListWithResponse List all Items for a Webset

Returns a list of Webset Items.

You can paginate through the Items using the `cursor` parameter.

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

Corresponds with GET /v0/websets/{webset}/items (the `WebsetsItemsList` operationId).

func (*ClientWithResponses) WebsetsListWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsListWithResponse(ctx context.Context, params *WebsetsListParams, reqEditors ...RequestEditorFn) (*WebsetsListResponse, error)

WebsetsListWithResponse List all Websets

Returns a list of Websets.

You can paginate through the results using the `cursor` parameter.

You can filter results using the `search` parameter to find Websets by ID, external ID, or title.

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

Corresponds with GET /v0/websets (the `WebsetsList` operationId).

func (*ClientWithResponses) WebsetsPreviewWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsPreviewWithBodyWithResponse(ctx context.Context, params *WebsetsPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsPreviewResponse, error)

WebsetsPreviewWithBodyWithResponse Preview a webset

Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.

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 /v0/websets/preview (the `WebsetsPreview` operationId).

func (*ClientWithResponses) WebsetsPreviewWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsPreviewWithResponse(ctx context.Context, params *WebsetsPreviewParams, body WebsetsPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsPreviewResponse, error)

WebsetsPreviewWithResponse Preview a webset

Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.

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

Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).

func (*ClientWithResponses) WebsetsSearchesCancelWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsSearchesCancelWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsSearchesCancelResponse, error)

WebsetsSearchesCancelWithResponse Cancel a running Search

Cancels a currently running Search.

You can cancel all searches at once by using the `websets/:webset/cancel` endpoint.

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

Corresponds with POST /v0/websets/{webset}/searches/{id}/cancel (the `WebsetsSearchesCancel` operationId).

func (*ClientWithResponses) WebsetsSearchesCreateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsSearchesCreateWithBodyWithResponse(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsSearchesCreateResponse, error)

WebsetsSearchesCreateWithBodyWithResponse Create a Search

Creates a new Search for the Webset.

The default behavior is to reuse the previous Search results and evaluate them against the new criteria.

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 /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).

func (*ClientWithResponses) WebsetsSearchesCreateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsSearchesCreateWithResponse(ctx context.Context, webset string, body WebsetsSearchesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsSearchesCreateResponse, error)

WebsetsSearchesCreateWithResponse Create a Search

Creates a new Search for the Webset.

The default behavior is to reuse the previous Search results and evaluate them against the new criteria.

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

Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).

func (*ClientWithResponses) WebsetsSearchesGetWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsSearchesGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsSearchesGetResponse, error)

WebsetsSearchesGetWithResponse Get a Search

Gets a Search by id.

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

Corresponds with GET /v0/websets/{webset}/searches/{id} (the `WebsetsSearchesGet` operationId).

func (*ClientWithResponses) WebsetsUpdateWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsUpdateResponse, error)

WebsetsUpdateWithBodyWithResponse Update a Webset

Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.

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 /v0/websets/{id} (the `WebsetsUpdate` operationId).

func (*ClientWithResponses) WebsetsUpdateWithResponse added in v0.2.0

func (c *ClientWithResponses) WebsetsUpdateWithResponse(ctx context.Context, id string, body WebsetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsUpdateResponse, error)

WebsetsUpdateWithResponse Update a Webset

Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.

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

Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListAgentRunsWithResponse List runs
	//
	// List Agent runs for your team, ordered from newest to oldest.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /agent/runs (the `ListAgentRuns` operationId).
	ListAgentRunsWithResponse(ctx context.Context, params *ListAgentRunsParams, reqEditors ...RequestEditorFn) (*ListAgentRunsResponse, error)

	// CreateAgentRunWithBodyWithResponse Create a run
	//
	// Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.
	//
	// 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 /agent/runs (the `CreateAgentRun` operationId).
	CreateAgentRunWithBodyWithResponse(ctx context.Context, params *CreateAgentRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentRunResponse, error)

	// CreateAgentRunWithResponse Create a run
	//
	// Create an asynchronous Agent run. By default, the API returns the run object immediately. Set `Accept: text/event-stream` to stream run lifecycle events until the run reaches a terminal status.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /agent/runs (the `CreateAgentRun` operationId).
	CreateAgentRunWithResponse(ctx context.Context, params *CreateAgentRunParams, body CreateAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentRunResponse, error)

	// DeleteAgentRunWithResponse Delete a run
	//
	// Delete a stored Agent run.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /agent/runs/{id} (the `DeleteAgentRun` operationId).
	DeleteAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*DeleteAgentRunResponse2, error)

	// GetAgentRunWithResponse Get a run
	//
	// Retrieve a single Agent run by ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /agent/runs/{id} (the `GetAgentRun` operationId).
	GetAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*GetAgentRunResponse, error)

	// CancelAgentRunWithResponse Cancel a run
	//
	// Cancel a queued or running Agent run immediately without returning any results. You are billed for usage accrued before cancellation. If the run has already reached a terminal status, the API returns the existing run.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /agent/runs/{id}/cancel (the `CancelAgentRun` operationId).
	CancelAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error)

	// ListAgentRunEventsWithResponse List run events
	//
	// List stored events for an Agent run. Set `Accept: text/event-stream` to replay stored events as server-sent events. Use `cursor` for JSON pagination or `Last-Event-ID` for SSE replay.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /agent/runs/{id}/events (the `ListAgentRunEvents` operationId).
	ListAgentRunEventsWithResponse(ctx context.Context, id AgentRunId, params *ListAgentRunEventsParams, reqEditors ...RequestEditorFn) (*ListAgentRunEventsResponse, error)

	// StopAgentRunWithResponse Stop a run
	//
	// Complete a running Agent run early, returning the results gathered so far. You are billed for usage accrued before the stop. Currently supported only for `ultra` effort runs. If the run has already reached a terminal status, the API returns the existing run.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /agent/runs/{id}/stop (the `StopAgentRun` operationId).
	StopAgentRunWithResponse(ctx context.Context, id AgentRunId, reqEditors ...RequestEditorFn) (*StopAgentRunResponse, error)

	// AnswerWithBodyWithResponse Answer
	//
	// Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.
	//
	// 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 /answer (the `Answer` operationId).
	AnswerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerResponse2, error)

	// AnswerWithResponse Answer
	//
	// Performs a search based on the query and generates either a direct answer or a detailed summary with citations, depending on the query type.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /answer (the `Answer` operationId).
	AnswerWithResponse(ctx context.Context, body AnswerJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerResponse2, error)

	// ListBatchesWithResponse List batches
	//
	// List batches for your team, ordered from newest to oldest.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /batches (the `ListBatches` operationId).
	ListBatchesWithResponse(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*ListBatchesResponse, error)

	// CreateBatchWithBodyWithResponse Create a batch
	//
	// Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.
	//
	// 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 /batches (the `CreateBatch` operationId).
	CreateBatchWithBodyWithResponse(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)

	// CreateBatchWithResponse Create a batch
	//
	// Create a batch of requests to run asynchronously. Each request is dispatched to its target route and results are made available for download when the batch completes.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /batches (the `CreateBatch` operationId).
	CreateBatchWithResponse(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)

	// DeleteBatchWithResponse Delete a batch
	//
	// Soft-delete a batch in a terminal status.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /batches/{id} (the `DeleteBatch` operationId).
	DeleteBatchWithResponse(ctx context.Context, id string, params *DeleteBatchParams, reqEditors ...RequestEditorFn) (*DeleteBatchResponse, error)

	// GetBatchWithResponse Get a batch
	//
	// Retrieve a single batch by ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /batches/{id} (the `GetBatch` operationId).
	GetBatchWithResponse(ctx context.Context, id string, params *GetBatchParams, reqEditors ...RequestEditorFn) (*GetBatchResponse, error)

	// CancelBatchWithResponse Cancel a batch
	//
	// Request cancellation of a batch. The batch stops scheduling new requests and drains in-flight work before settling to `cancelled`. Cancelling a batch that is already `cancelling` or `cancelled` is idempotent and returns the batch unchanged. A batch that has already reached a terminal status (`completed` or `expired`) cannot be cancelled and the request fails with a 409.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /batches/{id}/cancel (the `CancelBatch` operationId).
	CancelBatchWithResponse(ctx context.Context, id string, params *CancelBatchParams, reqEditors ...RequestEditorFn) (*CancelBatchResponse, error)

	// GetContentsWithBodyWithResponse Contents
	//
	// 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 /contents (the `GetContents` operationId).
	GetContentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetContentsResponse, error)

	// GetContentsWithResponse Contents
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /contents (the `GetContents` operationId).
	GetContentsWithResponse(ctx context.Context, body GetContentsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetContentsResponse, error)

	// FindSimilarWithBodyWithResponse Find similar links
	//
	// Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.
	//
	// 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 /findSimilar (the `FindSimilar` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	FindSimilarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindSimilarResponse2, error)

	// FindSimilarWithResponse Find similar links
	//
	// Find links similar to the provided URL and optionally retrieve their contents. Deprecated: prefer `/search` with a query describing the source.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /findSimilar (the `FindSimilar` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	FindSimilarWithResponse(ctx context.Context, body FindSimilarJSONRequestBody, reqEditors ...RequestEditorFn) (*FindSimilarResponse2, error)

	// ListMonitorsWithResponse List monitors
	//
	// Lists all monitors for the authenticated team. Supports filtering by status and cursor-based pagination.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /monitors (the `ListMonitors` operationId).
	ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse2, error)

	// CreateMonitorWithBodyWithResponse Create a monitor
	//
	// Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.
	//
	// The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.
	//
	// 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 /monitors (the `CreateMonitor` operationId).
	CreateMonitorWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

	// CreateMonitorWithResponse Create a monitor
	//
	// Creates a Monitor that runs an Exa search on a schedule and sends new results to your webhook. Each run searches recent content and drops results that match what earlier runs already returned, so your webhook receives only new developments.
	//
	// The response includes a `webhookSecret` for verifying webhook signatures. It is returned only once, so store it securely.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /monitors (the `CreateMonitor` operationId).
	CreateMonitorWithResponse(ctx context.Context, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)

	// BatchMonitorsWithBodyWithResponse Batch action on monitors
	//
	// Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.
	//
	// 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 /monitors/batch (the `BatchMonitors` operationId).
	BatchMonitorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchMonitorsResponse2, error)

	// BatchMonitorsWithResponse Batch action on monitors
	//
	// Deletes, pauses, or unpauses the monitors that match the filter. Deletion is permanent. `dry_run` defaults to `true`, so a request only previews the affected monitors unless you set it to `false`. Repeat the request until `has_more` is `false` to process all matches.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /monitors/batch (the `BatchMonitors` operationId).
	BatchMonitorsWithResponse(ctx context.Context, body BatchMonitorsJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchMonitorsResponse2, error)

	// DeleteMonitorWithResponse Delete a monitor
	//
	// Deletes a monitor. This cannot be undone.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /monitors/{id} (the `DeleteMonitor` operationId).
	DeleteMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse, error)

	// GetMonitorWithResponse Get a monitor
	//
	// Retrieves a single monitor by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /monitors/{id} (the `GetMonitor` operationId).
	GetMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)

	// UpdateMonitorWithBodyWithResponse Update a monitor
	//
	// Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).
	UpdateMonitorWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

	// UpdateMonitorWithResponse Update a monitor
	//
	// Updates an existing monitor. All fields are optional. For `search`, you can send a partial object containing only the fields you want to change. Set `trigger` to `null` to remove the schedule.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /monitors/{id} (the `UpdateMonitor` operationId).
	UpdateMonitorWithResponse(ctx context.Context, id string, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)

	// ListRunsWithResponse List runs
	//
	// Lists all runs for a monitor with cursor-based pagination. Runs are returned in reverse chronological order.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /monitors/{id}/runs (the `ListRuns` operationId).
	ListRunsWithResponse(ctx context.Context, id string, params *ListRunsParams, reqEditors ...RequestEditorFn) (*ListRunsResponse, error)

	// GetRunWithResponse Get a run
	//
	// Retrieves a single run by its ID, including the full output if the run is completed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /monitors/{id}/runs/{runId} (the `GetRun` operationId).
	GetRunWithResponse(ctx context.Context, id string, runId string, reqEditors ...RequestEditorFn) (*GetRunResponse, error)

	// TriggerMonitorWithResponse Trigger a monitor
	//
	// Triggers a run immediately, regardless of the schedule. Works for monitors with status `active` or `paused`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /monitors/{id}/trigger (the `TriggerMonitor` operationId).
	TriggerMonitorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TriggerMonitorResponse, error)

	// SearchWithBodyWithResponse Search
	//
	// Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.
	//
	// 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 (the `Search` operationId).
	SearchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchResponse2, error)

	// SearchWithResponse Search
	//
	// Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.
	//
	// 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 (the `Search` operationId).
	SearchWithResponse(ctx context.Context, body SearchJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchResponse2, error)

	// EventsListWithResponse List all Events
	//
	// List all events that have occurred in the system.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/events (the `EventsList` operationId).
	EventsListWithResponse(ctx context.Context, params *EventsListParams, reqEditors ...RequestEditorFn) (*EventsListResponse, error)

	// EventsGetWithResponse Get an Event
	//
	// Get a single Event by id.
	//
	// You can subscribe to Events by creating a Webhook.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/events/{id} (the `EventsGet` operationId).
	EventsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EventsGetResponse, error)

	// ImportsListWithResponse List Imports
	//
	// Lists all imports for the Webset.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/imports (the `ImportsList` operationId).
	ImportsListWithResponse(ctx context.Context, params *ImportsListParams, reqEditors ...RequestEditorFn) (*ImportsListResponse, error)

	// ImportsCreateWithBodyWithResponse Create an Import
	//
	// Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.
	//
	// 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 /v0/imports (the `ImportsCreate` operationId).
	ImportsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportsCreateResponse, error)

	// ImportsCreateWithResponse Create an Import
	//
	// Creates an Import for your own data. Upload the file to the returned `uploadUrl` before `uploadValidUntil`, 1 hour after creation. Use an Import to enrich its records, to search within them with `scope`, or to leave them out of searches with `exclude`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/imports (the `ImportsCreate` operationId).
	ImportsCreateWithResponse(ctx context.Context, body ImportsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportsCreateResponse, error)

	// ImportsDeleteWithResponse Delete Import
	//
	// Deletes a import.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/imports/{id} (the `ImportsDelete` operationId).
	ImportsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ImportsDeleteResponse, error)

	// ImportsGetWithResponse Get Import
	//
	// Gets a specific import.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/imports/{id} (the `ImportsGet` operationId).
	ImportsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ImportsGetResponse, error)

	// ImportsUpdateWithBodyWithResponse Update Import
	//
	// Updates a import 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 PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).
	ImportsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportsUpdateResponse, error)

	// ImportsUpdateWithResponse Update Import
	//
	// Updates a import configuration.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/imports/{id} (the `ImportsUpdate` operationId).
	ImportsUpdateWithResponse(ctx context.Context, id string, body ImportsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportsUpdateResponse, error)

	// MonitorsListWithResponse List Monitors
	//
	// Lists all monitors for the Webset.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/monitors (the `MonitorsList` operationId).
	MonitorsListWithResponse(ctx context.Context, params *MonitorsListParams, reqEditors ...RequestEditorFn) (*MonitorsListResponse, error)

	// MonitorsCreateWithBodyWithResponse Create a Monitor
	//
	// Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.
	//
	// 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 /v0/monitors (the `MonitorsCreate` operationId).
	MonitorsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MonitorsCreateResponse, error)

	// MonitorsCreateWithResponse Create a Monitor
	//
	// Creates a Monitor that searches for new Items for a Webset on a `cron` schedule in the given `timezone`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/monitors (the `MonitorsCreate` operationId).
	MonitorsCreateWithResponse(ctx context.Context, body MonitorsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*MonitorsCreateResponse, error)

	// MonitorsDeleteWithResponse Delete Monitor
	//
	// Deletes a monitor.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/monitors/{id} (the `MonitorsDelete` operationId).
	MonitorsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MonitorsDeleteResponse, error)

	// MonitorsGetWithResponse Get Monitor
	//
	// Gets a specific monitor.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/monitors/{id} (the `MonitorsGet` operationId).
	MonitorsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MonitorsGetResponse, error)

	// MonitorsUpdateWithBodyWithResponse Update Monitor
	//
	// Updates a monitor 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 PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).
	MonitorsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MonitorsUpdateResponse, error)

	// MonitorsUpdateWithResponse Update Monitor
	//
	// Updates a monitor configuration.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/monitors/{id} (the `MonitorsUpdate` operationId).
	MonitorsUpdateWithResponse(ctx context.Context, id string, body MonitorsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*MonitorsUpdateResponse, error)

	// MonitorsRunsListWithResponse List Monitor Runs
	//
	// Lists all runs for the Monitor.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/monitors/{monitor}/runs (the `MonitorsRunsList` operationId).
	MonitorsRunsListWithResponse(ctx context.Context, monitor string, reqEditors ...RequestEditorFn) (*MonitorsRunsListResponse, error)

	// MonitorsRunsGetWithResponse Get Monitor Run
	//
	// Gets a specific monitor run.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/monitors/{monitor}/runs/{id} (the `MonitorsRunsGet` operationId).
	MonitorsRunsGetWithResponse(ctx context.Context, monitor string, id string, reqEditors ...RequestEditorFn) (*MonitorsRunsGetResponse, error)

	// TeamsMeGetWithResponse Get team info
	//
	// Returns information about the authenticated team, including current concurrency usage and limits.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/teams/me (the `TeamsMeGet` operationId).
	TeamsMeGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TeamsMeGetResponse, error)

	// WebhooksListWithResponse List webhooks
	//
	// Returns the active Webhooks for your team.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/webhooks (the `WebhooksList` operationId).
	WebhooksListWithResponse(ctx context.Context, params *WebhooksListParams, reqEditors ...RequestEditorFn) (*WebhooksListResponse, error)

	// WebhooksCreateWithBodyWithResponse Create a Webhook
	//
	// Creates a Webhook that delivers the selected events to your URL as they occur.
	//
	// The response includes the signing `secret` used to verify deliveries; it is only returned on creation.
	//
	// 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 /v0/webhooks (the `WebhooksCreate` operationId).
	WebhooksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebhooksCreateResponse, error)

	// WebhooksCreateWithResponse Create a Webhook
	//
	// Creates a Webhook that delivers the selected events to your URL as they occur.
	//
	// The response includes the signing `secret` used to verify deliveries; it is only returned on creation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/webhooks (the `WebhooksCreate` operationId).
	WebhooksCreateWithResponse(ctx context.Context, body WebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhooksCreateResponse, error)

	// WebhooksDeleteWithResponse Delete a Webhook
	//
	// Deletes a Webhook. Its status becomes `inactive`, which stops future webhook deliveries to its URL.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/webhooks/{id} (the `WebhooksDelete` operationId).
	WebhooksDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebhooksDeleteResponse, error)

	// WebhooksGetWithResponse Get a Webhook
	//
	// Returns a Webhook by id, including its status, subscribed events, target URL, and metadata. The signing `secret` is not returned.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/webhooks/{id} (the `WebhooksGet` operationId).
	WebhooksGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebhooksGetResponse, error)

	// WebhooksUpdateWithBodyWithResponse Update a Webhook
	//
	// Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).
	WebhooksUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebhooksUpdateResponse, error)

	// WebhooksUpdateWithResponse Update a Webhook
	//
	// Updates the target URL, subscribed events, or metadata of a Webhook. Omitted fields are left unchanged.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/webhooks/{id} (the `WebhooksUpdate` operationId).
	WebhooksUpdateWithResponse(ctx context.Context, id string, body WebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhooksUpdateResponse, error)

	// WebhooksAttemptsListWithResponse List webhook attempts
	//
	// List all attempts made by a Webhook ordered in descending order.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/webhooks/{id}/attempts (the `WebhooksAttemptsList` operationId).
	WebhooksAttemptsListWithResponse(ctx context.Context, id string, params *WebhooksAttemptsListParams, reqEditors ...RequestEditorFn) (*WebhooksAttemptsListResponse, error)

	// WebsetsListWithResponse List all Websets
	//
	// Returns a list of Websets.
	//
	// You can paginate through the results using the `cursor` parameter.
	//
	// You can filter results using the `search` parameter to find Websets by ID, external ID, or title.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets (the `WebsetsList` operationId).
	WebsetsListWithResponse(ctx context.Context, params *WebsetsListParams, reqEditors ...RequestEditorFn) (*WebsetsListResponse, error)

	// WebsetsCreateWithBodyWithResponse Create a Webset
	//
	// Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.
	//
	// You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.
	//
	// 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 /v0/websets (the `WebsetsCreate` operationId).
	WebsetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsCreateResponse, error)

	// WebsetsCreateWithResponse Create a Webset
	//
	// Creates a new Webset with optional search, import, and enrichment configurations. The Webset will automatically begin processing once created.
	//
	// You can specify an `externalId` to reference the Webset with your own identifiers for easier integration.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets (the `WebsetsCreate` operationId).
	WebsetsCreateWithResponse(ctx context.Context, body WebsetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsCreateResponse, error)

	// WebsetsPreviewWithBodyWithResponse Preview a webset
	//
	// Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.
	//
	// 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 /v0/websets/preview (the `WebsetsPreview` operationId).
	WebsetsPreviewWithBodyWithResponse(ctx context.Context, params *WebsetsPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsPreviewResponse, error)

	// WebsetsPreviewWithResponse Preview a webset
	//
	// Returns how a search query will be interpreted before you create a Webset, including the detected entity, generated criteria, and suggested enrichments.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/preview (the `WebsetsPreview` operationId).
	WebsetsPreviewWithResponse(ctx context.Context, params *WebsetsPreviewParams, body WebsetsPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsPreviewResponse, error)

	// WebsetsDeleteWithResponse Delete a Webset
	//
	// Deletes a Webset.
	//
	// Once deleted, the Webset and all its Items will no longer be available.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/websets/{id} (the `WebsetsDelete` operationId).
	WebsetsDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebsetsDeleteResponse, error)

	// WebsetsGetWithResponse Get a Webset
	//
	// Returns a Webset by `id` or `externalId`, including its status, searches, imports, enrichments, and monitors.
	//
	// Pass `expand=items` to include up to the first 100 items in the response.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets/{id} (the `WebsetsGet` operationId).
	WebsetsGetWithResponse(ctx context.Context, id string, params *WebsetsGetParams, reqEditors ...RequestEditorFn) (*WebsetsGetResponse, error)

	// WebsetsUpdateWithBodyWithResponse Update a Webset
	//
	// Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.
	//
	// 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 /v0/websets/{id} (the `WebsetsUpdate` operationId).
	WebsetsUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsUpdateResponse, error)

	// WebsetsUpdateWithResponse Update a Webset
	//
	// Updates the `title` or `metadata` of a Webset. Searches, imports, and enrichments are managed through their own endpoints.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{id} (the `WebsetsUpdate` operationId).
	WebsetsUpdateWithResponse(ctx context.Context, id string, body WebsetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsUpdateResponse, error)

	// WebsetsCancelWithResponse Cancel a running Webset
	//
	// Cancels all operations being performed on a Webset.
	//
	// Any enrichment or search will be stopped and the Webset will be marked as `idle`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{id}/cancel (the `WebsetsCancel` operationId).
	WebsetsCancelWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebsetsCancelResponse, error)

	// WebsetsEnrichmentsCreateWithBodyWithResponse Create an Enrichment
	//
	// Create an Enrichment for a Webset.
	//
	// 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 /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).
	WebsetsEnrichmentsCreateWithBodyWithResponse(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCreateResponse, error)

	// WebsetsEnrichmentsCreateWithResponse Create an Enrichment
	//
	// Create an Enrichment for a Webset.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{webset}/enrichments (the `WebsetsEnrichmentsCreate` operationId).
	WebsetsEnrichmentsCreateWithResponse(ctx context.Context, webset string, body WebsetsEnrichmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCreateResponse, error)

	// WebsetsEnrichmentsDeleteWithResponse Delete an Enrichment
	//
	// When deleting an Enrichment, any running enrichments will be canceled and all existing `enrichment_result` generated by this Enrichment will no longer be available.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsDelete` operationId).
	WebsetsEnrichmentsDeleteWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsDeleteResponse, error)

	// WebsetsEnrichmentsGetWithResponse Get an Enrichment
	//
	// Returns an Enrichment configured on a Webset, including its status, description, format, and options.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsGet` operationId).
	WebsetsEnrichmentsGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsGetResponse, error)

	// WebsetsEnrichmentsUpdateWithBodyWithResponse Update an Enrichment
	//
	// Update an Enrichment configuration for a Webset.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).
	WebsetsEnrichmentsUpdateWithBodyWithResponse(ctx context.Context, webset string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsUpdateResponse, error)

	// WebsetsEnrichmentsUpdateWithResponse Update an Enrichment
	//
	// Update an Enrichment configuration for a Webset.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v0/websets/{webset}/enrichments/{id} (the `WebsetsEnrichmentsUpdate` operationId).
	WebsetsEnrichmentsUpdateWithResponse(ctx context.Context, webset string, id string, body WebsetsEnrichmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsUpdateResponse, error)

	// WebsetsEnrichmentsCancelWithResponse Cancel a running Enrichment
	//
	// All running enrichments will be canceled. You can not resume an Enrichment after it has been canceled.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{webset}/enrichments/{id}/cancel (the `WebsetsEnrichmentsCancel` operationId).
	WebsetsEnrichmentsCancelWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsEnrichmentsCancelResponse, error)

	// WebsetsItemsListWithResponse List all Items for a Webset
	//
	// Returns a list of Webset Items.
	//
	// You can paginate through the Items using the `cursor` parameter.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets/{webset}/items (the `WebsetsItemsList` operationId).
	WebsetsItemsListWithResponse(ctx context.Context, webset string, params *WebsetsItemsListParams, reqEditors ...RequestEditorFn) (*WebsetsItemsListResponse, error)

	// WebsetsItemsDeleteWithResponse Delete an Item
	//
	// Deletes an Item from the Webset.
	//
	// This will cancel any enrichment process for it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v0/websets/{webset}/items/{id} (the `WebsetsItemsDelete` operationId).
	WebsetsItemsDeleteWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsItemsDeleteResponse, error)

	// WebsetsItemsGetWithResponse Get an Item
	//
	// Returns a Webset Item.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets/{webset}/items/{id} (the `WebsetsItemsGet` operationId).
	WebsetsItemsGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsItemsGetResponse, error)

	// WebsetsSearchesCreateWithBodyWithResponse Create a Search
	//
	// Creates a new Search for the Webset.
	//
	// The default behavior is to reuse the previous Search results and evaluate them against the new criteria.
	//
	// 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 /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).
	WebsetsSearchesCreateWithBodyWithResponse(ctx context.Context, webset string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebsetsSearchesCreateResponse, error)

	// WebsetsSearchesCreateWithResponse Create a Search
	//
	// Creates a new Search for the Webset.
	//
	// The default behavior is to reuse the previous Search results and evaluate them against the new criteria.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{webset}/searches (the `WebsetsSearchesCreate` operationId).
	WebsetsSearchesCreateWithResponse(ctx context.Context, webset string, body WebsetsSearchesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WebsetsSearchesCreateResponse, error)

	// WebsetsSearchesGetWithResponse Get a Search
	//
	// Gets a Search by id.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v0/websets/{webset}/searches/{id} (the `WebsetsSearchesGet` operationId).
	WebsetsSearchesGetWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsSearchesGetResponse, error)

	// WebsetsSearchesCancelWithResponse Cancel a running Search
	//
	// Cancels a currently running Search.
	//
	// You can cancel all searches at once by using the `websets/:webset/cancel` endpoint.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v0/websets/{webset}/searches/{id}/cancel (the `WebsetsSearchesCancel` operationId).
	WebsetsSearchesCancelWithResponse(ctx context.Context, webset string, id string, reqEditors ...RequestEditorFn) (*WebsetsSearchesCancelResponse, error)
}

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

type CompanyEntity

type CompanyEntity struct {
	Type CompanyEntityType `json:"type"`
}

CompanyEntity defines model for CompanyEntity.

type CompanyEntityType

type CompanyEntityType string

CompanyEntityType defines model for CompanyEntity.Type.

const (
	CompanyEntityTypeCompany CompanyEntityType = "company"
)

Defines values for CompanyEntityType.

func (CompanyEntityType) Valid

func (e CompanyEntityType) Valid() bool

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

type ConflictResponse added in v0.2.0

type ConflictResponse = ErrorResponse

ConflictResponse Standard error envelope returned by the Exa API for failed requests.

type ContentsOptions added in v0.2.0

type ContentsOptions struct {
	Context *struct {
		// contains filtered or unexported fields
	} `json:"context,omitempty"`

	// CrawledBeforeDate Deprecated. Use `snapshotAsOf` instead. Alias of snapshotAsOf with identical behavior.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	CrawledBeforeDate *string `json:"crawledBeforeDate,omitempty"`
	Extras            *struct {
		CodeBlocks     *int `json:"codeBlocks,omitempty"`
		ImageLinks     *int `json:"imageLinks,omitempty"`
		Links          *int `json:"links,omitempty"`
		RichImageLinks *int `json:"richImageLinks,omitempty"`
		RichLinks      *int `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`
	Highlights *struct {
		// contains filtered or unexported fields
	} `json:"highlights,omitempty"`
	Livecrawl        *ContentsOptionsLivecrawl `json:"livecrawl,omitempty"`
	LivecrawlTimeout *int                      `json:"livecrawlTimeout,omitempty"`
	MaxAgeHours      *int                      `json:"maxAgeHours,omitempty"`
	SnapshotAsOf     *struct {
		// contains filtered or unexported fields
	} `json:"snapshotAsOf,omitempty"`
	SubpageTarget *struct {
		// contains filtered or unexported fields
	} `json:"subpageTarget,omitempty"`
	Subpages *int `json:"subpages,omitempty"`
	Summary  *struct {
		Query  *string               `json:"query,omitempty"`
		Schema *map[string]JsonValue `json:"schema,omitempty"`
	} `json:"summary,omitempty"`
	Text *struct {
		// contains filtered or unexported fields
	} `json:"text,omitempty"`
}

ContentsOptions defines model for ContentsOptions.

type ContentsOptionsContext0 deprecated added in v0.2.0

type ContentsOptionsContext0 = bool

ContentsOptionsContext0 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type ContentsOptionsContext1 deprecated added in v0.2.0

type ContentsOptionsContext1 struct {
	// MaxCharacters Maximum character limit for the context string.
	MaxCharacters *int `json:"maxCharacters,omitempty"`
}

ContentsOptionsContext1 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type ContentsOptionsHighlights0 added in v0.2.0

type ContentsOptionsHighlights0 = bool

ContentsOptionsHighlights0 If true, returns highlights with default settings. If false, disables highlights.

type ContentsOptionsHighlights1 added in v0.2.0

type ContentsOptionsHighlights1 struct {
	Dynamic          *bool                                `json:"dynamic,omitempty"`
	HighlightsPerUrl *int                                 `json:"highlightsPerUrl,omitempty"`
	MaxCharacters    *int                                 `json:"maxCharacters,omitempty"`
	NumSentences     *int                                 `json:"numSentences,omitempty"`
	Query            *string                              `json:"query,omitempty"`
	Verbosity        *ContentsOptionsHighlights1Verbosity `json:"verbosity,omitempty"`
}

ContentsOptionsHighlights1 Advanced options for steering highlight extraction. Pass highlights: true for the highest-quality default; supply this object only when you need to guide selection with your own query.

type ContentsOptionsHighlights1Verbosity added in v0.2.0

type ContentsOptionsHighlights1Verbosity string

ContentsOptionsHighlights1Verbosity Preset highlight length: `low`, `medium`, and `high` allocate progressively larger token budgets for the returned highlights. With highlights.dynamic, the preset sets a single shared budget across the whole result set instead of a per-URL budget. Exact budgets are tuned by Exa and may change. Not compatible with maxCharacters or numSentences. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `verbosity` without it are rejected.

const (
	ContentsOptionsHighlights1VerbosityHigh   ContentsOptionsHighlights1Verbosity = "high"
	ContentsOptionsHighlights1VerbosityLow    ContentsOptionsHighlights1Verbosity = "low"
	ContentsOptionsHighlights1VerbosityMedium ContentsOptionsHighlights1Verbosity = "medium"
)

Defines values for ContentsOptionsHighlights1Verbosity.

func (ContentsOptionsHighlights1Verbosity) Valid added in v0.2.0

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

type ContentsOptionsLivecrawl deprecated added in v0.2.0

type ContentsOptionsLivecrawl string

ContentsOptionsLivecrawl Deprecated. Use `maxAgeHours` instead. Does not guarantee freshly fetched content. Cannot be combined with `maxAgeHours`.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

const (
	ContentsOptionsLivecrawlAlways    ContentsOptionsLivecrawl = "always"
	ContentsOptionsLivecrawlFallback  ContentsOptionsLivecrawl = "fallback"
	ContentsOptionsLivecrawlNever     ContentsOptionsLivecrawl = "never"
	ContentsOptionsLivecrawlPreferred ContentsOptionsLivecrawl = "preferred"
)

Defines values for ContentsOptionsLivecrawl.

func (ContentsOptionsLivecrawl) Valid added in v0.2.0

func (e ContentsOptionsLivecrawl) Valid() bool

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

type ContentsOptionsSnapshotAsOf0 added in v0.2.0

type ContentsOptionsSnapshotAsOf0 = time.Time

ContentsOptionsSnapshotAsOf0 ISO 8601 date-time.

type ContentsOptionsSnapshotAsOf1 added in v0.2.0

type ContentsOptionsSnapshotAsOf1 = openapi_types.Date

ContentsOptionsSnapshotAsOf1 ISO 8601 date (`YYYY-MM-DD`), interpreted as midnight UTC.

type ContentsOptionsSubpageTarget0 added in v0.2.0

type ContentsOptionsSubpageTarget0 = string

ContentsOptionsSubpageTarget0 defines model for ContentsOptions.SubpageTarget.0.

type ContentsOptionsSubpageTarget1 added in v0.2.0

type ContentsOptionsSubpageTarget1 = []string

ContentsOptionsSubpageTarget1 defines model for ContentsOptions.SubpageTarget.1.

type ContentsOptionsText0 added in v0.2.0

type ContentsOptionsText0 = bool

ContentsOptionsText0 If true, returns full page text with default settings. If false, disables text return.

type ContentsOptionsText1 added in v0.2.0

type ContentsOptionsText1 struct {
	ExcludeSections *[]ContentsOptionsText1ExcludeSections `json:"excludeSections,omitempty"`
	IncludeHtmlTags *bool                                  `json:"includeHtmlTags,omitempty"`
	IncludeSections *[]ContentsOptionsText1IncludeSections `json:"includeSections,omitempty"`
	MaxCharacters   *int                                   `json:"maxCharacters,omitempty"`
	Verbosity       *ContentsOptionsText1Verbosity         `json:"verbosity,omitempty"`
}

ContentsOptionsText1 Advanced options for controlling text extraction. Use this when you need to limit text length or include HTML structure. Set `maxAgeHours: 0` to apply `includeHtmlTags`, `verbosity`, and section filters to freshly fetched content.

type ContentsOptionsText1ExcludeSections added in v0.2.0

type ContentsOptionsText1ExcludeSections string

ContentsOptionsText1ExcludeSections defines model for ContentsOptions.Text.1.ExcludeSections.

const (
	ContentsOptionsText1ExcludeSectionsBanner     ContentsOptionsText1ExcludeSections = "banner"
	ContentsOptionsText1ExcludeSectionsBody       ContentsOptionsText1ExcludeSections = "body"
	ContentsOptionsText1ExcludeSectionsFooter     ContentsOptionsText1ExcludeSections = "footer"
	ContentsOptionsText1ExcludeSectionsHeader     ContentsOptionsText1ExcludeSections = "header"
	ContentsOptionsText1ExcludeSectionsMetadata   ContentsOptionsText1ExcludeSections = "metadata"
	ContentsOptionsText1ExcludeSectionsNavigation ContentsOptionsText1ExcludeSections = "navigation"
	ContentsOptionsText1ExcludeSectionsSidebar    ContentsOptionsText1ExcludeSections = "sidebar"
)

Defines values for ContentsOptionsText1ExcludeSections.

func (ContentsOptionsText1ExcludeSections) Valid added in v0.2.0

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

type ContentsOptionsText1IncludeSections added in v0.2.0

type ContentsOptionsText1IncludeSections string

ContentsOptionsText1IncludeSections defines model for ContentsOptions.Text.1.IncludeSections.

const (
	ContentsOptionsText1IncludeSectionsBanner     ContentsOptionsText1IncludeSections = "banner"
	ContentsOptionsText1IncludeSectionsBody       ContentsOptionsText1IncludeSections = "body"
	ContentsOptionsText1IncludeSectionsFooter     ContentsOptionsText1IncludeSections = "footer"
	ContentsOptionsText1IncludeSectionsHeader     ContentsOptionsText1IncludeSections = "header"
	ContentsOptionsText1IncludeSectionsMetadata   ContentsOptionsText1IncludeSections = "metadata"
	ContentsOptionsText1IncludeSectionsNavigation ContentsOptionsText1IncludeSections = "navigation"
	ContentsOptionsText1IncludeSectionsSidebar    ContentsOptionsText1IncludeSections = "sidebar"
)

Defines values for ContentsOptionsText1IncludeSections.

func (ContentsOptionsText1IncludeSections) Valid added in v0.2.0

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

type ContentsOptionsText1Verbosity added in v0.2.0

type ContentsOptionsText1Verbosity string

ContentsOptionsText1Verbosity Controls text rendering verbosity. compact focuses on main content, standard includes more surrounding page context, and full requests the most complete rendered text. Some pages may produce identical standard and full output.

const (
	ContentsOptionsText1VerbosityCompact  ContentsOptionsText1Verbosity = "compact"
	ContentsOptionsText1VerbosityFull     ContentsOptionsText1Verbosity = "full"
	ContentsOptionsText1VerbosityStandard ContentsOptionsText1Verbosity = "standard"
)

Defines values for ContentsOptionsText1Verbosity.

func (ContentsOptionsText1Verbosity) Valid added in v0.2.0

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

type ContentsRequest

type ContentsRequest struct {
	Compliance *ContentsRequestCompliance `json:"compliance,omitempty"`
	Context    *struct {
		// contains filtered or unexported fields
	} `json:"context,omitempty"`

	// CrawledBeforeDate Deprecated. Use `snapshotAsOf` instead. Alias of snapshotAsOf with identical behavior.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	CrawledBeforeDate *string `json:"crawledBeforeDate,omitempty"`
	Extras            *struct {
		CodeBlocks     *int `json:"codeBlocks,omitempty"`
		ImageLinks     *int `json:"imageLinks,omitempty"`
		Links          *int `json:"links,omitempty"`
		RichImageLinks *int `json:"richImageLinks,omitempty"`
		RichLinks      *int `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`
	Highlights *struct {
		// contains filtered or unexported fields
	} `json:"highlights,omitempty"`

	// Ids Document IDs obtained from searches.
	Ids              *[]string                 `json:"ids,omitempty"`
	Livecrawl        *ContentsRequestLivecrawl `json:"livecrawl,omitempty"`
	LivecrawlTimeout *int                      `json:"livecrawlTimeout,omitempty"`
	MaxAgeHours      *int                      `json:"maxAgeHours,omitempty"`
	SnapshotAsOf     *struct {
		// contains filtered or unexported fields
	} `json:"snapshotAsOf,omitempty"`
	SubpageTarget *struct {
		// contains filtered or unexported fields
	} `json:"subpageTarget,omitempty"`
	Subpages *int `json:"subpages,omitempty"`
	Summary  *struct {
		Query  *string               `json:"query,omitempty"`
		Schema *map[string]JsonValue `json:"schema,omitempty"`
	} `json:"summary,omitempty"`
	Text *struct {
		// contains filtered or unexported fields
	} `json:"text,omitempty"`

	// Urls URLs to crawl (backwards compatible with the `ids` parameter).
	Urls *[]string `json:"urls,omitempty"`

	// UserIdentifier An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results.
	UserIdentifier *string `json:"userIdentifier,omitempty"`
	// contains filtered or unexported fields
}

ContentsRequest Provide either `ids` or `urls`, but not both.

func (ContentsRequest) AsContentsRequest0 added in v0.2.0

func (t ContentsRequest) AsContentsRequest0() (ContentsRequest0, error)

AsContentsRequest0 returns the union data inside the ContentsRequest as a ContentsRequest0

func (ContentsRequest) AsContentsRequest1 added in v0.2.0

func (t ContentsRequest) AsContentsRequest1() (ContentsRequest1, error)

AsContentsRequest1 returns the union data inside the ContentsRequest as a ContentsRequest1

func (*ContentsRequest) FromContentsRequest0 added in v0.2.0

func (t *ContentsRequest) FromContentsRequest0(v ContentsRequest0) error

FromContentsRequest0 overwrites any union data inside the ContentsRequest as the provided ContentsRequest0

func (*ContentsRequest) FromContentsRequest1 added in v0.2.0

func (t *ContentsRequest) FromContentsRequest1(v ContentsRequest1) error

FromContentsRequest1 overwrites any union data inside the ContentsRequest as the provided ContentsRequest1

func (ContentsRequest) MarshalJSON added in v0.2.0

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

func (*ContentsRequest) MergeContentsRequest0 added in v0.2.0

func (t *ContentsRequest) MergeContentsRequest0(v ContentsRequest0) error

MergeContentsRequest0 performs a merge with any union data inside the ContentsRequest, using the provided ContentsRequest0

func (*ContentsRequest) MergeContentsRequest1 added in v0.2.0

func (t *ContentsRequest) MergeContentsRequest1(v ContentsRequest1) error

MergeContentsRequest1 performs a merge with any union data inside the ContentsRequest, using the provided ContentsRequest1

func (*ContentsRequest) UnmarshalJSON added in v0.2.0

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

type ContentsRequest0 added in v0.2.0

type ContentsRequest0 = interface{}

ContentsRequest0 defines model for ContentsRequest.0.

type ContentsRequest1 added in v0.2.0

type ContentsRequest1 = interface{}

ContentsRequest1 defines model for ContentsRequest.1.

type ContentsRequestCompliance added in v0.2.0

type ContentsRequestCompliance string

ContentsRequestCompliance Enterprise-only compliance mode. Set to `hipaa` for HIPAA mode. Requires cache-only retrieval with supported parameters. See the HIPAA docs for details.

const (
	ContentsRequestComplianceHipaa ContentsRequestCompliance = "hipaa"
)

Defines values for ContentsRequestCompliance.

func (ContentsRequestCompliance) Valid added in v0.2.0

func (e ContentsRequestCompliance) Valid() bool

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

type ContentsRequestContext0 deprecated

type ContentsRequestContext0 = bool

ContentsRequestContext0 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type ContentsRequestContext1 deprecated

type ContentsRequestContext1 struct {
	// MaxCharacters Maximum character limit for the context string.
	MaxCharacters *int `json:"maxCharacters,omitempty"`
}

ContentsRequestContext1 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type ContentsRequestHighlights0

type ContentsRequestHighlights0 = bool

ContentsRequestHighlights0 If true, returns highlights with default settings. If false, disables highlights.

type ContentsRequestHighlights1

type ContentsRequestHighlights1 struct {
	Dynamic          *bool                                `json:"dynamic,omitempty"`
	HighlightsPerUrl *int                                 `json:"highlightsPerUrl,omitempty"`
	MaxCharacters    *int                                 `json:"maxCharacters,omitempty"`
	NumSentences     *int                                 `json:"numSentences,omitempty"`
	Query            *string                              `json:"query,omitempty"`
	Verbosity        *ContentsRequestHighlights1Verbosity `json:"verbosity,omitempty"`
}

ContentsRequestHighlights1 Advanced options for steering highlight extraction. Pass highlights: true for the highest-quality default; supply this object only when you need to guide selection with your own query.

type ContentsRequestHighlights1Verbosity added in v0.2.0

type ContentsRequestHighlights1Verbosity string

ContentsRequestHighlights1Verbosity Preset highlight length: `low`, `medium`, and `high` allocate progressively larger token budgets for the returned highlights. With highlights.dynamic, the preset sets a single shared budget across the whole result set instead of a per-URL budget. Exact budgets are tuned by Exa and may change. Not compatible with maxCharacters or numSentences. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `verbosity` without it are rejected.

const (
	ContentsRequestHighlights1VerbosityHigh   ContentsRequestHighlights1Verbosity = "high"
	ContentsRequestHighlights1VerbosityLow    ContentsRequestHighlights1Verbosity = "low"
	ContentsRequestHighlights1VerbosityMedium ContentsRequestHighlights1Verbosity = "medium"
)

Defines values for ContentsRequestHighlights1Verbosity.

func (ContentsRequestHighlights1Verbosity) Valid added in v0.2.0

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

type ContentsRequestLivecrawl deprecated

type ContentsRequestLivecrawl string

ContentsRequestLivecrawl Deprecated. Use `maxAgeHours` instead. Does not guarantee freshly fetched content. Cannot be combined with `maxAgeHours`.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

const (
	ContentsRequestLivecrawlAlways    ContentsRequestLivecrawl = "always"
	ContentsRequestLivecrawlFallback  ContentsRequestLivecrawl = "fallback"
	ContentsRequestLivecrawlNever     ContentsRequestLivecrawl = "never"
	ContentsRequestLivecrawlPreferred ContentsRequestLivecrawl = "preferred"
)

Defines values for ContentsRequestLivecrawl.

func (ContentsRequestLivecrawl) Valid

func (e ContentsRequestLivecrawl) Valid() bool

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

type ContentsRequestSnapshotAsOf0 added in v0.2.0

type ContentsRequestSnapshotAsOf0 = time.Time

ContentsRequestSnapshotAsOf0 ISO 8601 date-time.

type ContentsRequestSnapshotAsOf1 added in v0.2.0

type ContentsRequestSnapshotAsOf1 = openapi_types.Date

ContentsRequestSnapshotAsOf1 ISO 8601 date (`YYYY-MM-DD`), interpreted as midnight UTC.

type ContentsRequestSubpageTarget0

type ContentsRequestSubpageTarget0 = string

ContentsRequestSubpageTarget0 defines model for ContentsRequest.SubpageTarget.0.

type ContentsRequestSubpageTarget1

type ContentsRequestSubpageTarget1 = []string

ContentsRequestSubpageTarget1 defines model for ContentsRequest.SubpageTarget.1.

type ContentsRequestText0

type ContentsRequestText0 = bool

ContentsRequestText0 If true, returns full page text with default settings. If false, disables text return.

type ContentsRequestText1

type ContentsRequestText1 struct {
	ExcludeSections *[]ContentsRequestText1ExcludeSections `json:"excludeSections,omitempty"`
	IncludeHtmlTags *bool                                  `json:"includeHtmlTags,omitempty"`
	IncludeSections *[]ContentsRequestText1IncludeSections `json:"includeSections,omitempty"`
	MaxCharacters   *int                                   `json:"maxCharacters,omitempty"`
	Verbosity       *ContentsRequestText1Verbosity         `json:"verbosity,omitempty"`
}

ContentsRequestText1 Advanced options for controlling text extraction. Use this when you need to limit text length or include HTML structure. Set `maxAgeHours: 0` to apply `includeHtmlTags`, `verbosity`, and section filters to freshly fetched content.

type ContentsRequestText1ExcludeSections

type ContentsRequestText1ExcludeSections string

ContentsRequestText1ExcludeSections defines model for ContentsRequest.Text.1.ExcludeSections.

const (
	ContentsRequestText1ExcludeSectionsBanner     ContentsRequestText1ExcludeSections = "banner"
	ContentsRequestText1ExcludeSectionsBody       ContentsRequestText1ExcludeSections = "body"
	ContentsRequestText1ExcludeSectionsFooter     ContentsRequestText1ExcludeSections = "footer"
	ContentsRequestText1ExcludeSectionsHeader     ContentsRequestText1ExcludeSections = "header"
	ContentsRequestText1ExcludeSectionsMetadata   ContentsRequestText1ExcludeSections = "metadata"
	ContentsRequestText1ExcludeSectionsNavigation ContentsRequestText1ExcludeSections = "navigation"
	ContentsRequestText1ExcludeSectionsSidebar    ContentsRequestText1ExcludeSections = "sidebar"
)

Defines values for ContentsRequestText1ExcludeSections.

func (ContentsRequestText1ExcludeSections) Valid

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

type ContentsRequestText1IncludeSections

type ContentsRequestText1IncludeSections string

ContentsRequestText1IncludeSections defines model for ContentsRequest.Text.1.IncludeSections.

const (
	ContentsRequestText1IncludeSectionsBanner     ContentsRequestText1IncludeSections = "banner"
	ContentsRequestText1IncludeSectionsBody       ContentsRequestText1IncludeSections = "body"
	ContentsRequestText1IncludeSectionsFooter     ContentsRequestText1IncludeSections = "footer"
	ContentsRequestText1IncludeSectionsHeader     ContentsRequestText1IncludeSections = "header"
	ContentsRequestText1IncludeSectionsMetadata   ContentsRequestText1IncludeSections = "metadata"
	ContentsRequestText1IncludeSectionsNavigation ContentsRequestText1IncludeSections = "navigation"
	ContentsRequestText1IncludeSectionsSidebar    ContentsRequestText1IncludeSections = "sidebar"
)

Defines values for ContentsRequestText1IncludeSections.

func (ContentsRequestText1IncludeSections) Valid

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

type ContentsRequestText1Verbosity

type ContentsRequestText1Verbosity string

ContentsRequestText1Verbosity Controls text rendering verbosity. compact focuses on main content, standard includes more surrounding page context, and full requests the most complete rendered text. Some pages may produce identical standard and full output.

const (
	ContentsRequestText1VerbosityCompact  ContentsRequestText1Verbosity = "compact"
	ContentsRequestText1VerbosityFull     ContentsRequestText1Verbosity = "full"
	ContentsRequestText1VerbosityStandard ContentsRequestText1Verbosity = "standard"
)

Defines values for ContentsRequestText1Verbosity.

func (ContentsRequestText1Verbosity) Valid

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

type ContentsResponse

type ContentsResponse struct {
	// Context Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *string `json:"context,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput `json:"costDollars,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId *string               `json:"requestId,omitempty"`
	Results   *[]SearchResultOutput `json:"results,omitempty"`

	// SearchTime Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency.
	SearchTime *float32 `json:"searchTime,omitempty"`

	// Statuses Status information for each requested URL or document ID.
	Statuses *[]struct {
		// Error Error details, only present when status is "error".
		Error *struct {
			// HttpStatusCode The corresponding HTTP status code.
			HttpStatusCode *int `json:"httpStatusCode,omitempty"`

			// Tag Specific error type.
			Tag *string `json:"tag,omitempty"`
		} `json:"error,omitempty"`

		// Id The URL or document ID that was requested.
		Id string `json:"id"`

		// Source Where the returned content was sourced from.
		Source *ContentsResponseStatusesSource `json:"source,omitempty"`

		// Status Status of the content fetch operation.
		Status ContentsResponseStatusesStatus `json:"status"`
	} `json:"statuses,omitempty"`
}

ContentsResponse defines model for ContentsResponse.

type ContentsResponseStatusesSource added in v0.2.0

type ContentsResponseStatusesSource string

ContentsResponseStatusesSource Where the returned content was sourced from.

const (
	ContentsResponseStatusesSourceCached  ContentsResponseStatusesSource = "cached"
	ContentsResponseStatusesSourceCrawled ContentsResponseStatusesSource = "crawled"
)

Defines values for ContentsResponseStatusesSource.

func (ContentsResponseStatusesSource) Valid added in v0.2.0

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

type ContentsResponseStatusesStatus

type ContentsResponseStatusesStatus string

ContentsResponseStatusesStatus Status of the content fetch operation.

const (
	ContentsResponseStatusesStatusError   ContentsResponseStatusesStatus = "error"
	ContentsResponseStatusesStatusSuccess ContentsResponseStatusesStatus = "success"
)

Defines values for ContentsResponseStatusesStatus.

func (ContentsResponseStatusesStatus) Valid

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

type CostDollarsOutput added in v0.2.0

type CostDollarsOutput struct {
	// Contents Estimated cost breakdown for standalone content retrieval (text, highlights, and summaries billed outside the bundled search price).
	Contents *struct {
		// Highlights Cost of highlight extraction.
		Highlights *float32 `json:"highlights,omitempty"`

		// Summary Cost of per-result summary generation.
		Summary *float32 `json:"summary,omitempty"`

		// Text Cost of text extraction.
		Text *float32 `json:"text,omitempty"`
	} `json:"contents,omitempty"`

	// Search Estimated search cost by retrieval mode. Some search types report their cost only in `total`.
	Search *struct {
		// Keyword Cost of keyword search operations.
		Keyword *float32 `json:"keyword,omitempty"`

		// Neural Cost of neural search operations.
		Neural *float32 `json:"neural,omitempty"`
	} `json:"search,omitempty"`

	// Summary Cost of synthesized summary generation for search requests.
	Summary *float32 `json:"summary,omitempty"`

	// Total Estimated total dollar cost for the completed request. This response value is not an invoice record.
	Total *float32 `json:"total,omitempty"`
}

CostDollarsOutput Estimated dollar cost of the request. Which fields appear depends on the endpoint.

type CreateAgentRunJSONRequestBody added in v0.2.0

type CreateAgentRunJSONRequestBody = CreateAgentRunRequest

CreateAgentRunJSONRequestBody defines body for CreateAgentRun for application/json ContentType.

type CreateAgentRunParams added in v0.2.0

type CreateAgentRunParams struct {
	// Accept Set to `text/event-stream` to receive server-sent events.
	Accept *CreateAgentRunParamsAccept `json:"Accept,omitempty"`

	// ExaBeta Comma-separated beta feature tokens for opting into experimental features.
	ExaBeta *ExaBetaHeader `json:"Exa-Beta,omitempty"`
}

CreateAgentRunParams defines parameters for CreateAgentRun.

type CreateAgentRunParamsAccept added in v0.2.0

type CreateAgentRunParamsAccept string

CreateAgentRunParamsAccept defines parameters for CreateAgentRun.

const (
	CreateAgentRunParamsAcceptApplicationjson CreateAgentRunParamsAccept = "application/json"
	CreateAgentRunParamsAcceptTexteventStream CreateAgentRunParamsAccept = "text/event-stream"
)

Defines values for CreateAgentRunParamsAccept.

func (CreateAgentRunParamsAccept) Valid added in v0.2.0

func (e CreateAgentRunParamsAccept) Valid() bool

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

type CreateAgentRunRequest added in v0.2.0

type CreateAgentRunRequest struct {
	// Budget Optional per-run spending and duration limits for the metered `auto` and `ultra` efforts. Runs that finish early may cost less than the limit.
	Budget *AgentBudget `json:"budget,omitempty"`

	// DataSources Exa Connect data providers to enable for the run. Each entry enables all of that provider's tools.
	DataSources *[]AgentDataSource `json:"dataSources,omitempty"`

	// Effort Cost and reasoning effort preference for the run. `auto` lets Exa choose the appropriate effort. `ultra` is the highest-effort tier for work where completeness and thoroughness matter more than latency or cost, including large list building, deep multi-source research, and criteria that are hard to verify.
	Effort *AgentEffort `json:"effort,omitempty"`

	// Input Records to process and records or entities to exclude from the answer.
	Input *struct {
		// Data Records the agent should process or enrich.
		Data *[]map[string]JsonValue `json:"data,omitempty"`

		// Exclusion Records or entities the agent should avoid returning.
		Exclusion *[]map[string]JsonValue `json:"exclusion,omitempty"`
	} `json:"input,omitempty"`

	// Metadata Caller-provided metadata stored with the run.
	Metadata     *map[string]string    `json:"metadata,omitempty"`
	OutputSchema *map[string]JsonValue `json:"outputSchema,omitempty"`

	// PreviousRunId Agent run ID. New run IDs are returned with the `agent_run_` prefix.
	PreviousRunId *AgentRunId `json:"previousRunId,omitempty"`

	// Query Natural-language question or instructions for the request.
	Query string `json:"query"`

	// SystemPrompt Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance.
	SystemPrompt *string `json:"systemPrompt,omitempty"`

	// UserIdentifier An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results.
	UserIdentifier *string `json:"userIdentifier,omitempty"`
}

CreateAgentRunRequest defines model for CreateAgentRunRequest.

type CreateAgentRunResponse added in v0.2.0

type CreateAgentRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRun
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreateAgentRunResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateAgentRunResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CreateAgentRunResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateAgentRunResponse403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateAgentRunResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CreateAgentRunResponse500Headers
}

func ParseCreateAgentRunResponse added in v0.2.0

func ParseCreateAgentRunResponse(rsp *http.Response) (*CreateAgentRunResponse, error)

ParseCreateAgentRunResponse parses an HTTP response from a CreateAgentRunWithResponse call

func (CreateAgentRunResponse) ContentType added in v0.2.0

func (r CreateAgentRunResponse) ContentType() string

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

func (CreateAgentRunResponse) GetBody added in v0.2.0

func (r CreateAgentRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateAgentRunResponse) GetJSON200 added in v0.2.0

func (r CreateAgentRunResponse) GetJSON200() *AgentRun

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

func (CreateAgentRunResponse) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateAgentRunResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateAgentRunResponse) GetJSON403 added in v0.2.0

func (r CreateAgentRunResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateAgentRunResponse) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CreateAgentRunResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateAgentRunResponse) Status added in v0.2.0

func (r CreateAgentRunResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAgentRunResponse) StatusCode added in v0.2.0

func (r CreateAgentRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateAgentRunResponse200Headers added in v0.2.0

type CreateAgentRunResponse200Headers struct {
	XRequestId *string
}

CreateAgentRunResponse200Headers the declared response headers of an HTTP 200 response for CreateAgentRun

type CreateAgentRunResponse400Headers added in v0.2.0

type CreateAgentRunResponse400Headers struct {
	XRequestId *string
}

CreateAgentRunResponse400Headers the declared response headers of an HTTP 400 response for CreateAgentRun

type CreateAgentRunResponse401Headers added in v0.2.0

type CreateAgentRunResponse401Headers struct {
	XRequestId *string
}

CreateAgentRunResponse401Headers the declared response headers of an HTTP 401 response for CreateAgentRun

type CreateAgentRunResponse403Headers added in v0.2.0

type CreateAgentRunResponse403Headers struct {
	XRequestId *string
}

CreateAgentRunResponse403Headers the declared response headers of an HTTP 403 response for CreateAgentRun

type CreateAgentRunResponse429Headers added in v0.2.0

type CreateAgentRunResponse429Headers struct {
	XRequestId *string
}

CreateAgentRunResponse429Headers the declared response headers of an HTTP 429 response for CreateAgentRun

type CreateAgentRunResponse500Headers added in v0.2.0

type CreateAgentRunResponse500Headers struct {
	XRequestId *string
}

CreateAgentRunResponse500Headers the declared response headers of an HTTP 500 response for CreateAgentRun

type CreateBatchJSONRequestBody added in v0.2.0

type CreateBatchJSONRequestBody = CreateBatchRequest

CreateBatchJSONRequestBody defines body for CreateBatch for application/json ContentType.

type CreateBatchParams added in v0.2.0

type CreateBatchParams struct {
	// ExaBeta Required beta token for the Batch API.
	ExaBeta CreateBatchParamsExaBeta `json:"Exa-Beta"`
}

CreateBatchParams defines parameters for CreateBatch.

type CreateBatchParamsExaBeta added in v0.2.0

type CreateBatchParamsExaBeta string

CreateBatchParamsExaBeta defines parameters for CreateBatch.

const (
	CreateBatchParamsExaBetaBatches20260606 CreateBatchParamsExaBeta = "batches-2026-06-06"
)

Defines values for CreateBatchParamsExaBeta.

func (CreateBatchParamsExaBeta) Valid added in v0.2.0

func (e CreateBatchParamsExaBeta) Valid() bool

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

type CreateBatchRequest added in v0.2.0

type CreateBatchRequest struct {
	// Metadata Caller-provided metadata stored with the batch.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Requests The requests to enqueue. Each `customId` must be unique within the batch.
	Requests []BatchRequestItem `json:"requests"`
}

CreateBatchRequest defines model for CreateBatchRequest.

type CreateBatchResponse added in v0.2.0

type CreateBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Batch
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreateBatchResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateBatchResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CreateBatchResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateBatchResponse403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CreateBatchResponse500Headers
}

func ParseCreateBatchResponse added in v0.2.0

func ParseCreateBatchResponse(rsp *http.Response) (*CreateBatchResponse, error)

ParseCreateBatchResponse parses an HTTP response from a CreateBatchWithResponse call

func (CreateBatchResponse) ContentType added in v0.2.0

func (r CreateBatchResponse) ContentType() string

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

func (CreateBatchResponse) GetBody added in v0.2.0

func (r CreateBatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateBatchResponse) GetJSON200 added in v0.2.0

func (r CreateBatchResponse) GetJSON200() *Batch

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

func (CreateBatchResponse) GetJSON400 added in v0.2.0

func (r CreateBatchResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateBatchResponse) GetJSON401 added in v0.2.0

func (r CreateBatchResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateBatchResponse) GetJSON403 added in v0.2.0

func (r CreateBatchResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateBatchResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateBatchResponse) Status added in v0.2.0

func (r CreateBatchResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBatchResponse) StatusCode added in v0.2.0

func (r CreateBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBatchResponse200Headers added in v0.2.0

type CreateBatchResponse200Headers struct {
	XRequestId *string
}

CreateBatchResponse200Headers the declared response headers of an HTTP 200 response for CreateBatch

type CreateBatchResponse400Headers added in v0.2.0

type CreateBatchResponse400Headers struct {
	XRequestId *string
}

CreateBatchResponse400Headers the declared response headers of an HTTP 400 response for CreateBatch

type CreateBatchResponse401Headers added in v0.2.0

type CreateBatchResponse401Headers struct {
	XRequestId *string
}

CreateBatchResponse401Headers the declared response headers of an HTTP 401 response for CreateBatch

type CreateBatchResponse403Headers added in v0.2.0

type CreateBatchResponse403Headers struct {
	XRequestId *string
}

CreateBatchResponse403Headers the declared response headers of an HTTP 403 response for CreateBatch

type CreateBatchResponse500Headers added in v0.2.0

type CreateBatchResponse500Headers struct {
	XRequestId *string
}

CreateBatchResponse500Headers the declared response headers of an HTTP 500 response for CreateBatch

type CreateCriterionParameters added in v0.2.0

type CreateCriterionParameters struct {
	// Description The description of the criterion
	Description string `json:"description"`
}

CreateCriterionParameters defines model for CreateCriterionParameters.

type CreateEnrichmentParameters added in v0.2.0

type CreateEnrichmentParameters struct {
	// Description Provide a description of the enrichment task you want to perform to each Webset Item.
	Description string                  `json:"description"`
	Format      *WebsetEnrichmentFormat `json:"format,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Options When the format is options, the different options for the enrichment agent to choose from.
	Options *[]struct {
		// Label The label of the option
		Label string `json:"label"`
	} `json:"options,omitempty"`
}

CreateEnrichmentParameters defines model for CreateEnrichmentParameters.

type CreateImportParameters added in v0.2.0

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

CreateImportParameters defines model for CreateImportParameters.

func (CreateImportParameters) AsCreateImportParameters0 added in v0.2.0

func (t CreateImportParameters) AsCreateImportParameters0() (CreateImportParameters0, error)

AsCreateImportParameters0 returns the union data inside the CreateImportParameters as a CreateImportParameters0

func (*CreateImportParameters) FromCreateImportParameters0 added in v0.2.0

func (t *CreateImportParameters) FromCreateImportParameters0(v CreateImportParameters0) error

FromCreateImportParameters0 overwrites any union data inside the CreateImportParameters as the provided CreateImportParameters0

func (CreateImportParameters) MarshalJSON added in v0.2.0

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

func (*CreateImportParameters) MergeCreateImportParameters0 added in v0.2.0

func (t *CreateImportParameters) MergeCreateImportParameters0(v CreateImportParameters0) error

MergeCreateImportParameters0 performs a merge with any union data inside the CreateImportParameters, using the provided CreateImportParameters0

func (*CreateImportParameters) UnmarshalJSON added in v0.2.0

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

type CreateImportParameters0 added in v0.2.0

type CreateImportParameters0 struct {
	// Count The number of records to import
	Count float32 `json:"count"`

	// Csv When format is `csv`, these are the specific import parameters.
	Csv *struct {
		// Identifier Column containing the key identifier for the entity (e.g. URL, Name, etc.). If not provided, we will try to infer it from the file.
		Identifier *int `json:"identifier,omitempty"`
	} `json:"csv,omitempty"`
	Entity Entity `json:"entity"`

	// Format The file format. The CSV must include a column that identifies each entity, or the import fails.
	Format CreateImportParameters0Format `json:"format"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Size The size of the file in bytes. Maximum size is 50 MB.
	Size float32 `json:"size"`

	// Title The title of the import
	Title *string `json:"title,omitempty"`
}

CreateImportParameters0 defines model for CreateImportParameters.0.

type CreateImportParameters0Format added in v0.2.0

type CreateImportParameters0Format string

CreateImportParameters0Format The file format. The CSV must include a column that identifies each entity, or the import fails.

const (
	CreateImportParameters0FormatCsv CreateImportParameters0Format = "csv"
)

Defines values for CreateImportParameters0Format.

func (CreateImportParameters0Format) Valid added in v0.2.0

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

type CreateImportResponse added in v0.2.0

type CreateImportResponse struct {
	// Count The number of entities in the import
	Count float32 `json:"count"`

	// CreatedAt When the import was created
	CreatedAt time.Time `json:"createdAt"`
	Entity    Entity    `json:"entity"`

	// FailedAt When the import failed
	FailedAt time.Time `json:"failedAt"`

	// FailedMessage A human readable message of the import failure
	FailedMessage string `json:"failedMessage"`

	// FailedReason The reason the import failed
	FailedReason CreateImportResponseFailedReason `json:"failedReason"`

	// Format The format of the import.
	Format CreateImportResponseFormat `json:"format"`

	// Id The unique identifier for the Import
	Id string `json:"id"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata map[string]string `json:"metadata"`

	// Object The type of object
	Object CreateImportResponseObject `json:"object"`

	// Status The status of the Import
	Status CreateImportResponseStatus `json:"status"`

	// Title The title of the import
	Title string `json:"title"`

	// UpdatedAt When the import was last updated
	UpdatedAt time.Time `json:"updatedAt"`

	// UploadUrl The URL to upload the file to
	UploadUrl string `json:"uploadUrl"`

	// UploadValidUntil The date and time until the upload URL is valid. The upload URL will be valid for 1 hour.
	UploadValidUntil string `json:"uploadValidUntil"`
}

CreateImportResponse An Import with the URL to upload your file to.

type CreateImportResponseFailedReason added in v0.2.0

type CreateImportResponseFailedReason string

CreateImportResponseFailedReason The reason the import failed

const (
	CreateImportResponseFailedReasonInvalidFileContent CreateImportResponseFailedReason = "invalid_file_content"
	CreateImportResponseFailedReasonInvalidFormat      CreateImportResponseFailedReason = "invalid_format"
	CreateImportResponseFailedReasonMissingIdentifier  CreateImportResponseFailedReason = "missing_identifier"
)

Defines values for CreateImportResponseFailedReason.

func (CreateImportResponseFailedReason) Valid added in v0.2.0

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

type CreateImportResponseFormat added in v0.2.0

type CreateImportResponseFormat string

CreateImportResponseFormat The format of the import.

const (
	CreateImportResponseFormatCsv    CreateImportResponseFormat = "csv"
	CreateImportResponseFormatWebset CreateImportResponseFormat = "webset"
)

Defines values for CreateImportResponseFormat.

func (CreateImportResponseFormat) Valid added in v0.2.0

func (e CreateImportResponseFormat) Valid() bool

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

type CreateImportResponseObject added in v0.2.0

type CreateImportResponseObject string

CreateImportResponseObject The type of object

const (
	CreateImportResponseObjectImport CreateImportResponseObject = "import"
)

Defines values for CreateImportResponseObject.

func (CreateImportResponseObject) Valid added in v0.2.0

func (e CreateImportResponseObject) Valid() bool

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

type CreateImportResponseStatus added in v0.2.0

type CreateImportResponseStatus string

CreateImportResponseStatus The status of the Import

const (
	CreateImportResponseStatusCanceled   CreateImportResponseStatus = "canceled"
	CreateImportResponseStatusCompleted  CreateImportResponseStatus = "completed"
	CreateImportResponseStatusFailed     CreateImportResponseStatus = "failed"
	CreateImportResponseStatusPending    CreateImportResponseStatus = "pending"
	CreateImportResponseStatusProcessing CreateImportResponseStatus = "processing"
)

Defines values for CreateImportResponseStatus.

func (CreateImportResponseStatus) Valid added in v0.2.0

func (e CreateImportResponseStatus) Valid() bool

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

type CreateMonitorJSONRequestBody added in v0.2.0

type CreateMonitorJSONRequestBody = CreateSearchMonitorParameters

CreateMonitorJSONRequestBody defines body for CreateMonitor for application/json ContentType.

type CreateMonitorParameters added in v0.2.0

type CreateMonitorParameters struct {
	Behavior MonitorBehavior    `json:"behavior"`
	Cadence  MonitorCadence     `json:"cadence"`
	Metadata *map[string]string `json:"metadata,omitempty"`

	// WebsetId The id of the Webset
	WebsetId string `json:"websetId"`
}

CreateMonitorParameters defines model for CreateMonitorParameters.

type CreateMonitorResponse added in v0.2.0

type CreateMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CreateSearchMonitorResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateMonitorResponse201Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateMonitorResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CreateMonitorResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateMonitorResponse403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CreateMonitorResponse500Headers
}

func ParseCreateMonitorResponse added in v0.2.0

func ParseCreateMonitorResponse(rsp *http.Response) (*CreateMonitorResponse, error)

ParseCreateMonitorResponse parses an HTTP response from a CreateMonitorWithResponse call

func (CreateMonitorResponse) ContentType added in v0.2.0

func (r CreateMonitorResponse) ContentType() string

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

func (CreateMonitorResponse) GetBody added in v0.2.0

func (r CreateMonitorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateMonitorResponse) GetJSON201 added in v0.2.0

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateMonitorResponse) GetJSON400 added in v0.2.0

func (r CreateMonitorResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateMonitorResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateMonitorResponse) GetJSON403 added in v0.2.0

func (r CreateMonitorResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateMonitorResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateMonitorResponse) Status added in v0.2.0

func (r CreateMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (CreateMonitorResponse) StatusCode added in v0.2.0

func (r CreateMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMonitorResponse201Headers added in v0.2.0

type CreateMonitorResponse201Headers struct {
	XRequestId *string
}

CreateMonitorResponse201Headers the declared response headers of an HTTP 201 response for CreateMonitor

type CreateMonitorResponse400Headers added in v0.2.0

type CreateMonitorResponse400Headers struct {
	XRequestId *string
}

CreateMonitorResponse400Headers the declared response headers of an HTTP 400 response for CreateMonitor

type CreateMonitorResponse401Headers added in v0.2.0

type CreateMonitorResponse401Headers struct {
	XRequestId *string
}

CreateMonitorResponse401Headers the declared response headers of an HTTP 401 response for CreateMonitor

type CreateMonitorResponse403Headers added in v0.2.0

type CreateMonitorResponse403Headers struct {
	XRequestId *string
}

CreateMonitorResponse403Headers the declared response headers of an HTTP 403 response for CreateMonitor

type CreateMonitorResponse500Headers added in v0.2.0

type CreateMonitorResponse500Headers struct {
	XRequestId *string
}

CreateMonitorResponse500Headers the declared response headers of an HTTP 500 response for CreateMonitor

type CreateSearchMonitorParameters added in v0.2.0

type CreateSearchMonitorParameters struct {
	// Metadata Optional key-value metadata. Echoed back in webhook deliveries so you can route updates to systems like Slack.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Name An optional name for the monitor
	Name *string `json:"name,omitempty"`

	// OutputSchema Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.
	OutputSchema *SearchMonitorOutputSchema `json:"outputSchema,omitempty"`
	Search       SearchMonitorSearch        `json:"search"`
	Trigger      *SearchMonitorTrigger      `json:"trigger,omitempty"`
	Webhook      SearchMonitorWebhook       `json:"webhook"`
}

CreateSearchMonitorParameters defines model for CreateSearchMonitorParameters.

type CreateSearchMonitorResponse added in v0.2.0

type CreateSearchMonitorResponse struct {
	// CreatedAt When the monitor was created
	CreatedAt time.Time `json:"createdAt"`

	// Id The unique identifier for the monitor
	Id string `json:"id"`

	// Metadata Optional key-value metadata for your own tracking. Echoed back in webhook deliveries so you can route updates to systems like Slack.
	Metadata *map[string]string `json:"metadata"`

	// Name An optional display name
	Name *string `json:"name"`

	// NextRunAt When the next scheduled run will occur. Null if no trigger is set.
	NextRunAt *time.Time `json:"nextRunAt"`

	// OutputSchema Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.
	OutputSchema *SearchMonitorOutputSchemaOutput `json:"outputSchema"`
	Search       SearchMonitorSearchOutput        `json:"search"`

	// Status The status of the monitor. `active` monitors run on schedule and can be triggered manually. `paused` monitors can only be triggered manually. `disabled` monitors are auto-disabled after 10 consecutive authentication failures.
	Status CreateSearchMonitorResponseStatus `json:"status"`

	// Trigger The interval-based schedule for automatic runs. Null if no schedule is set.
	Trigger *SearchMonitorTriggerOutput `json:"trigger"`

	// UpdatedAt When the monitor was last updated
	UpdatedAt time.Time                  `json:"updatedAt"`
	Webhook   SearchMonitorWebhookOutput `json:"webhook"`

	// WebhookSecret The secret used to verify webhook signatures. This is only returned once at creation time. Store it securely.
	WebhookSecret string `json:"webhookSecret"`
}

CreateSearchMonitorResponse defines model for CreateSearchMonitorResponse.

type CreateSearchMonitorResponseStatus added in v0.2.0

type CreateSearchMonitorResponseStatus string

CreateSearchMonitorResponseStatus The status of the monitor. `active` monitors run on schedule and can be triggered manually. `paused` monitors can only be triggered manually. `disabled` monitors are auto-disabled after 10 consecutive authentication failures.

const (
	CreateSearchMonitorResponseStatusActive   CreateSearchMonitorResponseStatus = "active"
	CreateSearchMonitorResponseStatusDisabled CreateSearchMonitorResponseStatus = "disabled"
	CreateSearchMonitorResponseStatusPaused   CreateSearchMonitorResponseStatus = "paused"
)

Defines values for CreateSearchMonitorResponseStatus.

func (CreateSearchMonitorResponseStatus) Valid added in v0.2.0

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

type CreateWebhookParameters added in v0.2.0

type CreateWebhookParameters struct {
	// Events The events to trigger the webhook
	Events []EventType `json:"events"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Url The URL to send the webhook to
	Url string `json:"url"`
}

CreateWebhookParameters defines model for CreateWebhookParameters.

type CreateWebsetParameters added in v0.2.0

type CreateWebsetParameters struct {
	// Enrichments Enrichments that extract additional data from each Item added to the Webset.
	Enrichments *[]CreateEnrichmentParameters `json:"enrichments,omitempty"`

	// Exclude Global exclusion sources (existing imports or websets) that apply to all operations within this Webset. Any results found within these sources will be omitted across all search and import operations.
	Exclude *[]struct {
		// Id The ID of the source to exclude.
		Id     string                              `json:"id"`
		Source CreateWebsetParametersExcludeSource `json:"source"`
	} `json:"exclude,omitempty"`

	// ExternalId The external identifier for the webset.
	//
	// You can use this to reference the Webset by your own internal identifiers.
	ExternalId *string `json:"externalId,omitempty"`

	// Import Import data from existing Websets and Imports into this Webset.
	Import *[]struct {
		// Evaluate When true, items from this import will be evaluated against the search criteria. Requires a search to be provided.
		Evaluate *bool `json:"evaluate,omitempty"`

		// Id The ID of the source to import.
		Id     string                             `json:"id"`
		Source CreateWebsetParametersImportSource `json:"source"`
	} `json:"import,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Search Create initial search for the Webset.
	Search *struct {
		// Count Number of Items the Webset will attempt to find.
		//
		// The actual number of Items found may be less than this number depending on the search complexity.
		Count *float32 `json:"count,omitempty"`

		// Criteria Criteria every Item is evaluated against. Generated from the query when omitted.
		Criteria *[]CreateCriterionParameters `json:"criteria,omitempty"`
		Entity   *Entity                      `json:"entity,omitempty"`

		// Exclude Imports or Websets whose items are left out of this search's results.
		Exclude *[]struct {
			// Id The ID of the source to exclude.
			Id     string                                    `json:"id"`
			Source CreateWebsetParametersSearchExcludeSource `json:"source"`
		} `json:"exclude,omitempty"`

		// MaxPeoplePerCompany Optional soft cap for people searches. When set, the search will try to include at most this many matching people from the same current employer company.
		MaxPeoplePerCompany *int `json:"maxPeoplePerCompany,omitempty"`

		// Query Natural language search query describing what you are looking for.
		//
		// Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results.
		//
		// Any URLs provided will be crawled and used as additional context for the search.
		//
		// Examples: Marketing agencies based in the US, that focus on consumer products., AI startups in Europe that raised Series A funding in 2024, SaaS companies with 50-200 employees in the fintech space
		Query string `json:"query"`

		// Recall Whether to estimate how many relevant results exist for this search. The estimate is returned in the search's `recall` field.
		Recall *bool `json:"recall,omitempty"`

		// Scope Limit the search to specific sources (existing imports or websets). Any results found within these sources matching the search criteria will be included in the Webset.
		Scope *[]struct {
			// Id The ID of the source to search.
			Id           string `json:"id"`
			Relationship *struct {
				// Definition What the relationship of the entities you hope to find is relative to the entities contained in the provided source.
				Definition string  `json:"definition"`
				Limit      float32 `json:"limit"`
			} `json:"relationship,omitempty"`
			Source CreateWebsetParametersSearchScopeSource `json:"source"`
		} `json:"scope,omitempty"`
	} `json:"search,omitempty"`

	// Title Optional name that appears anywhere the Webset is displayed. Leave empty to have Exa generate one automatically.
	//
	// Examples: Leading climate tech startups
	Title *string `json:"title,omitempty"`
}

CreateWebsetParameters Examples: {"search":{"count":10,"query":"Marketing agencies based in the US, that focus on consumer products."}}

type CreateWebsetParametersExcludeSource added in v0.2.0

type CreateWebsetParametersExcludeSource string

CreateWebsetParametersExcludeSource defines model for CreateWebsetParameters.Exclude.Source.

const (
	CreateWebsetParametersExcludeSourceImport CreateWebsetParametersExcludeSource = "import"
	CreateWebsetParametersExcludeSourceWebset CreateWebsetParametersExcludeSource = "webset"
)

Defines values for CreateWebsetParametersExcludeSource.

func (CreateWebsetParametersExcludeSource) Valid added in v0.2.0

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

type CreateWebsetParametersImportSource added in v0.2.0

type CreateWebsetParametersImportSource string

CreateWebsetParametersImportSource defines model for CreateWebsetParameters.Import.Source.

const (
	CreateWebsetParametersImportSourceImport CreateWebsetParametersImportSource = "import"
	CreateWebsetParametersImportSourceWebset CreateWebsetParametersImportSource = "webset"
)

Defines values for CreateWebsetParametersImportSource.

func (CreateWebsetParametersImportSource) Valid added in v0.2.0

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

type CreateWebsetParametersSearchExcludeSource added in v0.2.0

type CreateWebsetParametersSearchExcludeSource string

CreateWebsetParametersSearchExcludeSource defines model for CreateWebsetParameters.Search.Exclude.Source.

const (
	CreateWebsetParametersSearchExcludeSourceImport CreateWebsetParametersSearchExcludeSource = "import"
	CreateWebsetParametersSearchExcludeSourceWebset CreateWebsetParametersSearchExcludeSource = "webset"
)

Defines values for CreateWebsetParametersSearchExcludeSource.

func (CreateWebsetParametersSearchExcludeSource) Valid added in v0.2.0

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

type CreateWebsetParametersSearchScopeSource added in v0.2.0

type CreateWebsetParametersSearchScopeSource string

CreateWebsetParametersSearchScopeSource defines model for CreateWebsetParameters.Search.Scope.Source.

const (
	CreateWebsetParametersSearchScopeSourceImport CreateWebsetParametersSearchScopeSource = "import"
	CreateWebsetParametersSearchScopeSourceWebset CreateWebsetParametersSearchScopeSource = "webset"
)

Defines values for CreateWebsetParametersSearchScopeSource.

func (CreateWebsetParametersSearchScopeSource) Valid added in v0.2.0

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

type CreateWebsetSearchParameters added in v0.2.0

type CreateWebsetSearchParameters struct {
	Behavior *WebsetSearchBehavior `json:"behavior,omitempty"`

	// Count Number of Items the Search will attempt to find.
	//
	// The actual number of Items found may be less than this number depending on the query complexity.
	Count float32 `json:"count"`

	// Criteria Criteria every Item is evaluated against. Generated from the query when omitted.
	Criteria *[]CreateCriterionParameters `json:"criteria,omitempty"`
	Entity   *Entity                      `json:"entity,omitempty"`

	// Exclude Imports or Websets whose items are left out of this search's results.
	Exclude *[]struct {
		// Id The ID of the source to exclude.
		Id     string                                    `json:"id"`
		Source CreateWebsetSearchParametersExcludeSource `json:"source"`
	} `json:"exclude,omitempty"`

	// MaxPeoplePerCompany Optional soft cap for people searches. When set, the search will try to include at most this many matching people from the same current employer company.
	MaxPeoplePerCompany *int `json:"maxPeoplePerCompany,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Query Natural language search query describing what you are looking for.
	//
	// Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results.
	//
	// Any URLs provided will be crawled and used as additional context for the search.
	//
	// Examples: Marketing agencies based in the US, that focus on consumer products. Get brands worked with and city, AI startups in Europe that raised Series A funding in 2024, SaaS companies with 50-200 employees in the fintech space
	Query string `json:"query"`

	// Recall Whether to estimate how many relevant results exist for this search. The estimate is returned in the search's `recall` field.
	Recall *bool `json:"recall,omitempty"`

	// Scope Limit the search to specific sources (existing imports). Any results found within these sources matching the search criteria will be included in the Webset.
	Scope *[]struct {
		// Id The ID of the source to search.
		Id           string `json:"id"`
		Relationship *struct {
			// Definition What the relationship of the entities you hope to find is relative to the entities contained in the provided source.
			Definition string  `json:"definition"`
			Limit      float32 `json:"limit"`
		} `json:"relationship,omitempty"`
		Source CreateWebsetSearchParametersScopeSource `json:"source"`
	} `json:"scope,omitempty"`
}

CreateWebsetSearchParameters defines model for CreateWebsetSearchParameters.

type CreateWebsetSearchParametersExcludeSource added in v0.2.0

type CreateWebsetSearchParametersExcludeSource string

CreateWebsetSearchParametersExcludeSource defines model for CreateWebsetSearchParameters.Exclude.Source.

const (
	CreateWebsetSearchParametersExcludeSourceImport CreateWebsetSearchParametersExcludeSource = "import"
	CreateWebsetSearchParametersExcludeSourceWebset CreateWebsetSearchParametersExcludeSource = "webset"
)

Defines values for CreateWebsetSearchParametersExcludeSource.

func (CreateWebsetSearchParametersExcludeSource) Valid added in v0.2.0

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

type CreateWebsetSearchParametersScopeSource added in v0.2.0

type CreateWebsetSearchParametersScopeSource string

CreateWebsetSearchParametersScopeSource defines model for CreateWebsetSearchParameters.Scope.Source.

const (
	CreateWebsetSearchParametersScopeSourceImport CreateWebsetSearchParametersScopeSource = "import"
	CreateWebsetSearchParametersScopeSourceWebset CreateWebsetSearchParametersScopeSource = "webset"
)

Defines values for CreateWebsetSearchParametersScopeSource.

func (CreateWebsetSearchParametersScopeSource) Valid added in v0.2.0

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

type CustomEntity added in v0.2.0

type CustomEntity struct {
	Description string           `json:"description"`
	Type        CustomEntityType `json:"type"`
}

CustomEntity defines model for CustomEntity.

type CustomEntityType added in v0.2.0

type CustomEntityType string

CustomEntityType defines model for CustomEntity.Type.

const (
	CustomEntityTypeCustom CustomEntityType = "custom"
)

Defines values for CustomEntityType.

func (CustomEntityType) Valid added in v0.2.0

func (e CustomEntityType) Valid() bool

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

type DeleteAgentRunResponse added in v0.2.0

type DeleteAgentRunResponse struct {
	Deleted DeleteAgentRunResponseDeleted `json:"deleted"`

	// Id Agent run ID. New run IDs are returned with the `agent_run_` prefix.
	Id     AgentRunId                   `json:"id"`
	Object DeleteAgentRunResponseObject `json:"object"`
}

DeleteAgentRunResponse defines model for DeleteAgentRunResponse.

type DeleteAgentRunResponse2 added in v0.2.0

type DeleteAgentRunResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeleteAgentRunResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *AgentErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *DeleteAgentRunResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteAgentRunResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *DeleteAgentRunResponse2401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteAgentRunResponse2403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteAgentRunResponse2404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteAgentRunResponse2429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *DeleteAgentRunResponse2500Headers
}

func ParseDeleteAgentRunResponse2 added in v0.2.0

func ParseDeleteAgentRunResponse2(rsp *http.Response) (*DeleteAgentRunResponse2, error)

ParseDeleteAgentRunResponse2 parses an HTTP response from a DeleteAgentRunWithResponse call

func (DeleteAgentRunResponse2) ContentType added in v0.2.0

func (r DeleteAgentRunResponse2) ContentType() string

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

func (DeleteAgentRunResponse2) GetBody added in v0.2.0

func (r DeleteAgentRunResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteAgentRunResponse2) GetJSON200 added in v0.2.0

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

func (DeleteAgentRunResponse2) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteAgentRunResponse2) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteAgentRunResponse2) GetJSON403 added in v0.2.0

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteAgentRunResponse2) GetJSON404 added in v0.2.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteAgentRunResponse2) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DeleteAgentRunResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteAgentRunResponse2) Status added in v0.2.0

func (r DeleteAgentRunResponse2) Status() string

Status returns HTTPResponse.Status

func (DeleteAgentRunResponse2) StatusCode added in v0.2.0

func (r DeleteAgentRunResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAgentRunResponse2200Headers added in v0.2.0

type DeleteAgentRunResponse2200Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2200Headers the declared response headers of an HTTP 200 response for DeleteAgentRun

type DeleteAgentRunResponse2400Headers added in v0.2.0

type DeleteAgentRunResponse2400Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2400Headers the declared response headers of an HTTP 400 response for DeleteAgentRun

type DeleteAgentRunResponse2401Headers added in v0.2.0

type DeleteAgentRunResponse2401Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2401Headers the declared response headers of an HTTP 401 response for DeleteAgentRun

type DeleteAgentRunResponse2403Headers added in v0.2.0

type DeleteAgentRunResponse2403Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2403Headers the declared response headers of an HTTP 403 response for DeleteAgentRun

type DeleteAgentRunResponse2404Headers added in v0.2.0

type DeleteAgentRunResponse2404Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2404Headers the declared response headers of an HTTP 404 response for DeleteAgentRun

type DeleteAgentRunResponse2429Headers added in v0.2.0

type DeleteAgentRunResponse2429Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2429Headers the declared response headers of an HTTP 429 response for DeleteAgentRun

type DeleteAgentRunResponse2500Headers added in v0.2.0

type DeleteAgentRunResponse2500Headers struct {
	XRequestId *string
}

DeleteAgentRunResponse2500Headers the declared response headers of an HTTP 500 response for DeleteAgentRun

type DeleteAgentRunResponseDeleted added in v0.2.0

type DeleteAgentRunResponseDeleted bool

DeleteAgentRunResponseDeleted defines model for DeleteAgentRunResponse.Deleted.

const (
	DeleteAgentRunResponseDeletedTrue DeleteAgentRunResponseDeleted = true
)

Defines values for DeleteAgentRunResponseDeleted.

func (DeleteAgentRunResponseDeleted) Valid added in v0.2.0

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

type DeleteAgentRunResponseObject added in v0.2.0

type DeleteAgentRunResponseObject string

DeleteAgentRunResponseObject defines model for DeleteAgentRunResponse.Object.

const (
	DeleteAgentRunResponseObjectAgentRunDeleted DeleteAgentRunResponseObject = "agent_run.deleted"
)

Defines values for DeleteAgentRunResponseObject.

func (DeleteAgentRunResponseObject) Valid added in v0.2.0

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

type DeleteBatchParams added in v0.2.0

type DeleteBatchParams struct {
	// ExaBeta Required beta token for the Batch API.
	ExaBeta DeleteBatchParamsExaBeta `json:"Exa-Beta"`
}

DeleteBatchParams defines parameters for DeleteBatch.

type DeleteBatchParamsExaBeta added in v0.2.0

type DeleteBatchParamsExaBeta string

DeleteBatchParamsExaBeta defines parameters for DeleteBatch.

const (
	DeleteBatchParamsExaBetaBatches20260606 DeleteBatchParamsExaBeta = "batches-2026-06-06"
)

Defines values for DeleteBatchParamsExaBeta.

func (DeleteBatchParamsExaBeta) Valid added in v0.2.0

func (e DeleteBatchParamsExaBeta) Valid() bool

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

type DeleteBatchResponse added in v0.2.0

type DeleteBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeletedBatch
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ConflictResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *DeleteBatchResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteBatchResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *DeleteBatchResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteBatchResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteBatchResponse404Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *DeleteBatchResponse409Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *DeleteBatchResponse500Headers
}

func ParseDeleteBatchResponse added in v0.2.0

func ParseDeleteBatchResponse(rsp *http.Response) (*DeleteBatchResponse, error)

ParseDeleteBatchResponse parses an HTTP response from a DeleteBatchWithResponse call

func (DeleteBatchResponse) ContentType added in v0.2.0

func (r DeleteBatchResponse) ContentType() string

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

func (DeleteBatchResponse) GetBody added in v0.2.0

func (r DeleteBatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteBatchResponse) GetJSON200 added in v0.2.0

func (r DeleteBatchResponse) GetJSON200() *DeletedBatch

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

func (DeleteBatchResponse) GetJSON400 added in v0.2.0

func (r DeleteBatchResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteBatchResponse) GetJSON401 added in v0.2.0

func (r DeleteBatchResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteBatchResponse) GetJSON403 added in v0.2.0

func (r DeleteBatchResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteBatchResponse) GetJSON404 added in v0.2.0

func (r DeleteBatchResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteBatchResponse) GetJSON409 added in v0.2.0

func (r DeleteBatchResponse) GetJSON409() *ConflictResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteBatchResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteBatchResponse) Status added in v0.2.0

func (r DeleteBatchResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBatchResponse) StatusCode added in v0.2.0

func (r DeleteBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBatchResponse200Headers added in v0.2.0

type DeleteBatchResponse200Headers struct {
	XRequestId *string
}

DeleteBatchResponse200Headers the declared response headers of an HTTP 200 response for DeleteBatch

type DeleteBatchResponse400Headers added in v0.2.0

type DeleteBatchResponse400Headers struct {
	XRequestId *string
}

DeleteBatchResponse400Headers the declared response headers of an HTTP 400 response for DeleteBatch

type DeleteBatchResponse401Headers added in v0.2.0

type DeleteBatchResponse401Headers struct {
	XRequestId *string
}

DeleteBatchResponse401Headers the declared response headers of an HTTP 401 response for DeleteBatch

type DeleteBatchResponse403Headers added in v0.2.0

type DeleteBatchResponse403Headers struct {
	XRequestId *string
}

DeleteBatchResponse403Headers the declared response headers of an HTTP 403 response for DeleteBatch

type DeleteBatchResponse404Headers added in v0.2.0

type DeleteBatchResponse404Headers struct {
	XRequestId *string
}

DeleteBatchResponse404Headers the declared response headers of an HTTP 404 response for DeleteBatch

type DeleteBatchResponse409Headers added in v0.2.0

type DeleteBatchResponse409Headers struct {
	XRequestId *string
}

DeleteBatchResponse409Headers the declared response headers of an HTTP 409 response for DeleteBatch

type DeleteBatchResponse500Headers added in v0.2.0

type DeleteBatchResponse500Headers struct {
	XRequestId *string
}

DeleteBatchResponse500Headers the declared response headers of an HTTP 500 response for DeleteBatch

type DeleteMonitorResponse added in v0.2.0

type DeleteMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SearchMonitor
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *DeleteMonitorResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteMonitorResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *DeleteMonitorResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteMonitorResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteMonitorResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *DeleteMonitorResponse500Headers
}

func ParseDeleteMonitorResponse added in v0.2.0

func ParseDeleteMonitorResponse(rsp *http.Response) (*DeleteMonitorResponse, error)

ParseDeleteMonitorResponse parses an HTTP response from a DeleteMonitorWithResponse call

func (DeleteMonitorResponse) ContentType added in v0.2.0

func (r DeleteMonitorResponse) ContentType() string

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

func (DeleteMonitorResponse) GetBody added in v0.2.0

func (r DeleteMonitorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMonitorResponse) GetJSON200 added in v0.2.0

func (r DeleteMonitorResponse) GetJSON200() *SearchMonitor

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

func (DeleteMonitorResponse) GetJSON400 added in v0.2.0

func (r DeleteMonitorResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteMonitorResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteMonitorResponse) GetJSON403 added in v0.2.0

func (r DeleteMonitorResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteMonitorResponse) GetJSON404 added in v0.2.0

func (r DeleteMonitorResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteMonitorResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteMonitorResponse) Status added in v0.2.0

func (r DeleteMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteMonitorResponse) StatusCode added in v0.2.0

func (r DeleteMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMonitorResponse200Headers added in v0.2.0

type DeleteMonitorResponse200Headers struct {
	XRequestId *string
}

DeleteMonitorResponse200Headers the declared response headers of an HTTP 200 response for DeleteMonitor

type DeleteMonitorResponse400Headers added in v0.2.0

type DeleteMonitorResponse400Headers struct {
	XRequestId *string
}

DeleteMonitorResponse400Headers the declared response headers of an HTTP 400 response for DeleteMonitor

type DeleteMonitorResponse401Headers added in v0.2.0

type DeleteMonitorResponse401Headers struct {
	XRequestId *string
}

DeleteMonitorResponse401Headers the declared response headers of an HTTP 401 response for DeleteMonitor

type DeleteMonitorResponse403Headers added in v0.2.0

type DeleteMonitorResponse403Headers struct {
	XRequestId *string
}

DeleteMonitorResponse403Headers the declared response headers of an HTTP 403 response for DeleteMonitor

type DeleteMonitorResponse404Headers added in v0.2.0

type DeleteMonitorResponse404Headers struct {
	XRequestId *string
}

DeleteMonitorResponse404Headers the declared response headers of an HTTP 404 response for DeleteMonitor

type DeleteMonitorResponse500Headers added in v0.2.0

type DeleteMonitorResponse500Headers struct {
	XRequestId *string
}

DeleteMonitorResponse500Headers the declared response headers of an HTTP 500 response for DeleteMonitor

type DeletedBatch added in v0.2.0

type DeletedBatch struct {
	// Deleted Always `true` for a successful delete.
	Deleted DeletedBatchDeleted `json:"deleted"`

	// Id ID of the deleted batch.
	Id string `json:"id"`

	// Object The object type, always `batch.deleted`.
	Object DeletedBatchObject `json:"object"`
}

DeletedBatch defines model for DeletedBatch.

type DeletedBatchDeleted added in v0.2.0

type DeletedBatchDeleted bool

DeletedBatchDeleted Always `true` for a successful delete.

const (
	DeletedBatchDeletedTrue DeletedBatchDeleted = true
)

Defines values for DeletedBatchDeleted.

func (DeletedBatchDeleted) Valid added in v0.2.0

func (e DeletedBatchDeleted) Valid() bool

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

type DeletedBatchObject added in v0.2.0

type DeletedBatchObject string

DeletedBatchObject The object type, always `batch.deleted`.

const (
	DeletedBatchObjectBatchDeleted DeletedBatchObject = "batch.deleted"
)

Defines values for DeletedBatchObject.

func (DeletedBatchObject) Valid added in v0.2.0

func (e DeletedBatchObject) Valid() bool

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

type EnrichmentResult added in v0.2.0

type EnrichmentResult struct {
	// EnrichmentId The id of the Enrichment that generated the result
	EnrichmentId string                 `json:"enrichmentId"`
	Format       WebsetEnrichmentFormat `json:"format"`

	// Object The type of object
	Object EnrichmentResultObject `json:"object"`

	// Reasoning The reasoning for the result when an Agent is used.
	Reasoning string `json:"reasoning"`

	// References The references used to generate the result.
	References []struct {
		// Snippet The relevant snippet of the reference content
		Snippet string `json:"snippet"`

		// Title The title of the reference
		Title string `json:"title"`

		// Url The URL of the reference
		Url string `json:"url"`
	} `json:"references"`

	// Result The result of the enrichment.
	Result []string `json:"result"`

	// Status The status of the enrichment result.
	Status EnrichmentResultStatus `json:"status"`
}

EnrichmentResult defines model for EnrichmentResult.

type EnrichmentResultObject added in v0.2.0

type EnrichmentResultObject string

EnrichmentResultObject The type of object

const (
	EnrichmentResultObjectEnrichmentResult EnrichmentResultObject = "enrichment_result"
)

Defines values for EnrichmentResultObject.

func (EnrichmentResultObject) Valid added in v0.2.0

func (e EnrichmentResultObject) Valid() bool

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

type EnrichmentResultStatus added in v0.2.0

type EnrichmentResultStatus string

EnrichmentResultStatus The status of the enrichment result.

const (
	EnrichmentResultStatusCanceled  EnrichmentResultStatus = "canceled"
	EnrichmentResultStatusCompleted EnrichmentResultStatus = "completed"
	EnrichmentResultStatusPending   EnrichmentResultStatus = "pending"
)

Defines values for EnrichmentResultStatus.

func (EnrichmentResultStatus) Valid added in v0.2.0

func (e EnrichmentResultStatus) Valid() bool

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

type Entity

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

Entity defines model for Entity.

func (Entity) AsArticleEntity added in v0.2.0

func (t Entity) AsArticleEntity() (ArticleEntity, error)

AsArticleEntity returns the union data inside the Entity as a ArticleEntity

func (Entity) AsCompanyEntity

func (t Entity) AsCompanyEntity() (CompanyEntity, error)

AsCompanyEntity returns the union data inside the Entity as a CompanyEntity

func (Entity) AsCustomEntity added in v0.2.0

func (t Entity) AsCustomEntity() (CustomEntity, error)

AsCustomEntity returns the union data inside the Entity as a CustomEntity

func (Entity) AsPersonEntity

func (t Entity) AsPersonEntity() (PersonEntity, error)

AsPersonEntity returns the union data inside the Entity as a PersonEntity

func (Entity) AsResearchPaperEntity added in v0.2.0

func (t Entity) AsResearchPaperEntity() (ResearchPaperEntity, error)

AsResearchPaperEntity returns the union data inside the Entity as a ResearchPaperEntity

func (*Entity) FromArticleEntity added in v0.2.0

func (t *Entity) FromArticleEntity(v ArticleEntity) error

FromArticleEntity overwrites any union data inside the Entity as the provided ArticleEntity

func (*Entity) FromCompanyEntity

func (t *Entity) FromCompanyEntity(v CompanyEntity) error

FromCompanyEntity overwrites any union data inside the Entity as the provided CompanyEntity

func (*Entity) FromCustomEntity added in v0.2.0

func (t *Entity) FromCustomEntity(v CustomEntity) error

FromCustomEntity overwrites any union data inside the Entity as the provided CustomEntity

func (*Entity) FromPersonEntity

func (t *Entity) FromPersonEntity(v PersonEntity) error

FromPersonEntity overwrites any union data inside the Entity as the provided PersonEntity

func (*Entity) FromResearchPaperEntity added in v0.2.0

func (t *Entity) FromResearchPaperEntity(v ResearchPaperEntity) error

FromResearchPaperEntity overwrites any union data inside the Entity as the provided ResearchPaperEntity

func (Entity) MarshalJSON

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

func (*Entity) MergeArticleEntity added in v0.2.0

func (t *Entity) MergeArticleEntity(v ArticleEntity) error

MergeArticleEntity performs a merge with any union data inside the Entity, using the provided ArticleEntity

func (*Entity) MergeCompanyEntity

func (t *Entity) MergeCompanyEntity(v CompanyEntity) error

MergeCompanyEntity performs a merge with any union data inside the Entity, using the provided CompanyEntity

func (*Entity) MergeCustomEntity added in v0.2.0

func (t *Entity) MergeCustomEntity(v CustomEntity) error

MergeCustomEntity performs a merge with any union data inside the Entity, using the provided CustomEntity

func (*Entity) MergePersonEntity

func (t *Entity) MergePersonEntity(v PersonEntity) error

MergePersonEntity performs a merge with any union data inside the Entity, using the provided PersonEntity

func (*Entity) MergeResearchPaperEntity added in v0.2.0

func (t *Entity) MergeResearchPaperEntity(v ResearchPaperEntity) error

MergeResearchPaperEntity performs a merge with any union data inside the Entity, using the provided ResearchPaperEntity

func (*Entity) UnmarshalJSON

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

type ErrorResponse added in v0.2.0

type ErrorResponse struct {
	// Error Human-readable message describing the error.
	Error string `json:"error"`

	// RequestId Unique identifier for the request.
	RequestId string `json:"requestId"`

	// Tag Machine-readable error tag identifying the failure. The set of tags is open-ended: new tags may be added at any time, so treat unrecognized tags as a generic error of the response's HTTP status. Known tags are listed as examples.
	Tag string `json:"tag"`
}

ErrorResponse Standard error envelope returned by the Exa API for failed requests.

type Event added in v0.2.0

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

Event defines model for Event.

func (Event) AsEvent0 added in v0.2.0

func (t Event) AsEvent0() (Event0, error)

AsEvent0 returns the union data inside the Event as a Event0

func (Event) AsEvent1 added in v0.2.0

func (t Event) AsEvent1() (Event1, error)

AsEvent1 returns the union data inside the Event as a Event1

func (Event) AsEvent2 added in v0.2.0

func (t Event) AsEvent2() (Event2, error)

AsEvent2 returns the union data inside the Event as a Event2

func (Event) AsEvent3 added in v0.2.0

func (t Event) AsEvent3() (Event3, error)

AsEvent3 returns the union data inside the Event as a Event3

func (Event) AsEvent4 added in v0.2.0

func (t Event) AsEvent4() (Event4, error)

AsEvent4 returns the union data inside the Event as a Event4

func (Event) AsEvent5 added in v0.2.0

func (t Event) AsEvent5() (Event5, error)

AsEvent5 returns the union data inside the Event as a Event5

func (Event) AsEvent6 added in v0.2.0

func (t Event) AsEvent6() (Event6, error)

AsEvent6 returns the union data inside the Event as a Event6

func (Event) AsEvent7 added in v0.2.0

func (t Event) AsEvent7() (Event7, error)

AsEvent7 returns the union data inside the Event as a Event7

func (Event) AsEvent8 added in v0.2.0

func (t Event) AsEvent8() (Event8, error)

AsEvent8 returns the union data inside the Event as a Event8

func (Event) AsEvent9 added in v0.2.0

func (t Event) AsEvent9() (Event9, error)

AsEvent9 returns the union data inside the Event as a Event9

func (Event) AsEvent10 added in v0.2.0

func (t Event) AsEvent10() (Event10, error)

AsEvent10 returns the union data inside the Event as a Event10

func (Event) AsEvent11 added in v0.2.0

func (t Event) AsEvent11() (Event11, error)

AsEvent11 returns the union data inside the Event as a Event11

func (Event) AsEvent12 added in v0.2.0

func (t Event) AsEvent12() (Event12, error)

AsEvent12 returns the union data inside the Event as a Event12

func (Event) AsEvent13 added in v0.2.0

func (t Event) AsEvent13() (Event13, error)

AsEvent13 returns the union data inside the Event as a Event13

func (Event) AsEvent14 added in v0.2.0

func (t Event) AsEvent14() (Event14, error)

AsEvent14 returns the union data inside the Event as a Event14

func (Event) AsEvent15 added in v0.2.0

func (t Event) AsEvent15() (Event15, error)

AsEvent15 returns the union data inside the Event as a Event15

func (Event) AsEvent16 added in v0.2.0

func (t Event) AsEvent16() (Event16, error)

AsEvent16 returns the union data inside the Event as a Event16

func (*Event) FromEvent0 added in v0.2.0

func (t *Event) FromEvent0(v Event0) error

FromEvent0 overwrites any union data inside the Event as the provided Event0

func (*Event) FromEvent1 added in v0.2.0

func (t *Event) FromEvent1(v Event1) error

FromEvent1 overwrites any union data inside the Event as the provided Event1

func (*Event) FromEvent2 added in v0.2.0

func (t *Event) FromEvent2(v Event2) error

FromEvent2 overwrites any union data inside the Event as the provided Event2

func (*Event) FromEvent3 added in v0.2.0

func (t *Event) FromEvent3(v Event3) error

FromEvent3 overwrites any union data inside the Event as the provided Event3

func (*Event) FromEvent4 added in v0.2.0

func (t *Event) FromEvent4(v Event4) error

FromEvent4 overwrites any union data inside the Event as the provided Event4

func (*Event) FromEvent5 added in v0.2.0

func (t *Event) FromEvent5(v Event5) error

FromEvent5 overwrites any union data inside the Event as the provided Event5

func (*Event) FromEvent6 added in v0.2.0

func (t *Event) FromEvent6(v Event6) error

FromEvent6 overwrites any union data inside the Event as the provided Event6

func (*Event) FromEvent7 added in v0.2.0

func (t *Event) FromEvent7(v Event7) error

FromEvent7 overwrites any union data inside the Event as the provided Event7

func (*Event) FromEvent8 added in v0.2.0

func (t *Event) FromEvent8(v Event8) error

FromEvent8 overwrites any union data inside the Event as the provided Event8

func (*Event) FromEvent9 added in v0.2.0

func (t *Event) FromEvent9(v Event9) error

FromEvent9 overwrites any union data inside the Event as the provided Event9

func (*Event) FromEvent10 added in v0.2.0

func (t *Event) FromEvent10(v Event10) error

FromEvent10 overwrites any union data inside the Event as the provided Event10

func (*Event) FromEvent11 added in v0.2.0

func (t *Event) FromEvent11(v Event11) error

FromEvent11 overwrites any union data inside the Event as the provided Event11

func (*Event) FromEvent12 added in v0.2.0

func (t *Event) FromEvent12(v Event12) error

FromEvent12 overwrites any union data inside the Event as the provided Event12

func (*Event) FromEvent13 added in v0.2.0

func (t *Event) FromEvent13(v Event13) error

FromEvent13 overwrites any union data inside the Event as the provided Event13

func (*Event) FromEvent14 added in v0.2.0

func (t *Event) FromEvent14(v Event14) error

FromEvent14 overwrites any union data inside the Event as the provided Event14

func (*Event) FromEvent15 added in v0.2.0

func (t *Event) FromEvent15(v Event15) error

FromEvent15 overwrites any union data inside the Event as the provided Event15

func (*Event) FromEvent16 added in v0.2.0

func (t *Event) FromEvent16(v Event16) error

FromEvent16 overwrites any union data inside the Event as the provided Event16

func (Event) MarshalJSON added in v0.2.0

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

func (*Event) MergeEvent0 added in v0.2.0

func (t *Event) MergeEvent0(v Event0) error

MergeEvent0 performs a merge with any union data inside the Event, using the provided Event0

func (*Event) MergeEvent1 added in v0.2.0

func (t *Event) MergeEvent1(v Event1) error

MergeEvent1 performs a merge with any union data inside the Event, using the provided Event1

func (*Event) MergeEvent2 added in v0.2.0

func (t *Event) MergeEvent2(v Event2) error

MergeEvent2 performs a merge with any union data inside the Event, using the provided Event2

func (*Event) MergeEvent3 added in v0.2.0

func (t *Event) MergeEvent3(v Event3) error

MergeEvent3 performs a merge with any union data inside the Event, using the provided Event3

func (*Event) MergeEvent4 added in v0.2.0

func (t *Event) MergeEvent4(v Event4) error

MergeEvent4 performs a merge with any union data inside the Event, using the provided Event4

func (*Event) MergeEvent5 added in v0.2.0

func (t *Event) MergeEvent5(v Event5) error

MergeEvent5 performs a merge with any union data inside the Event, using the provided Event5

func (*Event) MergeEvent6 added in v0.2.0

func (t *Event) MergeEvent6(v Event6) error

MergeEvent6 performs a merge with any union data inside the Event, using the provided Event6

func (*Event) MergeEvent7 added in v0.2.0

func (t *Event) MergeEvent7(v Event7) error

MergeEvent7 performs a merge with any union data inside the Event, using the provided Event7

func (*Event) MergeEvent8 added in v0.2.0

func (t *Event) MergeEvent8(v Event8) error

MergeEvent8 performs a merge with any union data inside the Event, using the provided Event8

func (*Event) MergeEvent9 added in v0.2.0

func (t *Event) MergeEvent9(v Event9) error

MergeEvent9 performs a merge with any union data inside the Event, using the provided Event9

func (*Event) MergeEvent10 added in v0.2.0

func (t *Event) MergeEvent10(v Event10) error

MergeEvent10 performs a merge with any union data inside the Event, using the provided Event10

func (*Event) MergeEvent11 added in v0.2.0

func (t *Event) MergeEvent11(v Event11) error

MergeEvent11 performs a merge with any union data inside the Event, using the provided Event11

func (*Event) MergeEvent12 added in v0.2.0

func (t *Event) MergeEvent12(v Event12) error

MergeEvent12 performs a merge with any union data inside the Event, using the provided Event12

func (*Event) MergeEvent13 added in v0.2.0

func (t *Event) MergeEvent13(v Event13) error

MergeEvent13 performs a merge with any union data inside the Event, using the provided Event13

func (*Event) MergeEvent14 added in v0.2.0

func (t *Event) MergeEvent14(v Event14) error

MergeEvent14 performs a merge with any union data inside the Event, using the provided Event14

func (*Event) MergeEvent15 added in v0.2.0

func (t *Event) MergeEvent15(v Event15) error

MergeEvent15 performs a merge with any union data inside the Event, using the provided Event15

func (*Event) MergeEvent16 added in v0.2.0

func (t *Event) MergeEvent16(v Event16) error

MergeEvent16 performs a merge with any union data inside the Event, using the provided Event16

func (*Event) UnmarshalJSON added in v0.2.0

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

type Event0 added in v0.2.0

type Event0 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Webset    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event0Object `json:"object"`

	// Type The type of event
	Type Event0Type `json:"type"`
}

Event0 defines model for Event.0.

type Event0Object added in v0.2.0

type Event0Object string

Event0Object The type of object

const (
	Event0ObjectEvent Event0Object = "event"
)

Defines values for Event0Object.

func (Event0Object) Valid added in v0.2.0

func (e Event0Object) Valid() bool

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

type Event0Type added in v0.2.0

type Event0Type string

Event0Type The type of event

const (
	Event0TypeWebsetCreated Event0Type = "webset.created"
)

Defines values for Event0Type.

func (Event0Type) Valid added in v0.2.0

func (e Event0Type) Valid() bool

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

type Event1 added in v0.2.0

type Event1 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Webset    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event1Object `json:"object"`

	// Type The type of event
	Type Event1Type `json:"type"`
}

Event1 defines model for Event.1.

type Event1Object added in v0.2.0

type Event1Object string

Event1Object The type of object

const (
	Event1ObjectEvent Event1Object = "event"
)

Defines values for Event1Object.

func (Event1Object) Valid added in v0.2.0

func (e Event1Object) Valid() bool

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

type Event1Type added in v0.2.0

type Event1Type string

Event1Type The type of event

const (
	Event1TypeWebsetDeleted Event1Type = "webset.deleted"
)

Defines values for Event1Type.

func (Event1Type) Valid added in v0.2.0

func (e Event1Type) Valid() bool

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

type Event2 added in v0.2.0

type Event2 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Webset    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event2Object `json:"object"`

	// Type The type of event
	Type Event2Type `json:"type"`
}

Event2 defines model for Event.2.

type Event2Object added in v0.2.0

type Event2Object string

Event2Object The type of object

const (
	Event2ObjectEvent Event2Object = "event"
)

Defines values for Event2Object.

func (Event2Object) Valid added in v0.2.0

func (e Event2Object) Valid() bool

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

type Event2Type added in v0.2.0

type Event2Type string

Event2Type The type of event

const (
	Event2TypeWebsetIdle Event2Type = "webset.idle"
)

Defines values for Event2Type.

func (Event2Type) Valid added in v0.2.0

func (e Event2Type) Valid() bool

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

type Event3 added in v0.2.0

type Event3 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Webset    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event3Object `json:"object"`

	// Type The type of event
	Type Event3Type `json:"type"`
}

Event3 defines model for Event.3.

type Event3Object added in v0.2.0

type Event3Object string

Event3Object The type of object

const (
	Event3ObjectEvent Event3Object = "event"
)

Defines values for Event3Object.

func (Event3Object) Valid added in v0.2.0

func (e Event3Object) Valid() bool

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

type Event3Type added in v0.2.0

type Event3Type string

Event3Type The type of event

const (
	Event3TypeWebsetPaused Event3Type = "webset.paused"
)

Defines values for Event3Type.

func (Event3Type) Valid added in v0.2.0

func (e Event3Type) Valid() bool

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

type Event4 added in v0.2.0

type Event4 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time  `json:"createdAt"`
	Data      WebsetItem `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event4Object `json:"object"`

	// Type The type of event
	Type Event4Type `json:"type"`
}

Event4 defines model for Event.4.

type Event4Object added in v0.2.0

type Event4Object string

Event4Object The type of object

const (
	Event4ObjectEvent Event4Object = "event"
)

Defines values for Event4Object.

func (Event4Object) Valid added in v0.2.0

func (e Event4Object) Valid() bool

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

type Event4Type added in v0.2.0

type Event4Type string

Event4Type The type of event

const (
	Event4TypeWebsetItemCreated Event4Type = "webset.item.created"
)

Defines values for Event4Type.

func (Event4Type) Valid added in v0.2.0

func (e Event4Type) Valid() bool

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

type Event5 added in v0.2.0

type Event5 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time  `json:"createdAt"`
	Data      WebsetItem `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event5Object `json:"object"`

	// Type The type of event
	Type Event5Type `json:"type"`
}

Event5 defines model for Event.5.

type Event5Object added in v0.2.0

type Event5Object string

Event5Object The type of object

const (
	Event5ObjectEvent Event5Object = "event"
)

Defines values for Event5Object.

func (Event5Object) Valid added in v0.2.0

func (e Event5Object) Valid() bool

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

type Event5Type added in v0.2.0

type Event5Type string

Event5Type The type of event

const (
	Event5TypeWebsetItemEnriched Event5Type = "webset.item.enriched"
)

Defines values for Event5Type.

func (Event5Type) Valid added in v0.2.0

func (e Event5Type) Valid() bool

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

type Event6 added in v0.2.0

type Event6 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time    `json:"createdAt"`
	Data      WebsetSearch `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event6Object `json:"object"`

	// Type The type of event
	Type Event6Type `json:"type"`
}

Event6 defines model for Event.6.

type Event6Object added in v0.2.0

type Event6Object string

Event6Object The type of object

const (
	Event6ObjectEvent Event6Object = "event"
)

Defines values for Event6Object.

func (Event6Object) Valid added in v0.2.0

func (e Event6Object) Valid() bool

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

type Event6Type added in v0.2.0

type Event6Type string

Event6Type The type of event

const (
	Event6TypeWebsetSearchCreated Event6Type = "webset.search.created"
)

Defines values for Event6Type.

func (Event6Type) Valid added in v0.2.0

func (e Event6Type) Valid() bool

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

type Event7 added in v0.2.0

type Event7 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time    `json:"createdAt"`
	Data      WebsetSearch `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event7Object `json:"object"`

	// Type The type of event
	Type Event7Type `json:"type"`
}

Event7 defines model for Event.7.

type Event7Object added in v0.2.0

type Event7Object string

Event7Object The type of object

const (
	Event7ObjectEvent Event7Object = "event"
)

Defines values for Event7Object.

func (Event7Object) Valid added in v0.2.0

func (e Event7Object) Valid() bool

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

type Event7Type added in v0.2.0

type Event7Type string

Event7Type The type of event

const (
	Event7TypeWebsetSearchUpdated Event7Type = "webset.search.updated"
)

Defines values for Event7Type.

func (Event7Type) Valid added in v0.2.0

func (e Event7Type) Valid() bool

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

type Event8 added in v0.2.0

type Event8 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time    `json:"createdAt"`
	Data      WebsetSearch `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event8Object `json:"object"`

	// Type The type of event
	Type Event8Type `json:"type"`
}

Event8 defines model for Event.8.

type Event8Object added in v0.2.0

type Event8Object string

Event8Object The type of object

const (
	Event8ObjectEvent Event8Object = "event"
)

Defines values for Event8Object.

func (Event8Object) Valid added in v0.2.0

func (e Event8Object) Valid() bool

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

type Event8Type added in v0.2.0

type Event8Type string

Event8Type The type of event

const (
	Event8TypeWebsetSearchCanceled Event8Type = "webset.search.canceled"
)

Defines values for Event8Type.

func (Event8Type) Valid added in v0.2.0

func (e Event8Type) Valid() bool

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

type Event9 added in v0.2.0

type Event9 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time    `json:"createdAt"`
	Data      WebsetSearch `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event9Object `json:"object"`

	// Type The type of event
	Type Event9Type `json:"type"`
}

Event9 defines model for Event.9.

type Event9Object added in v0.2.0

type Event9Object string

Event9Object The type of object

const (
	Event9ObjectEvent Event9Object = "event"
)

Defines values for Event9Object.

func (Event9Object) Valid added in v0.2.0

func (e Event9Object) Valid() bool

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

type Event9Type added in v0.2.0

type Event9Type string

Event9Type The type of event

const (
	Event9TypeWebsetSearchCompleted Event9Type = "webset.search.completed"
)

Defines values for Event9Type.

func (Event9Type) Valid added in v0.2.0

func (e Event9Type) Valid() bool

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

type Event10 added in v0.2.0

type Event10 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Import    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event10Object `json:"object"`

	// Type The type of event
	Type Event10Type `json:"type"`
}

Event10 defines model for Event.10.

type Event10Object added in v0.2.0

type Event10Object string

Event10Object The type of object

const (
	Event10ObjectEvent Event10Object = "event"
)

Defines values for Event10Object.

func (Event10Object) Valid added in v0.2.0

func (e Event10Object) Valid() bool

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

type Event10Type added in v0.2.0

type Event10Type string

Event10Type The type of event

const (
	Event10TypeImportCreated Event10Type = "import.created"
)

Defines values for Event10Type.

func (Event10Type) Valid added in v0.2.0

func (e Event10Type) Valid() bool

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

type Event11 added in v0.2.0

type Event11 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Import    `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event11Object `json:"object"`

	// Type The type of event
	Type Event11Type `json:"type"`
}

Event11 defines model for Event.11.

type Event11Object added in v0.2.0

type Event11Object string

Event11Object The type of object

const (
	Event11ObjectEvent Event11Object = "event"
)

Defines values for Event11Object.

func (Event11Object) Valid added in v0.2.0

func (e Event11Object) Valid() bool

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

type Event11Type added in v0.2.0

type Event11Type string

Event11Type The type of event

const (
	Event11TypeImportCompleted Event11Type = "import.completed"
)

Defines values for Event11Type.

func (Event11Type) Valid added in v0.2.0

func (e Event11Type) Valid() bool

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

type Event12 added in v0.2.0

type Event12 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Monitor   `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event12Object `json:"object"`

	// Type The type of event
	Type Event12Type `json:"type"`
}

Event12 defines model for Event.12.

type Event12Object added in v0.2.0

type Event12Object string

Event12Object The type of object

const (
	Event12ObjectEvent Event12Object = "event"
)

Defines values for Event12Object.

func (Event12Object) Valid added in v0.2.0

func (e Event12Object) Valid() bool

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

type Event12Type added in v0.2.0

type Event12Type string

Event12Type The type of event

const (
	Event12TypeMonitorCreated Event12Type = "monitor.created"
)

Defines values for Event12Type.

func (Event12Type) Valid added in v0.2.0

func (e Event12Type) Valid() bool

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

type Event13 added in v0.2.0

type Event13 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Monitor   `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event13Object `json:"object"`

	// Type The type of event
	Type Event13Type `json:"type"`
}

Event13 defines model for Event.13.

type Event13Object added in v0.2.0

type Event13Object string

Event13Object The type of object

const (
	Event13ObjectEvent Event13Object = "event"
)

Defines values for Event13Object.

func (Event13Object) Valid added in v0.2.0

func (e Event13Object) Valid() bool

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

type Event13Type added in v0.2.0

type Event13Type string

Event13Type The type of event

const (
	Event13TypeMonitorUpdated Event13Type = "monitor.updated"
)

Defines values for Event13Type.

func (Event13Type) Valid added in v0.2.0

func (e Event13Type) Valid() bool

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

type Event14 added in v0.2.0

type Event14 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time `json:"createdAt"`
	Data      Monitor   `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event14Object `json:"object"`

	// Type The type of event
	Type Event14Type `json:"type"`
}

Event14 defines model for Event.14.

type Event14Object added in v0.2.0

type Event14Object string

Event14Object The type of object

const (
	Event14ObjectEvent Event14Object = "event"
)

Defines values for Event14Object.

func (Event14Object) Valid added in v0.2.0

func (e Event14Object) Valid() bool

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

type Event14Type added in v0.2.0

type Event14Type string

Event14Type The type of event

const (
	Event14TypeMonitorDeleted Event14Type = "monitor.deleted"
)

Defines values for Event14Type.

func (Event14Type) Valid added in v0.2.0

func (e Event14Type) Valid() bool

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

type Event15 added in v0.2.0

type Event15 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time  `json:"createdAt"`
	Data      MonitorRun `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event15Object `json:"object"`

	// Type The type of event
	Type Event15Type `json:"type"`
}

Event15 defines model for Event.15.

type Event15Object added in v0.2.0

type Event15Object string

Event15Object The type of object

const (
	Event15ObjectEvent Event15Object = "event"
)

Defines values for Event15Object.

func (Event15Object) Valid added in v0.2.0

func (e Event15Object) Valid() bool

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

type Event15Type added in v0.2.0

type Event15Type string

Event15Type The type of event

const (
	Event15TypeMonitorRunCreated Event15Type = "monitor.run.created"
)

Defines values for Event15Type.

func (Event15Type) Valid added in v0.2.0

func (e Event15Type) Valid() bool

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

type Event16 added in v0.2.0

type Event16 struct {
	// CreatedAt The date and time the event was created
	CreatedAt time.Time  `json:"createdAt"`
	Data      MonitorRun `json:"data"`

	// Id The unique identifier for the event
	Id string `json:"id"`

	// Object The type of object
	Object Event16Object `json:"object"`

	// Type The type of event
	Type Event16Type `json:"type"`
}

Event16 defines model for Event.16.

type Event16Object added in v0.2.0

type Event16Object string

Event16Object The type of object

const (
	Event16ObjectEvent Event16Object = "event"
)

Defines values for Event16Object.

func (Event16Object) Valid added in v0.2.0

func (e Event16Object) Valid() bool

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

type Event16Type added in v0.2.0

type Event16Type string

Event16Type The type of event

const (
	Event16TypeMonitorRunCompleted Event16Type = "monitor.run.completed"
)

Defines values for Event16Type.

func (Event16Type) Valid added in v0.2.0

func (e Event16Type) Valid() bool

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

type EventType added in v0.2.0

type EventType string

EventType defines model for EventType.

const (
	EventTypeImportCompleted       EventType = "import.completed"
	EventTypeImportCreated         EventType = "import.created"
	EventTypeMonitorCreated        EventType = "monitor.created"
	EventTypeMonitorDeleted        EventType = "monitor.deleted"
	EventTypeMonitorRunCompleted   EventType = "monitor.run.completed"
	EventTypeMonitorRunCreated     EventType = "monitor.run.created"
	EventTypeMonitorUpdated        EventType = "monitor.updated"
	EventTypeWebsetCreated         EventType = "webset.created"
	EventTypeWebsetDeleted         EventType = "webset.deleted"
	EventTypeWebsetExportCompleted EventType = "webset.export.completed"
	EventTypeWebsetExportCreated   EventType = "webset.export.created"
	EventTypeWebsetIdle            EventType = "webset.idle"
	EventTypeWebsetItemCreated     EventType = "webset.item.created"
	EventTypeWebsetItemEnriched    EventType = "webset.item.enriched"
	EventTypeWebsetPaused          EventType = "webset.paused"
	EventTypeWebsetSearchCanceled  EventType = "webset.search.canceled"
	EventTypeWebsetSearchCompleted EventType = "webset.search.completed"
	EventTypeWebsetSearchCreated   EventType = "webset.search.created"
	EventTypeWebsetSearchUpdated   EventType = "webset.search.updated"
)

Defines values for EventType.

func (EventType) Valid added in v0.2.0

func (e EventType) Valid() bool

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

type EventsGetResponse added in v0.2.0

type EventsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Event
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *EventsGetResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *EventsGetResponse404Headers
}

func ParseEventsGetResponse added in v0.2.0

func ParseEventsGetResponse(rsp *http.Response) (*EventsGetResponse, error)

ParseEventsGetResponse parses an HTTP response from a EventsGetWithResponse call

func (EventsGetResponse) ContentType added in v0.2.0

func (r EventsGetResponse) ContentType() string

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

func (EventsGetResponse) GetBody added in v0.2.0

func (r EventsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EventsGetResponse) GetJSON200 added in v0.2.0

func (r EventsGetResponse) GetJSON200() *Event

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

func (EventsGetResponse) Status added in v0.2.0

func (r EventsGetResponse) Status() string

Status returns HTTPResponse.Status

func (EventsGetResponse) StatusCode added in v0.2.0

func (r EventsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EventsGetResponse200Headers added in v0.2.0

type EventsGetResponse200Headers struct {
	XRequestId string
}

EventsGetResponse200Headers the declared response headers of an HTTP 200 response for EventsGet

type EventsGetResponse404Headers added in v0.2.0

type EventsGetResponse404Headers struct {
	XRequestId string
}

EventsGetResponse404Headers the declared response headers of an HTTP 404 response for EventsGet

type EventsListParams added in v0.2.0

type EventsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Types The types of events to filter by
	Types *[]EventsListParamsTypes `form:"types,omitempty" json:"types,omitempty"`

	// CreatedBefore Filter events created before or at this timestamp (inclusive). Must be a valid ISO 8601 datetime string. All times are in UTC.
	CreatedBefore *time.Time `form:"createdBefore,omitempty" json:"createdBefore,omitempty"`

	// CreatedAfter Filter events created after or at this timestamp (inclusive). Must be a valid ISO 8601 datetime string. All times are in UTC.
	CreatedAfter *time.Time `form:"createdAfter,omitempty" json:"createdAfter,omitempty"`
}

EventsListParams defines parameters for EventsList.

type EventsListParamsTypes added in v0.2.0

type EventsListParamsTypes string

EventsListParamsTypes defines parameters for EventsList.

const (
	EventsListParamsTypesImportCompleted       EventsListParamsTypes = "import.completed"
	EventsListParamsTypesImportCreated         EventsListParamsTypes = "import.created"
	EventsListParamsTypesMonitorCreated        EventsListParamsTypes = "monitor.created"
	EventsListParamsTypesMonitorDeleted        EventsListParamsTypes = "monitor.deleted"
	EventsListParamsTypesMonitorRunCompleted   EventsListParamsTypes = "monitor.run.completed"
	EventsListParamsTypesMonitorRunCreated     EventsListParamsTypes = "monitor.run.created"
	EventsListParamsTypesMonitorUpdated        EventsListParamsTypes = "monitor.updated"
	EventsListParamsTypesWebsetCreated         EventsListParamsTypes = "webset.created"
	EventsListParamsTypesWebsetDeleted         EventsListParamsTypes = "webset.deleted"
	EventsListParamsTypesWebsetExportCompleted EventsListParamsTypes = "webset.export.completed"
	EventsListParamsTypesWebsetExportCreated   EventsListParamsTypes = "webset.export.created"
	EventsListParamsTypesWebsetIdle            EventsListParamsTypes = "webset.idle"
	EventsListParamsTypesWebsetItemCreated     EventsListParamsTypes = "webset.item.created"
	EventsListParamsTypesWebsetItemEnriched    EventsListParamsTypes = "webset.item.enriched"
	EventsListParamsTypesWebsetPaused          EventsListParamsTypes = "webset.paused"
	EventsListParamsTypesWebsetSearchCanceled  EventsListParamsTypes = "webset.search.canceled"
	EventsListParamsTypesWebsetSearchCompleted EventsListParamsTypes = "webset.search.completed"
	EventsListParamsTypesWebsetSearchCreated   EventsListParamsTypes = "webset.search.created"
	EventsListParamsTypesWebsetSearchUpdated   EventsListParamsTypes = "webset.search.updated"
)

Defines values for EventsListParamsTypes.

func (EventsListParamsTypes) Valid added in v0.2.0

func (e EventsListParamsTypes) Valid() bool

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

type EventsListResponse added in v0.2.0

type EventsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListEventsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *EventsListResponse200Headers
}

func ParseEventsListResponse added in v0.2.0

func ParseEventsListResponse(rsp *http.Response) (*EventsListResponse, error)

ParseEventsListResponse parses an HTTP response from a EventsListWithResponse call

func (EventsListResponse) ContentType added in v0.2.0

func (r EventsListResponse) ContentType() string

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

func (EventsListResponse) GetBody added in v0.2.0

func (r EventsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EventsListResponse) GetJSON200 added in v0.2.0

func (r EventsListResponse) GetJSON200() *ListEventsResponse

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

func (EventsListResponse) Status added in v0.2.0

func (r EventsListResponse) Status() string

Status returns HTTPResponse.Status

func (EventsListResponse) StatusCode added in v0.2.0

func (r EventsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EventsListResponse200Headers added in v0.2.0

type EventsListResponse200Headers struct {
	XRequestId string
}

EventsListResponse200Headers the declared response headers of an HTTP 200 response for EventsList

type ExaBetaHeader added in v0.2.0

type ExaBetaHeader = string

ExaBetaHeader Comma-separated beta feature tokens for opting into experimental features.

type FindSimilarJSONRequestBody deprecated

type FindSimilarJSONRequestBody = FindSimilarRequest

FindSimilarJSONRequestBody defines body for FindSimilar for application/json ContentType.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type FindSimilarRequest added in v0.2.0

type FindSimilarRequest struct {
	Category            *FindSimilarRequestCategory `json:"category,omitempty"`
	Contents            *ContentsOptions            `json:"contents,omitempty"`
	EndCrawlDate        *time.Time                  `json:"endCrawlDate,omitempty"`
	EndPublishedDate    *time.Time                  `json:"endPublishedDate,omitempty"`
	ExcludeDomains      *[]string                   `json:"excludeDomains,omitempty"`
	ExcludeSourceDomain *bool                       `json:"excludeSourceDomain,omitempty"`

	// ExcludeText Deprecated. List of strings that must not be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase). Up to 50 strings, each up to 4096 characters. Ignored for the `company` and `people` categories.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ExcludeText    *[]string `json:"excludeText,omitempty"`
	IncludeDomains *[]string `json:"includeDomains,omitempty"`

	// IncludeText Deprecated. List of strings that must be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase), so a multi-word entry can match pages where its words appear separately. Up to 50 strings, each up to 4096 characters. Ignored for the `company` and `people` categories.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	IncludeText        *[]string  `json:"includeText,omitempty"`
	NumResults         *int       `json:"numResults,omitempty"`
	StartCrawlDate     *time.Time `json:"startCrawlDate,omitempty"`
	StartPublishedDate *time.Time `json:"startPublishedDate,omitempty"`

	// Url The url for which you would like to find similar links.
	Url string `json:"url"`
}

FindSimilarRequest defines model for FindSimilarRequest.

type FindSimilarRequestCategory added in v0.2.0

type FindSimilarRequestCategory string

FindSimilarRequestCategory A data category to focus on. Other strings are accepted and used as category hints. `people` and `company` return higher-quality people profiles and company pages. `publication` returns scholarly publications such as research papers, preprints, and journal articles, with metadata like authors, venue, and citations. With `company` or `people`, domain, URL, published-date, and text filters are ignored.

const (
	FindSimilarRequestCategoryCompany         FindSimilarRequestCategory = "company"
	FindSimilarRequestCategoryFinancialReport FindSimilarRequestCategory = "financial report"
	FindSimilarRequestCategoryNews            FindSimilarRequestCategory = "news"
	FindSimilarRequestCategoryPeople          FindSimilarRequestCategory = "people"
	FindSimilarRequestCategoryPersonalSite    FindSimilarRequestCategory = "personal site"
	FindSimilarRequestCategoryPublication     FindSimilarRequestCategory = "publication"
)

Defines values for FindSimilarRequestCategory.

func (FindSimilarRequestCategory) Valid added in v0.2.0

func (e FindSimilarRequestCategory) Valid() bool

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

type FindSimilarResponse

type FindSimilarResponse struct {
	// Context Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *string `json:"context,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput `json:"costDollars,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`

	// Results A list of search results containing title, URL, published date, and author.
	Results *[]FindSimilarResult `json:"results,omitempty"`

	// SearchTime Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency.
	SearchTime *float32 `json:"searchTime,omitempty"`
}

FindSimilarResponse defines model for FindSimilarResponse.

type FindSimilarResponse2

type FindSimilarResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FindSimilarResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *PaymentRequiredResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *TooManyRequestsResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailableResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *FindSimilarResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *FindSimilarResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *FindSimilarResponse2401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *FindSimilarResponse2402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *FindSimilarResponse2403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *FindSimilarResponse2429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *FindSimilarResponse2500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *FindSimilarResponse2503Headers
}

func ParseFindSimilarResponse2

func ParseFindSimilarResponse2(rsp *http.Response) (*FindSimilarResponse2, error)

ParseFindSimilarResponse2 parses an HTTP response from a FindSimilarWithResponse call

func (FindSimilarResponse2) ContentType

func (r FindSimilarResponse2) ContentType() string

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

func (FindSimilarResponse2) GetBody

func (r FindSimilarResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (FindSimilarResponse2) GetJSON200

func (r FindSimilarResponse2) GetJSON200() *FindSimilarResponse

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

func (FindSimilarResponse2) GetJSON400 added in v0.2.0

func (r FindSimilarResponse2) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (FindSimilarResponse2) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (FindSimilarResponse2) GetJSON402 added in v0.2.0

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (FindSimilarResponse2) GetJSON403 added in v0.2.0

func (r FindSimilarResponse2) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (FindSimilarResponse2) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (FindSimilarResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (FindSimilarResponse2) GetJSON503 added in v0.2.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (FindSimilarResponse2) Status

func (r FindSimilarResponse2) Status() string

Status returns HTTPResponse.Status

func (FindSimilarResponse2) StatusCode

func (r FindSimilarResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindSimilarResponse2200Headers added in v0.2.0

type FindSimilarResponse2200Headers struct {
	Deprecation *string
	XExaQueueMs *string
	XExaQueued  *string
	XRequestId  *string
}

FindSimilarResponse2200Headers the declared response headers of an HTTP 200 response for FindSimilar

type FindSimilarResponse2400Headers added in v0.2.0

type FindSimilarResponse2400Headers struct {
	XRequestId *string
}

FindSimilarResponse2400Headers the declared response headers of an HTTP 400 response for FindSimilar

type FindSimilarResponse2401Headers added in v0.2.0

type FindSimilarResponse2401Headers struct {
	XRequestId *string
}

FindSimilarResponse2401Headers the declared response headers of an HTTP 401 response for FindSimilar

type FindSimilarResponse2402Headers added in v0.2.0

type FindSimilarResponse2402Headers struct {
	XRequestId *string
}

FindSimilarResponse2402Headers the declared response headers of an HTTP 402 response for FindSimilar

type FindSimilarResponse2403Headers added in v0.2.0

type FindSimilarResponse2403Headers struct {
	XRequestId *string
}

FindSimilarResponse2403Headers the declared response headers of an HTTP 403 response for FindSimilar

type FindSimilarResponse2429Headers added in v0.2.0

type FindSimilarResponse2429Headers struct {
	XRequestId *string
}

FindSimilarResponse2429Headers the declared response headers of an HTTP 429 response for FindSimilar

type FindSimilarResponse2500Headers added in v0.2.0

type FindSimilarResponse2500Headers struct {
	XRequestId *string
}

FindSimilarResponse2500Headers the declared response headers of an HTTP 500 response for FindSimilar

type FindSimilarResponse2503Headers added in v0.2.0

type FindSimilarResponse2503Headers struct {
	XRequestId *string
}

FindSimilarResponse2503Headers the declared response headers of an HTTP 503 response for FindSimilar

type FindSimilarResult added in v0.2.0

type FindSimilarResult struct {
	// Author If available, the author of the content.
	Author *string `json:"author,omitempty"`

	// Entities Structured entity data for company, person, publication, or product search results. Returned for supported entity-backed categories and for product listing pages.
	Entities *[]FindSimilarResult_Entities_Item `json:"entities,omitempty"`

	// Extras Results from extras. Each field is returned only when requested via contents.extras.
	Extras *struct {
		// CodeBlocks Array of code blocks from the search result.
		CodeBlocks *[]struct {
			// Source The language the code block is annotated with, if any.
			Source string `json:"source"`

			// Text The contents of the code block.
			Text string `json:"text"`
		} `json:"codeBlocks,omitempty"`

		// ImageLinks Array of image URLs from the search result.
		ImageLinks *[]string `json:"imageLinks,omitempty"`

		// Links Array of links from the search result.
		Links *[]string `json:"links,omitempty"`

		// RichImageLinks Array of images with their alt text, in the order the images appear on the page.
		RichImageLinks *[]struct {
			// Alt The alt text of the image, when the page provides one.
			Alt *string `json:"alt,omitempty"`

			// Url The URL of the image.
			Url string `json:"url"`
		} `json:"richImageLinks,omitempty"`

		// RichLinks Array of links with their anchor text, in the order they appear on the page.
		RichLinks *[]struct {
			// Anchor The anchor text of the link, when the page provides one.
			Anchor *string `json:"anchor,omitempty"`

			// Url The URL of the link.
			Url string `json:"url"`
		} `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`

	// Favicon The URL of the favicon for the search result's domain.
	Favicon *string `json:"favicon,omitempty"`

	// HighlightScores Array of cosine similarity scores for each highlighted snippet.
	HighlightScores *[]float32 `json:"highlightScores,omitempty"`

	// Highlights Array of highlights extracted from the search result content.
	Highlights *[]string `json:"highlights,omitempty"`

	// Id The temporary ID for the document. Useful for the /contents endpoint.
	Id *string `json:"id,omitempty"`

	// Image The URL of an image associated with the search result, if available.
	Image *string `json:"image,omitempty"`

	// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
	PublishedDate *time.Time `json:"publishedDate,omitempty"`

	// Score Similarity score between the source url and the result. Higher values mean more similar; the scale is not normalized, so compare scores only within a single response.
	Score *float32 `json:"score,omitempty"`

	// Subpages Array of subpages for the search result.
	Subpages *[]struct {
		// Author If available, the author of the content.
		Author *string `json:"author,omitempty"`

		// Favicon The URL of the favicon for the search result's domain.
		Favicon *string `json:"favicon,omitempty"`

		// Id The temporary ID for the document. Useful for the /contents endpoint.
		Id *string `json:"id,omitempty"`

		// Image The URL of an image associated with the search result, if available.
		Image *string `json:"image,omitempty"`

		// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
		PublishedDate *time.Time `json:"publishedDate,omitempty"`

		// Title The title of the search result.
		Title string `json:"title"`

		// Url The URL of the search result.
		Url string `json:"url"`
	} `json:"subpages,omitempty"`

	// Summary Summary of the webpage.
	Summary *string `json:"summary,omitempty"`

	// Text The full content text of the search result.
	Text *string `json:"text,omitempty"`

	// Title The title of the search result.
	Title string `json:"title"`

	// Url The URL of the search result.
	Url string `json:"url"`
}

FindSimilarResult defines model for FindSimilarResult.

type FindSimilarResult_Entities_Item added in v0.2.0

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

FindSimilarResult_Entities_Item defines model for FindSimilarResult.entities.Item.

func (FindSimilarResult_Entities_Item) AsSearchCompanyEntityOutput added in v0.2.0

func (t FindSimilarResult_Entities_Item) AsSearchCompanyEntityOutput() (SearchCompanyEntityOutput, error)

AsSearchCompanyEntityOutput returns the union data inside the FindSimilarResult_Entities_Item as a SearchCompanyEntityOutput

func (FindSimilarResult_Entities_Item) AsSearchPersonEntityOutput added in v0.2.0

func (t FindSimilarResult_Entities_Item) AsSearchPersonEntityOutput() (SearchPersonEntityOutput, error)

AsSearchPersonEntityOutput returns the union data inside the FindSimilarResult_Entities_Item as a SearchPersonEntityOutput

func (FindSimilarResult_Entities_Item) AsSearchPublicationEntityOutput added in v0.2.0

func (t FindSimilarResult_Entities_Item) AsSearchPublicationEntityOutput() (SearchPublicationEntityOutput, error)

AsSearchPublicationEntityOutput returns the union data inside the FindSimilarResult_Entities_Item as a SearchPublicationEntityOutput

func (FindSimilarResult_Entities_Item) Discriminator added in v0.2.0

func (t FindSimilarResult_Entities_Item) Discriminator() (string, error)

func (*FindSimilarResult_Entities_Item) FromSearchCompanyEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) FromSearchCompanyEntityOutput(v SearchCompanyEntityOutput) error

FromSearchCompanyEntityOutput overwrites any union data inside the FindSimilarResult_Entities_Item as the provided SearchCompanyEntityOutput

func (*FindSimilarResult_Entities_Item) FromSearchPersonEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) FromSearchPersonEntityOutput(v SearchPersonEntityOutput) error

FromSearchPersonEntityOutput overwrites any union data inside the FindSimilarResult_Entities_Item as the provided SearchPersonEntityOutput

func (*FindSimilarResult_Entities_Item) FromSearchPublicationEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) FromSearchPublicationEntityOutput(v SearchPublicationEntityOutput) error

FromSearchPublicationEntityOutput overwrites any union data inside the FindSimilarResult_Entities_Item as the provided SearchPublicationEntityOutput

func (FindSimilarResult_Entities_Item) MarshalJSON added in v0.2.0

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

func (*FindSimilarResult_Entities_Item) MergeSearchCompanyEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) MergeSearchCompanyEntityOutput(v SearchCompanyEntityOutput) error

MergeSearchCompanyEntityOutput performs a merge with any union data inside the FindSimilarResult_Entities_Item, using the provided SearchCompanyEntityOutput

func (*FindSimilarResult_Entities_Item) MergeSearchPersonEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) MergeSearchPersonEntityOutput(v SearchPersonEntityOutput) error

MergeSearchPersonEntityOutput performs a merge with any union data inside the FindSimilarResult_Entities_Item, using the provided SearchPersonEntityOutput

func (*FindSimilarResult_Entities_Item) MergeSearchPublicationEntityOutput added in v0.2.0

func (t *FindSimilarResult_Entities_Item) MergeSearchPublicationEntityOutput(v SearchPublicationEntityOutput) error

MergeSearchPublicationEntityOutput performs a merge with any union data inside the FindSimilarResult_Entities_Item, using the provided SearchPublicationEntityOutput

func (*FindSimilarResult_Entities_Item) UnmarshalJSON added in v0.2.0

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

func (FindSimilarResult_Entities_Item) ValueByDiscriminator added in v0.2.0

func (t FindSimilarResult_Entities_Item) ValueByDiscriminator() (interface{}, error)

type ForbiddenResponse added in v0.2.0

type ForbiddenResponse = ErrorResponse

ForbiddenResponse Standard error envelope returned by the Exa API for failed requests.

type GetAgentRunResponse added in v0.2.0

type GetAgentRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRun
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *AgentErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetAgentRunResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetAgentRunResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetAgentRunResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetAgentRunResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetAgentRunResponse404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAgentRunResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetAgentRunResponse500Headers
}

func ParseGetAgentRunResponse added in v0.2.0

func ParseGetAgentRunResponse(rsp *http.Response) (*GetAgentRunResponse, error)

ParseGetAgentRunResponse parses an HTTP response from a GetAgentRunWithResponse call

func (GetAgentRunResponse) ContentType added in v0.2.0

func (r GetAgentRunResponse) ContentType() string

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

func (GetAgentRunResponse) GetBody added in v0.2.0

func (r GetAgentRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAgentRunResponse) GetJSON200 added in v0.2.0

func (r GetAgentRunResponse) GetJSON200() *AgentRun

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

func (GetAgentRunResponse) GetJSON400 added in v0.2.0

func (r GetAgentRunResponse) GetJSON400() *AgentErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetAgentRunResponse) GetJSON401 added in v0.2.0

func (r GetAgentRunResponse) GetJSON401() *AgentErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetAgentRunResponse) GetJSON403 added in v0.2.0

func (r GetAgentRunResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetAgentRunResponse) GetJSON404 added in v0.2.0

func (r GetAgentRunResponse) GetJSON404() *AgentErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetAgentRunResponse) GetJSON429 added in v0.2.0

func (r GetAgentRunResponse) GetJSON429() *AgentErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetAgentRunResponse) GetJSON500 added in v0.2.0

func (r GetAgentRunResponse) GetJSON500() *AgentErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetAgentRunResponse) Status added in v0.2.0

func (r GetAgentRunResponse) Status() string

Status returns HTTPResponse.Status

func (GetAgentRunResponse) StatusCode added in v0.2.0

func (r GetAgentRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAgentRunResponse200Headers added in v0.2.0

type GetAgentRunResponse200Headers struct {
	XRequestId *string
}

GetAgentRunResponse200Headers the declared response headers of an HTTP 200 response for GetAgentRun

type GetAgentRunResponse400Headers added in v0.2.0

type GetAgentRunResponse400Headers struct {
	XRequestId *string
}

GetAgentRunResponse400Headers the declared response headers of an HTTP 400 response for GetAgentRun

type GetAgentRunResponse401Headers added in v0.2.0

type GetAgentRunResponse401Headers struct {
	XRequestId *string
}

GetAgentRunResponse401Headers the declared response headers of an HTTP 401 response for GetAgentRun

type GetAgentRunResponse403Headers added in v0.2.0

type GetAgentRunResponse403Headers struct {
	XRequestId *string
}

GetAgentRunResponse403Headers the declared response headers of an HTTP 403 response for GetAgentRun

type GetAgentRunResponse404Headers added in v0.2.0

type GetAgentRunResponse404Headers struct {
	XRequestId *string
}

GetAgentRunResponse404Headers the declared response headers of an HTTP 404 response for GetAgentRun

type GetAgentRunResponse429Headers added in v0.2.0

type GetAgentRunResponse429Headers struct {
	XRequestId *string
}

GetAgentRunResponse429Headers the declared response headers of an HTTP 429 response for GetAgentRun

type GetAgentRunResponse500Headers added in v0.2.0

type GetAgentRunResponse500Headers struct {
	XRequestId *string
}

GetAgentRunResponse500Headers the declared response headers of an HTTP 500 response for GetAgentRun

type GetBatchParams added in v0.2.0

type GetBatchParams struct {
	// ExaBeta Required beta token for the Batch API.
	ExaBeta GetBatchParamsExaBeta `json:"Exa-Beta"`
}

GetBatchParams defines parameters for GetBatch.

type GetBatchParamsExaBeta added in v0.2.0

type GetBatchParamsExaBeta string

GetBatchParamsExaBeta defines parameters for GetBatch.

const (
	GetBatchParamsExaBetaBatches20260606 GetBatchParamsExaBeta = "batches-2026-06-06"
)

Defines values for GetBatchParamsExaBeta.

func (GetBatchParamsExaBeta) Valid added in v0.2.0

func (e GetBatchParamsExaBeta) Valid() bool

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

type GetBatchResponse added in v0.2.0

type GetBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Batch
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetBatchResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetBatchResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetBatchResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetBatchResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetBatchResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetBatchResponse500Headers
}

func ParseGetBatchResponse added in v0.2.0

func ParseGetBatchResponse(rsp *http.Response) (*GetBatchResponse, error)

ParseGetBatchResponse parses an HTTP response from a GetBatchWithResponse call

func (GetBatchResponse) ContentType added in v0.2.0

func (r GetBatchResponse) ContentType() string

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

func (GetBatchResponse) GetBody added in v0.2.0

func (r GetBatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetBatchResponse) GetJSON200 added in v0.2.0

func (r GetBatchResponse) GetJSON200() *Batch

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

func (GetBatchResponse) GetJSON400 added in v0.2.0

func (r GetBatchResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetBatchResponse) GetJSON401 added in v0.2.0

func (r GetBatchResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetBatchResponse) GetJSON403 added in v0.2.0

func (r GetBatchResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetBatchResponse) GetJSON404 added in v0.2.0

func (r GetBatchResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetBatchResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetBatchResponse) Status added in v0.2.0

func (r GetBatchResponse) Status() string

Status returns HTTPResponse.Status

func (GetBatchResponse) StatusCode added in v0.2.0

func (r GetBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBatchResponse200Headers added in v0.2.0

type GetBatchResponse200Headers struct {
	XRequestId *string
}

GetBatchResponse200Headers the declared response headers of an HTTP 200 response for GetBatch

type GetBatchResponse400Headers added in v0.2.0

type GetBatchResponse400Headers struct {
	XRequestId *string
}

GetBatchResponse400Headers the declared response headers of an HTTP 400 response for GetBatch

type GetBatchResponse401Headers added in v0.2.0

type GetBatchResponse401Headers struct {
	XRequestId *string
}

GetBatchResponse401Headers the declared response headers of an HTTP 401 response for GetBatch

type GetBatchResponse403Headers added in v0.2.0

type GetBatchResponse403Headers struct {
	XRequestId *string
}

GetBatchResponse403Headers the declared response headers of an HTTP 403 response for GetBatch

type GetBatchResponse404Headers added in v0.2.0

type GetBatchResponse404Headers struct {
	XRequestId *string
}

GetBatchResponse404Headers the declared response headers of an HTTP 404 response for GetBatch

type GetBatchResponse500Headers added in v0.2.0

type GetBatchResponse500Headers struct {
	XRequestId *string
}

GetBatchResponse500Headers the declared response headers of an HTTP 500 response for GetBatch

type GetContents402JSONResponseBody added in v0.2.0

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

GetContents402JSONResponseBody defines parameters for GetContents.

func (GetContents402JSONResponseBody) AsErrorResponse added in v0.2.0

func (t GetContents402JSONResponseBody) AsErrorResponse() (ErrorResponse, error)

AsErrorResponse returns the union data inside the GetContents402JSONResponseBody as a ErrorResponse

func (GetContents402JSONResponseBody) AsX402PaymentChallenge added in v0.2.0

func (t GetContents402JSONResponseBody) AsX402PaymentChallenge() (X402PaymentChallenge, error)

AsX402PaymentChallenge returns the union data inside the GetContents402JSONResponseBody as a X402PaymentChallenge

func (*GetContents402JSONResponseBody) FromErrorResponse added in v0.2.0

func (t *GetContents402JSONResponseBody) FromErrorResponse(v ErrorResponse) error

FromErrorResponse overwrites any union data inside the GetContents402JSONResponseBody as the provided ErrorResponse

func (*GetContents402JSONResponseBody) FromX402PaymentChallenge added in v0.2.0

func (t *GetContents402JSONResponseBody) FromX402PaymentChallenge(v X402PaymentChallenge) error

FromX402PaymentChallenge overwrites any union data inside the GetContents402JSONResponseBody as the provided X402PaymentChallenge

func (GetContents402JSONResponseBody) MarshalJSON added in v0.2.0

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

func (*GetContents402JSONResponseBody) MergeErrorResponse added in v0.2.0

func (t *GetContents402JSONResponseBody) MergeErrorResponse(v ErrorResponse) error

MergeErrorResponse performs a merge with any union data inside the GetContents402JSONResponseBody, using the provided ErrorResponse

func (*GetContents402JSONResponseBody) MergeX402PaymentChallenge added in v0.2.0

func (t *GetContents402JSONResponseBody) MergeX402PaymentChallenge(v X402PaymentChallenge) error

MergeX402PaymentChallenge performs a merge with any union data inside the GetContents402JSONResponseBody, using the provided X402PaymentChallenge

func (*GetContents402JSONResponseBody) UnmarshalJSON added in v0.2.0

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

type GetContentsJSONRequestBody

type GetContentsJSONRequestBody = ContentsRequest

GetContentsJSONRequestBody defines body for GetContents for application/json ContentType.

type GetContentsResponse

type GetContentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ContentsResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *GetContents402JSONResponseBody
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *TooManyRequestsResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailableResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetContentsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetContentsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetContentsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetContentsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetContentsResponse403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetContentsResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetContentsResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetContentsResponse503Headers
}

func ParseGetContentsResponse

func ParseGetContentsResponse(rsp *http.Response) (*GetContentsResponse, error)

ParseGetContentsResponse parses an HTTP response from a GetContentsWithResponse call

func (GetContentsResponse) ContentType

func (r GetContentsResponse) ContentType() string

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

func (GetContentsResponse) GetBody

func (r GetContentsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetContentsResponse) GetJSON200

func (r GetContentsResponse) GetJSON200() *ContentsResponse

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

func (GetContentsResponse) GetJSON400 added in v0.2.0

func (r GetContentsResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetContentsResponse) GetJSON401 added in v0.2.0

func (r GetContentsResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetContentsResponse) GetJSON402 added in v0.2.0

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetContentsResponse) GetJSON403 added in v0.2.0

func (r GetContentsResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetContentsResponse) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetContentsResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetContentsResponse) GetJSON503 added in v0.2.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetContentsResponse) Status

func (r GetContentsResponse) Status() string

Status returns HTTPResponse.Status

func (GetContentsResponse) StatusCode

func (r GetContentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetContentsResponse200Headers added in v0.2.0

type GetContentsResponse200Headers struct {
	XExaQueueMs *string
	XExaQueued  *string
	XRequestId  *string
}

GetContentsResponse200Headers the declared response headers of an HTTP 200 response for GetContents

type GetContentsResponse400Headers added in v0.2.0

type GetContentsResponse400Headers struct {
	XRequestId *string
}

GetContentsResponse400Headers the declared response headers of an HTTP 400 response for GetContents

type GetContentsResponse401Headers added in v0.2.0

type GetContentsResponse401Headers struct {
	XRequestId *string
}

GetContentsResponse401Headers the declared response headers of an HTTP 401 response for GetContents

type GetContentsResponse402Headers added in v0.2.0

type GetContentsResponse402Headers struct {
	XRequestId *string
}

GetContentsResponse402Headers the declared response headers of an HTTP 402 response for GetContents

type GetContentsResponse403Headers added in v0.2.0

type GetContentsResponse403Headers struct {
	XRequestId *string
}

GetContentsResponse403Headers the declared response headers of an HTTP 403 response for GetContents

type GetContentsResponse429Headers added in v0.2.0

type GetContentsResponse429Headers struct {
	XRequestId *string
}

GetContentsResponse429Headers the declared response headers of an HTTP 429 response for GetContents

type GetContentsResponse500Headers added in v0.2.0

type GetContentsResponse500Headers struct {
	XRequestId *string
}

GetContentsResponse500Headers the declared response headers of an HTTP 500 response for GetContents

type GetContentsResponse503Headers added in v0.2.0

type GetContentsResponse503Headers struct {
	XRequestId *string
}

GetContentsResponse503Headers the declared response headers of an HTTP 503 response for GetContents

type GetMonitorResponse added in v0.2.0

type GetMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SearchMonitor
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMonitorResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetMonitorResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetMonitorResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetMonitorResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetMonitorResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetMonitorResponse500Headers
}

func ParseGetMonitorResponse added in v0.2.0

func ParseGetMonitorResponse(rsp *http.Response) (*GetMonitorResponse, error)

ParseGetMonitorResponse parses an HTTP response from a GetMonitorWithResponse call

func (GetMonitorResponse) ContentType added in v0.2.0

func (r GetMonitorResponse) ContentType() string

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

func (GetMonitorResponse) GetBody added in v0.2.0

func (r GetMonitorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMonitorResponse) GetJSON200 added in v0.2.0

func (r GetMonitorResponse) GetJSON200() *SearchMonitor

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

func (GetMonitorResponse) GetJSON400 added in v0.2.0

func (r GetMonitorResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMonitorResponse) GetJSON401 added in v0.2.0

func (r GetMonitorResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMonitorResponse) GetJSON403 added in v0.2.0

func (r GetMonitorResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMonitorResponse) GetJSON404 added in v0.2.0

func (r GetMonitorResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetMonitorResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetMonitorResponse) Status added in v0.2.0

func (r GetMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (GetMonitorResponse) StatusCode added in v0.2.0

func (r GetMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonitorResponse200Headers added in v0.2.0

type GetMonitorResponse200Headers struct {
	XRequestId *string
}

GetMonitorResponse200Headers the declared response headers of an HTTP 200 response for GetMonitor

type GetMonitorResponse400Headers added in v0.2.0

type GetMonitorResponse400Headers struct {
	XRequestId *string
}

GetMonitorResponse400Headers the declared response headers of an HTTP 400 response for GetMonitor

type GetMonitorResponse401Headers added in v0.2.0

type GetMonitorResponse401Headers struct {
	XRequestId *string
}

GetMonitorResponse401Headers the declared response headers of an HTTP 401 response for GetMonitor

type GetMonitorResponse403Headers added in v0.2.0

type GetMonitorResponse403Headers struct {
	XRequestId *string
}

GetMonitorResponse403Headers the declared response headers of an HTTP 403 response for GetMonitor

type GetMonitorResponse404Headers added in v0.2.0

type GetMonitorResponse404Headers struct {
	XRequestId *string
}

GetMonitorResponse404Headers the declared response headers of an HTTP 404 response for GetMonitor

type GetMonitorResponse500Headers added in v0.2.0

type GetMonitorResponse500Headers struct {
	XRequestId *string
}

GetMonitorResponse500Headers the declared response headers of an HTTP 500 response for GetMonitor

type GetRunResponse added in v0.2.0

type GetRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SearchMonitorRun
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRunResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetRunResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetRunResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetRunResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetRunResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetRunResponse500Headers
}

func ParseGetRunResponse added in v0.2.0

func ParseGetRunResponse(rsp *http.Response) (*GetRunResponse, error)

ParseGetRunResponse parses an HTTP response from a GetRunWithResponse call

func (GetRunResponse) ContentType added in v0.2.0

func (r GetRunResponse) ContentType() string

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

func (GetRunResponse) GetBody added in v0.2.0

func (r GetRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRunResponse) GetJSON200 added in v0.2.0

func (r GetRunResponse) GetJSON200() *SearchMonitorRun

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

func (GetRunResponse) GetJSON400 added in v0.2.0

func (r GetRunResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRunResponse) GetJSON401 added in v0.2.0

func (r GetRunResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRunResponse) GetJSON403 added in v0.2.0

func (r GetRunResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRunResponse) GetJSON404 added in v0.2.0

func (r GetRunResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRunResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetRunResponse) Status added in v0.2.0

func (r GetRunResponse) Status() string

Status returns HTTPResponse.Status

func (GetRunResponse) StatusCode added in v0.2.0

func (r GetRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRunResponse200Headers added in v0.2.0

type GetRunResponse200Headers struct {
	XRequestId *string
}

GetRunResponse200Headers the declared response headers of an HTTP 200 response for GetRun

type GetRunResponse400Headers added in v0.2.0

type GetRunResponse400Headers struct {
	XRequestId *string
}

GetRunResponse400Headers the declared response headers of an HTTP 400 response for GetRun

type GetRunResponse401Headers added in v0.2.0

type GetRunResponse401Headers struct {
	XRequestId *string
}

GetRunResponse401Headers the declared response headers of an HTTP 401 response for GetRun

type GetRunResponse403Headers added in v0.2.0

type GetRunResponse403Headers struct {
	XRequestId *string
}

GetRunResponse403Headers the declared response headers of an HTTP 403 response for GetRun

type GetRunResponse404Headers added in v0.2.0

type GetRunResponse404Headers struct {
	XRequestId *string
}

GetRunResponse404Headers the declared response headers of an HTTP 404 response for GetRun

type GetRunResponse500Headers added in v0.2.0

type GetRunResponse500Headers struct {
	XRequestId *string
}

GetRunResponse500Headers the declared response headers of an HTTP 500 response for GetRun

type GetWebsetResponse added in v0.2.0

type GetWebsetResponse struct {
	// CreatedAt The date and time the webset was created
	CreatedAt time.Time `json:"createdAt"`

	// DashboardUrl The URL to view the webset in the Exa dashboard
	DashboardUrl string `json:"dashboardUrl"`

	// Enrichments The Enrichments to apply to the Webset Items.
	Enrichments []WebsetEnrichment `json:"enrichments"`

	// Excludes The Excludes sources (existing imports or websets) that apply to all operations within this Webset. Any results found within these sources will be omitted across all search and import operations.
	Excludes *[]struct {
		Id     string                          `json:"id"`
		Source GetWebsetResponseExcludesSource `json:"source"`
	} `json:"excludes,omitempty"`

	// ExternalId The external identifier for the webset
	ExternalId string `json:"externalId"`

	// Id The unique identifier for the webset
	Id string `json:"id"`

	// Imports Imports that have been performed on the webset.
	Imports []Import `json:"imports"`

	// Items When expand query parameter contains `items`, this will contain the items in the webset
	Items *[]WebsetItem `json:"items,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Monitors The Monitors for the Webset.
	Monitors []Monitor `json:"monitors"`

	// Object The type of object
	Object GetWebsetResponseObject `json:"object"`

	// Searches The searches that have been performed on the webset.
	Searches []WebsetSearch `json:"searches"`

	// Status The status of the webset
	Status GetWebsetResponseStatus `json:"status"`

	// Title The title of the webset
	Title string `json:"title"`

	// UpdatedAt The date and time the webset was updated
	UpdatedAt time.Time `json:"updatedAt"`
}

GetWebsetResponse defines model for GetWebsetResponse.

type GetWebsetResponseExcludesSource added in v0.2.0

type GetWebsetResponseExcludesSource string

GetWebsetResponseExcludesSource defines model for GetWebsetResponse.Excludes.Source.

const (
	GetWebsetResponseExcludesSourceImport GetWebsetResponseExcludesSource = "import"
	GetWebsetResponseExcludesSourceWebset GetWebsetResponseExcludesSource = "webset"
)

Defines values for GetWebsetResponseExcludesSource.

func (GetWebsetResponseExcludesSource) Valid added in v0.2.0

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

type GetWebsetResponseObject added in v0.2.0

type GetWebsetResponseObject string

GetWebsetResponseObject The type of object

const (
	GetWebsetResponseObjectWebset GetWebsetResponseObject = "webset"
)

Defines values for GetWebsetResponseObject.

func (GetWebsetResponseObject) Valid added in v0.2.0

func (e GetWebsetResponseObject) Valid() bool

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

type GetWebsetResponseStatus added in v0.2.0

type GetWebsetResponseStatus string

GetWebsetResponseStatus The status of the webset

const (
	GetWebsetResponseStatusIdle    GetWebsetResponseStatus = "idle"
	GetWebsetResponseStatusPaused  GetWebsetResponseStatus = "paused"
	GetWebsetResponseStatusPending GetWebsetResponseStatus = "pending"
	GetWebsetResponseStatusRunning GetWebsetResponseStatus = "running"
)

Defines values for GetWebsetResponseStatus.

func (GetWebsetResponseStatus) Valid added in v0.2.0

func (e GetWebsetResponseStatus) Valid() bool

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

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Import added in v0.2.0

type Import struct {
	// Count The number of entities in the import
	Count float32 `json:"count"`

	// CreatedAt When the import was created
	CreatedAt time.Time `json:"createdAt"`
	Entity    Entity    `json:"entity"`

	// FailedAt When the import failed
	FailedAt time.Time `json:"failedAt"`

	// FailedMessage A human readable message of the import failure
	FailedMessage string `json:"failedMessage"`

	// FailedReason The reason the import failed
	FailedReason ImportFailedReason `json:"failedReason"`

	// Format The format of the import.
	Format ImportFormat `json:"format"`

	// Id The unique identifier for the Import
	Id string `json:"id"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata map[string]string `json:"metadata"`

	// Object The type of object
	Object ImportObject `json:"object"`

	// Status The status of the Import
	Status ImportStatus `json:"status"`

	// Title The title of the import
	Title string `json:"title"`

	// UpdatedAt When the import was last updated
	UpdatedAt time.Time `json:"updatedAt"`
}

Import defines model for Import.

type ImportFailedReason added in v0.2.0

type ImportFailedReason string

ImportFailedReason The reason the import failed

const (
	ImportFailedReasonInvalidFileContent ImportFailedReason = "invalid_file_content"
	ImportFailedReasonInvalidFormat      ImportFailedReason = "invalid_format"
	ImportFailedReasonMissingIdentifier  ImportFailedReason = "missing_identifier"
)

Defines values for ImportFailedReason.

func (ImportFailedReason) Valid added in v0.2.0

func (e ImportFailedReason) Valid() bool

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

type ImportFormat added in v0.2.0

type ImportFormat string

ImportFormat The format of the import.

const (
	ImportFormatCsv    ImportFormat = "csv"
	ImportFormatWebset ImportFormat = "webset"
)

Defines values for ImportFormat.

func (ImportFormat) Valid added in v0.2.0

func (e ImportFormat) Valid() bool

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

type ImportObject added in v0.2.0

type ImportObject string

ImportObject The type of object

const (
	ImportObjectImport ImportObject = "import"
)

Defines values for ImportObject.

func (ImportObject) Valid added in v0.2.0

func (e ImportObject) Valid() bool

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

type ImportStatus added in v0.2.0

type ImportStatus string

ImportStatus The status of the Import

const (
	ImportStatusCanceled   ImportStatus = "canceled"
	ImportStatusCompleted  ImportStatus = "completed"
	ImportStatusFailed     ImportStatus = "failed"
	ImportStatusPending    ImportStatus = "pending"
	ImportStatusProcessing ImportStatus = "processing"
)

Defines values for ImportStatus.

func (ImportStatus) Valid added in v0.2.0

func (e ImportStatus) Valid() bool

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

type ImportsCreateJSONRequestBody added in v0.2.0

type ImportsCreateJSONRequestBody = CreateImportParameters

ImportsCreateJSONRequestBody defines body for ImportsCreate for application/json ContentType.

type ImportsCreateResponse added in v0.2.0

type ImportsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CreateImportResponse
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *ImportsCreateResponse201Headers
}

func ParseImportsCreateResponse added in v0.2.0

func ParseImportsCreateResponse(rsp *http.Response) (*ImportsCreateResponse, error)

ParseImportsCreateResponse parses an HTTP response from a ImportsCreateWithResponse call

func (ImportsCreateResponse) ContentType added in v0.2.0

func (r ImportsCreateResponse) ContentType() string

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

func (ImportsCreateResponse) GetBody added in v0.2.0

func (r ImportsCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportsCreateResponse) GetJSON201 added in v0.2.0

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ImportsCreateResponse) Status added in v0.2.0

func (r ImportsCreateResponse) Status() string

Status returns HTTPResponse.Status

func (ImportsCreateResponse) StatusCode added in v0.2.0

func (r ImportsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ImportsCreateResponse201Headers added in v0.2.0

type ImportsCreateResponse201Headers struct {
	XRequestId string
}

ImportsCreateResponse201Headers the declared response headers of an HTTP 201 response for ImportsCreate

type ImportsDeleteResponse added in v0.2.0

type ImportsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Import
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ImportsDeleteResponse200Headers
}

func ParseImportsDeleteResponse added in v0.2.0

func ParseImportsDeleteResponse(rsp *http.Response) (*ImportsDeleteResponse, error)

ParseImportsDeleteResponse parses an HTTP response from a ImportsDeleteWithResponse call

func (ImportsDeleteResponse) ContentType added in v0.2.0

func (r ImportsDeleteResponse) ContentType() string

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

func (ImportsDeleteResponse) GetBody added in v0.2.0

func (r ImportsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportsDeleteResponse) GetJSON200 added in v0.2.0

func (r ImportsDeleteResponse) GetJSON200() *Import

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

func (ImportsDeleteResponse) Status added in v0.2.0

func (r ImportsDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (ImportsDeleteResponse) StatusCode added in v0.2.0

func (r ImportsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ImportsDeleteResponse200Headers added in v0.2.0

type ImportsDeleteResponse200Headers struct {
	XRequestId string
}

ImportsDeleteResponse200Headers the declared response headers of an HTTP 200 response for ImportsDelete

type ImportsGetResponse added in v0.2.0

type ImportsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Import
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ImportsGetResponse200Headers
}

func ParseImportsGetResponse added in v0.2.0

func ParseImportsGetResponse(rsp *http.Response) (*ImportsGetResponse, error)

ParseImportsGetResponse parses an HTTP response from a ImportsGetWithResponse call

func (ImportsGetResponse) ContentType added in v0.2.0

func (r ImportsGetResponse) ContentType() string

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

func (ImportsGetResponse) GetBody added in v0.2.0

func (r ImportsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportsGetResponse) GetJSON200 added in v0.2.0

func (r ImportsGetResponse) GetJSON200() *Import

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

func (ImportsGetResponse) Status added in v0.2.0

func (r ImportsGetResponse) Status() string

Status returns HTTPResponse.Status

func (ImportsGetResponse) StatusCode added in v0.2.0

func (r ImportsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ImportsGetResponse200Headers added in v0.2.0

type ImportsGetResponse200Headers struct {
	XRequestId string
}

ImportsGetResponse200Headers the declared response headers of an HTTP 200 response for ImportsGet

type ImportsListParams added in v0.2.0

type ImportsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ImportsListParams defines parameters for ImportsList.

type ImportsListResponse added in v0.2.0

type ImportsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListImportsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ImportsListResponse200Headers
}

func ParseImportsListResponse added in v0.2.0

func ParseImportsListResponse(rsp *http.Response) (*ImportsListResponse, error)

ParseImportsListResponse parses an HTTP response from a ImportsListWithResponse call

func (ImportsListResponse) ContentType added in v0.2.0

func (r ImportsListResponse) ContentType() string

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

func (ImportsListResponse) GetBody added in v0.2.0

func (r ImportsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportsListResponse) GetJSON200 added in v0.2.0

func (r ImportsListResponse) GetJSON200() *ListImportsResponse

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

func (ImportsListResponse) Status added in v0.2.0

func (r ImportsListResponse) Status() string

Status returns HTTPResponse.Status

func (ImportsListResponse) StatusCode added in v0.2.0

func (r ImportsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ImportsListResponse200Headers added in v0.2.0

type ImportsListResponse200Headers struct {
	XRequestId string
}

ImportsListResponse200Headers the declared response headers of an HTTP 200 response for ImportsList

type ImportsUpdateJSONRequestBody added in v0.2.0

type ImportsUpdateJSONRequestBody = UpdateImport

ImportsUpdateJSONRequestBody defines body for ImportsUpdate for application/json ContentType.

type ImportsUpdateResponse added in v0.2.0

type ImportsUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Import
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ImportsUpdateResponse200Headers
}

func ParseImportsUpdateResponse added in v0.2.0

func ParseImportsUpdateResponse(rsp *http.Response) (*ImportsUpdateResponse, error)

ParseImportsUpdateResponse parses an HTTP response from a ImportsUpdateWithResponse call

func (ImportsUpdateResponse) ContentType added in v0.2.0

func (r ImportsUpdateResponse) ContentType() string

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

func (ImportsUpdateResponse) GetBody added in v0.2.0

func (r ImportsUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportsUpdateResponse) GetJSON200 added in v0.2.0

func (r ImportsUpdateResponse) GetJSON200() *Import

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

func (ImportsUpdateResponse) Status added in v0.2.0

func (r ImportsUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (ImportsUpdateResponse) StatusCode added in v0.2.0

func (r ImportsUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ImportsUpdateResponse200Headers added in v0.2.0

type ImportsUpdateResponse200Headers struct {
	XRequestId string
}

ImportsUpdateResponse200Headers the declared response headers of an HTTP 200 response for ImportsUpdate

type InternalServerErrorResponse added in v0.2.0

type InternalServerErrorResponse = ErrorResponse

InternalServerErrorResponse Standard error envelope returned by the Exa API for failed requests.

type JsonValue added in v0.2.0

type JsonValue = json.RawMessage

JsonValue Any JSON value.

type LastEventId added in v0.2.0

type LastEventId = string

LastEventId For SSE replay, return only events after this event ID.

type ListAgentRunEventsParams added in v0.2.0

type ListAgentRunEventsParams struct {
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Accept Set to `text/event-stream` to receive server-sent events.
	Accept *ListAgentRunEventsParamsAccept `json:"Accept,omitempty"`

	// LastEventID For SSE replay, return only events after this event ID.
	LastEventID *LastEventId `json:"Last-Event-ID,omitempty"`
}

ListAgentRunEventsParams defines parameters for ListAgentRunEvents.

type ListAgentRunEventsParamsAccept added in v0.2.0

type ListAgentRunEventsParamsAccept string

ListAgentRunEventsParamsAccept defines parameters for ListAgentRunEvents.

const (
	ListAgentRunEventsParamsAcceptApplicationjson ListAgentRunEventsParamsAccept = "application/json"
	ListAgentRunEventsParamsAcceptTexteventStream ListAgentRunEventsParamsAccept = "text/event-stream"
)

Defines values for ListAgentRunEventsParamsAccept.

func (ListAgentRunEventsParamsAccept) Valid added in v0.2.0

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

type ListAgentRunEventsResponse added in v0.2.0

type ListAgentRunEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRunEventList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *AgentErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListAgentRunEventsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListAgentRunEventsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListAgentRunEventsResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListAgentRunEventsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListAgentRunEventsResponse404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAgentRunEventsResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ListAgentRunEventsResponse500Headers
}

func ParseListAgentRunEventsResponse added in v0.2.0

func ParseListAgentRunEventsResponse(rsp *http.Response) (*ListAgentRunEventsResponse, error)

ParseListAgentRunEventsResponse parses an HTTP response from a ListAgentRunEventsWithResponse call

func (ListAgentRunEventsResponse) ContentType added in v0.2.0

func (r ListAgentRunEventsResponse) ContentType() string

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

func (ListAgentRunEventsResponse) GetBody added in v0.2.0

func (r ListAgentRunEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAgentRunEventsResponse) GetJSON200 added in v0.2.0

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

func (ListAgentRunEventsResponse) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListAgentRunEventsResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListAgentRunEventsResponse) GetJSON403 added in v0.2.0

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListAgentRunEventsResponse) GetJSON404 added in v0.2.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListAgentRunEventsResponse) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListAgentRunEventsResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListAgentRunEventsResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (ListAgentRunEventsResponse) StatusCode added in v0.2.0

func (r ListAgentRunEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAgentRunEventsResponse200Headers added in v0.2.0

type ListAgentRunEventsResponse200Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse200Headers the declared response headers of an HTTP 200 response for ListAgentRunEvents

type ListAgentRunEventsResponse400Headers added in v0.2.0

type ListAgentRunEventsResponse400Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse400Headers the declared response headers of an HTTP 400 response for ListAgentRunEvents

type ListAgentRunEventsResponse401Headers added in v0.2.0

type ListAgentRunEventsResponse401Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse401Headers the declared response headers of an HTTP 401 response for ListAgentRunEvents

type ListAgentRunEventsResponse403Headers added in v0.2.0

type ListAgentRunEventsResponse403Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse403Headers the declared response headers of an HTTP 403 response for ListAgentRunEvents

type ListAgentRunEventsResponse404Headers added in v0.2.0

type ListAgentRunEventsResponse404Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse404Headers the declared response headers of an HTTP 404 response for ListAgentRunEvents

type ListAgentRunEventsResponse429Headers added in v0.2.0

type ListAgentRunEventsResponse429Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse429Headers the declared response headers of an HTTP 429 response for ListAgentRunEvents

type ListAgentRunEventsResponse500Headers added in v0.2.0

type ListAgentRunEventsResponse500Headers struct {
	XRequestId *string
}

ListAgentRunEventsResponse500Headers the declared response headers of an HTTP 500 response for ListAgentRunEvents

type ListAgentRunsParams added in v0.2.0

type ListAgentRunsParams struct {
	Limit  *int        `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *AgentRunId `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListAgentRunsParams defines parameters for ListAgentRuns.

type ListAgentRunsResponse added in v0.2.0

type ListAgentRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRunList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListAgentRunsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListAgentRunsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListAgentRunsResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListAgentRunsResponse403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ListAgentRunsResponse500Headers
}

func ParseListAgentRunsResponse added in v0.2.0

func ParseListAgentRunsResponse(rsp *http.Response) (*ListAgentRunsResponse, error)

ParseListAgentRunsResponse parses an HTTP response from a ListAgentRunsWithResponse call

func (ListAgentRunsResponse) ContentType added in v0.2.0

func (r ListAgentRunsResponse) ContentType() string

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

func (ListAgentRunsResponse) GetBody added in v0.2.0

func (r ListAgentRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAgentRunsResponse) GetJSON200 added in v0.2.0

func (r ListAgentRunsResponse) GetJSON200() *AgentRunList

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

func (ListAgentRunsResponse) GetJSON400 added in v0.2.0

func (r ListAgentRunsResponse) GetJSON400() *AgentErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListAgentRunsResponse) GetJSON401 added in v0.2.0

func (r ListAgentRunsResponse) GetJSON401() *AgentErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListAgentRunsResponse) GetJSON403 added in v0.2.0

func (r ListAgentRunsResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListAgentRunsResponse) GetJSON500 added in v0.2.0

func (r ListAgentRunsResponse) GetJSON500() *AgentErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListAgentRunsResponse) Status added in v0.2.0

func (r ListAgentRunsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAgentRunsResponse) StatusCode added in v0.2.0

func (r ListAgentRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAgentRunsResponse200Headers added in v0.2.0

type ListAgentRunsResponse200Headers struct {
	XRequestId *string
}

ListAgentRunsResponse200Headers the declared response headers of an HTTP 200 response for ListAgentRuns

type ListAgentRunsResponse400Headers added in v0.2.0

type ListAgentRunsResponse400Headers struct {
	XRequestId *string
}

ListAgentRunsResponse400Headers the declared response headers of an HTTP 400 response for ListAgentRuns

type ListAgentRunsResponse401Headers added in v0.2.0

type ListAgentRunsResponse401Headers struct {
	XRequestId *string
}

ListAgentRunsResponse401Headers the declared response headers of an HTTP 401 response for ListAgentRuns

type ListAgentRunsResponse403Headers added in v0.2.0

type ListAgentRunsResponse403Headers struct {
	XRequestId *string
}

ListAgentRunsResponse403Headers the declared response headers of an HTTP 403 response for ListAgentRuns

type ListAgentRunsResponse500Headers added in v0.2.0

type ListAgentRunsResponse500Headers struct {
	XRequestId *string
}

ListAgentRunsResponse500Headers the declared response headers of an HTTP 500 response for ListAgentRuns

type ListBatchesParams added in v0.2.0

type ListBatchesParams struct {
	Cursor *string                  `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int                     `form:"limit,omitempty" json:"limit,omitempty"`
	Status *ListBatchesParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// ExaBeta Required beta token for the Batch API.
	ExaBeta ListBatchesParamsExaBeta `json:"Exa-Beta"`
}

ListBatchesParams defines parameters for ListBatches.

type ListBatchesParamsExaBeta added in v0.2.0

type ListBatchesParamsExaBeta string

ListBatchesParamsExaBeta defines parameters for ListBatches.

const (
	ListBatchesParamsExaBetaBatches20260606 ListBatchesParamsExaBeta = "batches-2026-06-06"
)

Defines values for ListBatchesParamsExaBeta.

func (ListBatchesParamsExaBeta) Valid added in v0.2.0

func (e ListBatchesParamsExaBeta) Valid() bool

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

type ListBatchesParamsStatus added in v0.2.0

type ListBatchesParamsStatus string

ListBatchesParamsStatus defines parameters for ListBatches.

const (
	ListBatchesParamsStatusCompleted ListBatchesParamsStatus = "completed"
)

Defines values for ListBatchesParamsStatus.

func (ListBatchesParamsStatus) Valid added in v0.2.0

func (e ListBatchesParamsStatus) Valid() bool

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

type ListBatchesResponse added in v0.2.0

type ListBatchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BatchList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListBatchesResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListBatchesResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListBatchesResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListBatchesResponse403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ListBatchesResponse500Headers
}

func ParseListBatchesResponse added in v0.2.0

func ParseListBatchesResponse(rsp *http.Response) (*ListBatchesResponse, error)

ParseListBatchesResponse parses an HTTP response from a ListBatchesWithResponse call

func (ListBatchesResponse) ContentType added in v0.2.0

func (r ListBatchesResponse) ContentType() string

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

func (ListBatchesResponse) GetBody added in v0.2.0

func (r ListBatchesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListBatchesResponse) GetJSON200 added in v0.2.0

func (r ListBatchesResponse) GetJSON200() *BatchList

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

func (ListBatchesResponse) GetJSON400 added in v0.2.0

func (r ListBatchesResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListBatchesResponse) GetJSON401 added in v0.2.0

func (r ListBatchesResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListBatchesResponse) GetJSON403 added in v0.2.0

func (r ListBatchesResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListBatchesResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListBatchesResponse) Status added in v0.2.0

func (r ListBatchesResponse) Status() string

Status returns HTTPResponse.Status

func (ListBatchesResponse) StatusCode added in v0.2.0

func (r ListBatchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBatchesResponse200Headers added in v0.2.0

type ListBatchesResponse200Headers struct {
	XRequestId *string
}

ListBatchesResponse200Headers the declared response headers of an HTTP 200 response for ListBatches

type ListBatchesResponse400Headers added in v0.2.0

type ListBatchesResponse400Headers struct {
	XRequestId *string
}

ListBatchesResponse400Headers the declared response headers of an HTTP 400 response for ListBatches

type ListBatchesResponse401Headers added in v0.2.0

type ListBatchesResponse401Headers struct {
	XRequestId *string
}

ListBatchesResponse401Headers the declared response headers of an HTTP 401 response for ListBatches

type ListBatchesResponse403Headers added in v0.2.0

type ListBatchesResponse403Headers struct {
	XRequestId *string
}

ListBatchesResponse403Headers the declared response headers of an HTTP 403 response for ListBatches

type ListBatchesResponse500Headers added in v0.2.0

type ListBatchesResponse500Headers struct {
	XRequestId *string
}

ListBatchesResponse500Headers the declared response headers of an HTTP 500 response for ListBatches

type ListEventsResponse added in v0.2.0

type ListEventsResponse struct {
	// Data The list of events
	Data []Event `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListEventsResponse defines model for ListEventsResponse.

type ListImportsResponse added in v0.2.0

type ListImportsResponse struct {
	// Data The list of imports
	Data []Import `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListImportsResponse defines model for ListImportsResponse.

type ListMonitorRunsResponse added in v0.2.0

type ListMonitorRunsResponse struct {
	// Data The list of monitor runs
	Data []MonitorRun `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListMonitorRunsResponse defines model for ListMonitorRunsResponse.

type ListMonitorsParams added in v0.2.0

type ListMonitorsParams struct {
	Status *ListMonitorsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	Cursor *string                   `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int                      `form:"limit,omitempty" json:"limit,omitempty"`
	Name   *string                   `form:"name,omitempty" json:"name,omitempty"`

	// Metadata Filter monitors by metadata key-value pairs (exact match, AND semantics). Use bracket notation: `metadata[key]=value`.
	Metadata *map[string]string `json:"metadata,omitempty"`
}

ListMonitorsParams defines parameters for ListMonitors.

type ListMonitorsParamsStatus added in v0.2.0

type ListMonitorsParamsStatus string

ListMonitorsParamsStatus defines parameters for ListMonitors.

const (
	ListMonitorsParamsStatusActive   ListMonitorsParamsStatus = "active"
	ListMonitorsParamsStatusDisabled ListMonitorsParamsStatus = "disabled"
	ListMonitorsParamsStatusPaused   ListMonitorsParamsStatus = "paused"
)

Defines values for ListMonitorsParamsStatus.

func (ListMonitorsParamsStatus) Valid added in v0.2.0

func (e ListMonitorsParamsStatus) Valid() bool

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

type ListMonitorsResponse added in v0.2.0

type ListMonitorsResponse struct {
	// Data The list of monitors
	Data []Monitor `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListMonitorsResponse defines model for ListMonitorsResponse.

type ListMonitorsResponse2 added in v0.2.0

type ListMonitorsResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListSearchMonitorsResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListMonitorsResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListMonitorsResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListMonitorsResponse2401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListMonitorsResponse2403Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ListMonitorsResponse2500Headers
}

func ParseListMonitorsResponse2 added in v0.2.0

func ParseListMonitorsResponse2(rsp *http.Response) (*ListMonitorsResponse2, error)

ParseListMonitorsResponse2 parses an HTTP response from a ListMonitorsWithResponse call

func (ListMonitorsResponse2) ContentType added in v0.2.0

func (r ListMonitorsResponse2) ContentType() string

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

func (ListMonitorsResponse2) GetBody added in v0.2.0

func (r ListMonitorsResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMonitorsResponse2) GetJSON200 added in v0.2.0

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

func (ListMonitorsResponse2) GetJSON400 added in v0.2.0

func (r ListMonitorsResponse2) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListMonitorsResponse2) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListMonitorsResponse2) GetJSON403 added in v0.2.0

func (r ListMonitorsResponse2) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListMonitorsResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListMonitorsResponse2) Status added in v0.2.0

func (r ListMonitorsResponse2) Status() string

Status returns HTTPResponse.Status

func (ListMonitorsResponse2) StatusCode added in v0.2.0

func (r ListMonitorsResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMonitorsResponse2200Headers added in v0.2.0

type ListMonitorsResponse2200Headers struct {
	XRequestId *string
}

ListMonitorsResponse2200Headers the declared response headers of an HTTP 200 response for ListMonitors

type ListMonitorsResponse2400Headers added in v0.2.0

type ListMonitorsResponse2400Headers struct {
	XRequestId *string
}

ListMonitorsResponse2400Headers the declared response headers of an HTTP 400 response for ListMonitors

type ListMonitorsResponse2401Headers added in v0.2.0

type ListMonitorsResponse2401Headers struct {
	XRequestId *string
}

ListMonitorsResponse2401Headers the declared response headers of an HTTP 401 response for ListMonitors

type ListMonitorsResponse2403Headers added in v0.2.0

type ListMonitorsResponse2403Headers struct {
	XRequestId *string
}

ListMonitorsResponse2403Headers the declared response headers of an HTTP 403 response for ListMonitors

type ListMonitorsResponse2500Headers added in v0.2.0

type ListMonitorsResponse2500Headers struct {
	XRequestId *string
}

ListMonitorsResponse2500Headers the declared response headers of an HTTP 500 response for ListMonitors

type ListRunsParams added in v0.2.0

type ListRunsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

ListRunsParams defines parameters for ListRuns.

type ListRunsResponse added in v0.2.0

type ListRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListSearchMonitorRunsResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListRunsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListRunsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListRunsResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListRunsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListRunsResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ListRunsResponse500Headers
}

func ParseListRunsResponse added in v0.2.0

func ParseListRunsResponse(rsp *http.Response) (*ListRunsResponse, error)

ParseListRunsResponse parses an HTTP response from a ListRunsWithResponse call

func (ListRunsResponse) ContentType added in v0.2.0

func (r ListRunsResponse) ContentType() string

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

func (ListRunsResponse) GetBody added in v0.2.0

func (r ListRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRunsResponse) GetJSON200 added in v0.2.0

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

func (ListRunsResponse) GetJSON400 added in v0.2.0

func (r ListRunsResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRunsResponse) GetJSON401 added in v0.2.0

func (r ListRunsResponse) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRunsResponse) GetJSON403 added in v0.2.0

func (r ListRunsResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRunsResponse) GetJSON404 added in v0.2.0

func (r ListRunsResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRunsResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListRunsResponse) Status added in v0.2.0

func (r ListRunsResponse) Status() string

Status returns HTTPResponse.Status

func (ListRunsResponse) StatusCode added in v0.2.0

func (r ListRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRunsResponse200Headers added in v0.2.0

type ListRunsResponse200Headers struct {
	XRequestId *string
}

ListRunsResponse200Headers the declared response headers of an HTTP 200 response for ListRuns

type ListRunsResponse400Headers added in v0.2.0

type ListRunsResponse400Headers struct {
	XRequestId *string
}

ListRunsResponse400Headers the declared response headers of an HTTP 400 response for ListRuns

type ListRunsResponse401Headers added in v0.2.0

type ListRunsResponse401Headers struct {
	XRequestId *string
}

ListRunsResponse401Headers the declared response headers of an HTTP 401 response for ListRuns

type ListRunsResponse403Headers added in v0.2.0

type ListRunsResponse403Headers struct {
	XRequestId *string
}

ListRunsResponse403Headers the declared response headers of an HTTP 403 response for ListRuns

type ListRunsResponse404Headers added in v0.2.0

type ListRunsResponse404Headers struct {
	XRequestId *string
}

ListRunsResponse404Headers the declared response headers of an HTTP 404 response for ListRuns

type ListRunsResponse500Headers added in v0.2.0

type ListRunsResponse500Headers struct {
	XRequestId *string
}

ListRunsResponse500Headers the declared response headers of an HTTP 500 response for ListRuns

type ListSearchMonitorRunsResponse added in v0.2.0

type ListSearchMonitorRunsResponse struct {
	// Data The list of runs
	Data []SearchMonitorRun `json:"data"`

	// HasMore Whether there are more results
	HasMore bool `json:"hasMore"`

	// NextCursor Cursor for the next page
	NextCursor *string `json:"nextCursor,omitempty"`
}

ListSearchMonitorRunsResponse defines model for ListSearchMonitorRunsResponse.

type ListSearchMonitorsResponse added in v0.2.0

type ListSearchMonitorsResponse struct {
	// Data The list of monitors
	Data []SearchMonitor `json:"data"`

	// HasMore Whether there are more results
	HasMore bool `json:"hasMore"`

	// NextCursor Cursor for the next page
	NextCursor *string `json:"nextCursor,omitempty"`
}

ListSearchMonitorsResponse defines model for ListSearchMonitorsResponse.

type ListWebhookAttemptsResponse added in v0.2.0

type ListWebhookAttemptsResponse struct {
	// Data The list of webhook attempts
	Data []WebhookAttempt `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListWebhookAttemptsResponse defines model for ListWebhookAttemptsResponse.

type ListWebhooksResponse added in v0.2.0

type ListWebhooksResponse struct {
	// Data The list of webhooks
	Data []Webhook `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListWebhooksResponse defines model for ListWebhooksResponse.

type ListWebsetItemResponse added in v0.2.0

type ListWebsetItemResponse struct {
	// Data The list of webset items
	Data []WebsetItem `json:"data"`

	// HasMore Whether there are more Items to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of Items
	NextCursor string `json:"nextCursor"`
}

ListWebsetItemResponse defines model for ListWebsetItemResponse.

type ListWebsetsResponse added in v0.2.0

type ListWebsetsResponse struct {
	// Data The list of websets
	Data []Webset `json:"data"`

	// HasMore Whether there are more results to paginate through
	HasMore bool `json:"hasMore"`

	// NextCursor The cursor to paginate through the next set of results
	NextCursor string `json:"nextCursor"`
}

ListWebsetsResponse defines model for ListWebsetsResponse.

type Monitor added in v0.2.0

type Monitor struct {
	Behavior MonitorBehavior `json:"behavior"`
	Cadence  MonitorCadence  `json:"cadence"`

	// CreatedAt When the monitor was created
	CreatedAt time.Time `json:"createdAt"`

	// Id The unique identifier for the Monitor
	Id      string     `json:"id"`
	LastRun MonitorRun `json:"lastRun"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata map[string]string `json:"metadata"`

	// NextRunAt Date and time when the next run will occur in
	NextRunAt time.Time `json:"nextRunAt"`

	// Object The type of object
	Object MonitorObject `json:"object"`

	// Status The status of the Monitor
	Status MonitorStatus `json:"status"`

	// UpdatedAt When the monitor was last updated
	UpdatedAt time.Time `json:"updatedAt"`

	// WebsetId The id of the Webset the Monitor belongs to
	WebsetId string `json:"websetId"`
}

Monitor defines model for Monitor.

type MonitorBehavior added in v0.2.0

type MonitorBehavior struct {
	// Config Search parameters for each Monitor run.
	Config struct {
		Behavior *WebsetSearchBehavior `json:"behavior,omitempty"`

		// Count The maximum number of results to find
		Count float32 `json:"count"`

		// Criteria The criteria to search for. By default, the criteria from the last search is used.
		Criteria *[]struct {
			Description string `json:"description"`
		} `json:"criteria,omitempty"`
		Entity *Entity `json:"entity,omitempty"`

		// Query The query to search for. By default, the query from the last search is used.
		Query *string `json:"query,omitempty"`
	} `json:"config"`

	// Type Configure the Monitor to find new Items matching your search criteria
	Type MonitorBehaviorType `json:"type"`
}

MonitorBehavior defines model for MonitorBehavior.

type MonitorBehaviorType added in v0.2.0

type MonitorBehaviorType string

MonitorBehaviorType Configure the Monitor to find new Items matching your search criteria

const (
	MonitorBehaviorTypeSearch MonitorBehaviorType = "search"
)

Defines values for MonitorBehaviorType.

func (MonitorBehaviorType) Valid added in v0.2.0

func (e MonitorBehaviorType) Valid() bool

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

type MonitorCadence added in v0.2.0

type MonitorCadence struct {
	// Cron Cron expression for monitor cadence (must be a valid Unix cron with 5 fields). The schedule must trigger at most once per day.
	Cron string `json:"cron"`

	// Timezone IANA timezone (e.g., "America/New_York")
	Timezone *string `json:"timezone,omitempty"`
}

MonitorCadence defines model for MonitorCadence.

type MonitorObject added in v0.2.0

type MonitorObject string

MonitorObject The type of object

const (
	MonitorObjectMonitor MonitorObject = "monitor"
)

Defines values for MonitorObject.

func (MonitorObject) Valid added in v0.2.0

func (e MonitorObject) Valid() bool

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

type MonitorRun added in v0.2.0

type MonitorRun struct {
	// CanceledAt When the run was canceled
	CanceledAt time.Time `json:"canceledAt"`

	// CompletedAt When the run completed
	CompletedAt time.Time `json:"completedAt"`

	// CreatedAt When the run was created
	CreatedAt time.Time `json:"createdAt"`

	// FailedAt When the run failed
	FailedAt time.Time `json:"failedAt"`

	// FailedReason The reason the run failed
	FailedReason string `json:"failedReason"`

	// Id The unique identifier for the Monitor Run
	Id string `json:"id"`

	// MonitorId The monitor that the run is associated with
	MonitorId string `json:"monitorId"`

	// Object The type of object
	Object MonitorRunObject `json:"object"`

	// Status The status of the Monitor Run
	Status MonitorRunStatus `json:"status"`

	// Type The type of the Monitor Run
	Type MonitorRunType `json:"type"`

	// UpdatedAt When the run was last updated
	UpdatedAt time.Time `json:"updatedAt"`
}

MonitorRun defines model for MonitorRun.

type MonitorRunObject added in v0.2.0

type MonitorRunObject string

MonitorRunObject The type of object

const (
	MonitorRunObjectMonitorRun MonitorRunObject = "monitor_run"
)

Defines values for MonitorRunObject.

func (MonitorRunObject) Valid added in v0.2.0

func (e MonitorRunObject) Valid() bool

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

type MonitorRunStatus added in v0.2.0

type MonitorRunStatus string

MonitorRunStatus The status of the Monitor Run

const (
	MonitorRunStatusCanceled  MonitorRunStatus = "canceled"
	MonitorRunStatusCompleted MonitorRunStatus = "completed"
	MonitorRunStatusCreated   MonitorRunStatus = "created"
	MonitorRunStatusFailed    MonitorRunStatus = "failed"
	MonitorRunStatusRunning   MonitorRunStatus = "running"
)

Defines values for MonitorRunStatus.

func (MonitorRunStatus) Valid added in v0.2.0

func (e MonitorRunStatus) Valid() bool

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

type MonitorRunType added in v0.2.0

type MonitorRunType string

MonitorRunType The type of the Monitor Run

const (
	MonitorRunTypeRefresh MonitorRunType = "refresh"
	MonitorRunTypeSearch  MonitorRunType = "search"
)

Defines values for MonitorRunType.

func (MonitorRunType) Valid added in v0.2.0

func (e MonitorRunType) Valid() bool

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

type MonitorStatus added in v0.2.0

type MonitorStatus string

MonitorStatus The status of the Monitor

const (
	MonitorStatusDisabled MonitorStatus = "disabled"
	MonitorStatusEnabled  MonitorStatus = "enabled"
)

Defines values for MonitorStatus.

func (MonitorStatus) Valid added in v0.2.0

func (e MonitorStatus) Valid() bool

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

type MonitorsCreateJSONRequestBody added in v0.2.0

type MonitorsCreateJSONRequestBody = CreateMonitorParameters

MonitorsCreateJSONRequestBody defines body for MonitorsCreate for application/json ContentType.

type MonitorsCreateResponse added in v0.2.0

type MonitorsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Monitor
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *MonitorsCreateResponse201Headers
}

func ParseMonitorsCreateResponse added in v0.2.0

func ParseMonitorsCreateResponse(rsp *http.Response) (*MonitorsCreateResponse, error)

ParseMonitorsCreateResponse parses an HTTP response from a MonitorsCreateWithResponse call

func (MonitorsCreateResponse) ContentType added in v0.2.0

func (r MonitorsCreateResponse) ContentType() string

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

func (MonitorsCreateResponse) GetBody added in v0.2.0

func (r MonitorsCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsCreateResponse) GetJSON201 added in v0.2.0

func (r MonitorsCreateResponse) GetJSON201() *Monitor

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (MonitorsCreateResponse) Status added in v0.2.0

func (r MonitorsCreateResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsCreateResponse) StatusCode added in v0.2.0

func (r MonitorsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsCreateResponse201Headers added in v0.2.0

type MonitorsCreateResponse201Headers struct {
	XRequestId string
}

MonitorsCreateResponse201Headers the declared response headers of an HTTP 201 response for MonitorsCreate

type MonitorsDeleteResponse added in v0.2.0

type MonitorsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Monitor
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsDeleteResponse200Headers
}

func ParseMonitorsDeleteResponse added in v0.2.0

func ParseMonitorsDeleteResponse(rsp *http.Response) (*MonitorsDeleteResponse, error)

ParseMonitorsDeleteResponse parses an HTTP response from a MonitorsDeleteWithResponse call

func (MonitorsDeleteResponse) ContentType added in v0.2.0

func (r MonitorsDeleteResponse) ContentType() string

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

func (MonitorsDeleteResponse) GetBody added in v0.2.0

func (r MonitorsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsDeleteResponse) GetJSON200 added in v0.2.0

func (r MonitorsDeleteResponse) GetJSON200() *Monitor

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

func (MonitorsDeleteResponse) Status added in v0.2.0

func (r MonitorsDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsDeleteResponse) StatusCode added in v0.2.0

func (r MonitorsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsDeleteResponse200Headers added in v0.2.0

type MonitorsDeleteResponse200Headers struct {
	XRequestId string
}

MonitorsDeleteResponse200Headers the declared response headers of an HTTP 200 response for MonitorsDelete

type MonitorsGetResponse added in v0.2.0

type MonitorsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Monitor
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsGetResponse200Headers
}

func ParseMonitorsGetResponse added in v0.2.0

func ParseMonitorsGetResponse(rsp *http.Response) (*MonitorsGetResponse, error)

ParseMonitorsGetResponse parses an HTTP response from a MonitorsGetWithResponse call

func (MonitorsGetResponse) ContentType added in v0.2.0

func (r MonitorsGetResponse) ContentType() string

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

func (MonitorsGetResponse) GetBody added in v0.2.0

func (r MonitorsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsGetResponse) GetJSON200 added in v0.2.0

func (r MonitorsGetResponse) GetJSON200() *Monitor

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

func (MonitorsGetResponse) Status added in v0.2.0

func (r MonitorsGetResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsGetResponse) StatusCode added in v0.2.0

func (r MonitorsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsGetResponse200Headers added in v0.2.0

type MonitorsGetResponse200Headers struct {
	XRequestId string
}

MonitorsGetResponse200Headers the declared response headers of an HTTP 200 response for MonitorsGet

type MonitorsListParams added in v0.2.0

type MonitorsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// WebsetId The id of the Webset to list monitors for
	WebsetId *string `form:"websetId,omitempty" json:"websetId,omitempty"`
}

MonitorsListParams defines parameters for MonitorsList.

type MonitorsListResponse added in v0.2.0

type MonitorsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListMonitorsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsListResponse200Headers
}

func ParseMonitorsListResponse added in v0.2.0

func ParseMonitorsListResponse(rsp *http.Response) (*MonitorsListResponse, error)

ParseMonitorsListResponse parses an HTTP response from a MonitorsListWithResponse call

func (MonitorsListResponse) ContentType added in v0.2.0

func (r MonitorsListResponse) ContentType() string

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

func (MonitorsListResponse) GetBody added in v0.2.0

func (r MonitorsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsListResponse) GetJSON200 added in v0.2.0

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

func (MonitorsListResponse) Status added in v0.2.0

func (r MonitorsListResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsListResponse) StatusCode added in v0.2.0

func (r MonitorsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsListResponse200Headers added in v0.2.0

type MonitorsListResponse200Headers struct {
	XRequestId string
}

MonitorsListResponse200Headers the declared response headers of an HTTP 200 response for MonitorsList

type MonitorsRunsGetResponse added in v0.2.0

type MonitorsRunsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MonitorRun
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsRunsGetResponse200Headers
}

func ParseMonitorsRunsGetResponse added in v0.2.0

func ParseMonitorsRunsGetResponse(rsp *http.Response) (*MonitorsRunsGetResponse, error)

ParseMonitorsRunsGetResponse parses an HTTP response from a MonitorsRunsGetWithResponse call

func (MonitorsRunsGetResponse) ContentType added in v0.2.0

func (r MonitorsRunsGetResponse) ContentType() string

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

func (MonitorsRunsGetResponse) GetBody added in v0.2.0

func (r MonitorsRunsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsRunsGetResponse) GetJSON200 added in v0.2.0

func (r MonitorsRunsGetResponse) GetJSON200() *MonitorRun

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

func (MonitorsRunsGetResponse) Status added in v0.2.0

func (r MonitorsRunsGetResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsRunsGetResponse) StatusCode added in v0.2.0

func (r MonitorsRunsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsRunsGetResponse200Headers added in v0.2.0

type MonitorsRunsGetResponse200Headers struct {
	XRequestId string
}

MonitorsRunsGetResponse200Headers the declared response headers of an HTTP 200 response for MonitorsRunsGet

type MonitorsRunsListResponse added in v0.2.0

type MonitorsRunsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListMonitorRunsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsRunsListResponse200Headers
}

func ParseMonitorsRunsListResponse added in v0.2.0

func ParseMonitorsRunsListResponse(rsp *http.Response) (*MonitorsRunsListResponse, error)

ParseMonitorsRunsListResponse parses an HTTP response from a MonitorsRunsListWithResponse call

func (MonitorsRunsListResponse) ContentType added in v0.2.0

func (r MonitorsRunsListResponse) ContentType() string

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

func (MonitorsRunsListResponse) GetBody added in v0.2.0

func (r MonitorsRunsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsRunsListResponse) GetJSON200 added in v0.2.0

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

func (MonitorsRunsListResponse) Status added in v0.2.0

func (r MonitorsRunsListResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsRunsListResponse) StatusCode added in v0.2.0

func (r MonitorsRunsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsRunsListResponse200Headers added in v0.2.0

type MonitorsRunsListResponse200Headers struct {
	XRequestId string
}

MonitorsRunsListResponse200Headers the declared response headers of an HTTP 200 response for MonitorsRunsList

type MonitorsUpdateJSONRequestBody added in v0.2.0

type MonitorsUpdateJSONRequestBody = UpdateMonitor

MonitorsUpdateJSONRequestBody defines body for MonitorsUpdate for application/json ContentType.

type MonitorsUpdateResponse added in v0.2.0

type MonitorsUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Monitor
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *MonitorsUpdateResponse200Headers
}

func ParseMonitorsUpdateResponse added in v0.2.0

func ParseMonitorsUpdateResponse(rsp *http.Response) (*MonitorsUpdateResponse, error)

ParseMonitorsUpdateResponse parses an HTTP response from a MonitorsUpdateWithResponse call

func (MonitorsUpdateResponse) ContentType added in v0.2.0

func (r MonitorsUpdateResponse) ContentType() string

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

func (MonitorsUpdateResponse) GetBody added in v0.2.0

func (r MonitorsUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MonitorsUpdateResponse) GetJSON200 added in v0.2.0

func (r MonitorsUpdateResponse) GetJSON200() *Monitor

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

func (MonitorsUpdateResponse) Status added in v0.2.0

func (r MonitorsUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (MonitorsUpdateResponse) StatusCode added in v0.2.0

func (r MonitorsUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MonitorsUpdateResponse200Headers added in v0.2.0

type MonitorsUpdateResponse200Headers struct {
	XRequestId string
}

MonitorsUpdateResponse200Headers the declared response headers of an HTTP 200 response for MonitorsUpdate

type NotFoundResponse added in v0.2.0

type NotFoundResponse = ErrorResponse

NotFoundResponse Standard error envelope returned by the Exa API for failed requests.

type OutputSchemaObject added in v0.2.0

type OutputSchemaObject struct {
	AllowAdditionalProperties *bool                  `json:"additionalProperties,omitempty"`
	Description               *string                `json:"description,omitempty"`
	Properties                *map[string]JsonValue  `json:"properties,omitempty"`
	Required                  *[]string              `json:"required,omitempty"`
	Type                      OutputSchemaObjectType `json:"type"`
	AdditionalProperties      map[string]JsonValue   `json:"-"`
}

OutputSchemaObject defines model for OutputSchemaObject.

func (OutputSchemaObject) Get added in v0.2.0

func (a OutputSchemaObject) Get(fieldName string) (value JsonValue, found bool)

Getter for additional properties for OutputSchemaObject. Returns the specified element and whether it was found

func (OutputSchemaObject) MarshalJSON added in v0.2.0

func (a OutputSchemaObject) MarshalJSON() ([]byte, error)

Override default JSON handling for OutputSchemaObject to handle AdditionalProperties

func (*OutputSchemaObject) Set added in v0.2.0

func (a *OutputSchemaObject) Set(fieldName string, value JsonValue)

Setter for additional properties for OutputSchemaObject

func (*OutputSchemaObject) UnmarshalJSON added in v0.2.0

func (a *OutputSchemaObject) UnmarshalJSON(b []byte) error

Override default JSON handling for OutputSchemaObject to handle AdditionalProperties

type OutputSchemaObjectType added in v0.2.0

type OutputSchemaObjectType string

OutputSchemaObjectType defines model for OutputSchemaObject.Type.

const (
	OutputSchemaObjectTypeObject OutputSchemaObjectType = "object"
)

Defines values for OutputSchemaObjectType.

func (OutputSchemaObjectType) Valid added in v0.2.0

func (e OutputSchemaObjectType) Valid() bool

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

type OutputSchemaText added in v0.2.0

type OutputSchemaText struct {
	Description *string              `json:"description,omitempty"`
	Type        OutputSchemaTextType `json:"type"`
}

OutputSchemaText defines model for OutputSchemaText.

type OutputSchemaTextOutput added in v0.2.0

type OutputSchemaTextOutput struct {
	Description *string                    `json:"description,omitempty"`
	Type        OutputSchemaTextOutputType `json:"type"`
}

OutputSchemaTextOutput defines model for OutputSchemaTextOutput.

type OutputSchemaTextOutputType added in v0.2.0

type OutputSchemaTextOutputType string

OutputSchemaTextOutputType defines model for OutputSchemaTextOutput.Type.

const (
	OutputSchemaTextOutputTypeText OutputSchemaTextOutputType = "text"
)

Defines values for OutputSchemaTextOutputType.

func (OutputSchemaTextOutputType) Valid added in v0.2.0

func (e OutputSchemaTextOutputType) Valid() bool

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

type OutputSchemaTextType added in v0.2.0

type OutputSchemaTextType string

OutputSchemaTextType defines model for OutputSchemaText.Type.

const (
	OutputSchemaTextTypeText OutputSchemaTextType = "text"
)

Defines values for OutputSchemaTextType.

func (OutputSchemaTextType) Valid added in v0.2.0

func (e OutputSchemaTextType) Valid() bool

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

type PaymentRequiredResponse added in v0.2.0

type PaymentRequiredResponse = ErrorResponse

PaymentRequiredResponse Standard error envelope returned by the Exa API for failed requests.

type PersonEntity

type PersonEntity struct {
	Type PersonEntityType `json:"type"`
}

PersonEntity defines model for PersonEntity.

type PersonEntityType

type PersonEntityType string

PersonEntityType defines model for PersonEntity.Type.

const (
	PersonEntityTypePerson PersonEntityType = "person"
)

Defines values for PersonEntityType.

func (PersonEntityType) Valid

func (e PersonEntityType) Valid() bool

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

type PreviewWebsetParameters added in v0.2.0

type PreviewWebsetParameters struct {
	Search struct {
		// Count When query parameter search=true, the number of preview items to return.
		Count  *float32 `json:"count,omitempty"`
		Entity *Entity  `json:"entity,omitempty"`

		// Query Natural language search query describing what you are looking for.
		//
		// Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results.
		//
		// Examples: Marketing agencies based in the US, that focus on consumer products. Get brands worked with and city, AI startups in Europe that raised Series A funding in 2024, SaaS companies with 50-200 employees in the fintech space
		Query string `json:"query"`
	} `json:"search"`
}

PreviewWebsetParameters defines model for PreviewWebsetParameters.

type PreviewWebsetResponse added in v0.2.0

type PreviewWebsetResponse struct {
	// Enrichments Detected enrichments from the query.
	Enrichments []struct {
		// Description Description of the enrichment.
		Description string `json:"description"`

		// Format Format of the enrichment.
		Format PreviewWebsetResponseEnrichmentsFormat `json:"format"`

		// Options When format is options, the options detected from the query.
		Options *[]struct {
			// Label Label of the option.
			Label string `json:"label"`
		} `json:"options,omitempty"`
	} `json:"enrichments"`

	// Items Preview items matching the search criteria.
	Items  []WebsetItemPreview `json:"items"`
	Search struct {
		// Criteria Detected criteria from the query.
		Criteria []struct {
			Description string `json:"description"`
		} `json:"criteria"`

		// Entity Detected entity from the query.
		Entity PreviewWebsetResponse_Search_Entity `json:"entity"`
	} `json:"search"`
}

PreviewWebsetResponse defines model for PreviewWebsetResponse.

type PreviewWebsetResponseEnrichmentsFormat added in v0.2.0

type PreviewWebsetResponseEnrichmentsFormat string

PreviewWebsetResponseEnrichmentsFormat Format of the enrichment.

const (
	PreviewWebsetResponseEnrichmentsFormatDate    PreviewWebsetResponseEnrichmentsFormat = "date"
	PreviewWebsetResponseEnrichmentsFormatEmail   PreviewWebsetResponseEnrichmentsFormat = "email"
	PreviewWebsetResponseEnrichmentsFormatNumber  PreviewWebsetResponseEnrichmentsFormat = "number"
	PreviewWebsetResponseEnrichmentsFormatOptions PreviewWebsetResponseEnrichmentsFormat = "options"
	PreviewWebsetResponseEnrichmentsFormatPhone   PreviewWebsetResponseEnrichmentsFormat = "phone"
	PreviewWebsetResponseEnrichmentsFormatText    PreviewWebsetResponseEnrichmentsFormat = "text"
	PreviewWebsetResponseEnrichmentsFormatUrl     PreviewWebsetResponseEnrichmentsFormat = "url"
)

Defines values for PreviewWebsetResponseEnrichmentsFormat.

func (PreviewWebsetResponseEnrichmentsFormat) Valid added in v0.2.0

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

type PreviewWebsetResponse_Search_Entity added in v0.2.0

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

PreviewWebsetResponse_Search_Entity Detected entity from the query.

func (PreviewWebsetResponse_Search_Entity) AsArticleEntity added in v0.2.0

AsArticleEntity returns the union data inside the PreviewWebsetResponse_Search_Entity as a ArticleEntity

func (PreviewWebsetResponse_Search_Entity) AsCompanyEntity added in v0.2.0

AsCompanyEntity returns the union data inside the PreviewWebsetResponse_Search_Entity as a CompanyEntity

func (PreviewWebsetResponse_Search_Entity) AsCustomEntity added in v0.2.0

AsCustomEntity returns the union data inside the PreviewWebsetResponse_Search_Entity as a CustomEntity

func (PreviewWebsetResponse_Search_Entity) AsPersonEntity added in v0.2.0

AsPersonEntity returns the union data inside the PreviewWebsetResponse_Search_Entity as a PersonEntity

func (PreviewWebsetResponse_Search_Entity) AsResearchPaperEntity added in v0.2.0

func (t PreviewWebsetResponse_Search_Entity) AsResearchPaperEntity() (ResearchPaperEntity, error)

AsResearchPaperEntity returns the union data inside the PreviewWebsetResponse_Search_Entity as a ResearchPaperEntity

func (*PreviewWebsetResponse_Search_Entity) FromArticleEntity added in v0.2.0

FromArticleEntity overwrites any union data inside the PreviewWebsetResponse_Search_Entity as the provided ArticleEntity

func (*PreviewWebsetResponse_Search_Entity) FromCompanyEntity added in v0.2.0

FromCompanyEntity overwrites any union data inside the PreviewWebsetResponse_Search_Entity as the provided CompanyEntity

func (*PreviewWebsetResponse_Search_Entity) FromCustomEntity added in v0.2.0

FromCustomEntity overwrites any union data inside the PreviewWebsetResponse_Search_Entity as the provided CustomEntity

func (*PreviewWebsetResponse_Search_Entity) FromPersonEntity added in v0.2.0

FromPersonEntity overwrites any union data inside the PreviewWebsetResponse_Search_Entity as the provided PersonEntity

func (*PreviewWebsetResponse_Search_Entity) FromResearchPaperEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) FromResearchPaperEntity(v ResearchPaperEntity) error

FromResearchPaperEntity overwrites any union data inside the PreviewWebsetResponse_Search_Entity as the provided ResearchPaperEntity

func (PreviewWebsetResponse_Search_Entity) MarshalJSON added in v0.2.0

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

func (*PreviewWebsetResponse_Search_Entity) MergeArticleEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) MergeArticleEntity(v ArticleEntity) error

MergeArticleEntity performs a merge with any union data inside the PreviewWebsetResponse_Search_Entity, using the provided ArticleEntity

func (*PreviewWebsetResponse_Search_Entity) MergeCompanyEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) MergeCompanyEntity(v CompanyEntity) error

MergeCompanyEntity performs a merge with any union data inside the PreviewWebsetResponse_Search_Entity, using the provided CompanyEntity

func (*PreviewWebsetResponse_Search_Entity) MergeCustomEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) MergeCustomEntity(v CustomEntity) error

MergeCustomEntity performs a merge with any union data inside the PreviewWebsetResponse_Search_Entity, using the provided CustomEntity

func (*PreviewWebsetResponse_Search_Entity) MergePersonEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) MergePersonEntity(v PersonEntity) error

MergePersonEntity performs a merge with any union data inside the PreviewWebsetResponse_Search_Entity, using the provided PersonEntity

func (*PreviewWebsetResponse_Search_Entity) MergeResearchPaperEntity added in v0.2.0

func (t *PreviewWebsetResponse_Search_Entity) MergeResearchPaperEntity(v ResearchPaperEntity) error

MergeResearchPaperEntity performs a merge with any union data inside the PreviewWebsetResponse_Search_Entity, using the provided ResearchPaperEntity

func (*PreviewWebsetResponse_Search_Entity) UnmarshalJSON added in v0.2.0

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

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResearchPaperEntity added in v0.2.0

type ResearchPaperEntity struct {
	Type ResearchPaperEntityType `json:"type"`
}

ResearchPaperEntity defines model for ResearchPaperEntity.

type ResearchPaperEntityType added in v0.2.0

type ResearchPaperEntityType string

ResearchPaperEntityType defines model for ResearchPaperEntity.Type.

const (
	ResearchPaperEntityTypeResearchPaper ResearchPaperEntityType = "research_paper"
)

Defines values for ResearchPaperEntityType.

func (ResearchPaperEntityType) Valid added in v0.2.0

func (e ResearchPaperEntityType) Valid() bool

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

type Search402JSONResponseBody added in v0.2.0

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

Search402JSONResponseBody defines parameters for Search.

func (Search402JSONResponseBody) AsErrorResponse added in v0.2.0

func (t Search402JSONResponseBody) AsErrorResponse() (ErrorResponse, error)

AsErrorResponse returns the union data inside the Search402JSONResponseBody as a ErrorResponse

func (Search402JSONResponseBody) AsX402PaymentChallenge added in v0.2.0

func (t Search402JSONResponseBody) AsX402PaymentChallenge() (X402PaymentChallenge, error)

AsX402PaymentChallenge returns the union data inside the Search402JSONResponseBody as a X402PaymentChallenge

func (*Search402JSONResponseBody) FromErrorResponse added in v0.2.0

func (t *Search402JSONResponseBody) FromErrorResponse(v ErrorResponse) error

FromErrorResponse overwrites any union data inside the Search402JSONResponseBody as the provided ErrorResponse

func (*Search402JSONResponseBody) FromX402PaymentChallenge added in v0.2.0

func (t *Search402JSONResponseBody) FromX402PaymentChallenge(v X402PaymentChallenge) error

FromX402PaymentChallenge overwrites any union data inside the Search402JSONResponseBody as the provided X402PaymentChallenge

func (Search402JSONResponseBody) MarshalJSON added in v0.2.0

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

func (*Search402JSONResponseBody) MergeErrorResponse added in v0.2.0

func (t *Search402JSONResponseBody) MergeErrorResponse(v ErrorResponse) error

MergeErrorResponse performs a merge with any union data inside the Search402JSONResponseBody, using the provided ErrorResponse

func (*Search402JSONResponseBody) MergeX402PaymentChallenge added in v0.2.0

func (t *Search402JSONResponseBody) MergeX402PaymentChallenge(v X402PaymentChallenge) error

MergeX402PaymentChallenge performs a merge with any union data inside the Search402JSONResponseBody, using the provided X402PaymentChallenge

func (*Search402JSONResponseBody) UnmarshalJSON added in v0.2.0

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

type SearchCompanyEntityOutput added in v0.2.0

type SearchCompanyEntityOutput struct {
	// Id Stable company entity identifier.
	Id string `json:"id"`

	// Properties Company-specific entity fields.
	Properties struct {
		// Description Short company description.
		Description *string `json:"description"`

		// Financials Company financial information.
		Financials *struct {
			// FundingLatestRound Most recent funding round, when available.
			FundingLatestRound *struct {
				// Amount Funding round amount in USD.
				Amount *float32 `json:"amount"`

				// Date Funding round date.
				Date *string `json:"date"`

				// Name Funding round name.
				Name *string `json:"name"`
			} `json:"fundingLatestRound"`

			// FundingTotal Total funding raised in USD.
			FundingTotal *float32 `json:"fundingTotal"`

			// RevenueAnnual Estimated annual revenue in USD.
			RevenueAnnual *float32 `json:"revenueAnnual"`
		} `json:"financials"`

		// FoundedYear Year the company was founded.
		FoundedYear *int `json:"foundedYear"`

		// Headquarters Company headquarters information.
		Headquarters *struct {
			// Address Company headquarters street address.
			Address *string `json:"address"`

			// City Company headquarters city.
			City *string `json:"city"`

			// Country Company headquarters country.
			Country *string `json:"country"`

			// PostalCode Company headquarters postal code.
			PostalCode *string `json:"postalCode"`
		} `json:"headquarters"`

		// Name Company name.
		Name *string `json:"name"`

		// Research Company research information.
		Research *struct {
			// Areas Ranked research areas, most active first.
			Areas []string `json:"areas"`

			// CitationCount Lifetime citation count.
			CitationCount *int `json:"citationCount"`

			// NotableWorks Most-cited notable works.
			NotableWorks []struct {
				// CitationCount Number of works citing this publication.
				CitationCount *int `json:"citationCount"`

				// Doi Digital Object Identifier.
				Doi *string `json:"doi"`

				// Id Resolved publication entity identifier, when available.
				Id *string `json:"id"`

				// Title Publication title.
				Title *string `json:"title"`

				// Type Publication type.
				Type *SearchCompanyEntityOutputPropertiesResearchNotableWorksType `json:"type"`

				// Venue Publication venue.
				Venue *string `json:"venue"`

				// Year Publication year.
				Year *int `json:"year"`
			} `json:"notableWorks"`

			// TopResearchers Researchers ordered by works produced at the organization.
			TopResearchers []struct {
				// CitationCount Number of citations for works produced at the organization.
				CitationCount *int `json:"citationCount"`

				// Person Referenced researcher.
				Person *struct {
					// Id Referenced person entity identifier.
					Id *string `json:"id"`

					// Name Referenced person name.
					Name *string `json:"name"`
				} `json:"person"`

				// WorksCount Number of works produced at the organization.
				WorksCount *int `json:"worksCount"`
			} `json:"topResearchers"`

			// WorksCount Number of works with an affiliated author.
			WorksCount *int `json:"worksCount"`
		} `json:"research"`

		// WebTraffic Company web traffic information.
		WebTraffic *struct {
			// AvgDurationSeconds Estimated average visit duration, in seconds.
			AvgDurationSeconds *float32 `json:"avgDurationSeconds"`

			// CountryRank Estimated website traffic rank within the company's primary country.
			CountryRank *int `json:"countryRank"`

			// History Historical monthly website visits.
			History []struct {
				// DateFrom Start month for this value, formatted as YYYY-MM.
				DateFrom string `json:"dateFrom"`

				// DateTo End month for this value, formatted as YYYY-MM.
				DateTo string `json:"dateTo"`

				// Value Estimated monthly visits for this period.
				Value float32 `json:"value"`
			} `json:"history"`

			// VisitsMonthly Estimated monthly website visits.
			VisitsMonthly *float32 `json:"visitsMonthly"`
		} `json:"webTraffic"`

		// Workforce Company workforce information.
		Workforce *struct {
			// Total Total estimated employee count.
			Total *float32 `json:"total"`
		} `json:"workforce"`
	} `json:"properties"`

	// Type Entity discriminator.
	Type SearchCompanyEntityOutputType `json:"type"`

	// Version Entity schema version.
	Version int `json:"version"`
}

SearchCompanyEntityOutput defines model for SearchCompanyEntityOutput.

type SearchCompanyEntityOutputPropertiesResearchNotableWorksType added in v0.2.0

type SearchCompanyEntityOutputPropertiesResearchNotableWorksType string

SearchCompanyEntityOutputPropertiesResearchNotableWorksType defines model for SearchCompanyEntityOutput.Properties.Research.NotableWorks.Type.

const (
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeArticle      SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "article"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeBook         SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "book"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeBookChapter  SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "book-chapter"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeDataset      SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "dataset"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeDissertation SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "dissertation"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypePreprint     SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "preprint"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeReport       SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "report"
	SearchCompanyEntityOutputPropertiesResearchNotableWorksTypeReview       SearchCompanyEntityOutputPropertiesResearchNotableWorksType = "review"
)

Defines values for SearchCompanyEntityOutputPropertiesResearchNotableWorksType.

func (SearchCompanyEntityOutputPropertiesResearchNotableWorksType) Valid added in v0.2.0

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

type SearchCompanyEntityOutputType added in v0.2.0

type SearchCompanyEntityOutputType string

SearchCompanyEntityOutputType Entity discriminator.

const (
	SearchCompanyEntityOutputTypeCompany SearchCompanyEntityOutputType = "company"
)

Defines values for SearchCompanyEntityOutputType.

func (SearchCompanyEntityOutputType) Valid added in v0.2.0

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

type SearchJSONRequestBody

type SearchJSONRequestBody = SearchRequest

SearchJSONRequestBody defines body for Search for application/json ContentType.

type SearchMonitor added in v0.2.0

type SearchMonitor struct {
	// CreatedAt When the monitor was created
	CreatedAt time.Time `json:"createdAt"`

	// Id The unique identifier for the monitor
	Id string `json:"id"`

	// Metadata Optional key-value metadata for your own tracking. Echoed back in webhook deliveries so you can route updates to systems like Slack.
	Metadata *map[string]string `json:"metadata"`

	// Name An optional display name
	Name *string `json:"name"`

	// NextRunAt When the next scheduled run will occur. Null if no trigger is set.
	NextRunAt *time.Time `json:"nextRunAt"`

	// OutputSchema Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.
	OutputSchema *SearchMonitorOutputSchemaOutput `json:"outputSchema"`
	Search       SearchMonitorSearchOutput        `json:"search"`

	// Status The status of the monitor. `active` monitors run on schedule and can be triggered manually. `paused` monitors can only be triggered manually. `disabled` monitors are auto-disabled after 10 consecutive authentication failures.
	Status SearchMonitorStatus `json:"status"`

	// Trigger The interval-based schedule for automatic runs. Null if no schedule is set.
	Trigger *SearchMonitorTriggerOutput `json:"trigger"`

	// UpdatedAt When the monitor was last updated
	UpdatedAt time.Time                  `json:"updatedAt"`
	Webhook   SearchMonitorWebhookOutput `json:"webhook"`
}

SearchMonitor defines model for SearchMonitor.

type SearchMonitorContents added in v0.2.0

type SearchMonitorContents struct {
	// Context Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *SearchMonitorContents_Context `json:"context,omitempty"`

	// Extras Extra parameters to pass.
	Extras *struct {
		CodeBlocks     *int `json:"codeBlocks,omitempty"`
		ImageLinks     *int `json:"imageLinks,omitempty"`
		Links          *int `json:"links,omitempty"`
		RichImageLinks *int `json:"richImageLinks,omitempty"`
		RichLinks      *int `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`

	// FilterEmptyResults Filter out results with no content
	FilterEmptyResults *bool `json:"filterEmptyResults,omitempty"`

	// Highlights Text snippets the LLM identifies as most relevant from each page.
	Highlights *SearchMonitorContents_Highlights `json:"highlights,omitempty"`

	// Livecrawl Crawl strategy for fetching page content
	Livecrawl *SearchMonitorContents_Livecrawl `json:"livecrawl,omitempty"`

	// LivecrawlTimeout The timeout for livecrawling in milliseconds.
	LivecrawlTimeout *int `json:"livecrawlTimeout,omitempty"`

	// MaxAgeHours Maximum age of cached content, in hours, up to 720. Cached content younger than this is used, and older pages are fetched fresh. `0` always fetches fresh content and `-1` always uses the cache. When omitted, cached content is used when available and pages without it are fetched live.
	MaxAgeHours *int `json:"maxAgeHours,omitempty"`

	// SubpageTarget Term to find specific subpages of search results. Can be a single string or an array of strings.
	SubpageTarget *SearchMonitorContents_SubpageTarget `json:"subpageTarget,omitempty"`

	// Subpages The number of subpages to crawl. The actual number crawled may be limited by system constraints.
	Subpages *int `json:"subpages,omitempty"`

	// Summary Return an LLM-generated summary. Pass `true` for defaults, or an object with `query`.
	Summary *SearchMonitorContents_Summary `json:"summary,omitempty"`

	// Text Text extraction options for each result.
	Text *SearchMonitorContents_Text `json:"text,omitempty"`
}

SearchMonitorContents Content extraction options applied to each search result. All fields are optional.

type SearchMonitorContentsContext0 deprecated added in v0.2.0

type SearchMonitorContentsContext0 = bool

SearchMonitorContentsContext0 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchMonitorContentsContext1 deprecated added in v0.2.0

type SearchMonitorContentsContext1 struct {
	// MaxCharacters Maximum character limit for the context string.
	MaxCharacters *int `json:"maxCharacters,omitempty"`
}

SearchMonitorContentsContext1 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchMonitorContentsHighlights0 added in v0.2.0

type SearchMonitorContentsHighlights0 = bool

SearchMonitorContentsHighlights0 If true, returns highlights with default settings. If false, disables highlights.

type SearchMonitorContentsHighlights1 added in v0.2.0

type SearchMonitorContentsHighlights1 struct {
	Dynamic          *bool                                      `json:"dynamic,omitempty"`
	HighlightsPerUrl *int                                       `json:"highlightsPerUrl,omitempty"`
	MaxCharacters    *int                                       `json:"maxCharacters,omitempty"`
	NumSentences     *int                                       `json:"numSentences,omitempty"`
	Query            *string                                    `json:"query,omitempty"`
	Verbosity        *SearchMonitorContentsHighlights1Verbosity `json:"verbosity,omitempty"`
}

SearchMonitorContentsHighlights1 Advanced options for steering highlight extraction. Pass highlights: true for the highest-quality default; supply this object only when you need to guide selection with your own query.

type SearchMonitorContentsHighlights1Verbosity added in v0.2.0

type SearchMonitorContentsHighlights1Verbosity string

SearchMonitorContentsHighlights1Verbosity Preset highlight length: `low`, `medium`, and `high` allocate progressively larger token budgets for the returned highlights. With highlights.dynamic, the preset sets a single shared budget across the whole result set instead of a per-URL budget. Exact budgets are tuned by Exa and may change. Not compatible with maxCharacters or numSentences. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `verbosity` without it are rejected.

const (
	SearchMonitorContentsHighlights1VerbosityHigh   SearchMonitorContentsHighlights1Verbosity = "high"
	SearchMonitorContentsHighlights1VerbosityLow    SearchMonitorContentsHighlights1Verbosity = "low"
	SearchMonitorContentsHighlights1VerbosityMedium SearchMonitorContentsHighlights1Verbosity = "medium"
)

Defines values for SearchMonitorContentsHighlights1Verbosity.

func (SearchMonitorContentsHighlights1Verbosity) Valid added in v0.2.0

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

type SearchMonitorContentsLivecrawl0 added in v0.2.0

type SearchMonitorContentsLivecrawl0 string

SearchMonitorContentsLivecrawl0 defines model for SearchMonitorContents.Livecrawl.0.

const (
	SearchMonitorContentsLivecrawl0Always    SearchMonitorContentsLivecrawl0 = "always"
	SearchMonitorContentsLivecrawl0Fallback  SearchMonitorContentsLivecrawl0 = "fallback"
	SearchMonitorContentsLivecrawl0Never     SearchMonitorContentsLivecrawl0 = "never"
	SearchMonitorContentsLivecrawl0Preferred SearchMonitorContentsLivecrawl0 = "preferred"
)

Defines values for SearchMonitorContentsLivecrawl0.

func (SearchMonitorContentsLivecrawl0) Valid added in v0.2.0

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

type SearchMonitorContentsLivecrawl1 added in v0.2.0

type SearchMonitorContentsLivecrawl1 string

SearchMonitorContentsLivecrawl1 defines model for SearchMonitorContents.Livecrawl.1.

const (
	SearchMonitorContentsLivecrawl1Auto SearchMonitorContentsLivecrawl1 = "auto"
)

Defines values for SearchMonitorContentsLivecrawl1.

func (SearchMonitorContentsLivecrawl1) Valid added in v0.2.0

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

type SearchMonitorContentsOutput added in v0.2.0

type SearchMonitorContentsOutput struct {
	// Context Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *SearchMonitorContentsOutput_Context `json:"context,omitempty"`

	// Extras Extra parameters to pass.
	Extras *struct {
		CodeBlocks     *int `json:"codeBlocks,omitempty"`
		ImageLinks     *int `json:"imageLinks,omitempty"`
		Links          *int `json:"links,omitempty"`
		RichImageLinks *int `json:"richImageLinks,omitempty"`
		RichLinks      *int `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`

	// FilterEmptyResults Filter out results with no content
	FilterEmptyResults *bool `json:"filterEmptyResults,omitempty"`

	// Highlights Text snippets the LLM identifies as most relevant from each page.
	Highlights *SearchMonitorContentsOutput_Highlights `json:"highlights,omitempty"`

	// Livecrawl Crawl strategy for fetching page content
	Livecrawl *SearchMonitorContentsOutput_Livecrawl `json:"livecrawl,omitempty"`

	// LivecrawlTimeout The timeout for livecrawling in milliseconds.
	LivecrawlTimeout *int `json:"livecrawlTimeout,omitempty"`

	// MaxAgeHours Maximum age of cached content, in hours, up to 720. Cached content younger than this is used, and older pages are fetched fresh. `0` always fetches fresh content and `-1` always uses the cache. When omitted, cached content is used when available and pages without it are fetched live.
	MaxAgeHours *int `json:"maxAgeHours,omitempty"`

	// SubpageTarget Term to find specific subpages of search results. Can be a single string or an array of strings.
	SubpageTarget *SearchMonitorContentsOutput_SubpageTarget `json:"subpageTarget,omitempty"`

	// Subpages The number of subpages to crawl. The actual number crawled may be limited by system constraints.
	Subpages *int `json:"subpages,omitempty"`

	// Summary Return an LLM-generated summary. Pass `true` for defaults, or an object with `query`.
	Summary *SearchMonitorContentsOutput_Summary `json:"summary,omitempty"`

	// Text Text extraction options for each result.
	Text *SearchMonitorContentsOutput_Text `json:"text,omitempty"`
}

SearchMonitorContentsOutput Content extraction options applied to each search result. All fields are optional.

type SearchMonitorContentsOutputContext0 deprecated added in v0.2.0

type SearchMonitorContentsOutputContext0 = bool

SearchMonitorContentsOutputContext0 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchMonitorContentsOutputContext1 deprecated added in v0.2.0

type SearchMonitorContentsOutputContext1 struct {
	// MaxCharacters Maximum character limit for the context string.
	MaxCharacters *int `json:"maxCharacters,omitempty"`
}

SearchMonitorContentsOutputContext1 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchMonitorContentsOutputHighlights0 added in v0.2.0

type SearchMonitorContentsOutputHighlights0 = bool

SearchMonitorContentsOutputHighlights0 If true, returns highlights with default settings. If false, disables highlights.

type SearchMonitorContentsOutputHighlights1 added in v0.2.0

type SearchMonitorContentsOutputHighlights1 struct {
	Dynamic          *bool                                            `json:"dynamic,omitempty"`
	HighlightsPerUrl *int                                             `json:"highlightsPerUrl,omitempty"`
	MaxCharacters    *int                                             `json:"maxCharacters,omitempty"`
	NumSentences     *int                                             `json:"numSentences,omitempty"`
	Query            *string                                          `json:"query,omitempty"`
	Verbosity        *SearchMonitorContentsOutputHighlights1Verbosity `json:"verbosity,omitempty"`
}

SearchMonitorContentsOutputHighlights1 Advanced options for steering highlight extraction. Pass highlights: true for the highest-quality default; supply this object only when you need to guide selection with your own query.

type SearchMonitorContentsOutputHighlights1Verbosity added in v0.2.0

type SearchMonitorContentsOutputHighlights1Verbosity string

SearchMonitorContentsOutputHighlights1Verbosity Preset highlight length: `low`, `medium`, and `high` allocate progressively larger token budgets for the returned highlights. With highlights.dynamic, the preset sets a single shared budget across the whole result set instead of a per-URL budget. Exact budgets are tuned by Exa and may change. Not compatible with maxCharacters or numSentences. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `verbosity` without it are rejected.

const (
	SearchMonitorContentsOutputHighlights1VerbosityHigh   SearchMonitorContentsOutputHighlights1Verbosity = "high"
	SearchMonitorContentsOutputHighlights1VerbosityLow    SearchMonitorContentsOutputHighlights1Verbosity = "low"
	SearchMonitorContentsOutputHighlights1VerbosityMedium SearchMonitorContentsOutputHighlights1Verbosity = "medium"
)

Defines values for SearchMonitorContentsOutputHighlights1Verbosity.

func (SearchMonitorContentsOutputHighlights1Verbosity) Valid added in v0.2.0

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

type SearchMonitorContentsOutputLivecrawl0 added in v0.2.0

type SearchMonitorContentsOutputLivecrawl0 string

SearchMonitorContentsOutputLivecrawl0 defines model for SearchMonitorContentsOutput.Livecrawl.0.

const (
	SearchMonitorContentsOutputLivecrawl0Always    SearchMonitorContentsOutputLivecrawl0 = "always"
	SearchMonitorContentsOutputLivecrawl0Fallback  SearchMonitorContentsOutputLivecrawl0 = "fallback"
	SearchMonitorContentsOutputLivecrawl0Never     SearchMonitorContentsOutputLivecrawl0 = "never"
	SearchMonitorContentsOutputLivecrawl0Preferred SearchMonitorContentsOutputLivecrawl0 = "preferred"
)

Defines values for SearchMonitorContentsOutputLivecrawl0.

func (SearchMonitorContentsOutputLivecrawl0) Valid added in v0.2.0

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

type SearchMonitorContentsOutputLivecrawl1 added in v0.2.0

type SearchMonitorContentsOutputLivecrawl1 string

SearchMonitorContentsOutputLivecrawl1 defines model for SearchMonitorContentsOutput.Livecrawl.1.

const (
	SearchMonitorContentsOutputLivecrawl1Auto SearchMonitorContentsOutputLivecrawl1 = "auto"
)

Defines values for SearchMonitorContentsOutputLivecrawl1.

func (SearchMonitorContentsOutputLivecrawl1) Valid added in v0.2.0

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

type SearchMonitorContentsOutputSubpageTarget0 added in v0.2.0

type SearchMonitorContentsOutputSubpageTarget0 = string

SearchMonitorContentsOutputSubpageTarget0 defines model for SearchMonitorContentsOutput.SubpageTarget.0.

type SearchMonitorContentsOutputSubpageTarget1 added in v0.2.0

type SearchMonitorContentsOutputSubpageTarget1 = []string

SearchMonitorContentsOutputSubpageTarget1 defines model for SearchMonitorContentsOutput.SubpageTarget.1.

type SearchMonitorContentsOutputSummary0 added in v0.2.0

type SearchMonitorContentsOutputSummary0 = bool

SearchMonitorContentsOutputSummary0 defines model for SearchMonitorContentsOutput.Summary.0.

type SearchMonitorContentsOutputText0 added in v0.2.0

type SearchMonitorContentsOutputText0 = bool

SearchMonitorContentsOutputText0 If true, returns full page text with default settings. If false, disables text return.

type SearchMonitorContentsOutputText1 added in v0.2.0

type SearchMonitorContentsOutputText1 struct {
	ExcludeSections *[]SearchMonitorContentsOutputText1ExcludeSections `json:"excludeSections,omitempty"`
	IncludeHtmlTags *bool                                              `json:"includeHtmlTags,omitempty"`
	IncludeSections *[]SearchMonitorContentsOutputText1IncludeSections `json:"includeSections,omitempty"`
	MaxCharacters   *int                                               `json:"maxCharacters,omitempty"`
	Verbosity       *SearchMonitorContentsOutputText1Verbosity         `json:"verbosity,omitempty"`
}

SearchMonitorContentsOutputText1 Advanced options for controlling text extraction. Use this when you need to limit text length or include HTML structure. Set `maxAgeHours: 0` to apply `includeHtmlTags`, `verbosity`, and section filters to freshly fetched content.

type SearchMonitorContentsOutputText1ExcludeSections added in v0.2.0

type SearchMonitorContentsOutputText1ExcludeSections string

SearchMonitorContentsOutputText1ExcludeSections defines model for SearchMonitorContentsOutput.Text.1.ExcludeSections.

const (
	SearchMonitorContentsOutputText1ExcludeSectionsBanner     SearchMonitorContentsOutputText1ExcludeSections = "banner"
	SearchMonitorContentsOutputText1ExcludeSectionsBody       SearchMonitorContentsOutputText1ExcludeSections = "body"
	SearchMonitorContentsOutputText1ExcludeSectionsFooter     SearchMonitorContentsOutputText1ExcludeSections = "footer"
	SearchMonitorContentsOutputText1ExcludeSectionsHeader     SearchMonitorContentsOutputText1ExcludeSections = "header"
	SearchMonitorContentsOutputText1ExcludeSectionsMetadata   SearchMonitorContentsOutputText1ExcludeSections = "metadata"
	SearchMonitorContentsOutputText1ExcludeSectionsNavigation SearchMonitorContentsOutputText1ExcludeSections = "navigation"
	SearchMonitorContentsOutputText1ExcludeSectionsSidebar    SearchMonitorContentsOutputText1ExcludeSections = "sidebar"
)

Defines values for SearchMonitorContentsOutputText1ExcludeSections.

func (SearchMonitorContentsOutputText1ExcludeSections) Valid added in v0.2.0

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

type SearchMonitorContentsOutputText1IncludeSections added in v0.2.0

type SearchMonitorContentsOutputText1IncludeSections string

SearchMonitorContentsOutputText1IncludeSections defines model for SearchMonitorContentsOutput.Text.1.IncludeSections.

const (
	SearchMonitorContentsOutputText1IncludeSectionsBanner     SearchMonitorContentsOutputText1IncludeSections = "banner"
	SearchMonitorContentsOutputText1IncludeSectionsBody       SearchMonitorContentsOutputText1IncludeSections = "body"
	SearchMonitorContentsOutputText1IncludeSectionsFooter     SearchMonitorContentsOutputText1IncludeSections = "footer"
	SearchMonitorContentsOutputText1IncludeSectionsHeader     SearchMonitorContentsOutputText1IncludeSections = "header"
	SearchMonitorContentsOutputText1IncludeSectionsMetadata   SearchMonitorContentsOutputText1IncludeSections = "metadata"
	SearchMonitorContentsOutputText1IncludeSectionsNavigation SearchMonitorContentsOutputText1IncludeSections = "navigation"
	SearchMonitorContentsOutputText1IncludeSectionsSidebar    SearchMonitorContentsOutputText1IncludeSections = "sidebar"
)

Defines values for SearchMonitorContentsOutputText1IncludeSections.

func (SearchMonitorContentsOutputText1IncludeSections) Valid added in v0.2.0

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

type SearchMonitorContentsOutputText1Verbosity added in v0.2.0

type SearchMonitorContentsOutputText1Verbosity string

SearchMonitorContentsOutputText1Verbosity Controls text rendering verbosity. compact focuses on main content, standard includes more surrounding page context, and full requests the most complete rendered text. Some pages may produce identical standard and full output.

const (
	SearchMonitorContentsOutputText1VerbosityCompact  SearchMonitorContentsOutputText1Verbosity = "compact"
	SearchMonitorContentsOutputText1VerbosityFull     SearchMonitorContentsOutputText1Verbosity = "full"
	SearchMonitorContentsOutputText1VerbosityStandard SearchMonitorContentsOutputText1Verbosity = "standard"
)

Defines values for SearchMonitorContentsOutputText1Verbosity.

func (SearchMonitorContentsOutputText1Verbosity) Valid added in v0.2.0

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

type SearchMonitorContentsOutput_Context deprecated added in v0.2.0

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

SearchMonitorContentsOutput_Context Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (SearchMonitorContentsOutput_Context) AsSearchMonitorContentsOutputContext0 added in v0.2.0

func (t SearchMonitorContentsOutput_Context) AsSearchMonitorContentsOutputContext0() (SearchMonitorContentsOutputContext0, error)

AsSearchMonitorContentsOutputContext0 returns the union data inside the SearchMonitorContentsOutput_Context as a SearchMonitorContentsOutputContext0

func (SearchMonitorContentsOutput_Context) AsSearchMonitorContentsOutputContext1 added in v0.2.0

func (t SearchMonitorContentsOutput_Context) AsSearchMonitorContentsOutputContext1() (SearchMonitorContentsOutputContext1, error)

AsSearchMonitorContentsOutputContext1 returns the union data inside the SearchMonitorContentsOutput_Context as a SearchMonitorContentsOutputContext1

func (*SearchMonitorContentsOutput_Context) FromSearchMonitorContentsOutputContext0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Context) FromSearchMonitorContentsOutputContext0(v SearchMonitorContentsOutputContext0) error

FromSearchMonitorContentsOutputContext0 overwrites any union data inside the SearchMonitorContentsOutput_Context as the provided SearchMonitorContentsOutputContext0

func (*SearchMonitorContentsOutput_Context) FromSearchMonitorContentsOutputContext1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Context) FromSearchMonitorContentsOutputContext1(v SearchMonitorContentsOutputContext1) error

FromSearchMonitorContentsOutputContext1 overwrites any union data inside the SearchMonitorContentsOutput_Context as the provided SearchMonitorContentsOutputContext1

func (SearchMonitorContentsOutput_Context) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContentsOutput_Context) MergeSearchMonitorContentsOutputContext0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Context) MergeSearchMonitorContentsOutputContext0(v SearchMonitorContentsOutputContext0) error

MergeSearchMonitorContentsOutputContext0 performs a merge with any union data inside the SearchMonitorContentsOutput_Context, using the provided SearchMonitorContentsOutputContext0

func (*SearchMonitorContentsOutput_Context) MergeSearchMonitorContentsOutputContext1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Context) MergeSearchMonitorContentsOutputContext1(v SearchMonitorContentsOutputContext1) error

MergeSearchMonitorContentsOutputContext1 performs a merge with any union data inside the SearchMonitorContentsOutput_Context, using the provided SearchMonitorContentsOutputContext1

func (*SearchMonitorContentsOutput_Context) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContentsOutput_Highlights added in v0.2.0

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

SearchMonitorContentsOutput_Highlights Text snippets the LLM identifies as most relevant from each page.

func (SearchMonitorContentsOutput_Highlights) AsSearchMonitorContentsOutputHighlights0 added in v0.2.0

func (t SearchMonitorContentsOutput_Highlights) AsSearchMonitorContentsOutputHighlights0() (SearchMonitorContentsOutputHighlights0, error)

AsSearchMonitorContentsOutputHighlights0 returns the union data inside the SearchMonitorContentsOutput_Highlights as a SearchMonitorContentsOutputHighlights0

func (SearchMonitorContentsOutput_Highlights) AsSearchMonitorContentsOutputHighlights1 added in v0.2.0

func (t SearchMonitorContentsOutput_Highlights) AsSearchMonitorContentsOutputHighlights1() (SearchMonitorContentsOutputHighlights1, error)

AsSearchMonitorContentsOutputHighlights1 returns the union data inside the SearchMonitorContentsOutput_Highlights as a SearchMonitorContentsOutputHighlights1

func (*SearchMonitorContentsOutput_Highlights) FromSearchMonitorContentsOutputHighlights0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Highlights) FromSearchMonitorContentsOutputHighlights0(v SearchMonitorContentsOutputHighlights0) error

FromSearchMonitorContentsOutputHighlights0 overwrites any union data inside the SearchMonitorContentsOutput_Highlights as the provided SearchMonitorContentsOutputHighlights0

func (*SearchMonitorContentsOutput_Highlights) FromSearchMonitorContentsOutputHighlights1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Highlights) FromSearchMonitorContentsOutputHighlights1(v SearchMonitorContentsOutputHighlights1) error

FromSearchMonitorContentsOutputHighlights1 overwrites any union data inside the SearchMonitorContentsOutput_Highlights as the provided SearchMonitorContentsOutputHighlights1

func (SearchMonitorContentsOutput_Highlights) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContentsOutput_Highlights) MergeSearchMonitorContentsOutputHighlights0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Highlights) MergeSearchMonitorContentsOutputHighlights0(v SearchMonitorContentsOutputHighlights0) error

MergeSearchMonitorContentsOutputHighlights0 performs a merge with any union data inside the SearchMonitorContentsOutput_Highlights, using the provided SearchMonitorContentsOutputHighlights0

func (*SearchMonitorContentsOutput_Highlights) MergeSearchMonitorContentsOutputHighlights1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Highlights) MergeSearchMonitorContentsOutputHighlights1(v SearchMonitorContentsOutputHighlights1) error

MergeSearchMonitorContentsOutputHighlights1 performs a merge with any union data inside the SearchMonitorContentsOutput_Highlights, using the provided SearchMonitorContentsOutputHighlights1

func (*SearchMonitorContentsOutput_Highlights) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContentsOutput_Livecrawl added in v0.2.0

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

SearchMonitorContentsOutput_Livecrawl Crawl strategy for fetching page content

func (SearchMonitorContentsOutput_Livecrawl) AsSearchMonitorContentsOutputLivecrawl0 added in v0.2.0

func (t SearchMonitorContentsOutput_Livecrawl) AsSearchMonitorContentsOutputLivecrawl0() (SearchMonitorContentsOutputLivecrawl0, error)

AsSearchMonitorContentsOutputLivecrawl0 returns the union data inside the SearchMonitorContentsOutput_Livecrawl as a SearchMonitorContentsOutputLivecrawl0

func (SearchMonitorContentsOutput_Livecrawl) AsSearchMonitorContentsOutputLivecrawl1 added in v0.2.0

func (t SearchMonitorContentsOutput_Livecrawl) AsSearchMonitorContentsOutputLivecrawl1() (SearchMonitorContentsOutputLivecrawl1, error)

AsSearchMonitorContentsOutputLivecrawl1 returns the union data inside the SearchMonitorContentsOutput_Livecrawl as a SearchMonitorContentsOutputLivecrawl1

func (*SearchMonitorContentsOutput_Livecrawl) FromSearchMonitorContentsOutputLivecrawl0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Livecrawl) FromSearchMonitorContentsOutputLivecrawl0(v SearchMonitorContentsOutputLivecrawl0) error

FromSearchMonitorContentsOutputLivecrawl0 overwrites any union data inside the SearchMonitorContentsOutput_Livecrawl as the provided SearchMonitorContentsOutputLivecrawl0

func (*SearchMonitorContentsOutput_Livecrawl) FromSearchMonitorContentsOutputLivecrawl1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Livecrawl) FromSearchMonitorContentsOutputLivecrawl1(v SearchMonitorContentsOutputLivecrawl1) error

FromSearchMonitorContentsOutputLivecrawl1 overwrites any union data inside the SearchMonitorContentsOutput_Livecrawl as the provided SearchMonitorContentsOutputLivecrawl1

func (SearchMonitorContentsOutput_Livecrawl) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContentsOutput_Livecrawl) MergeSearchMonitorContentsOutputLivecrawl0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Livecrawl) MergeSearchMonitorContentsOutputLivecrawl0(v SearchMonitorContentsOutputLivecrawl0) error

MergeSearchMonitorContentsOutputLivecrawl0 performs a merge with any union data inside the SearchMonitorContentsOutput_Livecrawl, using the provided SearchMonitorContentsOutputLivecrawl0

func (*SearchMonitorContentsOutput_Livecrawl) MergeSearchMonitorContentsOutputLivecrawl1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Livecrawl) MergeSearchMonitorContentsOutputLivecrawl1(v SearchMonitorContentsOutputLivecrawl1) error

MergeSearchMonitorContentsOutputLivecrawl1 performs a merge with any union data inside the SearchMonitorContentsOutput_Livecrawl, using the provided SearchMonitorContentsOutputLivecrawl1

func (*SearchMonitorContentsOutput_Livecrawl) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContentsOutput_SubpageTarget added in v0.2.0

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

SearchMonitorContentsOutput_SubpageTarget Term to find specific subpages of search results. Can be a single string or an array of strings.

func (SearchMonitorContentsOutput_SubpageTarget) AsSearchMonitorContentsOutputSubpageTarget0 added in v0.2.0

func (t SearchMonitorContentsOutput_SubpageTarget) AsSearchMonitorContentsOutputSubpageTarget0() (SearchMonitorContentsOutputSubpageTarget0, error)

AsSearchMonitorContentsOutputSubpageTarget0 returns the union data inside the SearchMonitorContentsOutput_SubpageTarget as a SearchMonitorContentsOutputSubpageTarget0

func (SearchMonitorContentsOutput_SubpageTarget) AsSearchMonitorContentsOutputSubpageTarget1 added in v0.2.0

func (t SearchMonitorContentsOutput_SubpageTarget) AsSearchMonitorContentsOutputSubpageTarget1() (SearchMonitorContentsOutputSubpageTarget1, error)

AsSearchMonitorContentsOutputSubpageTarget1 returns the union data inside the SearchMonitorContentsOutput_SubpageTarget as a SearchMonitorContentsOutputSubpageTarget1

func (*SearchMonitorContentsOutput_SubpageTarget) FromSearchMonitorContentsOutputSubpageTarget0 added in v0.2.0

func (t *SearchMonitorContentsOutput_SubpageTarget) FromSearchMonitorContentsOutputSubpageTarget0(v SearchMonitorContentsOutputSubpageTarget0) error

FromSearchMonitorContentsOutputSubpageTarget0 overwrites any union data inside the SearchMonitorContentsOutput_SubpageTarget as the provided SearchMonitorContentsOutputSubpageTarget0

func (*SearchMonitorContentsOutput_SubpageTarget) FromSearchMonitorContentsOutputSubpageTarget1 added in v0.2.0

func (t *SearchMonitorContentsOutput_SubpageTarget) FromSearchMonitorContentsOutputSubpageTarget1(v SearchMonitorContentsOutputSubpageTarget1) error

FromSearchMonitorContentsOutputSubpageTarget1 overwrites any union data inside the SearchMonitorContentsOutput_SubpageTarget as the provided SearchMonitorContentsOutputSubpageTarget1

func (SearchMonitorContentsOutput_SubpageTarget) MarshalJSON added in v0.2.0

func (*SearchMonitorContentsOutput_SubpageTarget) MergeSearchMonitorContentsOutputSubpageTarget0 added in v0.2.0

func (t *SearchMonitorContentsOutput_SubpageTarget) MergeSearchMonitorContentsOutputSubpageTarget0(v SearchMonitorContentsOutputSubpageTarget0) error

MergeSearchMonitorContentsOutputSubpageTarget0 performs a merge with any union data inside the SearchMonitorContentsOutput_SubpageTarget, using the provided SearchMonitorContentsOutputSubpageTarget0

func (*SearchMonitorContentsOutput_SubpageTarget) MergeSearchMonitorContentsOutputSubpageTarget1 added in v0.2.0

func (t *SearchMonitorContentsOutput_SubpageTarget) MergeSearchMonitorContentsOutputSubpageTarget1(v SearchMonitorContentsOutputSubpageTarget1) error

MergeSearchMonitorContentsOutputSubpageTarget1 performs a merge with any union data inside the SearchMonitorContentsOutput_SubpageTarget, using the provided SearchMonitorContentsOutputSubpageTarget1

func (*SearchMonitorContentsOutput_SubpageTarget) UnmarshalJSON added in v0.2.0

type SearchMonitorContentsOutput_Summary added in v0.2.0

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

SearchMonitorContentsOutput_Summary Return an LLM-generated summary. Pass `true` for defaults, or an object with `query`.

func (SearchMonitorContentsOutput_Summary) AsSearchMonitorContentsOutputSummary0 added in v0.2.0

func (t SearchMonitorContentsOutput_Summary) AsSearchMonitorContentsOutputSummary0() (SearchMonitorContentsOutputSummary0, error)

AsSearchMonitorContentsOutputSummary0 returns the union data inside the SearchMonitorContentsOutput_Summary as a SearchMonitorContentsOutputSummary0

func (SearchMonitorContentsOutput_Summary) AsSummaryWithMaxTokensOptionsOutput added in v0.2.0

func (t SearchMonitorContentsOutput_Summary) AsSummaryWithMaxTokensOptionsOutput() (SummaryWithMaxTokensOptionsOutput, error)

AsSummaryWithMaxTokensOptionsOutput returns the union data inside the SearchMonitorContentsOutput_Summary as a SummaryWithMaxTokensOptionsOutput

func (*SearchMonitorContentsOutput_Summary) FromSearchMonitorContentsOutputSummary0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Summary) FromSearchMonitorContentsOutputSummary0(v SearchMonitorContentsOutputSummary0) error

FromSearchMonitorContentsOutputSummary0 overwrites any union data inside the SearchMonitorContentsOutput_Summary as the provided SearchMonitorContentsOutputSummary0

func (*SearchMonitorContentsOutput_Summary) FromSummaryWithMaxTokensOptionsOutput added in v0.2.0

func (t *SearchMonitorContentsOutput_Summary) FromSummaryWithMaxTokensOptionsOutput(v SummaryWithMaxTokensOptionsOutput) error

FromSummaryWithMaxTokensOptionsOutput overwrites any union data inside the SearchMonitorContentsOutput_Summary as the provided SummaryWithMaxTokensOptionsOutput

func (SearchMonitorContentsOutput_Summary) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContentsOutput_Summary) MergeSearchMonitorContentsOutputSummary0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Summary) MergeSearchMonitorContentsOutputSummary0(v SearchMonitorContentsOutputSummary0) error

MergeSearchMonitorContentsOutputSummary0 performs a merge with any union data inside the SearchMonitorContentsOutput_Summary, using the provided SearchMonitorContentsOutputSummary0

func (*SearchMonitorContentsOutput_Summary) MergeSummaryWithMaxTokensOptionsOutput added in v0.2.0

func (t *SearchMonitorContentsOutput_Summary) MergeSummaryWithMaxTokensOptionsOutput(v SummaryWithMaxTokensOptionsOutput) error

MergeSummaryWithMaxTokensOptionsOutput performs a merge with any union data inside the SearchMonitorContentsOutput_Summary, using the provided SummaryWithMaxTokensOptionsOutput

func (*SearchMonitorContentsOutput_Summary) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContentsOutput_Text added in v0.2.0

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

SearchMonitorContentsOutput_Text Text extraction options for each result.

func (SearchMonitorContentsOutput_Text) AsSearchMonitorContentsOutputText0 added in v0.2.0

func (t SearchMonitorContentsOutput_Text) AsSearchMonitorContentsOutputText0() (SearchMonitorContentsOutputText0, error)

AsSearchMonitorContentsOutputText0 returns the union data inside the SearchMonitorContentsOutput_Text as a SearchMonitorContentsOutputText0

func (SearchMonitorContentsOutput_Text) AsSearchMonitorContentsOutputText1 added in v0.2.0

func (t SearchMonitorContentsOutput_Text) AsSearchMonitorContentsOutputText1() (SearchMonitorContentsOutputText1, error)

AsSearchMonitorContentsOutputText1 returns the union data inside the SearchMonitorContentsOutput_Text as a SearchMonitorContentsOutputText1

func (*SearchMonitorContentsOutput_Text) FromSearchMonitorContentsOutputText0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Text) FromSearchMonitorContentsOutputText0(v SearchMonitorContentsOutputText0) error

FromSearchMonitorContentsOutputText0 overwrites any union data inside the SearchMonitorContentsOutput_Text as the provided SearchMonitorContentsOutputText0

func (*SearchMonitorContentsOutput_Text) FromSearchMonitorContentsOutputText1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Text) FromSearchMonitorContentsOutputText1(v SearchMonitorContentsOutputText1) error

FromSearchMonitorContentsOutputText1 overwrites any union data inside the SearchMonitorContentsOutput_Text as the provided SearchMonitorContentsOutputText1

func (SearchMonitorContentsOutput_Text) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContentsOutput_Text) MergeSearchMonitorContentsOutputText0 added in v0.2.0

func (t *SearchMonitorContentsOutput_Text) MergeSearchMonitorContentsOutputText0(v SearchMonitorContentsOutputText0) error

MergeSearchMonitorContentsOutputText0 performs a merge with any union data inside the SearchMonitorContentsOutput_Text, using the provided SearchMonitorContentsOutputText0

func (*SearchMonitorContentsOutput_Text) MergeSearchMonitorContentsOutputText1 added in v0.2.0

func (t *SearchMonitorContentsOutput_Text) MergeSearchMonitorContentsOutputText1(v SearchMonitorContentsOutputText1) error

MergeSearchMonitorContentsOutputText1 performs a merge with any union data inside the SearchMonitorContentsOutput_Text, using the provided SearchMonitorContentsOutputText1

func (*SearchMonitorContentsOutput_Text) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContentsSubpageTarget0 added in v0.2.0

type SearchMonitorContentsSubpageTarget0 = string

SearchMonitorContentsSubpageTarget0 defines model for SearchMonitorContents.SubpageTarget.0.

type SearchMonitorContentsSubpageTarget1 added in v0.2.0

type SearchMonitorContentsSubpageTarget1 = []string

SearchMonitorContentsSubpageTarget1 defines model for SearchMonitorContents.SubpageTarget.1.

type SearchMonitorContentsSummary0 added in v0.2.0

type SearchMonitorContentsSummary0 = bool

SearchMonitorContentsSummary0 defines model for SearchMonitorContents.Summary.0.

type SearchMonitorContentsText0 added in v0.2.0

type SearchMonitorContentsText0 = bool

SearchMonitorContentsText0 If true, returns full page text with default settings. If false, disables text return.

type SearchMonitorContentsText1 added in v0.2.0

type SearchMonitorContentsText1 struct {
	ExcludeSections *[]SearchMonitorContentsText1ExcludeSections `json:"excludeSections,omitempty"`
	IncludeHtmlTags *bool                                        `json:"includeHtmlTags,omitempty"`
	IncludeSections *[]SearchMonitorContentsText1IncludeSections `json:"includeSections,omitempty"`
	MaxCharacters   *int                                         `json:"maxCharacters,omitempty"`
	Verbosity       *SearchMonitorContentsText1Verbosity         `json:"verbosity,omitempty"`
}

SearchMonitorContentsText1 Advanced options for controlling text extraction. Use this when you need to limit text length or include HTML structure. Set `maxAgeHours: 0` to apply `includeHtmlTags`, `verbosity`, and section filters to freshly fetched content.

type SearchMonitorContentsText1ExcludeSections added in v0.2.0

type SearchMonitorContentsText1ExcludeSections string

SearchMonitorContentsText1ExcludeSections defines model for SearchMonitorContents.Text.1.ExcludeSections.

const (
	SearchMonitorContentsText1ExcludeSectionsBanner     SearchMonitorContentsText1ExcludeSections = "banner"
	SearchMonitorContentsText1ExcludeSectionsBody       SearchMonitorContentsText1ExcludeSections = "body"
	SearchMonitorContentsText1ExcludeSectionsFooter     SearchMonitorContentsText1ExcludeSections = "footer"
	SearchMonitorContentsText1ExcludeSectionsHeader     SearchMonitorContentsText1ExcludeSections = "header"
	SearchMonitorContentsText1ExcludeSectionsMetadata   SearchMonitorContentsText1ExcludeSections = "metadata"
	SearchMonitorContentsText1ExcludeSectionsNavigation SearchMonitorContentsText1ExcludeSections = "navigation"
	SearchMonitorContentsText1ExcludeSectionsSidebar    SearchMonitorContentsText1ExcludeSections = "sidebar"
)

Defines values for SearchMonitorContentsText1ExcludeSections.

func (SearchMonitorContentsText1ExcludeSections) Valid added in v0.2.0

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

type SearchMonitorContentsText1IncludeSections added in v0.2.0

type SearchMonitorContentsText1IncludeSections string

SearchMonitorContentsText1IncludeSections defines model for SearchMonitorContents.Text.1.IncludeSections.

const (
	SearchMonitorContentsText1IncludeSectionsBanner     SearchMonitorContentsText1IncludeSections = "banner"
	SearchMonitorContentsText1IncludeSectionsBody       SearchMonitorContentsText1IncludeSections = "body"
	SearchMonitorContentsText1IncludeSectionsFooter     SearchMonitorContentsText1IncludeSections = "footer"
	SearchMonitorContentsText1IncludeSectionsHeader     SearchMonitorContentsText1IncludeSections = "header"
	SearchMonitorContentsText1IncludeSectionsMetadata   SearchMonitorContentsText1IncludeSections = "metadata"
	SearchMonitorContentsText1IncludeSectionsNavigation SearchMonitorContentsText1IncludeSections = "navigation"
	SearchMonitorContentsText1IncludeSectionsSidebar    SearchMonitorContentsText1IncludeSections = "sidebar"
)

Defines values for SearchMonitorContentsText1IncludeSections.

func (SearchMonitorContentsText1IncludeSections) Valid added in v0.2.0

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

type SearchMonitorContentsText1Verbosity added in v0.2.0

type SearchMonitorContentsText1Verbosity string

SearchMonitorContentsText1Verbosity Controls text rendering verbosity. compact focuses on main content, standard includes more surrounding page context, and full requests the most complete rendered text. Some pages may produce identical standard and full output.

const (
	SearchMonitorContentsText1VerbosityCompact  SearchMonitorContentsText1Verbosity = "compact"
	SearchMonitorContentsText1VerbosityFull     SearchMonitorContentsText1Verbosity = "full"
	SearchMonitorContentsText1VerbosityStandard SearchMonitorContentsText1Verbosity = "standard"
)

Defines values for SearchMonitorContentsText1Verbosity.

func (SearchMonitorContentsText1Verbosity) Valid added in v0.2.0

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

type SearchMonitorContents_Context deprecated added in v0.2.0

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

SearchMonitorContents_Context Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (SearchMonitorContents_Context) AsSearchMonitorContentsContext0 added in v0.2.0

func (t SearchMonitorContents_Context) AsSearchMonitorContentsContext0() (SearchMonitorContentsContext0, error)

AsSearchMonitorContentsContext0 returns the union data inside the SearchMonitorContents_Context as a SearchMonitorContentsContext0

func (SearchMonitorContents_Context) AsSearchMonitorContentsContext1 added in v0.2.0

func (t SearchMonitorContents_Context) AsSearchMonitorContentsContext1() (SearchMonitorContentsContext1, error)

AsSearchMonitorContentsContext1 returns the union data inside the SearchMonitorContents_Context as a SearchMonitorContentsContext1

func (*SearchMonitorContents_Context) FromSearchMonitorContentsContext0 added in v0.2.0

func (t *SearchMonitorContents_Context) FromSearchMonitorContentsContext0(v SearchMonitorContentsContext0) error

FromSearchMonitorContentsContext0 overwrites any union data inside the SearchMonitorContents_Context as the provided SearchMonitorContentsContext0

func (*SearchMonitorContents_Context) FromSearchMonitorContentsContext1 added in v0.2.0

func (t *SearchMonitorContents_Context) FromSearchMonitorContentsContext1(v SearchMonitorContentsContext1) error

FromSearchMonitorContentsContext1 overwrites any union data inside the SearchMonitorContents_Context as the provided SearchMonitorContentsContext1

func (SearchMonitorContents_Context) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_Context) MergeSearchMonitorContentsContext0 added in v0.2.0

func (t *SearchMonitorContents_Context) MergeSearchMonitorContentsContext0(v SearchMonitorContentsContext0) error

MergeSearchMonitorContentsContext0 performs a merge with any union data inside the SearchMonitorContents_Context, using the provided SearchMonitorContentsContext0

func (*SearchMonitorContents_Context) MergeSearchMonitorContentsContext1 added in v0.2.0

func (t *SearchMonitorContents_Context) MergeSearchMonitorContentsContext1(v SearchMonitorContentsContext1) error

MergeSearchMonitorContentsContext1 performs a merge with any union data inside the SearchMonitorContents_Context, using the provided SearchMonitorContentsContext1

func (*SearchMonitorContents_Context) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContents_Highlights added in v0.2.0

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

SearchMonitorContents_Highlights Text snippets the LLM identifies as most relevant from each page.

func (SearchMonitorContents_Highlights) AsSearchMonitorContentsHighlights0 added in v0.2.0

func (t SearchMonitorContents_Highlights) AsSearchMonitorContentsHighlights0() (SearchMonitorContentsHighlights0, error)

AsSearchMonitorContentsHighlights0 returns the union data inside the SearchMonitorContents_Highlights as a SearchMonitorContentsHighlights0

func (SearchMonitorContents_Highlights) AsSearchMonitorContentsHighlights1 added in v0.2.0

func (t SearchMonitorContents_Highlights) AsSearchMonitorContentsHighlights1() (SearchMonitorContentsHighlights1, error)

AsSearchMonitorContentsHighlights1 returns the union data inside the SearchMonitorContents_Highlights as a SearchMonitorContentsHighlights1

func (*SearchMonitorContents_Highlights) FromSearchMonitorContentsHighlights0 added in v0.2.0

func (t *SearchMonitorContents_Highlights) FromSearchMonitorContentsHighlights0(v SearchMonitorContentsHighlights0) error

FromSearchMonitorContentsHighlights0 overwrites any union data inside the SearchMonitorContents_Highlights as the provided SearchMonitorContentsHighlights0

func (*SearchMonitorContents_Highlights) FromSearchMonitorContentsHighlights1 added in v0.2.0

func (t *SearchMonitorContents_Highlights) FromSearchMonitorContentsHighlights1(v SearchMonitorContentsHighlights1) error

FromSearchMonitorContentsHighlights1 overwrites any union data inside the SearchMonitorContents_Highlights as the provided SearchMonitorContentsHighlights1

func (SearchMonitorContents_Highlights) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_Highlights) MergeSearchMonitorContentsHighlights0 added in v0.2.0

func (t *SearchMonitorContents_Highlights) MergeSearchMonitorContentsHighlights0(v SearchMonitorContentsHighlights0) error

MergeSearchMonitorContentsHighlights0 performs a merge with any union data inside the SearchMonitorContents_Highlights, using the provided SearchMonitorContentsHighlights0

func (*SearchMonitorContents_Highlights) MergeSearchMonitorContentsHighlights1 added in v0.2.0

func (t *SearchMonitorContents_Highlights) MergeSearchMonitorContentsHighlights1(v SearchMonitorContentsHighlights1) error

MergeSearchMonitorContentsHighlights1 performs a merge with any union data inside the SearchMonitorContents_Highlights, using the provided SearchMonitorContentsHighlights1

func (*SearchMonitorContents_Highlights) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContents_Livecrawl added in v0.2.0

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

SearchMonitorContents_Livecrawl Crawl strategy for fetching page content

func (SearchMonitorContents_Livecrawl) AsSearchMonitorContentsLivecrawl0 added in v0.2.0

func (t SearchMonitorContents_Livecrawl) AsSearchMonitorContentsLivecrawl0() (SearchMonitorContentsLivecrawl0, error)

AsSearchMonitorContentsLivecrawl0 returns the union data inside the SearchMonitorContents_Livecrawl as a SearchMonitorContentsLivecrawl0

func (SearchMonitorContents_Livecrawl) AsSearchMonitorContentsLivecrawl1 added in v0.2.0

func (t SearchMonitorContents_Livecrawl) AsSearchMonitorContentsLivecrawl1() (SearchMonitorContentsLivecrawl1, error)

AsSearchMonitorContentsLivecrawl1 returns the union data inside the SearchMonitorContents_Livecrawl as a SearchMonitorContentsLivecrawl1

func (*SearchMonitorContents_Livecrawl) FromSearchMonitorContentsLivecrawl0 added in v0.2.0

func (t *SearchMonitorContents_Livecrawl) FromSearchMonitorContentsLivecrawl0(v SearchMonitorContentsLivecrawl0) error

FromSearchMonitorContentsLivecrawl0 overwrites any union data inside the SearchMonitorContents_Livecrawl as the provided SearchMonitorContentsLivecrawl0

func (*SearchMonitorContents_Livecrawl) FromSearchMonitorContentsLivecrawl1 added in v0.2.0

func (t *SearchMonitorContents_Livecrawl) FromSearchMonitorContentsLivecrawl1(v SearchMonitorContentsLivecrawl1) error

FromSearchMonitorContentsLivecrawl1 overwrites any union data inside the SearchMonitorContents_Livecrawl as the provided SearchMonitorContentsLivecrawl1

func (SearchMonitorContents_Livecrawl) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_Livecrawl) MergeSearchMonitorContentsLivecrawl0 added in v0.2.0

func (t *SearchMonitorContents_Livecrawl) MergeSearchMonitorContentsLivecrawl0(v SearchMonitorContentsLivecrawl0) error

MergeSearchMonitorContentsLivecrawl0 performs a merge with any union data inside the SearchMonitorContents_Livecrawl, using the provided SearchMonitorContentsLivecrawl0

func (*SearchMonitorContents_Livecrawl) MergeSearchMonitorContentsLivecrawl1 added in v0.2.0

func (t *SearchMonitorContents_Livecrawl) MergeSearchMonitorContentsLivecrawl1(v SearchMonitorContentsLivecrawl1) error

MergeSearchMonitorContentsLivecrawl1 performs a merge with any union data inside the SearchMonitorContents_Livecrawl, using the provided SearchMonitorContentsLivecrawl1

func (*SearchMonitorContents_Livecrawl) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContents_SubpageTarget added in v0.2.0

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

SearchMonitorContents_SubpageTarget Term to find specific subpages of search results. Can be a single string or an array of strings.

func (SearchMonitorContents_SubpageTarget) AsSearchMonitorContentsSubpageTarget0 added in v0.2.0

func (t SearchMonitorContents_SubpageTarget) AsSearchMonitorContentsSubpageTarget0() (SearchMonitorContentsSubpageTarget0, error)

AsSearchMonitorContentsSubpageTarget0 returns the union data inside the SearchMonitorContents_SubpageTarget as a SearchMonitorContentsSubpageTarget0

func (SearchMonitorContents_SubpageTarget) AsSearchMonitorContentsSubpageTarget1 added in v0.2.0

func (t SearchMonitorContents_SubpageTarget) AsSearchMonitorContentsSubpageTarget1() (SearchMonitorContentsSubpageTarget1, error)

AsSearchMonitorContentsSubpageTarget1 returns the union data inside the SearchMonitorContents_SubpageTarget as a SearchMonitorContentsSubpageTarget1

func (*SearchMonitorContents_SubpageTarget) FromSearchMonitorContentsSubpageTarget0 added in v0.2.0

func (t *SearchMonitorContents_SubpageTarget) FromSearchMonitorContentsSubpageTarget0(v SearchMonitorContentsSubpageTarget0) error

FromSearchMonitorContentsSubpageTarget0 overwrites any union data inside the SearchMonitorContents_SubpageTarget as the provided SearchMonitorContentsSubpageTarget0

func (*SearchMonitorContents_SubpageTarget) FromSearchMonitorContentsSubpageTarget1 added in v0.2.0

func (t *SearchMonitorContents_SubpageTarget) FromSearchMonitorContentsSubpageTarget1(v SearchMonitorContentsSubpageTarget1) error

FromSearchMonitorContentsSubpageTarget1 overwrites any union data inside the SearchMonitorContents_SubpageTarget as the provided SearchMonitorContentsSubpageTarget1

func (SearchMonitorContents_SubpageTarget) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_SubpageTarget) MergeSearchMonitorContentsSubpageTarget0 added in v0.2.0

func (t *SearchMonitorContents_SubpageTarget) MergeSearchMonitorContentsSubpageTarget0(v SearchMonitorContentsSubpageTarget0) error

MergeSearchMonitorContentsSubpageTarget0 performs a merge with any union data inside the SearchMonitorContents_SubpageTarget, using the provided SearchMonitorContentsSubpageTarget0

func (*SearchMonitorContents_SubpageTarget) MergeSearchMonitorContentsSubpageTarget1 added in v0.2.0

func (t *SearchMonitorContents_SubpageTarget) MergeSearchMonitorContentsSubpageTarget1(v SearchMonitorContentsSubpageTarget1) error

MergeSearchMonitorContentsSubpageTarget1 performs a merge with any union data inside the SearchMonitorContents_SubpageTarget, using the provided SearchMonitorContentsSubpageTarget1

func (*SearchMonitorContents_SubpageTarget) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContents_Summary added in v0.2.0

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

SearchMonitorContents_Summary Return an LLM-generated summary. Pass `true` for defaults, or an object with `query`.

func (SearchMonitorContents_Summary) AsSearchMonitorContentsSummary0 added in v0.2.0

func (t SearchMonitorContents_Summary) AsSearchMonitorContentsSummary0() (SearchMonitorContentsSummary0, error)

AsSearchMonitorContentsSummary0 returns the union data inside the SearchMonitorContents_Summary as a SearchMonitorContentsSummary0

func (SearchMonitorContents_Summary) AsSummaryWithMaxTokensOptions added in v0.2.0

func (t SearchMonitorContents_Summary) AsSummaryWithMaxTokensOptions() (SummaryWithMaxTokensOptions, error)

AsSummaryWithMaxTokensOptions returns the union data inside the SearchMonitorContents_Summary as a SummaryWithMaxTokensOptions

func (*SearchMonitorContents_Summary) FromSearchMonitorContentsSummary0 added in v0.2.0

func (t *SearchMonitorContents_Summary) FromSearchMonitorContentsSummary0(v SearchMonitorContentsSummary0) error

FromSearchMonitorContentsSummary0 overwrites any union data inside the SearchMonitorContents_Summary as the provided SearchMonitorContentsSummary0

func (*SearchMonitorContents_Summary) FromSummaryWithMaxTokensOptions added in v0.2.0

func (t *SearchMonitorContents_Summary) FromSummaryWithMaxTokensOptions(v SummaryWithMaxTokensOptions) error

FromSummaryWithMaxTokensOptions overwrites any union data inside the SearchMonitorContents_Summary as the provided SummaryWithMaxTokensOptions

func (SearchMonitorContents_Summary) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_Summary) MergeSearchMonitorContentsSummary0 added in v0.2.0

func (t *SearchMonitorContents_Summary) MergeSearchMonitorContentsSummary0(v SearchMonitorContentsSummary0) error

MergeSearchMonitorContentsSummary0 performs a merge with any union data inside the SearchMonitorContents_Summary, using the provided SearchMonitorContentsSummary0

func (*SearchMonitorContents_Summary) MergeSummaryWithMaxTokensOptions added in v0.2.0

func (t *SearchMonitorContents_Summary) MergeSummaryWithMaxTokensOptions(v SummaryWithMaxTokensOptions) error

MergeSummaryWithMaxTokensOptions performs a merge with any union data inside the SearchMonitorContents_Summary, using the provided SummaryWithMaxTokensOptions

func (*SearchMonitorContents_Summary) UnmarshalJSON added in v0.2.0

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

type SearchMonitorContents_Text added in v0.2.0

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

SearchMonitorContents_Text Text extraction options for each result.

func (SearchMonitorContents_Text) AsSearchMonitorContentsText0 added in v0.2.0

func (t SearchMonitorContents_Text) AsSearchMonitorContentsText0() (SearchMonitorContentsText0, error)

AsSearchMonitorContentsText0 returns the union data inside the SearchMonitorContents_Text as a SearchMonitorContentsText0

func (SearchMonitorContents_Text) AsSearchMonitorContentsText1 added in v0.2.0

func (t SearchMonitorContents_Text) AsSearchMonitorContentsText1() (SearchMonitorContentsText1, error)

AsSearchMonitorContentsText1 returns the union data inside the SearchMonitorContents_Text as a SearchMonitorContentsText1

func (*SearchMonitorContents_Text) FromSearchMonitorContentsText0 added in v0.2.0

func (t *SearchMonitorContents_Text) FromSearchMonitorContentsText0(v SearchMonitorContentsText0) error

FromSearchMonitorContentsText0 overwrites any union data inside the SearchMonitorContents_Text as the provided SearchMonitorContentsText0

func (*SearchMonitorContents_Text) FromSearchMonitorContentsText1 added in v0.2.0

func (t *SearchMonitorContents_Text) FromSearchMonitorContentsText1(v SearchMonitorContentsText1) error

FromSearchMonitorContentsText1 overwrites any union data inside the SearchMonitorContents_Text as the provided SearchMonitorContentsText1

func (SearchMonitorContents_Text) MarshalJSON added in v0.2.0

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

func (*SearchMonitorContents_Text) MergeSearchMonitorContentsText0 added in v0.2.0

func (t *SearchMonitorContents_Text) MergeSearchMonitorContentsText0(v SearchMonitorContentsText0) error

MergeSearchMonitorContentsText0 performs a merge with any union data inside the SearchMonitorContents_Text, using the provided SearchMonitorContentsText0

func (*SearchMonitorContents_Text) MergeSearchMonitorContentsText1 added in v0.2.0

func (t *SearchMonitorContents_Text) MergeSearchMonitorContentsText1(v SearchMonitorContentsText1) error

MergeSearchMonitorContentsText1 performs a merge with any union data inside the SearchMonitorContents_Text, using the provided SearchMonitorContentsText1

func (*SearchMonitorContents_Text) UnmarshalJSON added in v0.2.0

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

type SearchMonitorOutputSchema added in v0.2.0

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

SearchMonitorOutputSchema Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.

type SearchMonitorOutputSchemaOutput added in v0.2.0

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

SearchMonitorOutputSchemaOutput Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.

type SearchMonitorRun added in v0.2.0

type SearchMonitorRun struct {
	// CancelledAt When the run was cancelled
	CancelledAt *time.Time `json:"cancelledAt"`

	// CompletedAt When the run completed successfully
	CompletedAt *time.Time `json:"completedAt"`

	// CreatedAt When the run was created
	CreatedAt time.Time `json:"createdAt"`

	// DurationMs Total execution time in milliseconds
	DurationMs *int `json:"durationMs"`

	// FailReason The reason the run failed. Null unless status is `failed`. `source_not_available` means the search requested a domain Exa cannot return (remove it from the search), and `forbidden` means the request was otherwise not permitted.
	FailReason *SearchMonitorRunFailReason `json:"failReason"`

	// FailedAt When the run failed
	FailedAt *time.Time `json:"failedAt"`

	// Id The unique identifier for the run
	Id string `json:"id"`

	// MonitorId The monitor this run belongs to
	MonitorId string `json:"monitorId"`

	// Output The output of the run. Null until the run completes.
	Output *SearchMonitorRunOutput `json:"output"`

	// StartedAt When the run started executing
	StartedAt *time.Time `json:"startedAt"`

	// Status The status of the run
	Status SearchMonitorRunStatus `json:"status"`

	// UpdatedAt When the run was last updated
	UpdatedAt time.Time `json:"updatedAt"`
}

SearchMonitorRun defines model for SearchMonitorRun.

type SearchMonitorRunFailReason added in v0.2.0

type SearchMonitorRunFailReason string

SearchMonitorRunFailReason defines model for SearchMonitorRun.FailReason.

const (
	SearchMonitorRunFailReasonApiKeyInvalid       SearchMonitorRunFailReason = "api_key_invalid"
	SearchMonitorRunFailReasonForbidden           SearchMonitorRunFailReason = "forbidden"
	SearchMonitorRunFailReasonInsufficientCredits SearchMonitorRunFailReason = "insufficient_credits"
	SearchMonitorRunFailReasonInternalError       SearchMonitorRunFailReason = "internal_error"
	SearchMonitorRunFailReasonInvalidParams       SearchMonitorRunFailReason = "invalid_params"
	SearchMonitorRunFailReasonRateLimited         SearchMonitorRunFailReason = "rate_limited"
	SearchMonitorRunFailReasonSearchFailed        SearchMonitorRunFailReason = "search_failed"
	SearchMonitorRunFailReasonSearchUnavailable   SearchMonitorRunFailReason = "search_unavailable"
	SearchMonitorRunFailReasonSourceNotAvailable  SearchMonitorRunFailReason = "source_not_available"
)

Defines values for SearchMonitorRunFailReason.

func (SearchMonitorRunFailReason) Valid added in v0.2.0

func (e SearchMonitorRunFailReason) Valid() bool

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

type SearchMonitorRunOutput added in v0.2.0

type SearchMonitorRunOutput struct {
	// Content Synthesized content from the search results. Shape depends on `outputSchema.type`.
	Content JsonValue `json:"content,omitempty"`

	// Grounding Field-level citations with confidence levels
	Grounding *struct {
		Citations []struct {
			// Title Source title.
			Title string `json:"title"`

			// Url Source URL.
			Url string `json:"url"`
		} `json:"citations"`

		// Confidence Model-reported reliability for this field.
		Confidence SearchMonitorRunOutputGroundingConfidence `json:"confidence"`

		// Field The output field this citation applies to
		Field string `json:"field"`
	} `json:"grounding,omitempty"`

	// Results The search results
	Results *[]map[string]JsonValue `json:"results,omitempty"`
}

SearchMonitorRunOutput defines model for SearchMonitorRunOutput.

type SearchMonitorRunOutputGroundingConfidence added in v0.2.0

type SearchMonitorRunOutputGroundingConfidence string

SearchMonitorRunOutputGroundingConfidence Model-reported reliability for this field.

const (
	SearchMonitorRunOutputGroundingConfidenceHigh   SearchMonitorRunOutputGroundingConfidence = "high"
	SearchMonitorRunOutputGroundingConfidenceLow    SearchMonitorRunOutputGroundingConfidence = "low"
	SearchMonitorRunOutputGroundingConfidenceMedium SearchMonitorRunOutputGroundingConfidence = "medium"
)

Defines values for SearchMonitorRunOutputGroundingConfidence.

func (SearchMonitorRunOutputGroundingConfidence) Valid added in v0.2.0

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

type SearchMonitorRunStatus added in v0.2.0

type SearchMonitorRunStatus string

SearchMonitorRunStatus The status of the run

const (
	SearchMonitorRunStatusCancelled SearchMonitorRunStatus = "cancelled"
	SearchMonitorRunStatusCompleted SearchMonitorRunStatus = "completed"
	SearchMonitorRunStatusFailed    SearchMonitorRunStatus = "failed"
	SearchMonitorRunStatusPending   SearchMonitorRunStatus = "pending"
	SearchMonitorRunStatusRunning   SearchMonitorRunStatus = "running"
)

Defines values for SearchMonitorRunStatus.

func (SearchMonitorRunStatus) Valid added in v0.2.0

func (e SearchMonitorRunStatus) Valid() bool

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

type SearchMonitorSearch added in v0.2.0

type SearchMonitorSearch struct {
	// Contents Content extraction options applied to each search result. All fields are optional.
	Contents *SearchMonitorContents `json:"contents,omitempty"`

	// ExcludeDomains Exclude these domains from search results.
	ExcludeDomains *[]string `json:"excludeDomains,omitempty"`

	// IncludeDomains Restrict search results to these domains.
	IncludeDomains *[]string `json:"includeDomains,omitempty"`

	// NumResults Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact sales (hello@exa.ai) to discuss higher limits.
	NumResults *int `json:"numResults,omitempty"`

	// Query The query string for the search.
	Query string `json:"query"`
}

SearchMonitorSearch defines model for SearchMonitorSearch.

type SearchMonitorSearchOutput added in v0.2.0

type SearchMonitorSearchOutput struct {
	// Contents Content extraction options applied to each search result. All fields are optional.
	Contents *SearchMonitorContentsOutput `json:"contents,omitempty"`

	// ExcludeDomains Exclude these domains from search results.
	ExcludeDomains *[]string `json:"excludeDomains,omitempty"`

	// IncludeDomains Restrict search results to these domains.
	IncludeDomains *[]string `json:"includeDomains,omitempty"`

	// NumResults Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact sales (hello@exa.ai) to discuss higher limits.
	NumResults *int `json:"numResults,omitempty"`

	// Query The query string for the search.
	Query string `json:"query"`
}

SearchMonitorSearchOutput defines model for SearchMonitorSearchOutput.

type SearchMonitorStatus added in v0.2.0

type SearchMonitorStatus string

SearchMonitorStatus The status of the monitor. `active` monitors run on schedule and can be triggered manually. `paused` monitors can only be triggered manually. `disabled` monitors are auto-disabled after 10 consecutive authentication failures.

const (
	SearchMonitorStatusActive   SearchMonitorStatus = "active"
	SearchMonitorStatusDisabled SearchMonitorStatus = "disabled"
	SearchMonitorStatusPaused   SearchMonitorStatus = "paused"
)

Defines values for SearchMonitorStatus.

func (SearchMonitorStatus) Valid added in v0.2.0

func (e SearchMonitorStatus) Valid() bool

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

type SearchMonitorTrigger added in v0.2.0

type SearchMonitorTrigger struct {
	// Period A duration string specifying how often the monitor runs (e.g., "1h", "6h", "1d", "7d"). Single-unit only. Minimum interval is 1 hour. The schedule is anchored to the monitor's creation time (e.g., a daily monitor created at 2:30 PM runs daily around 2:30 PM).
	Period string `json:"period"`

	// Type The type of trigger. Currently only `interval` is supported.
	Type SearchMonitorTriggerType `json:"type"`
}

SearchMonitorTrigger defines model for SearchMonitorTrigger.

type SearchMonitorTriggerOutput added in v0.2.0

type SearchMonitorTriggerOutput struct {
	// Period A duration string specifying how often the monitor runs (e.g., "1h", "6h", "1d", "7d"). Single-unit only. Minimum interval is 1 hour. The schedule is anchored to the monitor's creation time (e.g., a daily monitor created at 2:30 PM runs daily around 2:30 PM).
	Period string `json:"period"`

	// Type The type of trigger. Currently only `interval` is supported.
	Type SearchMonitorTriggerOutputType `json:"type"`
}

SearchMonitorTriggerOutput defines model for SearchMonitorTriggerOutput.

type SearchMonitorTriggerOutputType added in v0.2.0

type SearchMonitorTriggerOutputType string

SearchMonitorTriggerOutputType The type of trigger. Currently only `interval` is supported.

const (
	SearchMonitorTriggerOutputTypeInterval SearchMonitorTriggerOutputType = "interval"
)

Defines values for SearchMonitorTriggerOutputType.

func (SearchMonitorTriggerOutputType) Valid added in v0.2.0

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

type SearchMonitorTriggerType added in v0.2.0

type SearchMonitorTriggerType string

SearchMonitorTriggerType The type of trigger. Currently only `interval` is supported.

const (
	SearchMonitorTriggerTypeInterval SearchMonitorTriggerType = "interval"
)

Defines values for SearchMonitorTriggerType.

func (SearchMonitorTriggerType) Valid added in v0.2.0

func (e SearchMonitorTriggerType) Valid() bool

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

type SearchMonitorWebhook added in v0.2.0

type SearchMonitorWebhook struct {
	// Events Which events to subscribe to. Defaults to all events if not specified.
	Events *[]SearchMonitorWebhookEvents `json:"events,omitempty"`

	// Url The HTTPS URL to receive webhook events. Must not point to localhost or private IP ranges.
	Url string `json:"url"`
}

SearchMonitorWebhook defines model for SearchMonitorWebhook.

type SearchMonitorWebhookEvents added in v0.2.0

type SearchMonitorWebhookEvents string

SearchMonitorWebhookEvents defines model for SearchMonitorWebhook.Events.

const (
	SearchMonitorWebhookEventsMonitorCreated      SearchMonitorWebhookEvents = "monitor.created"
	SearchMonitorWebhookEventsMonitorDeleted      SearchMonitorWebhookEvents = "monitor.deleted"
	SearchMonitorWebhookEventsMonitorRunCompleted SearchMonitorWebhookEvents = "monitor.run.completed"
	SearchMonitorWebhookEventsMonitorRunCreated   SearchMonitorWebhookEvents = "monitor.run.created"
	SearchMonitorWebhookEventsMonitorUpdated      SearchMonitorWebhookEvents = "monitor.updated"
)

Defines values for SearchMonitorWebhookEvents.

func (SearchMonitorWebhookEvents) Valid added in v0.2.0

func (e SearchMonitorWebhookEvents) Valid() bool

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

type SearchMonitorWebhookOutput added in v0.2.0

type SearchMonitorWebhookOutput struct {
	// Events Which events to subscribe to. Defaults to all events if not specified.
	Events *[]SearchMonitorWebhookOutputEvents `json:"events,omitempty"`

	// Url The HTTPS URL to receive webhook events. Must not point to localhost or private IP ranges.
	Url string `json:"url"`
}

SearchMonitorWebhookOutput defines model for SearchMonitorWebhookOutput.

type SearchMonitorWebhookOutputEvents added in v0.2.0

type SearchMonitorWebhookOutputEvents string

SearchMonitorWebhookOutputEvents defines model for SearchMonitorWebhookOutput.Events.

const (
	SearchMonitorWebhookOutputEventsMonitorCreated      SearchMonitorWebhookOutputEvents = "monitor.created"
	SearchMonitorWebhookOutputEventsMonitorDeleted      SearchMonitorWebhookOutputEvents = "monitor.deleted"
	SearchMonitorWebhookOutputEventsMonitorRunCompleted SearchMonitorWebhookOutputEvents = "monitor.run.completed"
	SearchMonitorWebhookOutputEventsMonitorRunCreated   SearchMonitorWebhookOutputEvents = "monitor.run.created"
	SearchMonitorWebhookOutputEventsMonitorUpdated      SearchMonitorWebhookOutputEvents = "monitor.updated"
)

Defines values for SearchMonitorWebhookOutputEvents.

func (SearchMonitorWebhookOutputEvents) Valid added in v0.2.0

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

type SearchNoticeOutput added in v0.2.0

type SearchNoticeOutput struct {
	// Code Machine-readable notice code, UPPER_SNAKE. `RESTRICTIONS_RELAXED`: the `site:` or exact-phrase restrictions written in the query matched nothing, so the results come from a search with them removed; filters set in the request body were kept. Codes are an open set: tolerate codes you do not recognize.
	Code string `json:"code"`

	// Details Optional extra context for a harness or model. An open object: no schema is promised for its keys, and it never carries information that `message` lacks.
	Details *map[string]interface{} `json:"details,omitempty"`

	// Message Human-readable and complete on its own; written to be shown to a model.
	Message string `json:"message"`

	// Path JSON Pointer to the request field the notice is about.
	Path string `json:"path"`
}

SearchNoticeOutput A note about how the results were produced, written to be passed to a model with the results.

type SearchPersonEntityOutput added in v0.2.0

type SearchPersonEntityOutput struct {
	// Id Stable person entity identifier.
	Id string `json:"id"`

	// Properties Person-specific entity fields.
	Properties struct {
		// EducationHistory Known education history for this person.
		EducationHistory []struct {
			// Dates Education date range.
			Dates *struct {
				// From Start date for the date range.
				From *string `json:"from"`

				// To End date for the date range.
				To *string `json:"to"`
			} `json:"dates"`

			// Degree Degree or credential.
			Degree *string `json:"degree"`

			// Institution Education institution.
			Institution *struct {
				// Id Referenced institution identifier.
				Id *string `json:"id"`

				// Name Referenced institution name.
				Name *string `json:"name"`
			} `json:"institution"`
		} `json:"educationHistory"`

		// FirstName Person first name.
		FirstName *string `json:"firstName"`

		// LastName Person last name.
		LastName *string `json:"lastName"`

		// Location Person location.
		Location *string `json:"location"`

		// Name Person name.
		Name *string `json:"name"`

		// Research Person research information.
		Research *struct {
			// Areas Ranked research areas, most active first.
			Areas []string `json:"areas"`

			// CitationCount Lifetime citation count.
			CitationCount *int `json:"citationCount"`

			// FirstPublicationYear Year of the first publication.
			FirstPublicationYear *int `json:"firstPublicationYear"`

			// HIndex Research h-index.
			HIndex *int `json:"hIndex"`

			// LatestPublicationYear Year of the latest publication.
			LatestPublicationYear *int `json:"latestPublicationYear"`

			// NotableWorks Most-cited notable works.
			NotableWorks []struct {
				// CitationCount Number of works citing this publication.
				CitationCount *int `json:"citationCount"`

				// Doi Digital Object Identifier.
				Doi *string `json:"doi"`

				// Id Resolved publication entity identifier, when available.
				Id *string `json:"id"`

				// Title Publication title.
				Title *string `json:"title"`

				// Type Publication type.
				Type *SearchPersonEntityOutputPropertiesResearchNotableWorksType `json:"type"`

				// Venue Publication venue.
				Venue *string `json:"venue"`

				// Year Publication year.
				Year *int `json:"year"`
			} `json:"notableWorks"`

			// WorksCount Lifetime number of works.
			WorksCount *int `json:"worksCount"`
		} `json:"research"`

		// WorkHistory Known professional roles for this person.
		WorkHistory []struct {
			// Company Company for this role.
			Company *struct {
				// Id Referenced company identifier.
				Id *string `json:"id"`

				// Name Referenced company name.
				Name *string `json:"name"`
			} `json:"company"`

			// Dates Role date range.
			Dates *struct {
				// From Start date for the date range.
				From *string `json:"from"`

				// To End date for the date range.
				To *string `json:"to"`
			} `json:"dates"`

			// Location Role location.
			Location *string `json:"location"`

			// Title Role title.
			Title *string `json:"title"`
		} `json:"workHistory"`
	} `json:"properties"`

	// Type Entity discriminator.
	Type SearchPersonEntityOutputType `json:"type"`

	// Version Entity schema version.
	Version int `json:"version"`
}

SearchPersonEntityOutput defines model for SearchPersonEntityOutput.

type SearchPersonEntityOutputPropertiesResearchNotableWorksType added in v0.2.0

type SearchPersonEntityOutputPropertiesResearchNotableWorksType string

SearchPersonEntityOutputPropertiesResearchNotableWorksType defines model for SearchPersonEntityOutput.Properties.Research.NotableWorks.Type.

const (
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeArticle      SearchPersonEntityOutputPropertiesResearchNotableWorksType = "article"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeBook         SearchPersonEntityOutputPropertiesResearchNotableWorksType = "book"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeBookChapter  SearchPersonEntityOutputPropertiesResearchNotableWorksType = "book-chapter"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeDataset      SearchPersonEntityOutputPropertiesResearchNotableWorksType = "dataset"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeDissertation SearchPersonEntityOutputPropertiesResearchNotableWorksType = "dissertation"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypePreprint     SearchPersonEntityOutputPropertiesResearchNotableWorksType = "preprint"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeReport       SearchPersonEntityOutputPropertiesResearchNotableWorksType = "report"
	SearchPersonEntityOutputPropertiesResearchNotableWorksTypeReview       SearchPersonEntityOutputPropertiesResearchNotableWorksType = "review"
)

Defines values for SearchPersonEntityOutputPropertiesResearchNotableWorksType.

func (SearchPersonEntityOutputPropertiesResearchNotableWorksType) Valid added in v0.2.0

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

type SearchPersonEntityOutputType added in v0.2.0

type SearchPersonEntityOutputType string

SearchPersonEntityOutputType Entity discriminator.

const (
	SearchPersonEntityOutputTypePerson SearchPersonEntityOutputType = "person"
)

Defines values for SearchPersonEntityOutputType.

func (SearchPersonEntityOutputType) Valid added in v0.2.0

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

type SearchPublicationEntityOutput added in v0.2.0

type SearchPublicationEntityOutput struct {
	// Id Stable publication entity identifier.
	Id string `json:"id"`

	// Properties Publication-specific entity fields.
	Properties struct {
		// Abstract Publication abstract text.
		Abstract *string `json:"abstract"`

		// Authors Ordered list of authors.
		Authors []struct {
			// Id Resolved person entity identifier, when available.
			Id *string `json:"id"`

			// Name Author display name.
			Name *string `json:"name"`
		} `json:"authors"`

		// CitationCount Number of works citing this publication (incoming references).
		CitationCount *int `json:"citationCount"`

		// Date Publication date.
		Date *string `json:"date"`

		// Doi Bare DOI identifier (e.g. 10.1234/abcd).
		Doi *string `json:"doi"`

		// Language Publication language.
		Language *string `json:"language"`

		// ReferenceCount Number of works this publication cites (outgoing references).
		ReferenceCount *int `json:"referenceCount"`

		// Title Publication title.
		Title *string `json:"title"`

		// Type Publication type.
		Type *SearchPublicationEntityOutputPropertiesType `json:"type"`

		// Year Publication year.
		Year *int `json:"year"`
	} `json:"properties"`

	// Type Entity discriminator.
	Type SearchPublicationEntityOutputType `json:"type"`

	// Version Entity schema version.
	Version int `json:"version"`
}

SearchPublicationEntityOutput defines model for SearchPublicationEntityOutput.

type SearchPublicationEntityOutputPropertiesType added in v0.2.0

type SearchPublicationEntityOutputPropertiesType string

SearchPublicationEntityOutputPropertiesType defines model for SearchPublicationEntityOutput.Properties.Type.

const (
	SearchPublicationEntityOutputPropertiesTypeArticle      SearchPublicationEntityOutputPropertiesType = "article"
	SearchPublicationEntityOutputPropertiesTypeBook         SearchPublicationEntityOutputPropertiesType = "book"
	SearchPublicationEntityOutputPropertiesTypeBookChapter  SearchPublicationEntityOutputPropertiesType = "book-chapter"
	SearchPublicationEntityOutputPropertiesTypeDataset      SearchPublicationEntityOutputPropertiesType = "dataset"
	SearchPublicationEntityOutputPropertiesTypeDissertation SearchPublicationEntityOutputPropertiesType = "dissertation"
	SearchPublicationEntityOutputPropertiesTypePreprint     SearchPublicationEntityOutputPropertiesType = "preprint"
	SearchPublicationEntityOutputPropertiesTypeReport       SearchPublicationEntityOutputPropertiesType = "report"
	SearchPublicationEntityOutputPropertiesTypeReview       SearchPublicationEntityOutputPropertiesType = "review"
)

Defines values for SearchPublicationEntityOutputPropertiesType.

func (SearchPublicationEntityOutputPropertiesType) Valid added in v0.2.0

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

type SearchPublicationEntityOutputType added in v0.2.0

type SearchPublicationEntityOutputType string

SearchPublicationEntityOutputType Entity discriminator.

const (
	SearchPublicationEntityOutputTypePublication SearchPublicationEntityOutputType = "publication"
)

Defines values for SearchPublicationEntityOutputType.

func (SearchPublicationEntityOutputType) Valid added in v0.2.0

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

type SearchRequest added in v0.2.0

type SearchRequest struct {
	AdditionalQueries *[]string                `json:"additionalQueries,omitempty"`
	Category          *SearchRequestCategory   `json:"category,omitempty"`
	Compliance        *SearchRequestCompliance `json:"compliance,omitempty"`
	Contents          *ContentsOptions         `json:"contents,omitempty"`
	Context           *struct {
		// contains filtered or unexported fields
	} `json:"context,omitempty"`
	EndCrawlDate     *time.Time `json:"endCrawlDate,omitempty"`
	EndPublishedDate *time.Time `json:"endPublishedDate,omitempty"`
	ExcludeDomains   *[]string  `json:"excludeDomains,omitempty"`

	// ExcludeText Deprecated. List of strings that must not be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase). Up to 50 strings, each up to 4096 characters.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ExcludeText    *[]string `json:"excludeText,omitempty"`
	IncludeDomains *[]string `json:"includeDomains,omitempty"`

	// IncludeText Deprecated. List of strings that must be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase), so a multi-word entry can match pages where its words appear separately. Up to 50 strings, each up to 4096 characters.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	IncludeText *[]string `json:"includeText,omitempty"`
	Moderation  *bool     `json:"moderation,omitempty"`
	NumResults  *int      `json:"numResults,omitempty"`

	// Objective The broader goal this search serves: the task the caller is working on, beyond the query itself. When exposing this field to an agent as a tool parameter, describe it as: "Goal for this search turn; say which documents should rank first, which should be excluded, and what specific facts or figures to pull from them."
	Objective    *string `json:"objective,omitempty"`
	OutputSchema *struct {
		// contains filtered or unexported fields
	} `json:"outputSchema,omitempty"`

	// Query The query string for the search.
	Query              string     `json:"query"`
	StartCrawlDate     *time.Time `json:"startCrawlDate,omitempty"`
	StartPublishedDate *time.Time `json:"startPublishedDate,omitempty"`
	Stream             *bool      `json:"stream,omitempty"`
	SystemPrompt       *string    `json:"systemPrompt,omitempty"`

	// Type The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
	//
	// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
	// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
	// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
	// - `deep`: Conducts comprehensive multi-step research with synthesis.
	// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
	// - `fast`: Legacy. Use `lite` instead. Runs a reduced-latency search for user-facing and interactive workflows. Unlike `lite`, it accepts every search parameter.
	// - `deep-reasoning`: Legacy. Use `deep` instead. Runs `deep` with stronger reasoning at each step, for complex analysis and decision-making tasks. For agentic, multi-step research, use the Agent API.
	Type *SearchRequest_Type `json:"type,omitempty"`

	// UserIdentifier An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results.
	UserIdentifier *string `json:"userIdentifier,omitempty"`
	UserLocation   *struct {
		// contains filtered or unexported fields
	} `json:"userLocation,omitempty"`
}

SearchRequest defines model for SearchRequest.

type SearchRequestCategory added in v0.2.0

type SearchRequestCategory string

SearchRequestCategory A data category to focus on. Other strings are accepted and used as category hints. `people` and `company` return higher-quality people profiles and company pages. `publication` returns scholarly publications such as research papers, preprints, and journal articles, with metadata like authors, venue, and citations. `company` and `people` do not support `startPublishedDate` or `endPublishedDate`, and `people` also does not support `excludeDomains`. Requests that set an unsupported filter return a 400 error.

const (
	SearchRequestCategoryCompany         SearchRequestCategory = "company"
	SearchRequestCategoryFinancialReport SearchRequestCategory = "financial report"
	SearchRequestCategoryNews            SearchRequestCategory = "news"
	SearchRequestCategoryPeople          SearchRequestCategory = "people"
	SearchRequestCategoryPersonalSite    SearchRequestCategory = "personal site"
	SearchRequestCategoryPublication     SearchRequestCategory = "publication"
)

Defines values for SearchRequestCategory.

func (SearchRequestCategory) Valid added in v0.2.0

func (e SearchRequestCategory) Valid() bool

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

type SearchRequestCompliance added in v0.2.0

type SearchRequestCompliance string

SearchRequestCompliance Enterprise-only compliance mode. Set to `hipaa` for HIPAA mode. Requires cache-only retrieval with supported parameters. See the HIPAA docs for details.

const (
	SearchRequestComplianceHipaa SearchRequestCompliance = "hipaa"
)

Defines values for SearchRequestCompliance.

func (SearchRequestCompliance) Valid added in v0.2.0

func (e SearchRequestCompliance) Valid() bool

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

type SearchRequestContext0 deprecated added in v0.2.0

type SearchRequestContext0 = bool

SearchRequestContext0 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchRequestContext1 deprecated added in v0.2.0

type SearchRequestContext1 struct {
	// MaxCharacters Maximum character limit for the context string.
	MaxCharacters *int `json:"maxCharacters,omitempty"`
}

SearchRequestContext1 Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type SearchRequestType0 added in v0.2.0

type SearchRequestType0 string

SearchRequestType0 The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.

const (
	SearchRequestType0Auto SearchRequestType0 = "auto"
)

Defines values for SearchRequestType0.

func (SearchRequestType0) Valid added in v0.2.0

func (e SearchRequestType0) Valid() bool

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

type SearchRequestType1 added in v0.2.0

type SearchRequestType1 string

SearchRequestType1 Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.

const (
	SearchRequestType1Lite SearchRequestType1 = "lite"
)

Defines values for SearchRequestType1.

func (SearchRequestType1) Valid added in v0.2.0

func (e SearchRequestType1) Valid() bool

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

type SearchRequestType2 added in v0.2.0

type SearchRequestType2 string

SearchRequestType2 Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.

const (
	SearchRequestType2DeepLite SearchRequestType2 = "deep-lite"
)

Defines values for SearchRequestType2.

func (SearchRequestType2) Valid added in v0.2.0

func (e SearchRequestType2) Valid() bool

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

type SearchRequestType3 added in v0.2.0

type SearchRequestType3 string

SearchRequestType3 Conducts comprehensive multi-step research with synthesis.

const (
	SearchRequestType3Deep SearchRequestType3 = "deep"
)

Defines values for SearchRequestType3.

func (SearchRequestType3) Valid added in v0.2.0

func (e SearchRequestType3) Valid() bool

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

type SearchRequestType4 added in v0.2.0

type SearchRequestType4 string

SearchRequestType4 Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.

const (
	SearchRequestType4Instant SearchRequestType4 = "instant"
)

Defines values for SearchRequestType4.

func (SearchRequestType4) Valid added in v0.2.0

func (e SearchRequestType4) Valid() bool

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

type SearchRequestType5 added in v0.2.0

type SearchRequestType5 string

SearchRequestType5 Legacy. Use `lite` instead. Runs a reduced-latency search for user-facing and interactive workflows. Unlike `lite`, it accepts every search parameter.

const (
	SearchRequestType5Fast SearchRequestType5 = "fast"
)

Defines values for SearchRequestType5.

func (SearchRequestType5) Valid added in v0.2.0

func (e SearchRequestType5) Valid() bool

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

type SearchRequestType6 added in v0.2.0

type SearchRequestType6 string

SearchRequestType6 Legacy. Use `deep` instead. Runs `deep` with stronger reasoning at each step, for complex analysis and decision-making tasks. For agentic, multi-step research, use the Agent API.

const (
	SearchRequestType6DeepReasoning SearchRequestType6 = "deep-reasoning"
)

Defines values for SearchRequestType6.

func (SearchRequestType6) Valid added in v0.2.0

func (e SearchRequestType6) Valid() bool

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

type SearchRequestType7 added in v0.2.0

type SearchRequestType7 = string

SearchRequestType7 defines model for SearchRequest.Type.7.

type SearchRequestUserLocation0 added in v0.2.0

type SearchRequestUserLocation0 = string

SearchRequestUserLocation0 The two-letter ISO 3166-1 country code of the user, e.g. `US`.

type SearchRequestUserLocation1 added in v0.2.0

type SearchRequestUserLocation1 struct {
	// Country The two-letter ISO 3166-1 country code of the user, e.g. `US`.
	Country string `json:"country"`
}

SearchRequestUserLocation1 The user's country only. Equivalent to the string form.

type SearchRequestUserLocation2 added in v0.2.0

type SearchRequestUserLocation2 struct {
	// Country The two-letter ISO 3166-1 country code of the user, e.g. `US`.
	Country *string `json:"country,omitempty"`

	// Latitude The user's latitude in decimal degrees.
	Latitude float32 `json:"latitude"`

	// Longitude The user's longitude in decimal degrees.
	Longitude float32 `json:"longitude"`
}

SearchRequestUserLocation2 The user's coordinates, with an optional country.

type SearchRequest_Type added in v0.2.0

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

SearchRequest_Type The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.

- `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications. - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected. - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search. - `deep`: Conducts comprehensive multi-step research with synthesis. - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter. - `fast`: Legacy. Use `lite` instead. Runs a reduced-latency search for user-facing and interactive workflows. Unlike `lite`, it accepts every search parameter. - `deep-reasoning`: Legacy. Use `deep` instead. Runs `deep` with stronger reasoning at each step, for complex analysis and decision-making tasks. For agentic, multi-step research, use the Agent API.

func (SearchRequest_Type) AsSearchRequestType0 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType0() (SearchRequestType0, error)

AsSearchRequestType0 returns the union data inside the SearchRequest_Type as a SearchRequestType0

func (SearchRequest_Type) AsSearchRequestType1 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType1() (SearchRequestType1, error)

AsSearchRequestType1 returns the union data inside the SearchRequest_Type as a SearchRequestType1

func (SearchRequest_Type) AsSearchRequestType2 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType2() (SearchRequestType2, error)

AsSearchRequestType2 returns the union data inside the SearchRequest_Type as a SearchRequestType2

func (SearchRequest_Type) AsSearchRequestType3 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType3() (SearchRequestType3, error)

AsSearchRequestType3 returns the union data inside the SearchRequest_Type as a SearchRequestType3

func (SearchRequest_Type) AsSearchRequestType4 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType4() (SearchRequestType4, error)

AsSearchRequestType4 returns the union data inside the SearchRequest_Type as a SearchRequestType4

func (SearchRequest_Type) AsSearchRequestType5 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType5() (SearchRequestType5, error)

AsSearchRequestType5 returns the union data inside the SearchRequest_Type as a SearchRequestType5

func (SearchRequest_Type) AsSearchRequestType6 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType6() (SearchRequestType6, error)

AsSearchRequestType6 returns the union data inside the SearchRequest_Type as a SearchRequestType6

func (SearchRequest_Type) AsSearchRequestType7 added in v0.2.0

func (t SearchRequest_Type) AsSearchRequestType7() (SearchRequestType7, error)

AsSearchRequestType7 returns the union data inside the SearchRequest_Type as a SearchRequestType7

func (*SearchRequest_Type) FromSearchRequestType0 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType0(v SearchRequestType0) error

FromSearchRequestType0 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType0

func (*SearchRequest_Type) FromSearchRequestType1 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType1(v SearchRequestType1) error

FromSearchRequestType1 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType1

func (*SearchRequest_Type) FromSearchRequestType2 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType2(v SearchRequestType2) error

FromSearchRequestType2 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType2

func (*SearchRequest_Type) FromSearchRequestType3 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType3(v SearchRequestType3) error

FromSearchRequestType3 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType3

func (*SearchRequest_Type) FromSearchRequestType4 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType4(v SearchRequestType4) error

FromSearchRequestType4 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType4

func (*SearchRequest_Type) FromSearchRequestType5 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType5(v SearchRequestType5) error

FromSearchRequestType5 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType5

func (*SearchRequest_Type) FromSearchRequestType6 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType6(v SearchRequestType6) error

FromSearchRequestType6 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType6

func (*SearchRequest_Type) FromSearchRequestType7 added in v0.2.0

func (t *SearchRequest_Type) FromSearchRequestType7(v SearchRequestType7) error

FromSearchRequestType7 overwrites any union data inside the SearchRequest_Type as the provided SearchRequestType7

func (SearchRequest_Type) MarshalJSON added in v0.2.0

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

func (*SearchRequest_Type) MergeSearchRequestType0 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType0(v SearchRequestType0) error

MergeSearchRequestType0 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType0

func (*SearchRequest_Type) MergeSearchRequestType1 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType1(v SearchRequestType1) error

MergeSearchRequestType1 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType1

func (*SearchRequest_Type) MergeSearchRequestType2 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType2(v SearchRequestType2) error

MergeSearchRequestType2 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType2

func (*SearchRequest_Type) MergeSearchRequestType3 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType3(v SearchRequestType3) error

MergeSearchRequestType3 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType3

func (*SearchRequest_Type) MergeSearchRequestType4 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType4(v SearchRequestType4) error

MergeSearchRequestType4 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType4

func (*SearchRequest_Type) MergeSearchRequestType5 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType5(v SearchRequestType5) error

MergeSearchRequestType5 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType5

func (*SearchRequest_Type) MergeSearchRequestType6 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType6(v SearchRequestType6) error

MergeSearchRequestType6 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType6

func (*SearchRequest_Type) MergeSearchRequestType7 added in v0.2.0

func (t *SearchRequest_Type) MergeSearchRequestType7(v SearchRequestType7) error

MergeSearchRequestType7 performs a merge with any union data inside the SearchRequest_Type, using the provided SearchRequestType7

func (*SearchRequest_Type) UnmarshalJSON added in v0.2.0

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

type SearchResponse

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

SearchResponse defines model for SearchResponse.

func (SearchResponse) AsSearchResultsResponse added in v0.2.0

func (t SearchResponse) AsSearchResultsResponse() (SearchResultsResponse, error)

AsSearchResultsResponse returns the union data inside the SearchResponse as a SearchResultsResponse

func (SearchResponse) AsSearchSynthesisResponse added in v0.2.0

func (t SearchResponse) AsSearchSynthesisResponse() (SearchSynthesisResponse, error)

AsSearchSynthesisResponse returns the union data inside the SearchResponse as a SearchSynthesisResponse

func (*SearchResponse) FromSearchResultsResponse added in v0.2.0

func (t *SearchResponse) FromSearchResultsResponse(v SearchResultsResponse) error

FromSearchResultsResponse overwrites any union data inside the SearchResponse as the provided SearchResultsResponse

func (*SearchResponse) FromSearchSynthesisResponse added in v0.2.0

func (t *SearchResponse) FromSearchSynthesisResponse(v SearchSynthesisResponse) error

FromSearchSynthesisResponse overwrites any union data inside the SearchResponse as the provided SearchSynthesisResponse

func (SearchResponse) MarshalJSON added in v0.2.0

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

func (*SearchResponse) MergeSearchResultsResponse added in v0.2.0

func (t *SearchResponse) MergeSearchResultsResponse(v SearchResultsResponse) error

MergeSearchResultsResponse performs a merge with any union data inside the SearchResponse, using the provided SearchResultsResponse

func (*SearchResponse) MergeSearchSynthesisResponse added in v0.2.0

func (t *SearchResponse) MergeSearchSynthesisResponse(v SearchSynthesisResponse) error

MergeSearchSynthesisResponse performs a merge with any union data inside the SearchResponse, using the provided SearchSynthesisResponse

func (*SearchResponse) UnmarshalJSON added in v0.2.0

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

type SearchResponse2

type SearchResponse2 struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SearchResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *Search402JSONResponseBody
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *TooManyRequestsResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailableResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SearchResponse2200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *SearchResponse2400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *SearchResponse2401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *SearchResponse2402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *SearchResponse2403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SearchResponse2429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *SearchResponse2500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SearchResponse2503Headers
}

func ParseSearchResponse2

func ParseSearchResponse2(rsp *http.Response) (*SearchResponse2, error)

ParseSearchResponse2 parses an HTTP response from a SearchWithResponse call

func (SearchResponse2) ContentType

func (r SearchResponse2) ContentType() string

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

func (SearchResponse2) GetBody

func (r SearchResponse2) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchResponse2) GetJSON200

func (r SearchResponse2) GetJSON200() *SearchResponse

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

func (SearchResponse2) GetJSON400 added in v0.2.0

func (r SearchResponse2) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchResponse2) GetJSON401 added in v0.2.0

func (r SearchResponse2) GetJSON401() *UnauthorizedResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchResponse2) GetJSON402 added in v0.2.0

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (SearchResponse2) GetJSON403 added in v0.2.0

func (r SearchResponse2) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchResponse2) GetJSON429 added in v0.2.0

func (r SearchResponse2) GetJSON429() *TooManyRequestsResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (SearchResponse2) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SearchResponse2) GetJSON503 added in v0.2.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SearchResponse2) Status

func (r SearchResponse2) Status() string

Status returns HTTPResponse.Status

func (SearchResponse2) StatusCode

func (r SearchResponse2) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchResponse2200Headers added in v0.2.0

type SearchResponse2200Headers struct {
	XExaQueueMs *string
	XExaQueued  *string
	XRequestId  *string
}

SearchResponse2200Headers the declared response headers of an HTTP 200 response for Search

type SearchResponse2400Headers added in v0.2.0

type SearchResponse2400Headers struct {
	XRequestId *string
}

SearchResponse2400Headers the declared response headers of an HTTP 400 response for Search

type SearchResponse2401Headers added in v0.2.0

type SearchResponse2401Headers struct {
	XRequestId *string
}

SearchResponse2401Headers the declared response headers of an HTTP 401 response for Search

type SearchResponse2402Headers added in v0.2.0

type SearchResponse2402Headers struct {
	XRequestId *string
}

SearchResponse2402Headers the declared response headers of an HTTP 402 response for Search

type SearchResponse2403Headers added in v0.2.0

type SearchResponse2403Headers struct {
	XRequestId *string
}

SearchResponse2403Headers the declared response headers of an HTTP 403 response for Search

type SearchResponse2429Headers added in v0.2.0

type SearchResponse2429Headers struct {
	XRequestId *string
}

SearchResponse2429Headers the declared response headers of an HTTP 429 response for Search

type SearchResponse2500Headers added in v0.2.0

type SearchResponse2500Headers struct {
	XRequestId *string
}

SearchResponse2500Headers the declared response headers of an HTTP 500 response for Search

type SearchResponse2503Headers added in v0.2.0

type SearchResponse2503Headers struct {
	XRequestId *string
}

SearchResponse2503Headers the declared response headers of an HTTP 503 response for Search

type SearchResultOutput added in v0.2.0

type SearchResultOutput struct {
	// Author If available, the author of the content.
	Author *string `json:"author,omitempty"`

	// Entities Structured entity data for company, person, publication, or product search results. Returned for supported entity-backed categories and for product listing pages.
	Entities *[]SearchResultOutput_Entities_Item `json:"entities,omitempty"`

	// Extras Results from extras. Each field is returned only when requested via contents.extras.
	Extras *struct {
		// CodeBlocks Array of code blocks from the search result.
		CodeBlocks *[]struct {
			// Source The language the code block is annotated with, if any.
			Source string `json:"source"`

			// Text The contents of the code block.
			Text string `json:"text"`
		} `json:"codeBlocks,omitempty"`

		// ImageLinks Array of image URLs from the search result.
		ImageLinks *[]string `json:"imageLinks,omitempty"`

		// Links Array of links from the search result.
		Links *[]string `json:"links,omitempty"`

		// RichImageLinks Array of images with their alt text, in the order the images appear on the page.
		RichImageLinks *[]struct {
			// Alt The alt text of the image, when the page provides one.
			Alt *string `json:"alt,omitempty"`

			// Url The URL of the image.
			Url string `json:"url"`
		} `json:"richImageLinks,omitempty"`

		// RichLinks Array of links with their anchor text, in the order they appear on the page.
		RichLinks *[]struct {
			// Anchor The anchor text of the link, when the page provides one.
			Anchor *string `json:"anchor,omitempty"`

			// Url The URL of the link.
			Url string `json:"url"`
		} `json:"richLinks,omitempty"`
	} `json:"extras,omitempty"`

	// Favicon The URL of the favicon for the search result's domain.
	Favicon *string `json:"favicon,omitempty"`

	// HighlightScores Array of cosine similarity scores for each highlighted snippet.
	HighlightScores *[]float32 `json:"highlightScores,omitempty"`

	// Highlights Array of highlights extracted from the search result content.
	Highlights *[]string `json:"highlights,omitempty"`

	// Id The temporary ID for the document. Useful for the /contents endpoint.
	Id *string `json:"id,omitempty"`

	// Image The URL of an image associated with the search result, if available.
	Image *string `json:"image,omitempty"`

	// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
	PublishedDate *time.Time `json:"publishedDate,omitempty"`

	// Subpages Array of subpages for the search result.
	Subpages *[]struct {
		// Author If available, the author of the content.
		Author *string `json:"author,omitempty"`

		// Favicon The URL of the favicon for the search result's domain.
		Favicon *string `json:"favicon,omitempty"`

		// Id The temporary ID for the document. Useful for the /contents endpoint.
		Id *string `json:"id,omitempty"`

		// Image The URL of an image associated with the search result, if available.
		Image *string `json:"image,omitempty"`

		// PublishedDate An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
		PublishedDate *time.Time `json:"publishedDate,omitempty"`

		// Title The title of the search result.
		Title string `json:"title"`

		// Url The URL of the search result.
		Url string `json:"url"`
	} `json:"subpages,omitempty"`

	// Summary Summary of the webpage.
	Summary *string `json:"summary,omitempty"`

	// Text The full content text of the search result.
	Text *string `json:"text,omitempty"`

	// Title The title of the search result.
	Title string `json:"title"`

	// Url The URL of the search result.
	Url string `json:"url"`
}

SearchResultOutput defines model for SearchResultOutput.

type SearchResultOutput_Entities_Item added in v0.2.0

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

SearchResultOutput_Entities_Item defines model for SearchResultOutput.entities.Item.

func (SearchResultOutput_Entities_Item) AsSearchCompanyEntityOutput added in v0.2.0

func (t SearchResultOutput_Entities_Item) AsSearchCompanyEntityOutput() (SearchCompanyEntityOutput, error)

AsSearchCompanyEntityOutput returns the union data inside the SearchResultOutput_Entities_Item as a SearchCompanyEntityOutput

func (SearchResultOutput_Entities_Item) AsSearchPersonEntityOutput added in v0.2.0

func (t SearchResultOutput_Entities_Item) AsSearchPersonEntityOutput() (SearchPersonEntityOutput, error)

AsSearchPersonEntityOutput returns the union data inside the SearchResultOutput_Entities_Item as a SearchPersonEntityOutput

func (SearchResultOutput_Entities_Item) AsSearchPublicationEntityOutput added in v0.2.0

func (t SearchResultOutput_Entities_Item) AsSearchPublicationEntityOutput() (SearchPublicationEntityOutput, error)

AsSearchPublicationEntityOutput returns the union data inside the SearchResultOutput_Entities_Item as a SearchPublicationEntityOutput

func (SearchResultOutput_Entities_Item) Discriminator added in v0.2.0

func (t SearchResultOutput_Entities_Item) Discriminator() (string, error)

func (*SearchResultOutput_Entities_Item) FromSearchCompanyEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) FromSearchCompanyEntityOutput(v SearchCompanyEntityOutput) error

FromSearchCompanyEntityOutput overwrites any union data inside the SearchResultOutput_Entities_Item as the provided SearchCompanyEntityOutput

func (*SearchResultOutput_Entities_Item) FromSearchPersonEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) FromSearchPersonEntityOutput(v SearchPersonEntityOutput) error

FromSearchPersonEntityOutput overwrites any union data inside the SearchResultOutput_Entities_Item as the provided SearchPersonEntityOutput

func (*SearchResultOutput_Entities_Item) FromSearchPublicationEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) FromSearchPublicationEntityOutput(v SearchPublicationEntityOutput) error

FromSearchPublicationEntityOutput overwrites any union data inside the SearchResultOutput_Entities_Item as the provided SearchPublicationEntityOutput

func (SearchResultOutput_Entities_Item) MarshalJSON added in v0.2.0

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

func (*SearchResultOutput_Entities_Item) MergeSearchCompanyEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) MergeSearchCompanyEntityOutput(v SearchCompanyEntityOutput) error

MergeSearchCompanyEntityOutput performs a merge with any union data inside the SearchResultOutput_Entities_Item, using the provided SearchCompanyEntityOutput

func (*SearchResultOutput_Entities_Item) MergeSearchPersonEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) MergeSearchPersonEntityOutput(v SearchPersonEntityOutput) error

MergeSearchPersonEntityOutput performs a merge with any union data inside the SearchResultOutput_Entities_Item, using the provided SearchPersonEntityOutput

func (*SearchResultOutput_Entities_Item) MergeSearchPublicationEntityOutput added in v0.2.0

func (t *SearchResultOutput_Entities_Item) MergeSearchPublicationEntityOutput(v SearchPublicationEntityOutput) error

MergeSearchPublicationEntityOutput performs a merge with any union data inside the SearchResultOutput_Entities_Item, using the provided SearchPublicationEntityOutput

func (*SearchResultOutput_Entities_Item) UnmarshalJSON added in v0.2.0

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

func (SearchResultOutput_Entities_Item) ValueByDiscriminator added in v0.2.0

func (t SearchResultOutput_Entities_Item) ValueByDiscriminator() (interface{}, error)

type SearchResultsResponse added in v0.2.0

type SearchResultsResponse struct {
	// Context Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *string `json:"context,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput `json:"costDollars,omitempty"`

	// Notices Notices about how the results were produced. Pass them to your model with the results. Omitted when there are none.
	Notices *[]SearchNoticeOutput `json:"notices,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`

	// ResolvedSearchType Deprecated. May be an empty string. Do not branch on this value.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ResolvedSearchType *string `json:"resolvedSearchType,omitempty"`

	// Results A list of search results containing title, URL, published date, and author.
	Results []SearchResultOutput `json:"results"`

	// SearchTime Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency.
	SearchTime *float32 `json:"searchTime,omitempty"`

	// Warnings Warnings about the request, such as a field that has no effect. Log them; do not pass them to a model. Omitted when there are none.
	Warnings *[]SearchWarningOutput `json:"warnings,omitempty"`
}

SearchResultsResponse defines model for SearchResultsResponse.

type SearchStreamChunk added in v0.2.0

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

SearchStreamChunk Schema for each JSON payload emitted in a `/search` server-sent event stream. Each event is emitted as `data: <json>` and the stream terminates with `data: [DONE]`, which is not represented by this JSON schema.

func (SearchStreamChunk) AsSearchStreamDoneChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamDoneChunkOutput() (SearchStreamDoneChunkOutput, error)

AsSearchStreamDoneChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamDoneChunkOutput

func (SearchStreamChunk) AsSearchStreamErrorChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamErrorChunkOutput() (SearchStreamErrorChunkOutput, error)

AsSearchStreamErrorChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamErrorChunkOutput

func (SearchStreamChunk) AsSearchStreamGroundingChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamGroundingChunkOutput() (SearchStreamGroundingChunkOutput, error)

AsSearchStreamGroundingChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamGroundingChunkOutput

func (SearchStreamChunk) AsSearchStreamResetChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamResetChunkOutput() (SearchStreamResetChunkOutput, error)

AsSearchStreamResetChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamResetChunkOutput

func (SearchStreamChunk) AsSearchStreamResultsChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamResultsChunkOutput() (SearchStreamResultsChunkOutput, error)

AsSearchStreamResultsChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamResultsChunkOutput

func (SearchStreamChunk) AsSearchStreamTextDeltaChunkOutput added in v0.2.0

func (t SearchStreamChunk) AsSearchStreamTextDeltaChunkOutput() (SearchStreamTextDeltaChunkOutput, error)

AsSearchStreamTextDeltaChunkOutput returns the union data inside the SearchStreamChunk as a SearchStreamTextDeltaChunkOutput

func (SearchStreamChunk) Discriminator added in v0.2.0

func (t SearchStreamChunk) Discriminator() (string, error)

func (*SearchStreamChunk) FromSearchStreamDoneChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamDoneChunkOutput(v SearchStreamDoneChunkOutput) error

FromSearchStreamDoneChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamDoneChunkOutput

func (*SearchStreamChunk) FromSearchStreamErrorChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamErrorChunkOutput(v SearchStreamErrorChunkOutput) error

FromSearchStreamErrorChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamErrorChunkOutput

func (*SearchStreamChunk) FromSearchStreamGroundingChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamGroundingChunkOutput(v SearchStreamGroundingChunkOutput) error

FromSearchStreamGroundingChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamGroundingChunkOutput

func (*SearchStreamChunk) FromSearchStreamResetChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamResetChunkOutput(v SearchStreamResetChunkOutput) error

FromSearchStreamResetChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamResetChunkOutput

func (*SearchStreamChunk) FromSearchStreamResultsChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamResultsChunkOutput(v SearchStreamResultsChunkOutput) error

FromSearchStreamResultsChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamResultsChunkOutput

func (*SearchStreamChunk) FromSearchStreamTextDeltaChunkOutput added in v0.2.0

func (t *SearchStreamChunk) FromSearchStreamTextDeltaChunkOutput(v SearchStreamTextDeltaChunkOutput) error

FromSearchStreamTextDeltaChunkOutput overwrites any union data inside the SearchStreamChunk as the provided SearchStreamTextDeltaChunkOutput

func (SearchStreamChunk) MarshalJSON added in v0.2.0

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

func (*SearchStreamChunk) MergeSearchStreamDoneChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamDoneChunkOutput(v SearchStreamDoneChunkOutput) error

MergeSearchStreamDoneChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamDoneChunkOutput

func (*SearchStreamChunk) MergeSearchStreamErrorChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamErrorChunkOutput(v SearchStreamErrorChunkOutput) error

MergeSearchStreamErrorChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamErrorChunkOutput

func (*SearchStreamChunk) MergeSearchStreamGroundingChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamGroundingChunkOutput(v SearchStreamGroundingChunkOutput) error

MergeSearchStreamGroundingChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamGroundingChunkOutput

func (*SearchStreamChunk) MergeSearchStreamResetChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamResetChunkOutput(v SearchStreamResetChunkOutput) error

MergeSearchStreamResetChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamResetChunkOutput

func (*SearchStreamChunk) MergeSearchStreamResultsChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamResultsChunkOutput(v SearchStreamResultsChunkOutput) error

MergeSearchStreamResultsChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamResultsChunkOutput

func (*SearchStreamChunk) MergeSearchStreamTextDeltaChunkOutput added in v0.2.0

func (t *SearchStreamChunk) MergeSearchStreamTextDeltaChunkOutput(v SearchStreamTextDeltaChunkOutput) error

MergeSearchStreamTextDeltaChunkOutput performs a merge with any union data inside the SearchStreamChunk, using the provided SearchStreamTextDeltaChunkOutput

func (*SearchStreamChunk) UnmarshalJSON added in v0.2.0

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

func (SearchStreamChunk) ValueByDiscriminator added in v0.2.0

func (t SearchStreamChunk) ValueByDiscriminator() (interface{}, error)

type SearchStreamDoneChunkOutput added in v0.2.0

type SearchStreamDoneChunkOutput struct {
	Choices *[]struct {
		Delta struct {
			Citations *[]struct {
				Id string `json:"id"`

				// Title Source title.
				Title string `json:"title"`

				// Url Source URL.
				Url string `json:"url"`
			} `json:"citations,omitempty"`
			Content *string                                      `json:"content,omitempty"`
			Role    *SearchStreamDoneChunkOutputChoicesDeltaRole `json:"role,omitempty"`
		} `json:"delta"`
		FinishReason *SearchStreamDoneChunkOutputChoicesFinishReason `json:"finish_reason"`
		Index        int                                             `json:"index"`
	} `json:"choices,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput           `json:"costDollars,omitempty"`
	Output      *SearchSynthesisOutputOutput `json:"output"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`

	// SearchTime Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency.
	SearchTime float32                         `json:"searchTime"`
	Type       SearchStreamDoneChunkOutputType `json:"type"`
}

SearchStreamDoneChunkOutput defines model for SearchStreamDoneChunkOutput.

type SearchStreamDoneChunkOutputChoicesDeltaRole added in v0.2.0

type SearchStreamDoneChunkOutputChoicesDeltaRole string

SearchStreamDoneChunkOutputChoicesDeltaRole defines model for SearchStreamDoneChunkOutput.Choices.Delta.Role.

const (
	SearchStreamDoneChunkOutputChoicesDeltaRoleAssistant SearchStreamDoneChunkOutputChoicesDeltaRole = "assistant"
)

Defines values for SearchStreamDoneChunkOutputChoicesDeltaRole.

func (SearchStreamDoneChunkOutputChoicesDeltaRole) Valid added in v0.2.0

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

type SearchStreamDoneChunkOutputChoicesFinishReason added in v0.2.0

type SearchStreamDoneChunkOutputChoicesFinishReason string

SearchStreamDoneChunkOutputChoicesFinishReason defines model for SearchStreamDoneChunkOutput.Choices.FinishReason.

const (
	SearchStreamDoneChunkOutputChoicesFinishReasonStop SearchStreamDoneChunkOutputChoicesFinishReason = "stop"
)

Defines values for SearchStreamDoneChunkOutputChoicesFinishReason.

func (SearchStreamDoneChunkOutputChoicesFinishReason) Valid added in v0.2.0

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

type SearchStreamDoneChunkOutputType added in v0.2.0

type SearchStreamDoneChunkOutputType string

SearchStreamDoneChunkOutputType defines model for SearchStreamDoneChunkOutput.Type.

const (
	SearchStreamDoneChunkOutputTypeDone SearchStreamDoneChunkOutputType = "done"
)

Defines values for SearchStreamDoneChunkOutputType.

func (SearchStreamDoneChunkOutputType) Valid added in v0.2.0

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

type SearchStreamErrorChunkOutput added in v0.2.0

type SearchStreamErrorChunkOutput struct {
	Error struct {
		Message string `json:"message"`
	} `json:"error"`

	// RequestId Unique identifier for the request.
	RequestId *string                          `json:"requestId,omitempty"`
	Type      SearchStreamErrorChunkOutputType `json:"type"`
}

SearchStreamErrorChunkOutput defines model for SearchStreamErrorChunkOutput.

type SearchStreamErrorChunkOutputType added in v0.2.0

type SearchStreamErrorChunkOutputType string

SearchStreamErrorChunkOutputType defines model for SearchStreamErrorChunkOutput.Type.

const (
	SearchStreamErrorChunkOutputTypeError SearchStreamErrorChunkOutputType = "error"
)

Defines values for SearchStreamErrorChunkOutputType.

func (SearchStreamErrorChunkOutputType) Valid added in v0.2.0

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

type SearchStreamGroundingChunkOutput added in v0.2.0

type SearchStreamGroundingChunkOutput struct {
	Choices *[]struct {
		Delta struct {
			Citations *[]struct {
				Id string `json:"id"`

				// Title Source title.
				Title string `json:"title"`

				// Url Source URL.
				Url string `json:"url"`
			} `json:"citations,omitempty"`
			Content *string                                           `json:"content,omitempty"`
			Role    *SearchStreamGroundingChunkOutputChoicesDeltaRole `json:"role,omitempty"`
		} `json:"delta"`
		FinishReason *SearchStreamGroundingChunkOutputChoicesFinishReason `json:"finish_reason"`
		Index        int                                                  `json:"index"`
	} `json:"choices,omitempty"`
	Citations *[]struct {
		Id string `json:"id"`

		// Title Source title.
		Title string `json:"title"`

		// Url Source URL.
		Url string `json:"url"`
	} `json:"citations,omitempty"`

	// Grounding Field-level grounding for synthesized output.
	Grounding []struct {
		// Citations Sources supporting this output field.
		Citations []struct {
			// Title Source title.
			Title string `json:"title"`

			// Url Source URL.
			Url string `json:"url"`
		} `json:"citations"`

		// Confidence Model-reported reliability for this field.
		Confidence SearchStreamGroundingChunkOutputGroundingConfidence `json:"confidence"`

		// Field Field path in output.content, for example content or companies[0].funding.
		Field string `json:"field"`
	} `json:"grounding"`

	// RequestId Unique identifier for the request.
	RequestId *string                              `json:"requestId,omitempty"`
	Type      SearchStreamGroundingChunkOutputType `json:"type"`
}

SearchStreamGroundingChunkOutput defines model for SearchStreamGroundingChunkOutput.

type SearchStreamGroundingChunkOutputChoicesDeltaRole added in v0.2.0

type SearchStreamGroundingChunkOutputChoicesDeltaRole string

SearchStreamGroundingChunkOutputChoicesDeltaRole defines model for SearchStreamGroundingChunkOutput.Choices.Delta.Role.

const (
	SearchStreamGroundingChunkOutputChoicesDeltaRoleAssistant SearchStreamGroundingChunkOutputChoicesDeltaRole = "assistant"
)

Defines values for SearchStreamGroundingChunkOutputChoicesDeltaRole.

func (SearchStreamGroundingChunkOutputChoicesDeltaRole) Valid added in v0.2.0

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

type SearchStreamGroundingChunkOutputChoicesFinishReason added in v0.2.0

type SearchStreamGroundingChunkOutputChoicesFinishReason string

SearchStreamGroundingChunkOutputChoicesFinishReason defines model for SearchStreamGroundingChunkOutput.Choices.FinishReason.

const (
	SearchStreamGroundingChunkOutputChoicesFinishReasonStop SearchStreamGroundingChunkOutputChoicesFinishReason = "stop"
)

Defines values for SearchStreamGroundingChunkOutputChoicesFinishReason.

func (SearchStreamGroundingChunkOutputChoicesFinishReason) Valid added in v0.2.0

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

type SearchStreamGroundingChunkOutputGroundingConfidence added in v0.2.0

type SearchStreamGroundingChunkOutputGroundingConfidence string

SearchStreamGroundingChunkOutputGroundingConfidence Model-reported reliability for this field.

const (
	SearchStreamGroundingChunkOutputGroundingConfidenceHigh   SearchStreamGroundingChunkOutputGroundingConfidence = "high"
	SearchStreamGroundingChunkOutputGroundingConfidenceLow    SearchStreamGroundingChunkOutputGroundingConfidence = "low"
	SearchStreamGroundingChunkOutputGroundingConfidenceMedium SearchStreamGroundingChunkOutputGroundingConfidence = "medium"
)

Defines values for SearchStreamGroundingChunkOutputGroundingConfidence.

func (SearchStreamGroundingChunkOutputGroundingConfidence) Valid added in v0.2.0

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

type SearchStreamGroundingChunkOutputType added in v0.2.0

type SearchStreamGroundingChunkOutputType string

SearchStreamGroundingChunkOutputType defines model for SearchStreamGroundingChunkOutput.Type.

const (
	SearchStreamGroundingChunkOutputTypeGrounding SearchStreamGroundingChunkOutputType = "grounding"
)

Defines values for SearchStreamGroundingChunkOutputType.

func (SearchStreamGroundingChunkOutputType) Valid added in v0.2.0

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

type SearchStreamResetChunkOutput added in v0.2.0

type SearchStreamResetChunkOutput struct {
	// RequestId Unique identifier for the request.
	RequestId   *string                                 `json:"requestId,omitempty"`
	StreamReset SearchStreamResetChunkOutputStreamReset `json:"streamReset"`
	Type        SearchStreamResetChunkOutputType        `json:"type"`
}

SearchStreamResetChunkOutput defines model for SearchStreamResetChunkOutput.

type SearchStreamResetChunkOutputStreamReset added in v0.2.0

type SearchStreamResetChunkOutputStreamReset bool

SearchStreamResetChunkOutputStreamReset defines model for SearchStreamResetChunkOutput.StreamReset.

const (
	SearchStreamResetChunkOutputStreamResetTrue SearchStreamResetChunkOutputStreamReset = true
)

Defines values for SearchStreamResetChunkOutputStreamReset.

func (SearchStreamResetChunkOutputStreamReset) Valid added in v0.2.0

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

type SearchStreamResetChunkOutputType added in v0.2.0

type SearchStreamResetChunkOutputType string

SearchStreamResetChunkOutputType defines model for SearchStreamResetChunkOutput.Type.

const (
	SearchStreamResetChunkOutputTypeStreamReset SearchStreamResetChunkOutputType = "stream-reset"
)

Defines values for SearchStreamResetChunkOutputType.

func (SearchStreamResetChunkOutputType) Valid added in v0.2.0

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

type SearchStreamResultsChunkOutput added in v0.2.0

type SearchStreamResultsChunkOutput struct {
	// Notices Notices about how the results were produced. Pass them to your model with the results. Omitted when there are none.
	Notices *[]SearchNoticeOutput `json:"notices,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId *string                            `json:"requestId,omitempty"`
	Results   []SearchResultOutput               `json:"results"`
	Type      SearchStreamResultsChunkOutputType `json:"type"`

	// Warnings Warnings about the request, such as a field that has no effect. Log them; do not pass them to a model. Omitted when there are none.
	Warnings *[]SearchWarningOutput `json:"warnings,omitempty"`
}

SearchStreamResultsChunkOutput defines model for SearchStreamResultsChunkOutput.

type SearchStreamResultsChunkOutputType added in v0.2.0

type SearchStreamResultsChunkOutputType string

SearchStreamResultsChunkOutputType defines model for SearchStreamResultsChunkOutput.Type.

const (
	SearchStreamResultsChunkOutputTypeResults SearchStreamResultsChunkOutputType = "results"
)

Defines values for SearchStreamResultsChunkOutputType.

func (SearchStreamResultsChunkOutputType) Valid added in v0.2.0

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

type SearchStreamTextDeltaChunkOutput added in v0.2.0

type SearchStreamTextDeltaChunkOutput struct {
	Choices *[]struct {
		Delta struct {
			Citations *[]struct {
				Id string `json:"id"`

				// Title Source title.
				Title string `json:"title"`

				// Url Source URL.
				Url string `json:"url"`
			} `json:"citations,omitempty"`
			Content *string                                           `json:"content,omitempty"`
			Role    *SearchStreamTextDeltaChunkOutputChoicesDeltaRole `json:"role,omitempty"`
		} `json:"delta"`
		FinishReason *SearchStreamTextDeltaChunkOutputChoicesFinishReason `json:"finish_reason"`
		Index        int                                                  `json:"index"`
	} `json:"choices,omitempty"`
	Delta string `json:"delta"`

	// RequestId Unique identifier for the request.
	RequestId *string                              `json:"requestId,omitempty"`
	Type      SearchStreamTextDeltaChunkOutputType `json:"type"`
}

SearchStreamTextDeltaChunkOutput defines model for SearchStreamTextDeltaChunkOutput.

type SearchStreamTextDeltaChunkOutputChoicesDeltaRole added in v0.2.0

type SearchStreamTextDeltaChunkOutputChoicesDeltaRole string

SearchStreamTextDeltaChunkOutputChoicesDeltaRole defines model for SearchStreamTextDeltaChunkOutput.Choices.Delta.Role.

const (
	SearchStreamTextDeltaChunkOutputChoicesDeltaRoleAssistant SearchStreamTextDeltaChunkOutputChoicesDeltaRole = "assistant"
)

Defines values for SearchStreamTextDeltaChunkOutputChoicesDeltaRole.

func (SearchStreamTextDeltaChunkOutputChoicesDeltaRole) Valid added in v0.2.0

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

type SearchStreamTextDeltaChunkOutputChoicesFinishReason added in v0.2.0

type SearchStreamTextDeltaChunkOutputChoicesFinishReason string

SearchStreamTextDeltaChunkOutputChoicesFinishReason defines model for SearchStreamTextDeltaChunkOutput.Choices.FinishReason.

const (
	SearchStreamTextDeltaChunkOutputChoicesFinishReasonStop SearchStreamTextDeltaChunkOutputChoicesFinishReason = "stop"
)

Defines values for SearchStreamTextDeltaChunkOutputChoicesFinishReason.

func (SearchStreamTextDeltaChunkOutputChoicesFinishReason) Valid added in v0.2.0

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

type SearchStreamTextDeltaChunkOutputType added in v0.2.0

type SearchStreamTextDeltaChunkOutputType string

SearchStreamTextDeltaChunkOutputType defines model for SearchStreamTextDeltaChunkOutput.Type.

const (
	SearchStreamTextDeltaChunkOutputTypeTextDelta SearchStreamTextDeltaChunkOutputType = "text-delta"
)

Defines values for SearchStreamTextDeltaChunkOutputType.

func (SearchStreamTextDeltaChunkOutputType) Valid added in v0.2.0

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

type SearchSynthesisOutputOutput added in v0.2.0

type SearchSynthesisOutputOutput struct {
	// Content Synthesized content. String by default, or object when outputSchema is provided.
	Content SearchSynthesisOutputOutput_Content `json:"content"`

	// Grounding Field-level grounding for synthesized output.
	Grounding []struct {
		// Citations Sources supporting this output field.
		Citations []struct {
			// Title Source title.
			Title string `json:"title"`

			// Url Source URL.
			Url string `json:"url"`
		} `json:"citations"`

		// Confidence Model-reported reliability for this field.
		Confidence SearchSynthesisOutputOutputGroundingConfidence `json:"confidence"`

		// Field Field path in output.content, for example content or companies[0].funding.
		Field string `json:"field"`
	} `json:"grounding"`
}

SearchSynthesisOutputOutput Synthesized output. Returned when outputSchema is provided.

type SearchSynthesisOutputOutputContent0 added in v0.2.0

type SearchSynthesisOutputOutputContent0 = string

SearchSynthesisOutputOutputContent0 defines model for SearchSynthesisOutputOutput.Content.0.

type SearchSynthesisOutputOutputContent1 added in v0.2.0

type SearchSynthesisOutputOutputContent1 map[string]JsonValue

SearchSynthesisOutputOutputContent1 defines model for SearchSynthesisOutputOutput.Content.1.

type SearchSynthesisOutputOutputGroundingConfidence added in v0.2.0

type SearchSynthesisOutputOutputGroundingConfidence string

SearchSynthesisOutputOutputGroundingConfidence Model-reported reliability for this field.

const (
	SearchSynthesisOutputOutputGroundingConfidenceHigh   SearchSynthesisOutputOutputGroundingConfidence = "high"
	SearchSynthesisOutputOutputGroundingConfidenceLow    SearchSynthesisOutputOutputGroundingConfidence = "low"
	SearchSynthesisOutputOutputGroundingConfidenceMedium SearchSynthesisOutputOutputGroundingConfidence = "medium"
)

Defines values for SearchSynthesisOutputOutputGroundingConfidence.

func (SearchSynthesisOutputOutputGroundingConfidence) Valid added in v0.2.0

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

type SearchSynthesisOutputOutput_Content added in v0.2.0

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

SearchSynthesisOutputOutput_Content Synthesized content. String by default, or object when outputSchema is provided.

func (SearchSynthesisOutputOutput_Content) AsSearchSynthesisOutputOutputContent0 added in v0.2.0

func (t SearchSynthesisOutputOutput_Content) AsSearchSynthesisOutputOutputContent0() (SearchSynthesisOutputOutputContent0, error)

AsSearchSynthesisOutputOutputContent0 returns the union data inside the SearchSynthesisOutputOutput_Content as a SearchSynthesisOutputOutputContent0

func (SearchSynthesisOutputOutput_Content) AsSearchSynthesisOutputOutputContent1 added in v0.2.0

func (t SearchSynthesisOutputOutput_Content) AsSearchSynthesisOutputOutputContent1() (SearchSynthesisOutputOutputContent1, error)

AsSearchSynthesisOutputOutputContent1 returns the union data inside the SearchSynthesisOutputOutput_Content as a SearchSynthesisOutputOutputContent1

func (*SearchSynthesisOutputOutput_Content) FromSearchSynthesisOutputOutputContent0 added in v0.2.0

func (t *SearchSynthesisOutputOutput_Content) FromSearchSynthesisOutputOutputContent0(v SearchSynthesisOutputOutputContent0) error

FromSearchSynthesisOutputOutputContent0 overwrites any union data inside the SearchSynthesisOutputOutput_Content as the provided SearchSynthesisOutputOutputContent0

func (*SearchSynthesisOutputOutput_Content) FromSearchSynthesisOutputOutputContent1 added in v0.2.0

func (t *SearchSynthesisOutputOutput_Content) FromSearchSynthesisOutputOutputContent1(v SearchSynthesisOutputOutputContent1) error

FromSearchSynthesisOutputOutputContent1 overwrites any union data inside the SearchSynthesisOutputOutput_Content as the provided SearchSynthesisOutputOutputContent1

func (SearchSynthesisOutputOutput_Content) MarshalJSON added in v0.2.0

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

func (*SearchSynthesisOutputOutput_Content) MergeSearchSynthesisOutputOutputContent0 added in v0.2.0

func (t *SearchSynthesisOutputOutput_Content) MergeSearchSynthesisOutputOutputContent0(v SearchSynthesisOutputOutputContent0) error

MergeSearchSynthesisOutputOutputContent0 performs a merge with any union data inside the SearchSynthesisOutputOutput_Content, using the provided SearchSynthesisOutputOutputContent0

func (*SearchSynthesisOutputOutput_Content) MergeSearchSynthesisOutputOutputContent1 added in v0.2.0

func (t *SearchSynthesisOutputOutput_Content) MergeSearchSynthesisOutputOutputContent1(v SearchSynthesisOutputOutputContent1) error

MergeSearchSynthesisOutputOutputContent1 performs a merge with any union data inside the SearchSynthesisOutputOutput_Content, using the provided SearchSynthesisOutputOutputContent1

func (*SearchSynthesisOutputOutput_Content) UnmarshalJSON added in v0.2.0

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

type SearchSynthesisResponse added in v0.2.0

type SearchSynthesisResponse struct {
	// Context Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Context *string `json:"context,omitempty"`

	// CostDollars Estimated dollar cost of the request. Which fields appear depends on the endpoint.
	CostDollars *CostDollarsOutput `json:"costDollars,omitempty"`

	// Notices Notices about how the results were produced. Pass them to your model with the results. Omitted when there are none.
	Notices *[]SearchNoticeOutput `json:"notices,omitempty"`

	// Output Synthesized output. Returned when outputSchema is provided.
	Output SearchSynthesisOutputOutput `json:"output"`

	// RequestId Unique identifier for the request.
	RequestId *string `json:"requestId,omitempty"`

	// ResolvedSearchType Deprecated. May be an empty string. Do not branch on this value.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ResolvedSearchType *string `json:"resolvedSearchType,omitempty"`

	// Results A list of search results containing title, URL, published date, and author.
	Results []SearchResultOutput `json:"results"`

	// SearchTime Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency.
	SearchTime *float32 `json:"searchTime,omitempty"`

	// Warnings Warnings about the request, such as a field that has no effect. Log them; do not pass them to a model. Omitted when there are none.
	Warnings *[]SearchWarningOutput `json:"warnings,omitempty"`
}

SearchSynthesisResponse defines model for SearchSynthesisResponse.

type SearchWarningOutput added in v0.2.0

type SearchWarningOutput struct {
	// Code Machine-readable warning code, UPPER_SNAKE. `IGNORED_FIELD`: the field at `path` is accepted and has no effect. Codes are an open set: tolerate codes you do not recognize.
	Code string `json:"code"`

	// Message Human-readable and complete on its own: what to change in the request.
	Message string `json:"message"`

	// Path JSON Pointer to the request field the warning is about.
	Path string `json:"path"`
}

SearchWarningOutput A note about the request itself, for whoever maintains the code that builds it. Log it; do not pass it to a model. A warning never changes the status code or the results.

type ServiceUnavailableResponse added in v0.2.0

type ServiceUnavailableResponse = ErrorResponse

ServiceUnavailableResponse Standard error envelope returned by the Exa API for failed requests.

type StopAgentRunResponse added in v0.2.0

type StopAgentRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentRun
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *AgentErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *AgentErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *AgentErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *AgentErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *AgentErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *StopAgentRunResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *StopAgentRunResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *StopAgentRunResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *StopAgentRunResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *StopAgentRunResponse404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StopAgentRunResponse429Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *StopAgentRunResponse500Headers
}

func ParseStopAgentRunResponse added in v0.2.0

func ParseStopAgentRunResponse(rsp *http.Response) (*StopAgentRunResponse, error)

ParseStopAgentRunResponse parses an HTTP response from a StopAgentRunWithResponse call

func (StopAgentRunResponse) ContentType added in v0.2.0

func (r StopAgentRunResponse) ContentType() string

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

func (StopAgentRunResponse) GetBody added in v0.2.0

func (r StopAgentRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StopAgentRunResponse) GetJSON200 added in v0.2.0

func (r StopAgentRunResponse) GetJSON200() *AgentRun

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

func (StopAgentRunResponse) GetJSON400 added in v0.2.0

func (r StopAgentRunResponse) GetJSON400() *AgentErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (StopAgentRunResponse) GetJSON401 added in v0.2.0

func (r StopAgentRunResponse) GetJSON401() *AgentErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (StopAgentRunResponse) GetJSON403 added in v0.2.0

func (r StopAgentRunResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (StopAgentRunResponse) GetJSON404 added in v0.2.0

func (r StopAgentRunResponse) GetJSON404() *AgentErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StopAgentRunResponse) GetJSON429 added in v0.2.0

func (r StopAgentRunResponse) GetJSON429() *AgentErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (StopAgentRunResponse) GetJSON500 added in v0.2.0

func (r StopAgentRunResponse) GetJSON500() *AgentErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (StopAgentRunResponse) Status added in v0.2.0

func (r StopAgentRunResponse) Status() string

Status returns HTTPResponse.Status

func (StopAgentRunResponse) StatusCode added in v0.2.0

func (r StopAgentRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StopAgentRunResponse200Headers added in v0.2.0

type StopAgentRunResponse200Headers struct {
	XRequestId *string
}

StopAgentRunResponse200Headers the declared response headers of an HTTP 200 response for StopAgentRun

type StopAgentRunResponse400Headers added in v0.2.0

type StopAgentRunResponse400Headers struct {
	XRequestId *string
}

StopAgentRunResponse400Headers the declared response headers of an HTTP 400 response for StopAgentRun

type StopAgentRunResponse401Headers added in v0.2.0

type StopAgentRunResponse401Headers struct {
	XRequestId *string
}

StopAgentRunResponse401Headers the declared response headers of an HTTP 401 response for StopAgentRun

type StopAgentRunResponse403Headers added in v0.2.0

type StopAgentRunResponse403Headers struct {
	XRequestId *string
}

StopAgentRunResponse403Headers the declared response headers of an HTTP 403 response for StopAgentRun

type StopAgentRunResponse404Headers added in v0.2.0

type StopAgentRunResponse404Headers struct {
	XRequestId *string
}

StopAgentRunResponse404Headers the declared response headers of an HTTP 404 response for StopAgentRun

type StopAgentRunResponse429Headers added in v0.2.0

type StopAgentRunResponse429Headers struct {
	XRequestId *string
}

StopAgentRunResponse429Headers the declared response headers of an HTTP 429 response for StopAgentRun

type StopAgentRunResponse500Headers added in v0.2.0

type StopAgentRunResponse500Headers struct {
	XRequestId *string
}

StopAgentRunResponse500Headers the declared response headers of an HTTP 500 response for StopAgentRun

type SummaryWithMaxTokensOptions added in v0.2.0

type SummaryWithMaxTokensOptions struct {
	// MaxTokens Deprecated. Maximum tokens for the generated summary.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	MaxTokens *int    `json:"maxTokens,omitempty"`
	Query     *string `json:"query,omitempty"`
}

SummaryWithMaxTokensOptions defines model for SummaryWithMaxTokensOptions.

type SummaryWithMaxTokensOptionsOutput added in v0.2.0

type SummaryWithMaxTokensOptionsOutput struct {
	// MaxTokens Deprecated. Maximum tokens for the generated summary.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	MaxTokens *int    `json:"maxTokens,omitempty"`
	Query     *string `json:"query,omitempty"`
}

SummaryWithMaxTokensOptionsOutput defines model for SummaryWithMaxTokensOptionsOutput.

type TeamsMeGetResponse added in v0.2.0

type TeamsMeGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetsTeamInfo
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *TeamsMeGetResponse200Headers
}

func ParseTeamsMeGetResponse added in v0.2.0

func ParseTeamsMeGetResponse(rsp *http.Response) (*TeamsMeGetResponse, error)

ParseTeamsMeGetResponse parses an HTTP response from a TeamsMeGetWithResponse call

func (TeamsMeGetResponse) ContentType added in v0.2.0

func (r TeamsMeGetResponse) ContentType() string

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

func (TeamsMeGetResponse) GetBody added in v0.2.0

func (r TeamsMeGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TeamsMeGetResponse) GetJSON200 added in v0.2.0

func (r TeamsMeGetResponse) GetJSON200() *WebsetsTeamInfo

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

func (TeamsMeGetResponse) Status added in v0.2.0

func (r TeamsMeGetResponse) Status() string

Status returns HTTPResponse.Status

func (TeamsMeGetResponse) StatusCode added in v0.2.0

func (r TeamsMeGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TeamsMeGetResponse200Headers added in v0.2.0

type TeamsMeGetResponse200Headers struct {
	XRequestId *string
}

TeamsMeGetResponse200Headers the declared response headers of an HTTP 200 response for TeamsMeGet

type TooManyRequestsResponse added in v0.2.0

type TooManyRequestsResponse = ErrorResponse

TooManyRequestsResponse Standard error envelope returned by the Exa API for failed requests.

type TriggerMonitorResponse added in v0.2.0

type TriggerMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TriggerSearchMonitorResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *TriggerMonitorResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *TriggerMonitorResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *TriggerMonitorResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *TriggerMonitorResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *TriggerMonitorResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *TriggerMonitorResponse500Headers
}

func ParseTriggerMonitorResponse added in v0.2.0

func ParseTriggerMonitorResponse(rsp *http.Response) (*TriggerMonitorResponse, error)

ParseTriggerMonitorResponse parses an HTTP response from a TriggerMonitorWithResponse call

func (TriggerMonitorResponse) ContentType added in v0.2.0

func (r TriggerMonitorResponse) ContentType() string

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

func (TriggerMonitorResponse) GetBody added in v0.2.0

func (r TriggerMonitorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TriggerMonitorResponse) GetJSON200 added in v0.2.0

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

func (TriggerMonitorResponse) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TriggerMonitorResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (TriggerMonitorResponse) GetJSON403 added in v0.2.0

func (r TriggerMonitorResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TriggerMonitorResponse) GetJSON404 added in v0.2.0

func (r TriggerMonitorResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TriggerMonitorResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TriggerMonitorResponse) Status added in v0.2.0

func (r TriggerMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (TriggerMonitorResponse) StatusCode added in v0.2.0

func (r TriggerMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TriggerMonitorResponse200Headers added in v0.2.0

type TriggerMonitorResponse200Headers struct {
	XRequestId *string
}

TriggerMonitorResponse200Headers the declared response headers of an HTTP 200 response for TriggerMonitor

type TriggerMonitorResponse400Headers added in v0.2.0

type TriggerMonitorResponse400Headers struct {
	XRequestId *string
}

TriggerMonitorResponse400Headers the declared response headers of an HTTP 400 response for TriggerMonitor

type TriggerMonitorResponse401Headers added in v0.2.0

type TriggerMonitorResponse401Headers struct {
	XRequestId *string
}

TriggerMonitorResponse401Headers the declared response headers of an HTTP 401 response for TriggerMonitor

type TriggerMonitorResponse403Headers added in v0.2.0

type TriggerMonitorResponse403Headers struct {
	XRequestId *string
}

TriggerMonitorResponse403Headers the declared response headers of an HTTP 403 response for TriggerMonitor

type TriggerMonitorResponse404Headers added in v0.2.0

type TriggerMonitorResponse404Headers struct {
	XRequestId *string
}

TriggerMonitorResponse404Headers the declared response headers of an HTTP 404 response for TriggerMonitor

type TriggerMonitorResponse500Headers added in v0.2.0

type TriggerMonitorResponse500Headers struct {
	XRequestId *string
}

TriggerMonitorResponse500Headers the declared response headers of an HTTP 500 response for TriggerMonitor

type TriggerSearchMonitorResponse added in v0.2.0

type TriggerSearchMonitorResponse struct {
	// Triggered Whether the monitor was successfully triggered
	Triggered bool `json:"triggered"`
}

TriggerSearchMonitorResponse defines model for TriggerSearchMonitorResponse.

type UnauthorizedResponse added in v0.2.0

type UnauthorizedResponse = ErrorResponse

UnauthorizedResponse Standard error envelope returned by the Exa API for failed requests.

type UpdateEnrichmentParameters added in v0.2.0

type UpdateEnrichmentParameters struct {
	// Description Provide a description of the enrichment task you want to perform to each Webset Item.
	Description *string                 `json:"description,omitempty"`
	Format      *WebsetEnrichmentFormat `json:"format,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Options When the format is options, the different options for the enrichment agent to choose from.
	Options *[]struct {
		// Label The label of the option
		Label string `json:"label"`
	} `json:"options,omitempty"`
}

UpdateEnrichmentParameters defines model for UpdateEnrichmentParameters.

type UpdateImport added in v0.2.0

type UpdateImport struct {
	Metadata *map[string]string `json:"metadata,omitempty"`
	Title    *string            `json:"title,omitempty"`
}

UpdateImport defines model for UpdateImport.

type UpdateMonitor added in v0.2.0

type UpdateMonitor struct {
	Behavior *MonitorBehavior   `json:"behavior,omitempty"`
	Cadence  *MonitorCadence    `json:"cadence,omitempty"`
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Status The status of the monitor.
	Status *UpdateMonitorStatus `json:"status,omitempty"`
}

UpdateMonitor defines model for UpdateMonitor.

type UpdateMonitorJSONRequestBody added in v0.2.0

type UpdateMonitorJSONRequestBody = UpdateSearchMonitorParameters

UpdateMonitorJSONRequestBody defines body for UpdateMonitor for application/json ContentType.

type UpdateMonitorResponse added in v0.2.0

type UpdateMonitorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SearchMonitor
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *UnauthorizedResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ForbiddenResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFoundResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateMonitorResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdateMonitorResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *UpdateMonitorResponse401Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdateMonitorResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdateMonitorResponse404Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *UpdateMonitorResponse500Headers
}

func ParseUpdateMonitorResponse added in v0.2.0

func ParseUpdateMonitorResponse(rsp *http.Response) (*UpdateMonitorResponse, error)

ParseUpdateMonitorResponse parses an HTTP response from a UpdateMonitorWithResponse call

func (UpdateMonitorResponse) ContentType added in v0.2.0

func (r UpdateMonitorResponse) ContentType() string

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

func (UpdateMonitorResponse) GetBody added in v0.2.0

func (r UpdateMonitorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateMonitorResponse) GetJSON200 added in v0.2.0

func (r UpdateMonitorResponse) GetJSON200() *SearchMonitor

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

func (UpdateMonitorResponse) GetJSON400 added in v0.2.0

func (r UpdateMonitorResponse) GetJSON400() *BadRequestResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateMonitorResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateMonitorResponse) GetJSON403 added in v0.2.0

func (r UpdateMonitorResponse) GetJSON403() *ForbiddenResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateMonitorResponse) GetJSON404 added in v0.2.0

func (r UpdateMonitorResponse) GetJSON404() *NotFoundResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateMonitorResponse) GetJSON500 added in v0.2.0

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateMonitorResponse) Status added in v0.2.0

func (r UpdateMonitorResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMonitorResponse) StatusCode added in v0.2.0

func (r UpdateMonitorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMonitorResponse200Headers added in v0.2.0

type UpdateMonitorResponse200Headers struct {
	XRequestId *string
}

UpdateMonitorResponse200Headers the declared response headers of an HTTP 200 response for UpdateMonitor

type UpdateMonitorResponse400Headers added in v0.2.0

type UpdateMonitorResponse400Headers struct {
	XRequestId *string
}

UpdateMonitorResponse400Headers the declared response headers of an HTTP 400 response for UpdateMonitor

type UpdateMonitorResponse401Headers added in v0.2.0

type UpdateMonitorResponse401Headers struct {
	XRequestId *string
}

UpdateMonitorResponse401Headers the declared response headers of an HTTP 401 response for UpdateMonitor

type UpdateMonitorResponse403Headers added in v0.2.0

type UpdateMonitorResponse403Headers struct {
	XRequestId *string
}

UpdateMonitorResponse403Headers the declared response headers of an HTTP 403 response for UpdateMonitor

type UpdateMonitorResponse404Headers added in v0.2.0

type UpdateMonitorResponse404Headers struct {
	XRequestId *string
}

UpdateMonitorResponse404Headers the declared response headers of an HTTP 404 response for UpdateMonitor

type UpdateMonitorResponse500Headers added in v0.2.0

type UpdateMonitorResponse500Headers struct {
	XRequestId *string
}

UpdateMonitorResponse500Headers the declared response headers of an HTTP 500 response for UpdateMonitor

type UpdateMonitorStatus added in v0.2.0

type UpdateMonitorStatus string

UpdateMonitorStatus The status of the monitor.

const (
	UpdateMonitorStatusDisabled UpdateMonitorStatus = "disabled"
	UpdateMonitorStatusEnabled  UpdateMonitorStatus = "enabled"
)

Defines values for UpdateMonitorStatus.

func (UpdateMonitorStatus) Valid added in v0.2.0

func (e UpdateMonitorStatus) Valid() bool

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

type UpdateSearchMonitorParameters added in v0.2.0

type UpdateSearchMonitorParameters struct {
	// Metadata Update metadata. Set to null to remove. Echoed back in webhook deliveries so you can route updates to systems like Slack.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Name Update the monitor name
	Name *string `json:"name,omitempty"`

	// OutputSchema Controls the format of the run output. Defaults to `{ "type": "text" }` if not specified. When `type` is `"text"`, the output is a plain text summary. When `type` is `"object"`, the output is structured JSON. If no `properties` are specified with `"object"` type, a schema is inferred automatically; otherwise the output adheres to the provided schema.
	OutputSchema *SearchMonitorOutputSchema `json:"outputSchema,omitempty"`

	// Search Partial search params to merge. All fields are optional for updates.
	Search *struct {
		// Contents Content extraction options applied to each search result. All fields are optional.
		Contents *SearchMonitorContents `json:"contents,omitempty"`

		// ExcludeDomains Exclude these domains from search results.
		ExcludeDomains *[]string `json:"excludeDomains,omitempty"`

		// IncludeDomains Restrict search results to these domains.
		IncludeDomains *[]string `json:"includeDomains,omitempty"`

		// NumResults Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact sales (hello@exa.ai) to discuss higher limits.
		NumResults *int `json:"numResults,omitempty"`

		// Query The query string for the search.
		Query *string `json:"query,omitempty"`
	} `json:"search,omitempty"`

	// Status Update the monitor status (can only set to `active` or `paused`)
	Status *UpdateSearchMonitorParametersStatus `json:"status,omitempty"`

	// Trigger Update the schedule. Set to null to remove the schedule.
	Trigger *struct {
		// Period A duration string specifying how often the monitor runs (e.g., "1h", "6h", "1d", "7d"). Single-unit only. Minimum interval is 1 hour.
		Period *string `json:"period,omitempty"`

		// Type The type of trigger. Currently only `interval` is supported.
		Type *UpdateSearchMonitorParametersTriggerType `json:"type,omitempty"`
	} `json:"trigger,omitempty"`

	// Webhook Partial webhook params to merge. All fields are optional for updates.
	Webhook *struct {
		// Events Which events to subscribe to. Defaults to all events if not specified.
		Events *[]UpdateSearchMonitorParametersWebhookEvents `json:"events,omitempty"`

		// Url The HTTPS URL to receive webhook events. Must not point to localhost or private IP ranges.
		Url *string `json:"url,omitempty"`
	} `json:"webhook,omitempty"`
}

UpdateSearchMonitorParameters defines model for UpdateSearchMonitorParameters.

type UpdateSearchMonitorParametersStatus added in v0.2.0

type UpdateSearchMonitorParametersStatus string

UpdateSearchMonitorParametersStatus Update the monitor status (can only set to `active` or `paused`)

const (
	UpdateSearchMonitorParametersStatusActive UpdateSearchMonitorParametersStatus = "active"
	UpdateSearchMonitorParametersStatusPaused UpdateSearchMonitorParametersStatus = "paused"
)

Defines values for UpdateSearchMonitorParametersStatus.

func (UpdateSearchMonitorParametersStatus) Valid added in v0.2.0

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

type UpdateSearchMonitorParametersTriggerType added in v0.2.0

type UpdateSearchMonitorParametersTriggerType string

UpdateSearchMonitorParametersTriggerType The type of trigger. Currently only `interval` is supported.

const (
	UpdateSearchMonitorParametersTriggerTypeInterval UpdateSearchMonitorParametersTriggerType = "interval"
)

Defines values for UpdateSearchMonitorParametersTriggerType.

func (UpdateSearchMonitorParametersTriggerType) Valid added in v0.2.0

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

type UpdateSearchMonitorParametersWebhookEvents added in v0.2.0

type UpdateSearchMonitorParametersWebhookEvents string

UpdateSearchMonitorParametersWebhookEvents defines model for UpdateSearchMonitorParameters.Webhook.Events.

const (
	UpdateSearchMonitorParametersWebhookEventsMonitorCreated      UpdateSearchMonitorParametersWebhookEvents = "monitor.created"
	UpdateSearchMonitorParametersWebhookEventsMonitorDeleted      UpdateSearchMonitorParametersWebhookEvents = "monitor.deleted"
	UpdateSearchMonitorParametersWebhookEventsMonitorRunCompleted UpdateSearchMonitorParametersWebhookEvents = "monitor.run.completed"
	UpdateSearchMonitorParametersWebhookEventsMonitorRunCreated   UpdateSearchMonitorParametersWebhookEvents = "monitor.run.created"
	UpdateSearchMonitorParametersWebhookEventsMonitorUpdated      UpdateSearchMonitorParametersWebhookEvents = "monitor.updated"
)

Defines values for UpdateSearchMonitorParametersWebhookEvents.

func (UpdateSearchMonitorParametersWebhookEvents) Valid added in v0.2.0

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

type UpdateWebhookParameters added in v0.2.0

type UpdateWebhookParameters struct {
	// Events The events to trigger the webhook
	Events *[]EventType `json:"events,omitempty"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Url The URL to send the webhook to
	Url *string `json:"url,omitempty"`
}

UpdateWebhookParameters defines model for UpdateWebhookParameters.

type UpdateWebsetRequest added in v0.2.0

type UpdateWebsetRequest struct {
	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Title Optional name that appears anywhere the Webset is displayed.
	//
	// Examples: Leading climate tech startups
	Title *string `json:"title,omitempty"`
}

UpdateWebsetRequest defines model for UpdateWebsetRequest.

type Webhook added in v0.2.0

type Webhook struct {
	// CreatedAt The date and time the webhook was created
	CreatedAt time.Time `json:"createdAt"`

	// Events The events to trigger the webhook
	Events []EventType `json:"events"`

	// Id The unique identifier for the webhook
	Id string `json:"id"`

	// Metadata The metadata of the webhook
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Object The type of object
	Object WebhookObject `json:"object"`

	// Secret The secret to verify the webhook signature. Only returned on Webhook creation.
	Secret string `json:"secret"`

	// Status The status of the webhook
	Status WebhookStatus `json:"status"`

	// UpdatedAt The date and time the webhook was last updated
	UpdatedAt time.Time `json:"updatedAt"`

	// Url The URL to send the webhook to
	Url string `json:"url"`
}

Webhook defines model for Webhook.

type WebhookAttempt added in v0.2.0

type WebhookAttempt struct {
	// Attempt The attempt number of the webhook
	Attempt float32 `json:"attempt"`

	// AttemptedAt The date and time the webhook attempt was made
	AttemptedAt time.Time `json:"attemptedAt"`

	// EventId The unique identifier for the event
	EventId   string    `json:"eventId"`
	EventType EventType `json:"eventType"`

	// Id The unique identifier for the webhook attempt
	Id string `json:"id"`

	// Object The type of object
	Object WebhookAttemptObject `json:"object"`

	// ResponseBody The body of the response
	ResponseBody string `json:"responseBody"`

	// ResponseHeaders The headers of the response
	ResponseHeaders map[string]string `json:"responseHeaders"`

	// ResponseStatusCode The status code of the response
	ResponseStatusCode float32 `json:"responseStatusCode"`

	// Successful Whether the attempt was successful
	Successful bool `json:"successful"`

	// Url The URL that was used during the attempt
	Url string `json:"url"`

	// WebhookId The unique identifier for the webhook
	WebhookId string `json:"webhookId"`
}

WebhookAttempt defines model for WebhookAttempt.

type WebhookAttemptObject added in v0.2.0

type WebhookAttemptObject string

WebhookAttemptObject The type of object

const (
	WebhookAttemptObjectWebhookAttempt WebhookAttemptObject = "webhook_attempt"
)

Defines values for WebhookAttemptObject.

func (WebhookAttemptObject) Valid added in v0.2.0

func (e WebhookAttemptObject) Valid() bool

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

type WebhookObject added in v0.2.0

type WebhookObject string

WebhookObject The type of object

const (
	WebhookObjectWebhook WebhookObject = "webhook"
)

Defines values for WebhookObject.

func (WebhookObject) Valid added in v0.2.0

func (e WebhookObject) Valid() bool

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

type WebhookStatus added in v0.2.0

type WebhookStatus string

WebhookStatus The status of the webhook

const (
	WebhookStatusActive   WebhookStatus = "active"
	WebhookStatusInactive WebhookStatus = "inactive"
)

Defines values for WebhookStatus.

func (WebhookStatus) Valid added in v0.2.0

func (e WebhookStatus) Valid() bool

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

type WebhooksAttemptsListParams added in v0.2.0

type WebhooksAttemptsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// EventType The type of event to filter by
	EventType *EventType `form:"eventType,omitempty" json:"eventType,omitempty"`

	// Successful Filter attempts by their success status
	Successful *bool `form:"successful,omitempty" json:"successful,omitempty"`
}

WebhooksAttemptsListParams defines parameters for WebhooksAttemptsList.

type WebhooksAttemptsListResponse added in v0.2.0

type WebhooksAttemptsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListWebhookAttemptsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksAttemptsListResponse200Headers
}

func ParseWebhooksAttemptsListResponse added in v0.2.0

func ParseWebhooksAttemptsListResponse(rsp *http.Response) (*WebhooksAttemptsListResponse, error)

ParseWebhooksAttemptsListResponse parses an HTTP response from a WebhooksAttemptsListWithResponse call

func (WebhooksAttemptsListResponse) ContentType added in v0.2.0

func (r WebhooksAttemptsListResponse) ContentType() string

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

func (WebhooksAttemptsListResponse) GetBody added in v0.2.0

func (r WebhooksAttemptsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksAttemptsListResponse) GetJSON200 added in v0.2.0

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

func (WebhooksAttemptsListResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebhooksAttemptsListResponse) StatusCode added in v0.2.0

func (r WebhooksAttemptsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksAttemptsListResponse200Headers added in v0.2.0

type WebhooksAttemptsListResponse200Headers struct {
	XRequestId string
}

WebhooksAttemptsListResponse200Headers the declared response headers of an HTTP 200 response for WebhooksAttemptsList

type WebhooksCreateJSONRequestBody added in v0.2.0

type WebhooksCreateJSONRequestBody = CreateWebhookParameters

WebhooksCreateJSONRequestBody defines body for WebhooksCreate for application/json ContentType.

type WebhooksCreateResponse added in v0.2.0

type WebhooksCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksCreateResponse200Headers
}

func ParseWebhooksCreateResponse added in v0.2.0

func ParseWebhooksCreateResponse(rsp *http.Response) (*WebhooksCreateResponse, error)

ParseWebhooksCreateResponse parses an HTTP response from a WebhooksCreateWithResponse call

func (WebhooksCreateResponse) ContentType added in v0.2.0

func (r WebhooksCreateResponse) ContentType() string

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

func (WebhooksCreateResponse) GetBody added in v0.2.0

func (r WebhooksCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksCreateResponse) GetJSON200 added in v0.2.0

func (r WebhooksCreateResponse) GetJSON200() *Webhook

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

func (WebhooksCreateResponse) Status added in v0.2.0

func (r WebhooksCreateResponse) Status() string

Status returns HTTPResponse.Status

func (WebhooksCreateResponse) StatusCode added in v0.2.0

func (r WebhooksCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksCreateResponse200Headers added in v0.2.0

type WebhooksCreateResponse200Headers struct {
	XRequestId string
}

WebhooksCreateResponse200Headers the declared response headers of an HTTP 200 response for WebhooksCreate

type WebhooksDeleteResponse added in v0.2.0

type WebhooksDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksDeleteResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebhooksDeleteResponse404Headers
}

func ParseWebhooksDeleteResponse added in v0.2.0

func ParseWebhooksDeleteResponse(rsp *http.Response) (*WebhooksDeleteResponse, error)

ParseWebhooksDeleteResponse parses an HTTP response from a WebhooksDeleteWithResponse call

func (WebhooksDeleteResponse) ContentType added in v0.2.0

func (r WebhooksDeleteResponse) ContentType() string

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

func (WebhooksDeleteResponse) GetBody added in v0.2.0

func (r WebhooksDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksDeleteResponse) GetJSON200 added in v0.2.0

func (r WebhooksDeleteResponse) GetJSON200() *Webhook

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

func (WebhooksDeleteResponse) Status added in v0.2.0

func (r WebhooksDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (WebhooksDeleteResponse) StatusCode added in v0.2.0

func (r WebhooksDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksDeleteResponse200Headers added in v0.2.0

type WebhooksDeleteResponse200Headers struct {
	XRequestId string
}

WebhooksDeleteResponse200Headers the declared response headers of an HTTP 200 response for WebhooksDelete

type WebhooksDeleteResponse404Headers added in v0.2.0

type WebhooksDeleteResponse404Headers struct {
	XRequestId string
}

WebhooksDeleteResponse404Headers the declared response headers of an HTTP 404 response for WebhooksDelete

type WebhooksGetResponse added in v0.2.0

type WebhooksGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksGetResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebhooksGetResponse404Headers
}

func ParseWebhooksGetResponse added in v0.2.0

func ParseWebhooksGetResponse(rsp *http.Response) (*WebhooksGetResponse, error)

ParseWebhooksGetResponse parses an HTTP response from a WebhooksGetWithResponse call

func (WebhooksGetResponse) ContentType added in v0.2.0

func (r WebhooksGetResponse) ContentType() string

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

func (WebhooksGetResponse) GetBody added in v0.2.0

func (r WebhooksGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksGetResponse) GetJSON200 added in v0.2.0

func (r WebhooksGetResponse) GetJSON200() *Webhook

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

func (WebhooksGetResponse) Status added in v0.2.0

func (r WebhooksGetResponse) Status() string

Status returns HTTPResponse.Status

func (WebhooksGetResponse) StatusCode added in v0.2.0

func (r WebhooksGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksGetResponse200Headers added in v0.2.0

type WebhooksGetResponse200Headers struct {
	XRequestId string
}

WebhooksGetResponse200Headers the declared response headers of an HTTP 200 response for WebhooksGet

type WebhooksGetResponse404Headers added in v0.2.0

type WebhooksGetResponse404Headers struct {
	XRequestId string
}

WebhooksGetResponse404Headers the declared response headers of an HTTP 404 response for WebhooksGet

type WebhooksListParams added in v0.2.0

type WebhooksListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

WebhooksListParams defines parameters for WebhooksList.

type WebhooksListResponse added in v0.2.0

type WebhooksListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListWebhooksResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksListResponse200Headers
}

func ParseWebhooksListResponse added in v0.2.0

func ParseWebhooksListResponse(rsp *http.Response) (*WebhooksListResponse, error)

ParseWebhooksListResponse parses an HTTP response from a WebhooksListWithResponse call

func (WebhooksListResponse) ContentType added in v0.2.0

func (r WebhooksListResponse) ContentType() string

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

func (WebhooksListResponse) GetBody added in v0.2.0

func (r WebhooksListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksListResponse) GetJSON200 added in v0.2.0

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

func (WebhooksListResponse) Status added in v0.2.0

func (r WebhooksListResponse) Status() string

Status returns HTTPResponse.Status

func (WebhooksListResponse) StatusCode added in v0.2.0

func (r WebhooksListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksListResponse200Headers added in v0.2.0

type WebhooksListResponse200Headers struct {
	XRequestId string
}

WebhooksListResponse200Headers the declared response headers of an HTTP 200 response for WebhooksList

type WebhooksUpdateJSONRequestBody added in v0.2.0

type WebhooksUpdateJSONRequestBody = UpdateWebhookParameters

WebhooksUpdateJSONRequestBody defines body for WebhooksUpdate for application/json ContentType.

type WebhooksUpdateResponse added in v0.2.0

type WebhooksUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebhooksUpdateResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebhooksUpdateResponse404Headers
}

func ParseWebhooksUpdateResponse added in v0.2.0

func ParseWebhooksUpdateResponse(rsp *http.Response) (*WebhooksUpdateResponse, error)

ParseWebhooksUpdateResponse parses an HTTP response from a WebhooksUpdateWithResponse call

func (WebhooksUpdateResponse) ContentType added in v0.2.0

func (r WebhooksUpdateResponse) ContentType() string

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

func (WebhooksUpdateResponse) GetBody added in v0.2.0

func (r WebhooksUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebhooksUpdateResponse) GetJSON200 added in v0.2.0

func (r WebhooksUpdateResponse) GetJSON200() *Webhook

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

func (WebhooksUpdateResponse) Status added in v0.2.0

func (r WebhooksUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (WebhooksUpdateResponse) StatusCode added in v0.2.0

func (r WebhooksUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhooksUpdateResponse200Headers added in v0.2.0

type WebhooksUpdateResponse200Headers struct {
	XRequestId string
}

WebhooksUpdateResponse200Headers the declared response headers of an HTTP 200 response for WebhooksUpdate

type WebhooksUpdateResponse404Headers added in v0.2.0

type WebhooksUpdateResponse404Headers struct {
	XRequestId string
}

WebhooksUpdateResponse404Headers the declared response headers of an HTTP 404 response for WebhooksUpdate

type Webset added in v0.2.0

type Webset struct {
	// CreatedAt The date and time the webset was created
	CreatedAt time.Time `json:"createdAt"`

	// DashboardUrl The URL to view the webset in the Exa dashboard
	DashboardUrl string `json:"dashboardUrl"`

	// Enrichments The Enrichments to apply to the Webset Items.
	Enrichments []WebsetEnrichment `json:"enrichments"`

	// Excludes The Excludes sources (existing imports or websets) that apply to all operations within this Webset. Any results found within these sources will be omitted across all search and import operations.
	Excludes *[]struct {
		Id     string               `json:"id"`
		Source WebsetExcludesSource `json:"source"`
	} `json:"excludes,omitempty"`

	// ExternalId The external identifier for the webset
	ExternalId string `json:"externalId"`

	// Id The unique identifier for the webset
	Id string `json:"id"`

	// Imports Imports that have been performed on the webset.
	Imports []Import `json:"imports"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Monitors The Monitors for the Webset.
	Monitors []Monitor `json:"monitors"`

	// Object The type of object
	Object WebsetObject `json:"object"`

	// Searches The searches that have been performed on the webset.
	Searches []WebsetSearch `json:"searches"`

	// Status The status of the webset
	Status WebsetStatus `json:"status"`

	// Title The title of the webset
	Title string `json:"title"`

	// UpdatedAt The date and time the webset was updated
	UpdatedAt time.Time `json:"updatedAt"`
}

Webset defines model for Webset.

type WebsetEnrichment added in v0.2.0

type WebsetEnrichment struct {
	// CreatedAt The date and time the enrichment was created
	CreatedAt time.Time `json:"createdAt"`

	// Description The description of the enrichment task provided during the creation of the enrichment.
	Description string                 `json:"description"`
	Format      WebsetEnrichmentFormat `json:"format"`

	// Id The unique identifier for the enrichment
	Id string `json:"id"`

	// Instructions The instructions for the enrichment Agent.
	//
	// This will be automatically generated based on the description and format.
	Instructions string `json:"instructions"`

	// Metadata The metadata of the enrichment
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Object The type of object
	Object WebsetEnrichmentObject `json:"object"`

	// Options When the format is options, the different options for the enrichment agent to choose from.
	Options []struct {
		// Label The label of the option
		Label string `json:"label"`
	} `json:"options"`

	// Status The status of the enrichment
	Status WebsetEnrichmentStatus `json:"status"`

	// Title The title of the enrichment.
	//
	// This will be automatically generated based on the description and format.
	Title string `json:"title"`

	// UpdatedAt The date and time the enrichment was updated
	UpdatedAt time.Time `json:"updatedAt"`

	// WebsetId The unique identifier for the Webset this enrichment belongs to.
	WebsetId string `json:"websetId"`
}

WebsetEnrichment defines model for WebsetEnrichment.

type WebsetEnrichmentFormat added in v0.2.0

type WebsetEnrichmentFormat string

WebsetEnrichmentFormat defines model for WebsetEnrichmentFormat.

const (
	WebsetEnrichmentFormatDate    WebsetEnrichmentFormat = "date"
	WebsetEnrichmentFormatEmail   WebsetEnrichmentFormat = "email"
	WebsetEnrichmentFormatNumber  WebsetEnrichmentFormat = "number"
	WebsetEnrichmentFormatOptions WebsetEnrichmentFormat = "options"
	WebsetEnrichmentFormatPhone   WebsetEnrichmentFormat = "phone"
	WebsetEnrichmentFormatText    WebsetEnrichmentFormat = "text"
	WebsetEnrichmentFormatUrl     WebsetEnrichmentFormat = "url"
)

Defines values for WebsetEnrichmentFormat.

func (WebsetEnrichmentFormat) Valid added in v0.2.0

func (e WebsetEnrichmentFormat) Valid() bool

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

type WebsetEnrichmentObject added in v0.2.0

type WebsetEnrichmentObject string

WebsetEnrichmentObject The type of object

const (
	WebsetEnrichmentObjectWebsetEnrichment WebsetEnrichmentObject = "webset_enrichment"
)

Defines values for WebsetEnrichmentObject.

func (WebsetEnrichmentObject) Valid added in v0.2.0

func (e WebsetEnrichmentObject) Valid() bool

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

type WebsetEnrichmentStatus added in v0.2.0

type WebsetEnrichmentStatus string

WebsetEnrichmentStatus The status of the enrichment

const (
	WebsetEnrichmentStatusCanceled  WebsetEnrichmentStatus = "canceled"
	WebsetEnrichmentStatusCompleted WebsetEnrichmentStatus = "completed"
	WebsetEnrichmentStatusPending   WebsetEnrichmentStatus = "pending"
)

Defines values for WebsetEnrichmentStatus.

func (WebsetEnrichmentStatus) Valid added in v0.2.0

func (e WebsetEnrichmentStatus) Valid() bool

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

type WebsetExcludesSource added in v0.2.0

type WebsetExcludesSource string

WebsetExcludesSource defines model for Webset.Excludes.Source.

const (
	WebsetExcludesSourceImport WebsetExcludesSource = "import"
	WebsetExcludesSourceWebset WebsetExcludesSource = "webset"
)

Defines values for WebsetExcludesSource.

func (WebsetExcludesSource) Valid added in v0.2.0

func (e WebsetExcludesSource) Valid() bool

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

type WebsetItem added in v0.2.0

type WebsetItem struct {
	// CreatedAt The date and time the item was created
	CreatedAt time.Time `json:"createdAt"`

	// Enrichments The enrichments results of the Webset item
	Enrichments []EnrichmentResult `json:"enrichments"`

	// Evaluations The criteria evaluations of the item
	Evaluations []WebsetItemEvaluation `json:"evaluations"`

	// Id The unique identifier for the Webset Item
	Id string `json:"id"`

	// Object The type of object
	Object WebsetItemObject `json:"object"`

	// Properties The properties of the Item
	Properties WebsetItem_Properties `json:"properties"`

	// ScopeId The import that sourced this item, when the item came from a scoped search with evaluate enabled on the import.
	ScopeId *string `json:"scopeId,omitempty"`

	// Source The source of the Item
	Source WebsetItemSource `json:"source"`

	// SourceEntityId The original identifier used to resolve this item (e.g., email, name, or URL). Only relevant when the source is import.
	SourceEntityId *string `json:"sourceEntityId,omitempty"`

	// SourceId The unique identifier for the source
	SourceId string `json:"sourceId"`

	// UpdatedAt The date and time the item was last updated
	UpdatedAt time.Time `json:"updatedAt"`

	// WebsetId The unique identifier for the Webset this Item belongs to.
	WebsetId string `json:"websetId"`
}

WebsetItem defines model for WebsetItem.

type WebsetItemArticleProperties added in v0.2.0

type WebsetItemArticleProperties struct {
	Article struct {
		// Author The author(s) of the article
		Author string `json:"author"`

		// PublishedAt The date and time the article was published
		PublishedAt string `json:"publishedAt"`

		// Title The title of the article
		Title string `json:"title"`
	} `json:"article"`

	// Content The text content for the article
	Content string `json:"content"`

	// Description Short description of the relevance of the article
	Description string                          `json:"description"`
	Type        WebsetItemArticlePropertiesType `json:"type"`

	// Url The URL of the article
	Url string `json:"url"`
}

WebsetItemArticleProperties defines model for WebsetItemArticleProperties.

type WebsetItemArticlePropertiesType added in v0.2.0

type WebsetItemArticlePropertiesType string

WebsetItemArticlePropertiesType defines model for WebsetItemArticleProperties.Type.

const (
	WebsetItemArticlePropertiesTypeArticle WebsetItemArticlePropertiesType = "article"
)

Defines values for WebsetItemArticlePropertiesType.

func (WebsetItemArticlePropertiesType) Valid added in v0.2.0

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

type WebsetItemCompanyProperties added in v0.2.0

type WebsetItemCompanyProperties struct {
	Company struct {
		// About A short description of the company
		About string `json:"about"`

		// Employees The number of employees of the company
		Employees int `json:"employees"`

		// Financials Financial information about the company
		Financials struct {
			// FundingLatestRound The latest funding round
			FundingLatestRound struct {
				// Amount The amount raised in the funding round (USD)
				Amount float32 `json:"amount"`

				// Date The date of the funding round
				Date string `json:"date"`

				// Name The name of the funding round (e.g. Series A)
				Name string `json:"name"`
			} `json:"fundingLatestRound"`

			// FundingTotal The total funding raised by the company (USD)
			FundingTotal float32 `json:"fundingTotal"`

			// RevenueAnnual The annual revenue of the company (USD)
			RevenueAnnual float32 `json:"revenueAnnual"`
		} `json:"financials"`

		// FoundedYear The year the company was founded
		FoundedYear float32 `json:"foundedYear"`

		// Headquarters The structured headquarters address of the company
		Headquarters struct {
			// Address The street address of the headquarters
			Address string `json:"address"`

			// City The city of the headquarters
			City string `json:"city"`

			// Country The country of the headquarters
			Country string `json:"country"`

			// CountryCode The ISO country code of the headquarters
			CountryCode string `json:"countryCode"`

			// PostalCode The postal code of the headquarters
			PostalCode string `json:"postalCode"`

			// State The state or region of the headquarters
			State string `json:"state"`
		} `json:"headquarters"`

		// Industry The industry of the company
		Industry string `json:"industry"`

		// Location The main location of the company
		Location string `json:"location"`

		// LogoUrl The logo URL of the company
		LogoUrl string `json:"logoUrl"`

		// Name The name of the company
		Name string `json:"name"`

		// WebTraffic Web traffic metrics for the company
		WebTraffic struct {
			// UniqueVisitors The estimated monthly unique visitors
			UniqueVisitors float32 `json:"uniqueVisitors"`

			// VisitsMonthly The estimated monthly website visits
			VisitsMonthly float32 `json:"visitsMonthly"`
		} `json:"webTraffic"`
	} `json:"company"`

	// Content The text content of the company website
	Content string `json:"content"`

	// Description Short description of the relevance of the company
	Description string                          `json:"description"`
	Type        WebsetItemCompanyPropertiesType `json:"type"`

	// Url The URL of the company website
	Url string `json:"url"`
}

WebsetItemCompanyProperties defines model for WebsetItemCompanyProperties.

type WebsetItemCompanyPropertiesType added in v0.2.0

type WebsetItemCompanyPropertiesType string

WebsetItemCompanyPropertiesType defines model for WebsetItemCompanyProperties.Type.

const (
	WebsetItemCompanyPropertiesTypeCompany WebsetItemCompanyPropertiesType = "company"
)

Defines values for WebsetItemCompanyPropertiesType.

func (WebsetItemCompanyPropertiesType) Valid added in v0.2.0

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

type WebsetItemCustomProperties added in v0.2.0

type WebsetItemCustomProperties struct {
	// Content The text content of the Item
	Content string `json:"content"`
	Custom  struct {
		// Author The author(s) of the website
		Author string `json:"author"`

		// PublishedAt The date and time the website was published
		PublishedAt string `json:"publishedAt"`

		// Title The title of the website
		Title string `json:"title"`
	} `json:"custom"`

	// Description Short description of the Item
	Description string                         `json:"description"`
	Type        WebsetItemCustomPropertiesType `json:"type"`

	// Url The URL of the Item
	Url string `json:"url"`
}

WebsetItemCustomProperties defines model for WebsetItemCustomProperties.

type WebsetItemCustomPropertiesType added in v0.2.0

type WebsetItemCustomPropertiesType string

WebsetItemCustomPropertiesType defines model for WebsetItemCustomProperties.Type.

const (
	WebsetItemCustomPropertiesTypeCustom WebsetItemCustomPropertiesType = "custom"
)

Defines values for WebsetItemCustomPropertiesType.

func (WebsetItemCustomPropertiesType) Valid added in v0.2.0

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

type WebsetItemEvaluation added in v0.2.0

type WebsetItemEvaluation struct {
	// Criterion The description of the criterion
	Criterion string `json:"criterion"`

	// Reasoning The reasoning for the result of the evaluation
	Reasoning string `json:"reasoning"`

	// References The references used to generate the result.
	References *[]struct {
		// Snippet The relevant snippet of the reference content
		Snippet string `json:"snippet"`

		// Title The title of the reference
		Title string `json:"title"`

		// Url The URL of the reference
		Url string `json:"url"`
	} `json:"references,omitempty"`

	// Satisfied The satisfaction of the criterion
	Satisfied WebsetItemEvaluationSatisfied `json:"satisfied"`
}

WebsetItemEvaluation defines model for WebsetItemEvaluation.

type WebsetItemEvaluationSatisfied added in v0.2.0

type WebsetItemEvaluationSatisfied string

WebsetItemEvaluationSatisfied The satisfaction of the criterion

const (
	WebsetItemEvaluationSatisfiedNo      WebsetItemEvaluationSatisfied = "no"
	WebsetItemEvaluationSatisfiedUnclear WebsetItemEvaluationSatisfied = "unclear"
	WebsetItemEvaluationSatisfiedYes     WebsetItemEvaluationSatisfied = "yes"
)

Defines values for WebsetItemEvaluationSatisfied.

func (WebsetItemEvaluationSatisfied) Valid added in v0.2.0

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

type WebsetItemObject added in v0.2.0

type WebsetItemObject string

WebsetItemObject The type of object

const (
	WebsetItemObjectWebsetItem WebsetItemObject = "webset_item"
)

Defines values for WebsetItemObject.

func (WebsetItemObject) Valid added in v0.2.0

func (e WebsetItemObject) Valid() bool

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

type WebsetItemPersonProperties added in v0.2.0

type WebsetItemPersonProperties struct {
	// Description Short description of the relevance of the person
	Description string `json:"description"`
	Person      struct {
		Company struct {
			// Location The location the person is working at the company
			Location string `json:"location"`

			// Name The name of the company
			Name string `json:"name"`
		} `json:"company"`

		// EducationHistory The education history of the person
		EducationHistory []struct {
			// Dates Education dates
			Dates struct {
				// From Start date
				From string `json:"from"`

				// To End date
				To string `json:"to"`
			} `json:"dates"`

			// Degree Degree obtained
			Degree      string `json:"degree"`
			Institution struct {
				// Id Entity ID of the institution
				Id string `json:"id"`

				// LinkedinUrl LinkedIn URL of the institution
				LinkedinUrl string `json:"linkedinUrl"`

				// Name Institution name
				Name string `json:"name"`
			} `json:"institution"`
		} `json:"educationHistory"`

		// Location The location of the person
		Location string `json:"location"`

		// Name The name of the person
		Name string `json:"name"`

		// PictureUrl The image URL of the person
		PictureUrl string `json:"pictureUrl"`

		// Position The current work position of the person
		Position string `json:"position"`

		// WorkHistory The work history of the person
		WorkHistory []struct {
			Company struct {
				// Id Entity ID of the company
				Id string `json:"id"`

				// LinkedinUrl LinkedIn URL of the company
				LinkedinUrl string `json:"linkedinUrl"`

				// Name Company name
				Name string `json:"name"`
			} `json:"company"`

			// Dates Employment dates
			Dates struct {
				// From Start date
				From string `json:"from"`

				// To End date
				To string `json:"to"`
			} `json:"dates"`

			// Location Work location
			Location string `json:"location"`

			// Title Job title or position
			Title string `json:"title"`
		} `json:"workHistory"`
	} `json:"person"`
	Type WebsetItemPersonPropertiesType `json:"type"`

	// Url The URL of the person profile
	Url string `json:"url"`
}

WebsetItemPersonProperties defines model for WebsetItemPersonProperties.

type WebsetItemPersonPropertiesType added in v0.2.0

type WebsetItemPersonPropertiesType string

WebsetItemPersonPropertiesType defines model for WebsetItemPersonProperties.Type.

const (
	WebsetItemPersonPropertiesTypePerson WebsetItemPersonPropertiesType = "person"
)

Defines values for WebsetItemPersonPropertiesType.

func (WebsetItemPersonPropertiesType) Valid added in v0.2.0

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

type WebsetItemPreview added in v0.2.0

type WebsetItemPreview struct {
	// CreatedAt The date and time the preview was created
	CreatedAt time.Time `json:"createdAt"`

	// Id The unique identifier for the preview item
	Id string `json:"id"`

	// Properties The properties of the preview item
	Properties WebsetItemPreview_Properties `json:"properties"`
}

WebsetItemPreview defines model for WebsetItemPreview.

type WebsetItemPreview_Properties added in v0.2.0

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

WebsetItemPreview_Properties The properties of the preview item

func (WebsetItemPreview_Properties) AsWebsetItemArticleProperties added in v0.2.0

func (t WebsetItemPreview_Properties) AsWebsetItemArticleProperties() (WebsetItemArticleProperties, error)

AsWebsetItemArticleProperties returns the union data inside the WebsetItemPreview_Properties as a WebsetItemArticleProperties

func (WebsetItemPreview_Properties) AsWebsetItemCompanyProperties added in v0.2.0

func (t WebsetItemPreview_Properties) AsWebsetItemCompanyProperties() (WebsetItemCompanyProperties, error)

AsWebsetItemCompanyProperties returns the union data inside the WebsetItemPreview_Properties as a WebsetItemCompanyProperties

func (WebsetItemPreview_Properties) AsWebsetItemCustomProperties added in v0.2.0

func (t WebsetItemPreview_Properties) AsWebsetItemCustomProperties() (WebsetItemCustomProperties, error)

AsWebsetItemCustomProperties returns the union data inside the WebsetItemPreview_Properties as a WebsetItemCustomProperties

func (WebsetItemPreview_Properties) AsWebsetItemPersonProperties added in v0.2.0

func (t WebsetItemPreview_Properties) AsWebsetItemPersonProperties() (WebsetItemPersonProperties, error)

AsWebsetItemPersonProperties returns the union data inside the WebsetItemPreview_Properties as a WebsetItemPersonProperties

func (WebsetItemPreview_Properties) AsWebsetItemResearchPaperProperties added in v0.2.0

func (t WebsetItemPreview_Properties) AsWebsetItemResearchPaperProperties() (WebsetItemResearchPaperProperties, error)

AsWebsetItemResearchPaperProperties returns the union data inside the WebsetItemPreview_Properties as a WebsetItemResearchPaperProperties

func (*WebsetItemPreview_Properties) FromWebsetItemArticleProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) FromWebsetItemArticleProperties(v WebsetItemArticleProperties) error

FromWebsetItemArticleProperties overwrites any union data inside the WebsetItemPreview_Properties as the provided WebsetItemArticleProperties

func (*WebsetItemPreview_Properties) FromWebsetItemCompanyProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) FromWebsetItemCompanyProperties(v WebsetItemCompanyProperties) error

FromWebsetItemCompanyProperties overwrites any union data inside the WebsetItemPreview_Properties as the provided WebsetItemCompanyProperties

func (*WebsetItemPreview_Properties) FromWebsetItemCustomProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) FromWebsetItemCustomProperties(v WebsetItemCustomProperties) error

FromWebsetItemCustomProperties overwrites any union data inside the WebsetItemPreview_Properties as the provided WebsetItemCustomProperties

func (*WebsetItemPreview_Properties) FromWebsetItemPersonProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) FromWebsetItemPersonProperties(v WebsetItemPersonProperties) error

FromWebsetItemPersonProperties overwrites any union data inside the WebsetItemPreview_Properties as the provided WebsetItemPersonProperties

func (*WebsetItemPreview_Properties) FromWebsetItemResearchPaperProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) FromWebsetItemResearchPaperProperties(v WebsetItemResearchPaperProperties) error

FromWebsetItemResearchPaperProperties overwrites any union data inside the WebsetItemPreview_Properties as the provided WebsetItemResearchPaperProperties

func (WebsetItemPreview_Properties) MarshalJSON added in v0.2.0

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

func (*WebsetItemPreview_Properties) MergeWebsetItemArticleProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) MergeWebsetItemArticleProperties(v WebsetItemArticleProperties) error

MergeWebsetItemArticleProperties performs a merge with any union data inside the WebsetItemPreview_Properties, using the provided WebsetItemArticleProperties

func (*WebsetItemPreview_Properties) MergeWebsetItemCompanyProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) MergeWebsetItemCompanyProperties(v WebsetItemCompanyProperties) error

MergeWebsetItemCompanyProperties performs a merge with any union data inside the WebsetItemPreview_Properties, using the provided WebsetItemCompanyProperties

func (*WebsetItemPreview_Properties) MergeWebsetItemCustomProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) MergeWebsetItemCustomProperties(v WebsetItemCustomProperties) error

MergeWebsetItemCustomProperties performs a merge with any union data inside the WebsetItemPreview_Properties, using the provided WebsetItemCustomProperties

func (*WebsetItemPreview_Properties) MergeWebsetItemPersonProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) MergeWebsetItemPersonProperties(v WebsetItemPersonProperties) error

MergeWebsetItemPersonProperties performs a merge with any union data inside the WebsetItemPreview_Properties, using the provided WebsetItemPersonProperties

func (*WebsetItemPreview_Properties) MergeWebsetItemResearchPaperProperties added in v0.2.0

func (t *WebsetItemPreview_Properties) MergeWebsetItemResearchPaperProperties(v WebsetItemResearchPaperProperties) error

MergeWebsetItemResearchPaperProperties performs a merge with any union data inside the WebsetItemPreview_Properties, using the provided WebsetItemResearchPaperProperties

func (*WebsetItemPreview_Properties) UnmarshalJSON added in v0.2.0

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

type WebsetItemResearchPaperProperties added in v0.2.0

type WebsetItemResearchPaperProperties struct {
	// Content The text content of the research paper
	Content string `json:"content"`

	// Description Short description of the relevance of the research paper
	Description   string `json:"description"`
	ResearchPaper struct {
		// Author The author(s) of the research paper
		Author string `json:"author"`

		// PublishedAt The date and time the research paper was published
		PublishedAt string `json:"publishedAt"`

		// Title The title of the research paper
		Title string `json:"title"`
	} `json:"researchPaper"`
	Type WebsetItemResearchPaperPropertiesType `json:"type"`

	// Url The URL of the research paper
	Url string `json:"url"`
}

WebsetItemResearchPaperProperties defines model for WebsetItemResearchPaperProperties.

type WebsetItemResearchPaperPropertiesType added in v0.2.0

type WebsetItemResearchPaperPropertiesType string

WebsetItemResearchPaperPropertiesType defines model for WebsetItemResearchPaperProperties.Type.

const (
	WebsetItemResearchPaperPropertiesTypeResearchPaper WebsetItemResearchPaperPropertiesType = "research_paper"
)

Defines values for WebsetItemResearchPaperPropertiesType.

func (WebsetItemResearchPaperPropertiesType) Valid added in v0.2.0

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

type WebsetItemSource added in v0.2.0

type WebsetItemSource string

WebsetItemSource The source of the Item

const (
	WebsetItemSourceImport WebsetItemSource = "import"
	WebsetItemSourceSearch WebsetItemSource = "search"
)

Defines values for WebsetItemSource.

func (WebsetItemSource) Valid added in v0.2.0

func (e WebsetItemSource) Valid() bool

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

type WebsetItem_Properties added in v0.2.0

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

WebsetItem_Properties The properties of the Item

func (WebsetItem_Properties) AsWebsetItemArticleProperties added in v0.2.0

func (t WebsetItem_Properties) AsWebsetItemArticleProperties() (WebsetItemArticleProperties, error)

AsWebsetItemArticleProperties returns the union data inside the WebsetItem_Properties as a WebsetItemArticleProperties

func (WebsetItem_Properties) AsWebsetItemCompanyProperties added in v0.2.0

func (t WebsetItem_Properties) AsWebsetItemCompanyProperties() (WebsetItemCompanyProperties, error)

AsWebsetItemCompanyProperties returns the union data inside the WebsetItem_Properties as a WebsetItemCompanyProperties

func (WebsetItem_Properties) AsWebsetItemCustomProperties added in v0.2.0

func (t WebsetItem_Properties) AsWebsetItemCustomProperties() (WebsetItemCustomProperties, error)

AsWebsetItemCustomProperties returns the union data inside the WebsetItem_Properties as a WebsetItemCustomProperties

func (WebsetItem_Properties) AsWebsetItemPersonProperties added in v0.2.0

func (t WebsetItem_Properties) AsWebsetItemPersonProperties() (WebsetItemPersonProperties, error)

AsWebsetItemPersonProperties returns the union data inside the WebsetItem_Properties as a WebsetItemPersonProperties

func (WebsetItem_Properties) AsWebsetItemResearchPaperProperties added in v0.2.0

func (t WebsetItem_Properties) AsWebsetItemResearchPaperProperties() (WebsetItemResearchPaperProperties, error)

AsWebsetItemResearchPaperProperties returns the union data inside the WebsetItem_Properties as a WebsetItemResearchPaperProperties

func (*WebsetItem_Properties) FromWebsetItemArticleProperties added in v0.2.0

func (t *WebsetItem_Properties) FromWebsetItemArticleProperties(v WebsetItemArticleProperties) error

FromWebsetItemArticleProperties overwrites any union data inside the WebsetItem_Properties as the provided WebsetItemArticleProperties

func (*WebsetItem_Properties) FromWebsetItemCompanyProperties added in v0.2.0

func (t *WebsetItem_Properties) FromWebsetItemCompanyProperties(v WebsetItemCompanyProperties) error

FromWebsetItemCompanyProperties overwrites any union data inside the WebsetItem_Properties as the provided WebsetItemCompanyProperties

func (*WebsetItem_Properties) FromWebsetItemCustomProperties added in v0.2.0

func (t *WebsetItem_Properties) FromWebsetItemCustomProperties(v WebsetItemCustomProperties) error

FromWebsetItemCustomProperties overwrites any union data inside the WebsetItem_Properties as the provided WebsetItemCustomProperties

func (*WebsetItem_Properties) FromWebsetItemPersonProperties added in v0.2.0

func (t *WebsetItem_Properties) FromWebsetItemPersonProperties(v WebsetItemPersonProperties) error

FromWebsetItemPersonProperties overwrites any union data inside the WebsetItem_Properties as the provided WebsetItemPersonProperties

func (*WebsetItem_Properties) FromWebsetItemResearchPaperProperties added in v0.2.0

func (t *WebsetItem_Properties) FromWebsetItemResearchPaperProperties(v WebsetItemResearchPaperProperties) error

FromWebsetItemResearchPaperProperties overwrites any union data inside the WebsetItem_Properties as the provided WebsetItemResearchPaperProperties

func (WebsetItem_Properties) MarshalJSON added in v0.2.0

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

func (*WebsetItem_Properties) MergeWebsetItemArticleProperties added in v0.2.0

func (t *WebsetItem_Properties) MergeWebsetItemArticleProperties(v WebsetItemArticleProperties) error

MergeWebsetItemArticleProperties performs a merge with any union data inside the WebsetItem_Properties, using the provided WebsetItemArticleProperties

func (*WebsetItem_Properties) MergeWebsetItemCompanyProperties added in v0.2.0

func (t *WebsetItem_Properties) MergeWebsetItemCompanyProperties(v WebsetItemCompanyProperties) error

MergeWebsetItemCompanyProperties performs a merge with any union data inside the WebsetItem_Properties, using the provided WebsetItemCompanyProperties

func (*WebsetItem_Properties) MergeWebsetItemCustomProperties added in v0.2.0

func (t *WebsetItem_Properties) MergeWebsetItemCustomProperties(v WebsetItemCustomProperties) error

MergeWebsetItemCustomProperties performs a merge with any union data inside the WebsetItem_Properties, using the provided WebsetItemCustomProperties

func (*WebsetItem_Properties) MergeWebsetItemPersonProperties added in v0.2.0

func (t *WebsetItem_Properties) MergeWebsetItemPersonProperties(v WebsetItemPersonProperties) error

MergeWebsetItemPersonProperties performs a merge with any union data inside the WebsetItem_Properties, using the provided WebsetItemPersonProperties

func (*WebsetItem_Properties) MergeWebsetItemResearchPaperProperties added in v0.2.0

func (t *WebsetItem_Properties) MergeWebsetItemResearchPaperProperties(v WebsetItemResearchPaperProperties) error

MergeWebsetItemResearchPaperProperties performs a merge with any union data inside the WebsetItem_Properties, using the provided WebsetItemResearchPaperProperties

func (*WebsetItem_Properties) UnmarshalJSON added in v0.2.0

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

type WebsetObject added in v0.2.0

type WebsetObject string

WebsetObject The type of object

const (
	WebsetObjectWebset WebsetObject = "webset"
)

Defines values for WebsetObject.

func (WebsetObject) Valid added in v0.2.0

func (e WebsetObject) Valid() bool

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

type WebsetSearch added in v0.2.0

type WebsetSearch struct {
	Behavior *WebsetSearchBehavior `json:"behavior,omitempty"`

	// CanceledAt The date and time the search was canceled
	CanceledAt     time.Time                  `json:"canceledAt"`
	CanceledReason WebsetSearchCanceledReason `json:"canceledReason"`

	// Count The number of results the search will attempt to find. The actual number of results may be less than this number depending on the search complexity.
	Count float32 `json:"count"`

	// CreatedAt The date and time the search was created
	CreatedAt time.Time `json:"createdAt"`

	// Criteria The criteria the search will use to evaluate the results. If not provided, we will automatically generate them for you.
	Criteria []struct {
		// Description The description of the criterion
		Description string `json:"description"`

		// SuccessRate Value between 0 and 100 representing the percentage of results that meet the criterion.
		SuccessRate float32 `json:"successRate"`
	} `json:"criteria"`
	Entity Entity `json:"entity"`

	// Exclude Sources (existing imports or websets) used to omit certain results to be found during the search.
	Exclude []struct {
		Id     string                    `json:"id"`
		Source WebsetSearchExcludeSource `json:"source"`
	} `json:"exclude"`

	// Id The unique identifier for the search
	Id string `json:"id"`

	// MaxPeoplePerCompany The soft cap requested for matching people from the same current employer company, or null when no cap was requested.
	MaxPeoplePerCompany int `json:"maxPeoplePerCompany"`

	// Metadata Set of key-value pairs you want to associate with this object.
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Object The type of object
	Object WebsetSearchObject `json:"object"`

	// Progress The progress of the search
	Progress struct {
		// Analyzed The number of results analyzed so far
		Analyzed float32 `json:"analyzed"`

		// Completion The completion percentage of the search
		Completion float32 `json:"completion"`

		// Found The number of results found so far
		Found float32 `json:"found"`

		// TimeLeft The estimated time remaining in seconds, null if unknown
		TimeLeft float32 `json:"timeLeft"`
	} `json:"progress"`

	// Query The query used to create the search.
	Query string `json:"query"`

	// Recall Recall metrics for the search, null if not yet computed or requested.
	Recall struct {
		Expected struct {
			Bounds struct {
				// Max The maximum estimated total number of potential matches
				Max float32 `json:"max"`

				// Min The minimum estimated total number of potential matches
				Min float32 `json:"min"`
			} `json:"bounds"`

			// Confidence The confidence in the estimate
			Confidence WebsetSearchRecallExpectedConfidence `json:"confidence"`

			// Total The estimated total number of potential matches
			Total float32 `json:"total"`
		} `json:"expected"`

		// Reasoning The reasoning for the estimate
		Reasoning string `json:"reasoning"`
	} `json:"recall"`

	// Scope Sources the search is limited to. Empty when the search covers the whole web.
	Scope []struct {
		Id           string `json:"id"`
		Relationship *struct {
			// Definition What the relationship of the entities you hope to find is relative to the entities contained in the provided source.
			Definition string  `json:"definition"`
			Limit      float32 `json:"limit"`
		} `json:"relationship,omitempty"`
		Source WebsetSearchScopeSource `json:"source"`
	} `json:"scope"`

	// Status The status of the search
	Status WebsetSearchStatus `json:"status"`

	// UpdatedAt The date and time the search was updated
	UpdatedAt time.Time `json:"updatedAt"`

	// WebsetId The unique identifier for the Webset this search belongs to
	WebsetId string `json:"websetId"`
}

WebsetSearch defines model for WebsetSearch.

type WebsetSearchBehavior added in v0.2.0

type WebsetSearchBehavior string

WebsetSearchBehavior defines model for WebsetSearchBehavior.

const (
	WebsetSearchBehaviorAppend   WebsetSearchBehavior = "append"
	WebsetSearchBehaviorOverride WebsetSearchBehavior = "override"
)

Defines values for WebsetSearchBehavior.

func (WebsetSearchBehavior) Valid added in v0.2.0

func (e WebsetSearchBehavior) Valid() bool

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

type WebsetSearchCanceledReason added in v0.2.0

type WebsetSearchCanceledReason string

WebsetSearchCanceledReason defines model for WebsetSearchCanceledReason.

const (
	WebsetSearchCanceledReasonOutOfCredits   WebsetSearchCanceledReason = "out_of_credits"
	WebsetSearchCanceledReasonWebsetCanceled WebsetSearchCanceledReason = "webset_canceled"
	WebsetSearchCanceledReasonWebsetDeleted  WebsetSearchCanceledReason = "webset_deleted"
)

Defines values for WebsetSearchCanceledReason.

func (WebsetSearchCanceledReason) Valid added in v0.2.0

func (e WebsetSearchCanceledReason) Valid() bool

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

type WebsetSearchExcludeSource added in v0.2.0

type WebsetSearchExcludeSource string

WebsetSearchExcludeSource defines model for WebsetSearch.Exclude.Source.

const (
	WebsetSearchExcludeSourceImport WebsetSearchExcludeSource = "import"
	WebsetSearchExcludeSourceWebset WebsetSearchExcludeSource = "webset"
)

Defines values for WebsetSearchExcludeSource.

func (WebsetSearchExcludeSource) Valid added in v0.2.0

func (e WebsetSearchExcludeSource) Valid() bool

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

type WebsetSearchObject added in v0.2.0

type WebsetSearchObject string

WebsetSearchObject The type of object

const (
	WebsetSearchObjectWebsetSearch WebsetSearchObject = "webset_search"
)

Defines values for WebsetSearchObject.

func (WebsetSearchObject) Valid added in v0.2.0

func (e WebsetSearchObject) Valid() bool

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

type WebsetSearchRecallExpectedConfidence added in v0.2.0

type WebsetSearchRecallExpectedConfidence string

WebsetSearchRecallExpectedConfidence The confidence in the estimate

const (
	WebsetSearchRecallExpectedConfidenceHigh   WebsetSearchRecallExpectedConfidence = "high"
	WebsetSearchRecallExpectedConfidenceLow    WebsetSearchRecallExpectedConfidence = "low"
	WebsetSearchRecallExpectedConfidenceMedium WebsetSearchRecallExpectedConfidence = "medium"
)

Defines values for WebsetSearchRecallExpectedConfidence.

func (WebsetSearchRecallExpectedConfidence) Valid added in v0.2.0

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

type WebsetSearchScopeSource added in v0.2.0

type WebsetSearchScopeSource string

WebsetSearchScopeSource defines model for WebsetSearch.Scope.Source.

const (
	WebsetSearchScopeSourceImport WebsetSearchScopeSource = "import"
	WebsetSearchScopeSourceWebset WebsetSearchScopeSource = "webset"
)

Defines values for WebsetSearchScopeSource.

func (WebsetSearchScopeSource) Valid added in v0.2.0

func (e WebsetSearchScopeSource) Valid() bool

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

type WebsetSearchStatus added in v0.2.0

type WebsetSearchStatus string

WebsetSearchStatus The status of the search

const (
	WebsetSearchStatusCanceled  WebsetSearchStatus = "canceled"
	WebsetSearchStatusCompleted WebsetSearchStatus = "completed"
	WebsetSearchStatusCreated   WebsetSearchStatus = "created"
	WebsetSearchStatusPending   WebsetSearchStatus = "pending"
	WebsetSearchStatusRunning   WebsetSearchStatus = "running"
)

Defines values for WebsetSearchStatus.

func (WebsetSearchStatus) Valid added in v0.2.0

func (e WebsetSearchStatus) Valid() bool

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

type WebsetStatus added in v0.2.0

type WebsetStatus string

WebsetStatus The status of the webset

const (
	WebsetStatusIdle    WebsetStatus = "idle"
	WebsetStatusPaused  WebsetStatus = "paused"
	WebsetStatusPending WebsetStatus = "pending"
	WebsetStatusRunning WebsetStatus = "running"
)

Defines values for WebsetStatus.

func (WebsetStatus) Valid added in v0.2.0

func (e WebsetStatus) Valid() bool

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

type WebsetsCancelResponse added in v0.2.0

type WebsetsCancelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webset
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsCancelResponse200Headers
}

func ParseWebsetsCancelResponse added in v0.2.0

func ParseWebsetsCancelResponse(rsp *http.Response) (*WebsetsCancelResponse, error)

ParseWebsetsCancelResponse parses an HTTP response from a WebsetsCancelWithResponse call

func (WebsetsCancelResponse) ContentType added in v0.2.0

func (r WebsetsCancelResponse) ContentType() string

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

func (WebsetsCancelResponse) GetBody added in v0.2.0

func (r WebsetsCancelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsCancelResponse) GetJSON200 added in v0.2.0

func (r WebsetsCancelResponse) GetJSON200() *Webset

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

func (WebsetsCancelResponse) Status added in v0.2.0

func (r WebsetsCancelResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsCancelResponse) StatusCode added in v0.2.0

func (r WebsetsCancelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsCancelResponse200Headers added in v0.2.0

type WebsetsCancelResponse200Headers struct {
	XRequestId string
}

WebsetsCancelResponse200Headers the declared response headers of an HTTP 200 response for WebsetsCancel

type WebsetsCreateJSONRequestBody added in v0.2.0

type WebsetsCreateJSONRequestBody = CreateWebsetParameters

WebsetsCreateJSONRequestBody defines body for WebsetsCreate for application/json ContentType.

type WebsetsCreateResponse added in v0.2.0

type WebsetsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Webset
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *WebsetsCreateResponse201Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *WebsetsCreateResponse409Headers
}

func ParseWebsetsCreateResponse added in v0.2.0

func ParseWebsetsCreateResponse(rsp *http.Response) (*WebsetsCreateResponse, error)

ParseWebsetsCreateResponse parses an HTTP response from a WebsetsCreateWithResponse call

func (WebsetsCreateResponse) ContentType added in v0.2.0

func (r WebsetsCreateResponse) ContentType() string

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

func (WebsetsCreateResponse) GetBody added in v0.2.0

func (r WebsetsCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsCreateResponse) GetJSON201 added in v0.2.0

func (r WebsetsCreateResponse) GetJSON201() *Webset

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (WebsetsCreateResponse) Status added in v0.2.0

func (r WebsetsCreateResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsCreateResponse) StatusCode added in v0.2.0

func (r WebsetsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsCreateResponse201Headers added in v0.2.0

type WebsetsCreateResponse201Headers struct {
	XRequestId string
}

WebsetsCreateResponse201Headers the declared response headers of an HTTP 201 response for WebsetsCreate

type WebsetsCreateResponse409Headers added in v0.2.0

type WebsetsCreateResponse409Headers struct {
	XRequestId string
}

WebsetsCreateResponse409Headers the declared response headers of an HTTP 409 response for WebsetsCreate

type WebsetsDeleteResponse added in v0.2.0

type WebsetsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webset
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsDeleteResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebsetsDeleteResponse404Headers
}

func ParseWebsetsDeleteResponse added in v0.2.0

func ParseWebsetsDeleteResponse(rsp *http.Response) (*WebsetsDeleteResponse, error)

ParseWebsetsDeleteResponse parses an HTTP response from a WebsetsDeleteWithResponse call

func (WebsetsDeleteResponse) ContentType added in v0.2.0

func (r WebsetsDeleteResponse) ContentType() string

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

func (WebsetsDeleteResponse) GetBody added in v0.2.0

func (r WebsetsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsDeleteResponse) GetJSON200 added in v0.2.0

func (r WebsetsDeleteResponse) GetJSON200() *Webset

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

func (WebsetsDeleteResponse) Status added in v0.2.0

func (r WebsetsDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsDeleteResponse) StatusCode added in v0.2.0

func (r WebsetsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsDeleteResponse200Headers added in v0.2.0

type WebsetsDeleteResponse200Headers struct {
	XRequestId string
}

WebsetsDeleteResponse200Headers the declared response headers of an HTTP 200 response for WebsetsDelete

type WebsetsDeleteResponse404Headers added in v0.2.0

type WebsetsDeleteResponse404Headers struct {
	XRequestId string
}

WebsetsDeleteResponse404Headers the declared response headers of an HTTP 404 response for WebsetsDelete

type WebsetsEnrichmentsCancelResponse added in v0.2.0

type WebsetsEnrichmentsCancelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetEnrichment
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsEnrichmentsCancelResponse200Headers
}

func ParseWebsetsEnrichmentsCancelResponse added in v0.2.0

func ParseWebsetsEnrichmentsCancelResponse(rsp *http.Response) (*WebsetsEnrichmentsCancelResponse, error)

ParseWebsetsEnrichmentsCancelResponse parses an HTTP response from a WebsetsEnrichmentsCancelWithResponse call

func (WebsetsEnrichmentsCancelResponse) ContentType added in v0.2.0

func (r WebsetsEnrichmentsCancelResponse) ContentType() string

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

func (WebsetsEnrichmentsCancelResponse) GetBody added in v0.2.0

func (r WebsetsEnrichmentsCancelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsEnrichmentsCancelResponse) GetJSON200 added in v0.2.0

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

func (WebsetsEnrichmentsCancelResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsEnrichmentsCancelResponse) StatusCode added in v0.2.0

func (r WebsetsEnrichmentsCancelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsEnrichmentsCancelResponse200Headers added in v0.2.0

type WebsetsEnrichmentsCancelResponse200Headers struct {
	XRequestId string
}

WebsetsEnrichmentsCancelResponse200Headers the declared response headers of an HTTP 200 response for WebsetsEnrichmentsCancel

type WebsetsEnrichmentsCreateJSONRequestBody added in v0.2.0

type WebsetsEnrichmentsCreateJSONRequestBody = CreateEnrichmentParameters

WebsetsEnrichmentsCreateJSONRequestBody defines body for WebsetsEnrichmentsCreate for application/json ContentType.

type WebsetsEnrichmentsCreateResponse added in v0.2.0

type WebsetsEnrichmentsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetEnrichment
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsEnrichmentsCreateResponse200Headers
}

func ParseWebsetsEnrichmentsCreateResponse added in v0.2.0

func ParseWebsetsEnrichmentsCreateResponse(rsp *http.Response) (*WebsetsEnrichmentsCreateResponse, error)

ParseWebsetsEnrichmentsCreateResponse parses an HTTP response from a WebsetsEnrichmentsCreateWithResponse call

func (WebsetsEnrichmentsCreateResponse) ContentType added in v0.2.0

func (r WebsetsEnrichmentsCreateResponse) ContentType() string

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

func (WebsetsEnrichmentsCreateResponse) GetBody added in v0.2.0

func (r WebsetsEnrichmentsCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsEnrichmentsCreateResponse) GetJSON200 added in v0.2.0

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

func (WebsetsEnrichmentsCreateResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsEnrichmentsCreateResponse) StatusCode added in v0.2.0

func (r WebsetsEnrichmentsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsEnrichmentsCreateResponse200Headers added in v0.2.0

type WebsetsEnrichmentsCreateResponse200Headers struct {
	XRequestId string
}

WebsetsEnrichmentsCreateResponse200Headers the declared response headers of an HTTP 200 response for WebsetsEnrichmentsCreate

type WebsetsEnrichmentsDeleteResponse added in v0.2.0

type WebsetsEnrichmentsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetEnrichment
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsEnrichmentsDeleteResponse200Headers
}

func ParseWebsetsEnrichmentsDeleteResponse added in v0.2.0

func ParseWebsetsEnrichmentsDeleteResponse(rsp *http.Response) (*WebsetsEnrichmentsDeleteResponse, error)

ParseWebsetsEnrichmentsDeleteResponse parses an HTTP response from a WebsetsEnrichmentsDeleteWithResponse call

func (WebsetsEnrichmentsDeleteResponse) ContentType added in v0.2.0

func (r WebsetsEnrichmentsDeleteResponse) ContentType() string

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

func (WebsetsEnrichmentsDeleteResponse) GetBody added in v0.2.0

func (r WebsetsEnrichmentsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsEnrichmentsDeleteResponse) GetJSON200 added in v0.2.0

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

func (WebsetsEnrichmentsDeleteResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsEnrichmentsDeleteResponse) StatusCode added in v0.2.0

func (r WebsetsEnrichmentsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsEnrichmentsDeleteResponse200Headers added in v0.2.0

type WebsetsEnrichmentsDeleteResponse200Headers struct {
	XRequestId string
}

WebsetsEnrichmentsDeleteResponse200Headers the declared response headers of an HTTP 200 response for WebsetsEnrichmentsDelete

type WebsetsEnrichmentsGetResponse added in v0.2.0

type WebsetsEnrichmentsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetEnrichment
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsEnrichmentsGetResponse200Headers
}

func ParseWebsetsEnrichmentsGetResponse added in v0.2.0

func ParseWebsetsEnrichmentsGetResponse(rsp *http.Response) (*WebsetsEnrichmentsGetResponse, error)

ParseWebsetsEnrichmentsGetResponse parses an HTTP response from a WebsetsEnrichmentsGetWithResponse call

func (WebsetsEnrichmentsGetResponse) ContentType added in v0.2.0

func (r WebsetsEnrichmentsGetResponse) ContentType() string

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

func (WebsetsEnrichmentsGetResponse) GetBody added in v0.2.0

func (r WebsetsEnrichmentsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsEnrichmentsGetResponse) GetJSON200 added in v0.2.0

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

func (WebsetsEnrichmentsGetResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsEnrichmentsGetResponse) StatusCode added in v0.2.0

func (r WebsetsEnrichmentsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsEnrichmentsGetResponse200Headers added in v0.2.0

type WebsetsEnrichmentsGetResponse200Headers struct {
	XRequestId string
}

WebsetsEnrichmentsGetResponse200Headers the declared response headers of an HTTP 200 response for WebsetsEnrichmentsGet

type WebsetsEnrichmentsUpdateJSONRequestBody added in v0.2.0

type WebsetsEnrichmentsUpdateJSONRequestBody = UpdateEnrichmentParameters

WebsetsEnrichmentsUpdateJSONRequestBody defines body for WebsetsEnrichmentsUpdate for application/json ContentType.

type WebsetsEnrichmentsUpdateResponse added in v0.2.0

type WebsetsEnrichmentsUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsEnrichmentsUpdateResponse200Headers
}

func ParseWebsetsEnrichmentsUpdateResponse added in v0.2.0

func ParseWebsetsEnrichmentsUpdateResponse(rsp *http.Response) (*WebsetsEnrichmentsUpdateResponse, error)

ParseWebsetsEnrichmentsUpdateResponse parses an HTTP response from a WebsetsEnrichmentsUpdateWithResponse call

func (WebsetsEnrichmentsUpdateResponse) ContentType added in v0.2.0

func (r WebsetsEnrichmentsUpdateResponse) ContentType() string

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

func (WebsetsEnrichmentsUpdateResponse) GetBody added in v0.2.0

func (r WebsetsEnrichmentsUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsEnrichmentsUpdateResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsEnrichmentsUpdateResponse) StatusCode added in v0.2.0

func (r WebsetsEnrichmentsUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsEnrichmentsUpdateResponse200Headers added in v0.2.0

type WebsetsEnrichmentsUpdateResponse200Headers struct {
	XRequestId string
}

WebsetsEnrichmentsUpdateResponse200Headers the declared response headers of an HTTP 200 response for WebsetsEnrichmentsUpdate

type WebsetsGetParams added in v0.2.0

type WebsetsGetParams struct {
	// Expand Expand the response with the specified resources
	Expand *[]WebsetsGetParamsExpand `form:"expand,omitempty" json:"expand,omitempty"`
}

WebsetsGetParams defines parameters for WebsetsGet.

type WebsetsGetParamsExpand added in v0.2.0

type WebsetsGetParamsExpand string

WebsetsGetParamsExpand defines parameters for WebsetsGet.

const (
	WebsetsGetParamsExpandItems WebsetsGetParamsExpand = "items"
)

Defines values for WebsetsGetParamsExpand.

func (WebsetsGetParamsExpand) Valid added in v0.2.0

func (e WebsetsGetParamsExpand) Valid() bool

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

type WebsetsGetResponse added in v0.2.0

type WebsetsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GetWebsetResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsGetResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebsetsGetResponse404Headers
}

func ParseWebsetsGetResponse added in v0.2.0

func ParseWebsetsGetResponse(rsp *http.Response) (*WebsetsGetResponse, error)

ParseWebsetsGetResponse parses an HTTP response from a WebsetsGetWithResponse call

func (WebsetsGetResponse) ContentType added in v0.2.0

func (r WebsetsGetResponse) ContentType() string

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

func (WebsetsGetResponse) GetBody added in v0.2.0

func (r WebsetsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsGetResponse) GetJSON200 added in v0.2.0

func (r WebsetsGetResponse) GetJSON200() *GetWebsetResponse

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

func (WebsetsGetResponse) Status added in v0.2.0

func (r WebsetsGetResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsGetResponse) StatusCode added in v0.2.0

func (r WebsetsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsGetResponse200Headers added in v0.2.0

type WebsetsGetResponse200Headers struct {
	XRequestId string
}

WebsetsGetResponse200Headers the declared response headers of an HTTP 200 response for WebsetsGet

type WebsetsGetResponse404Headers added in v0.2.0

type WebsetsGetResponse404Headers struct {
	XRequestId string
}

WebsetsGetResponse404Headers the declared response headers of an HTTP 404 response for WebsetsGet

type WebsetsItemsDeleteResponse added in v0.2.0

type WebsetsItemsDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetItem
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsItemsDeleteResponse200Headers
}

func ParseWebsetsItemsDeleteResponse added in v0.2.0

func ParseWebsetsItemsDeleteResponse(rsp *http.Response) (*WebsetsItemsDeleteResponse, error)

ParseWebsetsItemsDeleteResponse parses an HTTP response from a WebsetsItemsDeleteWithResponse call

func (WebsetsItemsDeleteResponse) ContentType added in v0.2.0

func (r WebsetsItemsDeleteResponse) ContentType() string

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

func (WebsetsItemsDeleteResponse) GetBody added in v0.2.0

func (r WebsetsItemsDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsItemsDeleteResponse) GetJSON200 added in v0.2.0

func (r WebsetsItemsDeleteResponse) GetJSON200() *WebsetItem

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

func (WebsetsItemsDeleteResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsItemsDeleteResponse) StatusCode added in v0.2.0

func (r WebsetsItemsDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsItemsDeleteResponse200Headers added in v0.2.0

type WebsetsItemsDeleteResponse200Headers struct {
	XRequestId string
}

WebsetsItemsDeleteResponse200Headers the declared response headers of an HTTP 200 response for WebsetsItemsDelete

type WebsetsItemsGetResponse added in v0.2.0

type WebsetsItemsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetItem
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsItemsGetResponse200Headers
}

func ParseWebsetsItemsGetResponse added in v0.2.0

func ParseWebsetsItemsGetResponse(rsp *http.Response) (*WebsetsItemsGetResponse, error)

ParseWebsetsItemsGetResponse parses an HTTP response from a WebsetsItemsGetWithResponse call

func (WebsetsItemsGetResponse) ContentType added in v0.2.0

func (r WebsetsItemsGetResponse) ContentType() string

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

func (WebsetsItemsGetResponse) GetBody added in v0.2.0

func (r WebsetsItemsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsItemsGetResponse) GetJSON200 added in v0.2.0

func (r WebsetsItemsGetResponse) GetJSON200() *WebsetItem

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

func (WebsetsItemsGetResponse) Status added in v0.2.0

func (r WebsetsItemsGetResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsItemsGetResponse) StatusCode added in v0.2.0

func (r WebsetsItemsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsItemsGetResponse200Headers added in v0.2.0

type WebsetsItemsGetResponse200Headers struct {
	XRequestId string
}

WebsetsItemsGetResponse200Headers the declared response headers of an HTTP 200 response for WebsetsItemsGet

type WebsetsItemsListParams added in v0.2.0

type WebsetsItemsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of results to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// SourceId The id of the source
	SourceId *string `form:"sourceId,omitempty" json:"sourceId,omitempty"`
}

WebsetsItemsListParams defines parameters for WebsetsItemsList.

type WebsetsItemsListResponse added in v0.2.0

type WebsetsItemsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListWebsetItemResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsItemsListResponse200Headers
}

func ParseWebsetsItemsListResponse added in v0.2.0

func ParseWebsetsItemsListResponse(rsp *http.Response) (*WebsetsItemsListResponse, error)

ParseWebsetsItemsListResponse parses an HTTP response from a WebsetsItemsListWithResponse call

func (WebsetsItemsListResponse) ContentType added in v0.2.0

func (r WebsetsItemsListResponse) ContentType() string

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

func (WebsetsItemsListResponse) GetBody added in v0.2.0

func (r WebsetsItemsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsItemsListResponse) GetJSON200 added in v0.2.0

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

func (WebsetsItemsListResponse) Status added in v0.2.0

func (r WebsetsItemsListResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsItemsListResponse) StatusCode added in v0.2.0

func (r WebsetsItemsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsItemsListResponse200Headers added in v0.2.0

type WebsetsItemsListResponse200Headers struct {
	XRequestId string
}

WebsetsItemsListResponse200Headers the declared response headers of an HTTP 200 response for WebsetsItemsList

type WebsetsListParams added in v0.2.0

type WebsetsListParams struct {
	// Cursor The cursor to paginate through the results
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of Websets to return
	Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Search Search term to filter Websets by ID, external ID, or title
	Search *string `form:"search,omitempty" json:"search,omitempty"`
}

WebsetsListParams defines parameters for WebsetsList.

type WebsetsListResponse added in v0.2.0

type WebsetsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListWebsetsResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsListResponse200Headers
}

func ParseWebsetsListResponse added in v0.2.0

func ParseWebsetsListResponse(rsp *http.Response) (*WebsetsListResponse, error)

ParseWebsetsListResponse parses an HTTP response from a WebsetsListWithResponse call

func (WebsetsListResponse) ContentType added in v0.2.0

func (r WebsetsListResponse) ContentType() string

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

func (WebsetsListResponse) GetBody added in v0.2.0

func (r WebsetsListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsListResponse) GetJSON200 added in v0.2.0

func (r WebsetsListResponse) GetJSON200() *ListWebsetsResponse

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

func (WebsetsListResponse) Status added in v0.2.0

func (r WebsetsListResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsListResponse) StatusCode added in v0.2.0

func (r WebsetsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsListResponse200Headers added in v0.2.0

type WebsetsListResponse200Headers struct {
	XRequestId string
}

WebsetsListResponse200Headers the declared response headers of an HTTP 200 response for WebsetsList

type WebsetsPreviewJSONRequestBody added in v0.2.0

type WebsetsPreviewJSONRequestBody = PreviewWebsetParameters

WebsetsPreviewJSONRequestBody defines body for WebsetsPreview for application/json ContentType.

type WebsetsPreviewParams added in v0.2.0

type WebsetsPreviewParams struct {
	// Search Whether you want to search for a preview list of items or not
	Search *bool `form:"search,omitempty" json:"search,omitempty"`
}

WebsetsPreviewParams defines parameters for WebsetsPreview.

type WebsetsPreviewResponse added in v0.2.0

type WebsetsPreviewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PreviewWebsetResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsPreviewResponse200Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *WebsetsPreviewResponse422Headers
}

func ParseWebsetsPreviewResponse added in v0.2.0

func ParseWebsetsPreviewResponse(rsp *http.Response) (*WebsetsPreviewResponse, error)

ParseWebsetsPreviewResponse parses an HTTP response from a WebsetsPreviewWithResponse call

func (WebsetsPreviewResponse) ContentType added in v0.2.0

func (r WebsetsPreviewResponse) ContentType() string

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

func (WebsetsPreviewResponse) GetBody added in v0.2.0

func (r WebsetsPreviewResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsPreviewResponse) GetJSON200 added in v0.2.0

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

func (WebsetsPreviewResponse) Status added in v0.2.0

func (r WebsetsPreviewResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsPreviewResponse) StatusCode added in v0.2.0

func (r WebsetsPreviewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsPreviewResponse200Headers added in v0.2.0

type WebsetsPreviewResponse200Headers struct {
	XRequestId string
}

WebsetsPreviewResponse200Headers the declared response headers of an HTTP 200 response for WebsetsPreview

type WebsetsPreviewResponse422Headers added in v0.2.0

type WebsetsPreviewResponse422Headers struct {
	XRequestId string
}

WebsetsPreviewResponse422Headers the declared response headers of an HTTP 422 response for WebsetsPreview

type WebsetsSearchesCancelResponse added in v0.2.0

type WebsetsSearchesCancelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetSearch
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsSearchesCancelResponse200Headers
}

func ParseWebsetsSearchesCancelResponse added in v0.2.0

func ParseWebsetsSearchesCancelResponse(rsp *http.Response) (*WebsetsSearchesCancelResponse, error)

ParseWebsetsSearchesCancelResponse parses an HTTP response from a WebsetsSearchesCancelWithResponse call

func (WebsetsSearchesCancelResponse) ContentType added in v0.2.0

func (r WebsetsSearchesCancelResponse) ContentType() string

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

func (WebsetsSearchesCancelResponse) GetBody added in v0.2.0

func (r WebsetsSearchesCancelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsSearchesCancelResponse) GetJSON200 added in v0.2.0

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

func (WebsetsSearchesCancelResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsSearchesCancelResponse) StatusCode added in v0.2.0

func (r WebsetsSearchesCancelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsSearchesCancelResponse200Headers added in v0.2.0

type WebsetsSearchesCancelResponse200Headers struct {
	XRequestId string
}

WebsetsSearchesCancelResponse200Headers the declared response headers of an HTTP 200 response for WebsetsSearchesCancel

type WebsetsSearchesCreateJSONRequestBody added in v0.2.0

type WebsetsSearchesCreateJSONRequestBody = CreateWebsetSearchParameters

WebsetsSearchesCreateJSONRequestBody defines body for WebsetsSearchesCreate for application/json ContentType.

type WebsetsSearchesCreateResponse added in v0.2.0

type WebsetsSearchesCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetSearch
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsSearchesCreateResponse200Headers
}

func ParseWebsetsSearchesCreateResponse added in v0.2.0

func ParseWebsetsSearchesCreateResponse(rsp *http.Response) (*WebsetsSearchesCreateResponse, error)

ParseWebsetsSearchesCreateResponse parses an HTTP response from a WebsetsSearchesCreateWithResponse call

func (WebsetsSearchesCreateResponse) ContentType added in v0.2.0

func (r WebsetsSearchesCreateResponse) ContentType() string

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

func (WebsetsSearchesCreateResponse) GetBody added in v0.2.0

func (r WebsetsSearchesCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsSearchesCreateResponse) GetJSON200 added in v0.2.0

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

func (WebsetsSearchesCreateResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsSearchesCreateResponse) StatusCode added in v0.2.0

func (r WebsetsSearchesCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsSearchesCreateResponse200Headers added in v0.2.0

type WebsetsSearchesCreateResponse200Headers struct {
	XRequestId string
}

WebsetsSearchesCreateResponse200Headers the declared response headers of an HTTP 200 response for WebsetsSearchesCreate

type WebsetsSearchesGetResponse added in v0.2.0

type WebsetsSearchesGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebsetSearch
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsSearchesGetResponse200Headers
}

func ParseWebsetsSearchesGetResponse added in v0.2.0

func ParseWebsetsSearchesGetResponse(rsp *http.Response) (*WebsetsSearchesGetResponse, error)

ParseWebsetsSearchesGetResponse parses an HTTP response from a WebsetsSearchesGetWithResponse call

func (WebsetsSearchesGetResponse) ContentType added in v0.2.0

func (r WebsetsSearchesGetResponse) ContentType() string

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

func (WebsetsSearchesGetResponse) GetBody added in v0.2.0

func (r WebsetsSearchesGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsSearchesGetResponse) GetJSON200 added in v0.2.0

func (r WebsetsSearchesGetResponse) GetJSON200() *WebsetSearch

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

func (WebsetsSearchesGetResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (WebsetsSearchesGetResponse) StatusCode added in v0.2.0

func (r WebsetsSearchesGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsSearchesGetResponse200Headers added in v0.2.0

type WebsetsSearchesGetResponse200Headers struct {
	XRequestId string
}

WebsetsSearchesGetResponse200Headers the declared response headers of an HTTP 200 response for WebsetsSearchesGet

type WebsetsTeamInfo added in v0.2.0

type WebsetsTeamInfo struct {
	// Concurrency Current concurrency usage.
	Concurrency struct {
		// Active Number of requests currently being processed.
		Active int `json:"active"`

		// Queued Number of requests currently queued.
		Queued int `json:"queued"`
	} `json:"concurrency"`

	// Id Unique identifier for the team.
	Id string `json:"id"`

	// Limits Concurrency limits for the team.
	Limits struct {
		// MaxConcurrent Maximum number of concurrent requests allowed. Null means unlimited.
		MaxConcurrent *int `json:"maxConcurrent"`

		// MaxQueued Maximum number of queued requests allowed. Null means unlimited.
		MaxQueued *int `json:"maxQueued"`
	} `json:"limits"`

	// Name Name of the team.
	Name string `json:"name"`

	// Object The object type, always `"team"`.
	Object WebsetsTeamInfoObject `json:"object"`
}

WebsetsTeamInfo defines model for WebsetsTeamInfo.

type WebsetsTeamInfoObject added in v0.2.0

type WebsetsTeamInfoObject string

WebsetsTeamInfoObject The object type, always `"team"`.

const (
	WebsetsTeamInfoObjectTeam WebsetsTeamInfoObject = "team"
)

Defines values for WebsetsTeamInfoObject.

func (WebsetsTeamInfoObject) Valid added in v0.2.0

func (e WebsetsTeamInfoObject) Valid() bool

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

type WebsetsUpdateJSONRequestBody added in v0.2.0

type WebsetsUpdateJSONRequestBody = UpdateWebsetRequest

WebsetsUpdateJSONRequestBody defines body for WebsetsUpdate for application/json ContentType.

type WebsetsUpdateResponse added in v0.2.0

type WebsetsUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webset
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *WebsetsUpdateResponse200Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *WebsetsUpdateResponse404Headers
}

func ParseWebsetsUpdateResponse added in v0.2.0

func ParseWebsetsUpdateResponse(rsp *http.Response) (*WebsetsUpdateResponse, error)

ParseWebsetsUpdateResponse parses an HTTP response from a WebsetsUpdateWithResponse call

func (WebsetsUpdateResponse) ContentType added in v0.2.0

func (r WebsetsUpdateResponse) ContentType() string

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

func (WebsetsUpdateResponse) GetBody added in v0.2.0

func (r WebsetsUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WebsetsUpdateResponse) GetJSON200 added in v0.2.0

func (r WebsetsUpdateResponse) GetJSON200() *Webset

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

func (WebsetsUpdateResponse) Status added in v0.2.0

func (r WebsetsUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (WebsetsUpdateResponse) StatusCode added in v0.2.0

func (r WebsetsUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebsetsUpdateResponse200Headers added in v0.2.0

type WebsetsUpdateResponse200Headers struct {
	XRequestId string
}

WebsetsUpdateResponse200Headers the declared response headers of an HTTP 200 response for WebsetsUpdate

type WebsetsUpdateResponse404Headers added in v0.2.0

type WebsetsUpdateResponse404Headers struct {
	XRequestId string
}

WebsetsUpdateResponse404Headers the declared response headers of an HTTP 404 response for WebsetsUpdate

type X402PaymentChallenge added in v0.2.0

type X402PaymentChallenge struct {
	// Accepts Payment requirements the server accepts, one per supported rail.
	Accepts []map[string]interface{} `json:"accepts"`

	// Error Human-readable message describing the error.
	Error string `json:"error"`

	// Extensions Optional x402 protocol extensions (e.g. Bazaar or AgentKit discovery metadata).
	Extensions *map[string]interface{} `json:"extensions,omitempty"`

	// RequestId Unique identifier for the request.
	RequestId string `json:"requestId"`

	// Resource The priced resource this challenge applies to.
	Resource struct {
		// Description Human-readable resource description.
		Description string `json:"description"`

		// MimeType MIME type of the priced resource.
		MimeType string `json:"mimeType"`

		// Url URL of the priced resource being requested.
		Url string `json:"url"`
	} `json:"resource"`

	// Tag Machine-readable error tag identifying the failure. The set of tags is open-ended: new tags may be added at any time, so treat unrecognized tags as a generic error of the response's HTTP status. Known tags are listed as examples.
	Tag string `json:"tag"`

	// X402Version Version of the x402 protocol used to build this challenge.
	X402Version float32 `json:"x402Version"`
}

X402PaymentChallenge x402 payment challenge: the standard error envelope extended with x402 payment metadata.

Jump to

Keyboard shortcuts

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