Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
// Package nodeservicesinternal provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
package nodeservicesinternal
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
AgentManagementBearerScopes agentManagementBearerContextKey = "agentManagementBearer.Scopes"
LlmWikiBearerScopes llmWikiBearerContextKey = "llmWikiBearer.Scopes"
MemoryBearerScopes memoryBearerContextKey = "memoryBearer.Scopes"
TeamHubToRuntimeBearerScopes teamHubToRuntimeBearerContextKey = "teamHubToRuntimeBearer.Scopes"
)
// Defines values for AgentDebugHistoryInstructionsSource.
const (
AgentDebugHistoryInstructionsSourceClaudeTranscript AgentDebugHistoryInstructionsSource = "claude_transcript"
AgentDebugHistoryInstructionsSourceCodexRollout AgentDebugHistoryInstructionsSource = "codex_rollout"
AgentDebugHistoryInstructionsSourcePiSession AgentDebugHistoryInstructionsSource = "pi_session"
)
// Valid indicates whether the value is a known member of the AgentDebugHistoryInstructionsSource enum.
func (e AgentDebugHistoryInstructionsSource) Valid() bool {
switch e {
case AgentDebugHistoryInstructionsSourceClaudeTranscript:
return true
case AgentDebugHistoryInstructionsSourceCodexRollout:
return true
case AgentDebugHistoryInstructionsSourcePiSession:
return true
default:
return false
}
}
// Defines values for AgentDebugHistoryInstructionsStatus.
const (
AgentDebugHistoryInstructionsStatusAvailable AgentDebugHistoryInstructionsStatus = "available"
AgentDebugHistoryInstructionsStatusUnavailable AgentDebugHistoryInstructionsStatus = "unavailable"
)
// Valid indicates whether the value is a known member of the AgentDebugHistoryInstructionsStatus enum.
func (e AgentDebugHistoryInstructionsStatus) Valid() bool {
switch e {
case AgentDebugHistoryInstructionsStatusAvailable:
return true
case AgentDebugHistoryInstructionsStatusUnavailable:
return true
default:
return false
}
}
// Defines values for AgentDebugHistoryRecordCategory.
const (
AgentDebugHistoryRecordCategoryCompaction AgentDebugHistoryRecordCategory = "compaction"
AgentDebugHistoryRecordCategoryLifecycle AgentDebugHistoryRecordCategory = "lifecycle"
AgentDebugHistoryRecordCategoryMessage AgentDebugHistoryRecordCategory = "message"
AgentDebugHistoryRecordCategoryProviderEvent AgentDebugHistoryRecordCategory = "provider_event"
AgentDebugHistoryRecordCategoryReasoning AgentDebugHistoryRecordCategory = "reasoning"
AgentDebugHistoryRecordCategoryToolCall AgentDebugHistoryRecordCategory = "tool_call"
AgentDebugHistoryRecordCategoryToolResult AgentDebugHistoryRecordCategory = "tool_result"
AgentDebugHistoryRecordCategoryUsage AgentDebugHistoryRecordCategory = "usage"
)
// Valid indicates whether the value is a known member of the AgentDebugHistoryRecordCategory enum.
func (e AgentDebugHistoryRecordCategory) Valid() bool {
switch e {
case AgentDebugHistoryRecordCategoryCompaction:
return true
case AgentDebugHistoryRecordCategoryLifecycle:
return true
case AgentDebugHistoryRecordCategoryMessage:
return true
case AgentDebugHistoryRecordCategoryProviderEvent:
return true
case AgentDebugHistoryRecordCategoryReasoning:
return true
case AgentDebugHistoryRecordCategoryToolCall:
return true
case AgentDebugHistoryRecordCategoryToolResult:
return true
case AgentDebugHistoryRecordCategoryUsage:
return true
default:
return false
}
}
// Defines values for AgentDebugHistoryRedactedFieldReason.
const (
AgentDebugHistoryRedactionReasonEncryptedContent AgentDebugHistoryRedactedFieldReason = "encrypted_content"
AgentDebugHistoryRedactionReasonOmittedTooLarge AgentDebugHistoryRedactedFieldReason = "omitted_too_large"
AgentDebugHistoryRedactionReasonPhysicalPath AgentDebugHistoryRedactedFieldReason = "physical_path"
AgentDebugHistoryRedactionReasonReasoningContent AgentDebugHistoryRedactedFieldReason = "reasoning_content"
AgentDebugHistoryRedactionReasonSecret AgentDebugHistoryRedactedFieldReason = "secret"
)
// Valid indicates whether the value is a known member of the AgentDebugHistoryRedactedFieldReason enum.
func (e AgentDebugHistoryRedactedFieldReason) Valid() bool {
switch e {
case AgentDebugHistoryRedactionReasonEncryptedContent:
return true
case AgentDebugHistoryRedactionReasonOmittedTooLarge:
return true
case AgentDebugHistoryRedactionReasonPhysicalPath:
return true
case AgentDebugHistoryRedactionReasonReasoningContent:
return true
case AgentDebugHistoryRedactionReasonSecret:
return true
default:
return false
}
}
// Defines values for AgentDebugHistorySnapshotTailState.
const (
AgentDebugHistoryTailStateClean AgentDebugHistorySnapshotTailState = "clean"
AgentDebugHistoryTailStateCorrupt AgentDebugHistorySnapshotTailState = "corrupt"
AgentDebugHistoryTailStateIncomplete AgentDebugHistorySnapshotTailState = "incomplete"
)
// Valid indicates whether the value is a known member of the AgentDebugHistorySnapshotTailState enum.
func (e AgentDebugHistorySnapshotTailState) Valid() bool {
switch e {
case AgentDebugHistoryTailStateClean:
return true
case AgentDebugHistoryTailStateCorrupt:
return true
case AgentDebugHistoryTailStateIncomplete:
return true
default:
return false
}
}
// Defines values for AgentDebugInspectionStatus.
const (
AgentDebugInspectionStatusAvailable AgentDebugInspectionStatus = "available"
AgentDebugInspectionStatusUnavailable AgentDebugInspectionStatus = "unavailable"
AgentDebugInspectionStatusUnsupported AgentDebugInspectionStatus = "unsupported"
)
// Valid indicates whether the value is a known member of the AgentDebugInspectionStatus enum.
func (e AgentDebugInspectionStatus) Valid() bool {
switch e {
case AgentDebugInspectionStatusAvailable:
return true
case AgentDebugInspectionStatusUnavailable:
return true
case AgentDebugInspectionStatusUnsupported:
return true
default:
return false
}
}
// Defines values for AgentDebugRuntimeHistorySource.
const (
AgentDebugRuntimeHistorySourceClaudeTranscript AgentDebugRuntimeHistorySource = "claude_transcript"
AgentDebugRuntimeHistorySourceCodexRollout AgentDebugRuntimeHistorySource = "codex_rollout"
)
// Valid indicates whether the value is a known member of the AgentDebugRuntimeHistorySource enum.
func (e AgentDebugRuntimeHistorySource) Valid() bool {
switch e {
case AgentDebugRuntimeHistorySourceClaudeTranscript:
return true
case AgentDebugRuntimeHistorySourceCodexRollout:
return true
default:
return false
}
}
// Defines values for AgentReasoningEffort.
const (
AgentReasoningEffortHigh AgentReasoningEffort = "high"
AgentReasoningEffortLow AgentReasoningEffort = "low"
AgentReasoningEffortMax AgentReasoningEffort = "max"
AgentReasoningEffortMedium AgentReasoningEffort = "medium"
AgentReasoningEffortNone AgentReasoningEffort = "none"
AgentReasoningEffortUltra AgentReasoningEffort = "ultra"
AgentReasoningEffortXhigh AgentReasoningEffort = "xhigh"
)
// Valid indicates whether the value is a known member of the AgentReasoningEffort enum.
func (e AgentReasoningEffort) Valid() bool {
switch e {
case AgentReasoningEffortHigh:
return true
case AgentReasoningEffortLow:
return true
case AgentReasoningEffortMax:
return true
case AgentReasoningEffortMedium:
return true
case AgentReasoningEffortNone:
return true
case AgentReasoningEffortUltra:
return true
case AgentReasoningEffortXhigh:
return true
default:
return false
}
}
// Defines values for BrowserConnectionStatusBrowser.
const (
BrowserConnectionBrowserChrome BrowserConnectionStatusBrowser = "chrome"
)
// Valid indicates whether the value is a known member of the BrowserConnectionStatusBrowser enum.
func (e BrowserConnectionStatusBrowser) Valid() bool {
switch e {
case BrowserConnectionBrowserChrome:
return true
default:
return false
}
}
// Defines values for BrowserConnectionStatusMode.
const (
BrowserConnectionModeIsolated BrowserConnectionStatusMode = "isolated"
BrowserConnectionModeUserChrome BrowserConnectionStatusMode = "user_chrome"
)
// Valid indicates whether the value is a known member of the BrowserConnectionStatusMode enum.
func (e BrowserConnectionStatusMode) Valid() bool {
switch e {
case BrowserConnectionModeIsolated:
return true
case BrowserConnectionModeUserChrome:
return true
default:
return false
}
}
// Defines values for BrowserConnectionStatusPlatform.
const (
BrowserConnectionPlatformDarwin BrowserConnectionStatusPlatform = "darwin"
BrowserConnectionPlatformLinux BrowserConnectionStatusPlatform = "linux"
BrowserConnectionPlatformWindows BrowserConnectionStatusPlatform = "windows"
)
// Valid indicates whether the value is a known member of the BrowserConnectionStatusPlatform enum.
func (e BrowserConnectionStatusPlatform) Valid() bool {
switch e {
case BrowserConnectionPlatformDarwin:
return true
case BrowserConnectionPlatformLinux:
return true
case BrowserConnectionPlatformWindows:
return true
default:
return false
}
}
// Defines values for BrowserConnectionStatusState.
const (
BrowserConnectionStateBrowserUnavailable BrowserConnectionStatusState = "browser_unavailable"
BrowserConnectionStateConnected BrowserConnectionStatusState = "connected"
BrowserConnectionStateExtensionUnavailable BrowserConnectionStatusState = "extension_unavailable"
BrowserConnectionStateIsolated BrowserConnectionStatusState = "isolated"
BrowserConnectionStateNotConnected BrowserConnectionStatusState = "not_connected"
BrowserConnectionStateTokenInvalid BrowserConnectionStatusState = "token_invalid"
BrowserConnectionStateUnsupported BrowserConnectionStatusState = "unsupported"
)
// Valid indicates whether the value is a known member of the BrowserConnectionStatusState enum.
func (e BrowserConnectionStatusState) Valid() bool {
switch e {
case BrowserConnectionStateBrowserUnavailable:
return true
case BrowserConnectionStateConnected:
return true
case BrowserConnectionStateExtensionUnavailable:
return true
case BrowserConnectionStateIsolated:
return true
case BrowserConnectionStateNotConnected:
return true
case BrowserConnectionStateTokenInvalid:
return true
case BrowserConnectionStateUnsupported:
return true
default:
return false
}
}
// Defines values for ByokProtocol.
const (
ByokProtocolAnthropic ByokProtocol = "anthropic"
ByokProtocolOpenaiChat ByokProtocol = "openai-chat"
ByokProtocolOpenaiResponses ByokProtocol = "openai-responses"
)
// Valid indicates whether the value is a known member of the ByokProtocol enum.
func (e ByokProtocol) Valid() bool {
switch e {
case ByokProtocolAnthropic:
return true
case ByokProtocolOpenaiChat:
return true
case ByokProtocolOpenaiResponses:
return true
default:
return false
}
}
// Defines values for CancelAgentRunResultStatus.
const (
AlreadyTerminal CancelAgentRunResultStatus = "already_terminal"
CancelRequested CancelAgentRunResultStatus = "cancel_requested"
Canceled CancelAgentRunResultStatus = "canceled"
)
// Valid indicates whether the value is a known member of the CancelAgentRunResultStatus enum.
func (e CancelAgentRunResultStatus) Valid() bool {
switch e {
case AlreadyTerminal:
return true
case CancelRequested:
return true
case Canceled:
return true
default:
return false
}
}
// Defines values for ComputerPermissionActionAction.
const (
ComputerPermissionActionOpenSettings ComputerPermissionActionAction = "open_settings"
ComputerPermissionActionPrompt ComputerPermissionActionAction = "prompt"
ComputerPermissionActionRelaunch ComputerPermissionActionAction = "relaunch"
)
// Valid indicates whether the value is a known member of the ComputerPermissionActionAction enum.
func (e ComputerPermissionActionAction) Valid() bool {
switch e {
case ComputerPermissionActionOpenSettings:
return true
case ComputerPermissionActionPrompt:
return true
case ComputerPermissionActionRelaunch:
return true
default:
return false
}
}
// Defines values for ComputerPermissionId.
const (
ComputerPermissionIdAccessibility ComputerPermissionId = "accessibility"
ComputerPermissionIdScreenRecording ComputerPermissionId = "screen_recording"
)
// Valid indicates whether the value is a known member of the ComputerPermissionId enum.
func (e ComputerPermissionId) Valid() bool {
switch e {
case ComputerPermissionIdAccessibility:
return true
case ComputerPermissionIdScreenRecording:
return true
default:
return false
}
}
// Defines values for ComputerPermissionPrompt.
const (
ComputerPermissionPromptAvailable ComputerPermissionPrompt = "available"
ComputerPermissionPromptSettingsOnly ComputerPermissionPrompt = "settings_only"
)
// Valid indicates whether the value is a known member of the ComputerPermissionPrompt enum.
func (e ComputerPermissionPrompt) Valid() bool {
switch e {
case ComputerPermissionPromptAvailable:
return true
case ComputerPermissionPromptSettingsOnly:
return true
default:
return false
}
}
// Defines values for ComputerPermissionState.
const (
ComputerPermissionStateDenied ComputerPermissionState = "denied"
ComputerPermissionStateGranted ComputerPermissionState = "granted"
ComputerPermissionStateNotDetermined ComputerPermissionState = "not_determined"
ComputerPermissionStateUnknown ComputerPermissionState = "unknown"
)
// Valid indicates whether the value is a known member of the ComputerPermissionState enum.
func (e ComputerPermissionState) Valid() bool {
switch e {
case ComputerPermissionStateDenied:
return true
case ComputerPermissionStateGranted:
return true
case ComputerPermissionStateNotDetermined:
return true
case ComputerPermissionStateUnknown:
return true
default:
return false
}
}
// Defines values for ComputerPermissionStatusHost.
const (
ComputerPermissionHostDesktop ComputerPermissionStatusHost = "desktop"
ComputerPermissionHostStandalone ComputerPermissionStatusHost = "standalone"
)
// Valid indicates whether the value is a known member of the ComputerPermissionStatusHost enum.
func (e ComputerPermissionStatusHost) Valid() bool {
switch e {
case ComputerPermissionHostDesktop:
return true
case ComputerPermissionHostStandalone:
return true
default:
return false
}
}
// Defines values for ComputerPermissionStatusPlatform.
const (
ComputerPermissionPlatformDarwin ComputerPermissionStatusPlatform = "darwin"
ComputerPermissionPlatformLinux ComputerPermissionStatusPlatform = "linux"
ComputerPermissionPlatformWindows ComputerPermissionStatusPlatform = "windows"
)
// Valid indicates whether the value is a known member of the ComputerPermissionStatusPlatform enum.
func (e ComputerPermissionStatusPlatform) Valid() bool {
switch e {
case ComputerPermissionPlatformDarwin:
return true
case ComputerPermissionPlatformLinux:
return true
case ComputerPermissionPlatformWindows:
return true
default:
return false
}
}
// Defines values for ComputerPermissionSubject.
const (
ComputerPermissionSubjectComputerUse ComputerPermissionSubject = "computer_use"
ComputerPermissionSubjectLinger ComputerPermissionSubject = "linger"
)
// Valid indicates whether the value is a known member of the ComputerPermissionSubject enum.
func (e ComputerPermissionSubject) Valid() bool {
switch e {
case ComputerPermissionSubjectComputerUse:
return true
case ComputerPermissionSubjectLinger:
return true
default:
return false
}
}
// Defines values for ConflictedDocumentChangeResultReason.
const (
AmbiguousCommentSelection ConflictedDocumentChangeResultReason = "ambiguous_comment_selection"
AmbiguousText ConflictedDocumentChangeResultReason = "ambiguous_text"
DuplicateTarget ConflictedDocumentChangeResultReason = "duplicate_target"
InvalidStructure ConflictedDocumentChangeResultReason = "invalid_structure"
MissingBlock ConflictedDocumentChangeResultReason = "missing_block"
MissingCommentSelection ConflictedDocumentChangeResultReason = "missing_comment_selection"
NoncontiguousBlocks ConflictedDocumentChangeResultReason = "noncontiguous_blocks"
StaleHead ConflictedDocumentChangeResultReason = "stale_head"
TextNotFound ConflictedDocumentChangeResultReason = "text_not_found"
)
// Valid indicates whether the value is a known member of the ConflictedDocumentChangeResultReason enum.
func (e ConflictedDocumentChangeResultReason) Valid() bool {
switch e {
case AmbiguousCommentSelection:
return true
case AmbiguousText:
return true
case DuplicateTarget:
return true
case InvalidStructure:
return true
case MissingBlock:
return true
case MissingCommentSelection:
return true
case NoncontiguousBlocks:
return true
case StaleHead:
return true
case TextNotFound:
return true
default:
return false
}
}
// Defines values for DocumentNormalizationTerminalErrorResponseErrorCode.
const (
DOCUMENTMARKDOWNTOOLARGE DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_MARKDOWN_TOO_LARGE"
DOCUMENTNORMALIZATIONINVALID DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_NORMALIZATION_INVALID"
DOCUMENTNORMALIZATIONTIMEOUT DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_NORMALIZATION_TIMEOUT"
DOCUMENTSOURCEEMPTY DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_SOURCE_EMPTY"
DOCUMENTSOURCEINVALID DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_SOURCE_INVALID"
DOCUMENTSOURCETOOLARGE DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_SOURCE_TOO_LARGE"
DOCUMENTSOURCEUNSUPPORTED DocumentNormalizationTerminalErrorResponseErrorCode = "DOCUMENT_SOURCE_UNSUPPORTED"
)
// Valid indicates whether the value is a known member of the DocumentNormalizationTerminalErrorResponseErrorCode enum.
func (e DocumentNormalizationTerminalErrorResponseErrorCode) Valid() bool {
switch e {
case DOCUMENTMARKDOWNTOOLARGE:
return true
case DOCUMENTNORMALIZATIONINVALID:
return true
case DOCUMENTNORMALIZATIONTIMEOUT:
return true
case DOCUMENTSOURCEEMPTY:
return true
case DOCUMENTSOURCEINVALID:
return true
case DOCUMENTSOURCETOOLARGE:
return true
case DOCUMENTSOURCEUNSUPPORTED:
return true
default:
return false
}
}
// Defines values for EditNativeDocumentSemanticOperationCommand.
const (
Append EditNativeDocumentSemanticOperationCommand = "append"
BlockDelete EditNativeDocumentSemanticOperationCommand = "block_delete"
BlockInsertAfter EditNativeDocumentSemanticOperationCommand = "block_insert_after"
BlockInsertBefore EditNativeDocumentSemanticOperationCommand = "block_insert_before"
BlockReplace EditNativeDocumentSemanticOperationCommand = "block_replace"
FileInsertAfter EditNativeDocumentSemanticOperationCommand = "file_insert_after"
ImageInsertAfter EditNativeDocumentSemanticOperationCommand = "image_insert_after"
ImageReplace EditNativeDocumentSemanticOperationCommand = "image_replace"
SetTitle EditNativeDocumentSemanticOperationCommand = "set_title"
StrReplace EditNativeDocumentSemanticOperationCommand = "str_replace"
)
// Valid indicates whether the value is a known member of the EditNativeDocumentSemanticOperationCommand enum.
func (e EditNativeDocumentSemanticOperationCommand) Valid() bool {
switch e {
case Append:
return true
case BlockDelete:
return true
case BlockInsertAfter:
return true
case BlockInsertBefore:
return true
case BlockReplace:
return true
case FileInsertAfter:
return true
case ImageInsertAfter:
return true
case ImageReplace:
return true
case SetTitle:
return true
case StrReplace:
return true
default:
return false
}
}
// Defines values for ExportDocumentRequestFormat.
const (
ExportDocumentRequestFormatBlocks ExportDocumentRequestFormat = "blocks"
ExportDocumentRequestFormatHtml ExportDocumentRequestFormat = "html"
ExportDocumentRequestFormatMarkdown ExportDocumentRequestFormat = "markdown"
ExportDocumentRequestFormatPlainText ExportDocumentRequestFormat = "plain_text"
)
// Valid indicates whether the value is a known member of the ExportDocumentRequestFormat enum.
func (e ExportDocumentRequestFormat) Valid() bool {
switch e {
case ExportDocumentRequestFormatBlocks:
return true
case ExportDocumentRequestFormatHtml:
return true
case ExportDocumentRequestFormatMarkdown:
return true
case ExportDocumentRequestFormatPlainText:
return true
default:
return false
}
}
// Defines values for ExportDocumentResultMediaType.
const (
Applicationjson ExportDocumentResultMediaType = "application/json"
Texthtml ExportDocumentResultMediaType = "text/html"
Textmarkdown ExportDocumentResultMediaType = "text/markdown"
Textplain ExportDocumentResultMediaType = "text/plain"
)
// Valid indicates whether the value is a known member of the ExportDocumentResultMediaType enum.
func (e ExportDocumentResultMediaType) Valid() bool {
switch e {
case Applicationjson:
return true
case Texthtml:
return true
case Textmarkdown:
return true
case Textplain:
return true
default:
return false
}
}
// Defines values for ImportDocumentRequestSourceKind.
const (
ImportDocumentRequestSourceKindBlank ImportDocumentRequestSourceKind = "blank"
ImportDocumentRequestSourceKindDocumentState ImportDocumentRequestSourceKind = "document_state"
ImportDocumentRequestSourceKindMarkdown ImportDocumentRequestSourceKind = "markdown"
ImportDocumentRequestSourceKindPlainText ImportDocumentRequestSourceKind = "plain_text"
ImportDocumentRequestSourceKindSanitizedHtml ImportDocumentRequestSourceKind = "sanitized_html"
)
// Valid indicates whether the value is a known member of the ImportDocumentRequestSourceKind enum.
func (e ImportDocumentRequestSourceKind) Valid() bool {
switch e {
case ImportDocumentRequestSourceKindBlank:
return true
case ImportDocumentRequestSourceKindDocumentState:
return true
case ImportDocumentRequestSourceKindMarkdown:
return true
case ImportDocumentRequestSourceKindPlainText:
return true
case ImportDocumentRequestSourceKindSanitizedHtml:
return true
default:
return false
}
}
// Defines values for InsertDocumentBlocksSemanticOperationPosition.
const (
After InsertDocumentBlocksSemanticOperationPosition = "after"
Before InsertDocumentBlocksSemanticOperationPosition = "before"
)
// Valid indicates whether the value is a known member of the InsertDocumentBlocksSemanticOperationPosition enum.
func (e InsertDocumentBlocksSemanticOperationPosition) Valid() bool {
switch e {
case After:
return true
case Before:
return true
default:
return false
}
}
// Defines values for InternalErrorCode.
const (
InternalErrorCodeAssetUnavailable InternalErrorCode = "asset_unavailable"
InternalErrorCodeDeadlineExceeded InternalErrorCode = "deadline_exceeded"
InternalErrorCodeDependencyUnavailable InternalErrorCode = "dependency_unavailable"
InternalErrorCodeDocumentStateCorrupt InternalErrorCode = "document_state_corrupt"
InternalErrorCodeForbidden InternalErrorCode = "forbidden"
InternalErrorCodeIdempotencyConflict InternalErrorCode = "idempotency_conflict"
InternalErrorCodeInternalError InternalErrorCode = "internal_error"
InternalErrorCodeInvalidRequest InternalErrorCode = "invalid_request"
InternalErrorCodeNotFound InternalErrorCode = "not_found"
InternalErrorCodePayloadTooLarge InternalErrorCode = "payload_too_large"
InternalErrorCodeRateLimited InternalErrorCode = "rate_limited"
InternalErrorCodeRuntimeUnavailable InternalErrorCode = "runtime_unavailable"
InternalErrorCodeStaleMembership InternalErrorCode = "stale_membership"
InternalErrorCodeStateBundleInconsistent InternalErrorCode = "state_bundle_inconsistent"
InternalErrorCodeStateConflict InternalErrorCode = "state_conflict"
InternalErrorCodeUnauthenticated InternalErrorCode = "unauthenticated"
InternalErrorCodeUnsupportedDocument InternalErrorCode = "unsupported_document"
InternalErrorCodeUnsupportedFormat InternalErrorCode = "unsupported_format"
InternalErrorCodeValidationFailed InternalErrorCode = "validation_failed"
)
// Valid indicates whether the value is a known member of the InternalErrorCode enum.
func (e InternalErrorCode) Valid() bool {
switch e {
case InternalErrorCodeAssetUnavailable:
return true
case InternalErrorCodeDeadlineExceeded:
return true
case InternalErrorCodeDependencyUnavailable:
return true
case InternalErrorCodeDocumentStateCorrupt:
return true
case InternalErrorCodeForbidden:
return true
case InternalErrorCodeIdempotencyConflict:
return true
case InternalErrorCodeInternalError:
return true
case InternalErrorCodeInvalidRequest:
return true
case InternalErrorCodeNotFound:
return true
case InternalErrorCodePayloadTooLarge:
return true
case InternalErrorCodeRateLimited:
return true
case InternalErrorCodeRuntimeUnavailable:
return true
case InternalErrorCodeStaleMembership:
return true
case InternalErrorCodeStateBundleInconsistent:
return true
case InternalErrorCodeStateConflict:
return true
case InternalErrorCodeUnauthenticated:
return true
case InternalErrorCodeUnsupportedDocument:
return true
case InternalErrorCodeUnsupportedFormat:
return true
case InternalErrorCodeValidationFailed:
return true
default:
return false
}
}
// Defines values for LocalComputerToolCallServer.
const (
Browser LocalComputerToolCallServer = "browser"
Playground LocalComputerToolCallServer = "playground"
)
// Valid indicates whether the value is a known member of the LocalComputerToolCallServer enum.
func (e LocalComputerToolCallServer) Valid() bool {
switch e {
case Browser:
return true
case Playground:
return true
default:
return false
}
}
// Defines values for LocalModelActionAckOutcome.
const (
LocalModelActionAccepted LocalModelActionAckOutcome = "accepted"
LocalModelActionRefused LocalModelActionAckOutcome = "refused"
)
// Valid indicates whether the value is a known member of the LocalModelActionAckOutcome enum.
func (e LocalModelActionAckOutcome) Valid() bool {
switch e {
case LocalModelActionAccepted:
return true
case LocalModelActionRefused:
return true
default:
return false
}
}
// Defines values for LocalModelActionKind.
const (
LocalModelActionKindCancel LocalModelActionKind = "cancel"
LocalModelActionKindDownload LocalModelActionKind = "download"
LocalModelActionKindLoad LocalModelActionKind = "load"
LocalModelActionKindRefresh LocalModelActionKind = "refresh"
LocalModelActionKindRemove LocalModelActionKind = "remove"
LocalModelActionKindUnload LocalModelActionKind = "unload"
)
// Valid indicates whether the value is a known member of the LocalModelActionKind enum.
func (e LocalModelActionKind) Valid() bool {
switch e {
case LocalModelActionKindCancel:
return true
case LocalModelActionKindDownload:
return true
case LocalModelActionKindLoad:
return true
case LocalModelActionKindRefresh:
return true
case LocalModelActionKindRemove:
return true
case LocalModelActionKindUnload:
return true
default:
return false
}
}
// Defines values for LocalModelActionRefusalCode.
const (
CANCELLED LocalModelActionRefusalCode = "CANCELLED"
CHECKSUMMISMATCH LocalModelActionRefusalCode = "CHECKSUM_MISMATCH"
DISKINSUFFICIENT LocalModelActionRefusalCode = "DISK_INSUFFICIENT"
DOWNLOADFAILED LocalModelActionRefusalCode = "DOWNLOAD_FAILED"
ENGINESTARTFAILED LocalModelActionRefusalCode = "ENGINE_START_FAILED"
GATEWAYREGISTRATIONFAILED LocalModelActionRefusalCode = "GATEWAY_REGISTRATION_FAILED"
HEALTHCHECKFAILED LocalModelActionRefusalCode = "HEALTH_CHECK_FAILED"
INVALIDSTATE LocalModelActionRefusalCode = "INVALID_STATE"
JOBRUNNING LocalModelActionRefusalCode = "JOB_RUNNING"
LOADNOROOM LocalModelActionRefusalCode = "LOAD_NO_ROOM"
MEMORYINSUFFICIENT LocalModelActionRefusalCode = "MEMORY_INSUFFICIENT"
MODELFILESMISSING LocalModelActionRefusalCode = "MODEL_FILES_MISSING"
MODELUNKNOWN LocalModelActionRefusalCode = "MODEL_UNKNOWN"
NETWORKUNAVAILABLE LocalModelActionRefusalCode = "NETWORK_UNAVAILABLE"
OUTOFMEMORY LocalModelActionRefusalCode = "OUT_OF_MEMORY"
PLATFORMUNSUPPORTED LocalModelActionRefusalCode = "PLATFORM_UNSUPPORTED"
TOOLFAILED LocalModelActionRefusalCode = "TOOL_FAILED"
TOOLNOTINSTALLED LocalModelActionRefusalCode = "TOOL_NOT_INSTALLED"
)
// Valid indicates whether the value is a known member of the LocalModelActionRefusalCode enum.
func (e LocalModelActionRefusalCode) Valid() bool {
switch e {
case CANCELLED:
return true
case CHECKSUMMISMATCH:
return true
case DISKINSUFFICIENT:
return true
case DOWNLOADFAILED:
return true
case ENGINESTARTFAILED:
return true
case GATEWAYREGISTRATIONFAILED:
return true
case HEALTHCHECKFAILED:
return true
case INVALIDSTATE:
return true
case JOBRUNNING:
return true
case LOADNOROOM:
return true
case MEMORYINSUFFICIENT:
return true
case MODELFILESMISSING:
return true
case MODELUNKNOWN:
return true
case NETWORKUNAVAILABLE:
return true
case OUTOFMEMORY:
return true
case PLATFORMUNSUPPORTED:
return true
case TOOLFAILED:
return true
case TOOLNOTINSTALLED:
return true
default:
return false
}
}
// Defines values for LocalSkillCandidateImportability.
const (
LocalSkillCandidateReady LocalSkillCandidateImportability = "ready"
LocalSkillCandidateUnsupported LocalSkillCandidateImportability = "unsupported"
)
// Valid indicates whether the value is a known member of the LocalSkillCandidateImportability enum.
func (e LocalSkillCandidateImportability) Valid() bool {
switch e {
case LocalSkillCandidateReady:
return true
case LocalSkillCandidateUnsupported:
return true
default:
return false
}
}
// Defines values for LocalSkillScanRuntimeType.
const (
LocalSkillScanRuntimeClaude LocalSkillScanRuntimeType = "claude"
LocalSkillScanRuntimeCodex LocalSkillScanRuntimeType = "codex"
)
// Valid indicates whether the value is a known member of the LocalSkillScanRuntimeType enum.
func (e LocalSkillScanRuntimeType) Valid() bool {
switch e {
case LocalSkillScanRuntimeClaude:
return true
case LocalSkillScanRuntimeCodex:
return true
default:
return false
}
}
// Defines values for LocalSkillScanCommandRequestRuntimeType.
const (
LocalSkillScanCommandRuntimeClaude LocalSkillScanCommandRequestRuntimeType = "claude"
LocalSkillScanCommandRuntimeCodex LocalSkillScanCommandRequestRuntimeType = "codex"
)
// Valid indicates whether the value is a known member of the LocalSkillScanCommandRequestRuntimeType enum.
func (e LocalSkillScanCommandRequestRuntimeType) Valid() bool {
switch e {
case LocalSkillScanCommandRuntimeClaude:
return true
case LocalSkillScanCommandRuntimeCodex:
return true
default:
return false
}
}
// Defines values for MemoryCalendarFailureTask.
const (
MemoryCalendarFailureTaskDaily MemoryCalendarFailureTask = "daily"
MemoryCalendarFailureTaskIndexFinal MemoryCalendarFailureTask = "index-final"
MemoryCalendarFailureTaskIndexInitial MemoryCalendarFailureTask = "index-initial"
MemoryCalendarFailureTaskInit MemoryCalendarFailureTask = "init"
MemoryCalendarFailureTaskWeekly MemoryCalendarFailureTask = "weekly"
MemoryCalendarFailureTaskWiki MemoryCalendarFailureTask = "wiki"
)
// Valid indicates whether the value is a known member of the MemoryCalendarFailureTask enum.
func (e MemoryCalendarFailureTask) Valid() bool {
switch e {
case MemoryCalendarFailureTaskDaily:
return true
case MemoryCalendarFailureTaskIndexFinal:
return true
case MemoryCalendarFailureTaskIndexInitial:
return true
case MemoryCalendarFailureTaskInit:
return true
case MemoryCalendarFailureTaskWeekly:
return true
case MemoryCalendarFailureTaskWiki:
return true
default:
return false
}
}
// Defines values for MemoryEntryKind.
const (
MemoryEntryKindDaily MemoryEntryKind = "daily"
MemoryEntryKindMeeting MemoryEntryKind = "meeting"
MemoryEntryKindWeekly MemoryEntryKind = "weekly"
)
// Valid indicates whether the value is a known member of the MemoryEntryKind enum.
func (e MemoryEntryKind) Valid() bool {
switch e {
case MemoryEntryKindDaily:
return true
case MemoryEntryKindMeeting:
return true
case MemoryEntryKindWeekly:
return true
default:
return false
}
}
// Defines values for MemoryRebuildStatusPhase.
const (
Completed MemoryRebuildStatusPhase = "completed"
Failed MemoryRebuildStatusPhase = "failed"
IndexFinal MemoryRebuildStatusPhase = "index-final"
IndexInitial MemoryRebuildStatusPhase = "index-initial"
Init MemoryRebuildStatusPhase = "init"
Sessions MemoryRebuildStatusPhase = "sessions"
)
// Valid indicates whether the value is a known member of the MemoryRebuildStatusPhase enum.
func (e MemoryRebuildStatusPhase) Valid() bool {
switch e {
case Completed:
return true
case Failed:
return true
case IndexFinal:
return true
case IndexInitial:
return true
case Init:
return true
case Sessions:
return true
default:
return false
}
}
// Defines values for ModelCallEffort.
const (
ModelCallEffortHigh ModelCallEffort = "high"
ModelCallEffortLow ModelCallEffort = "low"
ModelCallEffortMedium ModelCallEffort = "medium"
)
// Valid indicates whether the value is a known member of the ModelCallEffort enum.
func (e ModelCallEffort) Valid() bool {
switch e {
case ModelCallEffortHigh:
return true
case ModelCallEffortLow:
return true
case ModelCallEffortMedium:
return true
default:
return false
}
}
// Defines values for ModelCallKind.
const (
ModelCallKindAgentMemory ModelCallKind = "agent_memory"
ModelCallKindApproval ModelCallKind = "approval"
ModelCallKindInsight ModelCallKind = "insight"
ModelCallKindMeetingNotes ModelCallKind = "meeting_notes"
ModelCallKindMemory ModelCallKind = "memory"
ModelCallKindProfile ModelCallKind = "profile"
ModelCallKindVoiceAsk ModelCallKind = "voice_ask"
ModelCallKindWiki ModelCallKind = "wiki"
)
// Valid indicates whether the value is a known member of the ModelCallKind enum.
func (e ModelCallKind) Valid() bool {
switch e {
case ModelCallKindAgentMemory:
return true
case ModelCallKindApproval:
return true
case ModelCallKindInsight:
return true
case ModelCallKindMeetingNotes:
return true
case ModelCallKindMemory:
return true
case ModelCallKindProfile:
return true
case ModelCallKindVoiceAsk:
return true
case ModelCallKindWiki:
return true
default:
return false
}
}
// Defines values for ModelSourceMode.
const (
ModelSourceModeByok ModelSourceMode = "byok"
ModelSourceModeLocal ModelSourceMode = "local"
ModelSourceModeSubscription ModelSourceMode = "subscription"
)
// Valid indicates whether the value is a known member of the ModelSourceMode enum.
func (e ModelSourceMode) Valid() bool {
switch e {
case ModelSourceModeByok:
return true
case ModelSourceModeLocal:
return true
case ModelSourceModeSubscription:
return true
default:
return false
}
}
// Defines values for ModelSourceRuntime.
const (
ModelSourceRuntimeClaude ModelSourceRuntime = "claude"
ModelSourceRuntimeCodex ModelSourceRuntime = "codex"
ModelSourceRuntimePi ModelSourceRuntime = "pi"
)
// Valid indicates whether the value is a known member of the ModelSourceRuntime enum.
func (e ModelSourceRuntime) Valid() bool {
switch e {
case ModelSourceRuntimeClaude:
return true
case ModelSourceRuntimeCodex:
return true
case ModelSourceRuntimePi:
return true
default:
return false
}
}
// Defines values for PersonalKnowledgeQueryRequestScope.
const (
PersonalKnowledgeQueryRequestScopeOriginals PersonalKnowledgeQueryRequestScope = "originals"
PersonalKnowledgeQueryRequestScopeSummaries PersonalKnowledgeQueryRequestScope = "summaries"
)
// Valid indicates whether the value is a known member of the PersonalKnowledgeQueryRequestScope enum.
func (e PersonalKnowledgeQueryRequestScope) Valid() bool {
switch e {
case PersonalKnowledgeQueryRequestScopeOriginals:
return true
case PersonalKnowledgeQueryRequestScopeSummaries:
return true
default:
return false
}
}
// Defines values for PersonalKnowledgeQueryResponseScope.
const (
PersonalKnowledgeQueryResponseScopeOriginals PersonalKnowledgeQueryResponseScope = "originals"
PersonalKnowledgeQueryResponseScopeSummaries PersonalKnowledgeQueryResponseScope = "summaries"
)
// Valid indicates whether the value is a known member of the PersonalKnowledgeQueryResponseScope enum.
func (e PersonalKnowledgeQueryResponseScope) Valid() bool {
switch e {
case PersonalKnowledgeQueryResponseScopeOriginals:
return true
case PersonalKnowledgeQueryResponseScopeSummaries:
return true
default:
return false
}
}
// Defines values for PersonalKnowledgeQueryResponseStatus.
const (
Empty PersonalKnowledgeQueryResponseStatus = "empty"
Grounded PersonalKnowledgeQueryResponseStatus = "grounded"
Partial PersonalKnowledgeQueryResponseStatus = "partial"
)
// Valid indicates whether the value is a known member of the PersonalKnowledgeQueryResponseStatus enum.
func (e PersonalKnowledgeQueryResponseStatus) Valid() bool {
switch e {
case Empty:
return true
case Grounded:
return true
case Partial:
return true
default:
return false
}
}
// Defines values for PersonalKnowledgeSearchEntryKind.
const (
PersonalKnowledgeSearchEntryKindMail PersonalKnowledgeSearchEntryKind = "mail"
PersonalKnowledgeSearchEntryKindMyPages PersonalKnowledgeSearchEntryKind = "my_pages"
PersonalKnowledgeSearchEntryKindPeriodSummary PersonalKnowledgeSearchEntryKind = "period_summary"
PersonalKnowledgeSearchEntryKindPocketNote PersonalKnowledgeSearchEntryKind = "pocket_note"
PersonalKnowledgeSearchEntryKindProfile PersonalKnowledgeSearchEntryKind = "profile"
PersonalKnowledgeSearchEntryKindRecording PersonalKnowledgeSearchEntryKind = "recording"
PersonalKnowledgeSearchEntryKindRoom PersonalKnowledgeSearchEntryKind = "room"
PersonalKnowledgeSearchEntryKindWiki PersonalKnowledgeSearchEntryKind = "wiki"
)
// Valid indicates whether the value is a known member of the PersonalKnowledgeSearchEntryKind enum.
func (e PersonalKnowledgeSearchEntryKind) Valid() bool {
switch e {
case PersonalKnowledgeSearchEntryKindMail:
return true
case PersonalKnowledgeSearchEntryKindMyPages:
return true
case PersonalKnowledgeSearchEntryKindPeriodSummary:
return true
case PersonalKnowledgeSearchEntryKindPocketNote:
return true
case PersonalKnowledgeSearchEntryKindProfile:
return true
case PersonalKnowledgeSearchEntryKindRecording:
return true
case PersonalKnowledgeSearchEntryKindRoom:
return true
case PersonalKnowledgeSearchEntryKindWiki:
return true
default:
return false
}
}
// Defines values for PersonalKnowledgeSessionFactFactType.
const (
Assistant PersonalKnowledgeSessionFactFactType = "assistant"
World PersonalKnowledgeSessionFactFactType = "world"
)
// Valid indicates whether the value is a known member of the PersonalKnowledgeSessionFactFactType enum.
func (e PersonalKnowledgeSessionFactFactType) Valid() bool {
switch e {
case Assistant:
return true
case World:
return true
default:
return false
}
}
// Defines values for WikiRefreshCandidateErrorResponseErrorDisposition.
const (
Retryable WikiRefreshCandidateErrorResponseErrorDisposition = "retryable"
Terminal WikiRefreshCandidateErrorResponseErrorDisposition = "terminal"
)
// Valid indicates whether the value is a known member of the WikiRefreshCandidateErrorResponseErrorDisposition enum.
func (e WikiRefreshCandidateErrorResponseErrorDisposition) Valid() bool {
switch e {
case Retryable:
return true
case Terminal:
return true
default:
return false
}
}
// Defines values for WikiRefreshCandidateGenerationRequestMode.
const (
Initialize WikiRefreshCandidateGenerationRequestMode = "initialize"
Update WikiRefreshCandidateGenerationRequestMode = "update"
)
// Valid indicates whether the value is a known member of the WikiRefreshCandidateGenerationRequestMode enum.
func (e WikiRefreshCandidateGenerationRequestMode) Valid() bool {
switch e {
case Initialize:
return true
case Update:
return true
default:
return false
}
}
// Defines values for WikiRefreshSessionSourceKind.
const (
WikiRefreshSessionSourceKindRecording WikiRefreshSessionSourceKind = "recording"
WikiRefreshSessionSourceKindRoom WikiRefreshSessionSourceKind = "room"
)
// Valid indicates whether the value is a known member of the WikiRefreshSessionSourceKind enum.
func (e WikiRefreshSessionSourceKind) Valid() bool {
switch e {
case WikiRefreshSessionSourceKindRecording:
return true
case WikiRefreshSessionSourceKindRoom:
return true
default:
return false
}
}
// AgentDebugHistoryInstructionBlock defines model for AgentDebugHistoryInstructionBlock.
type AgentDebugHistoryInstructionBlock struct {
ContentOrdinal *int `json:"content_ordinal,omitempty"`
Field string `json:"field"`
RecordOrdinal int `json:"record_ordinal"`
RecordType string `json:"record_type"`
Text string `json:"text"`
// Timestamp UTC timestamp in RFC 3339 format with an explicit offset.
Timestamp *Timestamp `json:"timestamp,omitempty"`
}
// AgentDebugHistoryInstructions defines model for AgentDebugHistoryInstructions.
type AgentDebugHistoryInstructions struct {
Blocks []AgentDebugHistoryInstructionBlock `json:"blocks"`
Reason *string `json:"reason,omitempty"`
Source AgentDebugHistoryInstructionsSource `json:"source"`
Status AgentDebugHistoryInstructionsStatus `json:"status"`
}
// AgentDebugHistoryInstructionsSource defines model for AgentDebugHistoryInstructions.Source.
type AgentDebugHistoryInstructionsSource string
// AgentDebugHistoryInstructionsStatus defines model for AgentDebugHistoryInstructions.Status.
type AgentDebugHistoryInstructionsStatus string
// AgentDebugHistoryRecord defines model for AgentDebugHistoryRecord.
type AgentDebugHistoryRecord struct {
Category AgentDebugHistoryRecordCategory `json:"category"`
NativeRecord map[string]interface{} `json:"native_record"`
NativeType string `json:"native_type"`
Ordinal int `json:"ordinal"`
Phase *string `json:"phase,omitempty"`
RedactedFields []AgentDebugHistoryRedactedField `json:"redacted_fields"`
Role *string `json:"role,omitempty"`
// Timestamp UTC timestamp in RFC 3339 format with an explicit offset.
Timestamp *Timestamp `json:"timestamp,omitempty"`
ToolCallId *string `json:"tool_call_id,omitempty"`
ToolName *string `json:"tool_name,omitempty"`
TurnId *string `json:"turn_id,omitempty"`
}
// AgentDebugHistoryRecordCategory defines model for AgentDebugHistoryRecord.Category.
type AgentDebugHistoryRecordCategory string
// AgentDebugHistoryRedactedField defines model for AgentDebugHistoryRedactedField.
type AgentDebugHistoryRedactedField struct {
ByteCount *int64 `json:"byte_count,omitempty"`
Path string `json:"path"`
Reason AgentDebugHistoryRedactedFieldReason `json:"reason"`
}
// AgentDebugHistoryRedactedFieldReason defines model for AgentDebugHistoryRedactedField.Reason.
type AgentDebugHistoryRedactedFieldReason string
// AgentDebugHistoryRequest defines model for AgentDebugHistoryRequest.
type AgentDebugHistoryRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
Cursor *string `json:"cursor,omitempty"`
Limit *int `json:"limit,omitempty"`
Ref AgentRuntimeContextRef `json:"ref"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// AgentDebugHistorySnapshot defines model for AgentDebugHistorySnapshot.
type AgentDebugHistorySnapshot struct {
// CapturedAt UTC timestamp in RFC 3339 format with an explicit offset.
CapturedAt Timestamp `json:"captured_at"`
Id string `json:"id"`
RecordCount int `json:"record_count"`
TailState AgentDebugHistorySnapshotTailState `json:"tail_state"`
ThreadId string `json:"thread_id"`
}
// AgentDebugHistorySnapshotTailState defines model for AgentDebugHistorySnapshot.TailState.
type AgentDebugHistorySnapshotTailState string
// AgentDebugInspectionStatus defines model for AgentDebugInspectionStatus.
type AgentDebugInspectionStatus string
// AgentDebugRuntimeHistory defines model for AgentDebugRuntimeHistory.
type AgentDebugRuntimeHistory struct {
Instructions AgentDebugHistoryInstructions `json:"instructions"`
PreviousCursor *string `json:"previous_cursor,omitempty"`
ProviderKind string `json:"provider_kind"`
Reason *string `json:"reason,omitempty"`
Records []AgentDebugHistoryRecord `json:"records"`
Snapshot *AgentDebugHistorySnapshot `json:"snapshot,omitempty"`
Source *AgentDebugRuntimeHistorySource `json:"source,omitempty"`
Status AgentDebugInspectionStatus `json:"status"`
}
// AgentDebugRuntimeHistorySource defines model for AgentDebugRuntimeHistory.Source.
type AgentDebugRuntimeHistorySource string
// AgentId defines model for AgentId.
type AgentId = string
// AgentReasoningEffort defines model for AgentReasoningEffort.
type AgentReasoningEffort string
// AgentRuntimeContextKey defines model for AgentRuntimeContextKey.
type AgentRuntimeContextKey = string
// AgentRuntimeContextRef defines model for AgentRuntimeContextRef.
type AgentRuntimeContextRef struct {
union json.RawMessage
}
// AgentRuntimeContextRef0 defines model for .
type AgentRuntimeContextRef0 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
Kind string `json:"kind"`
// RoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RoomId Id `json:"room_id"`
}
// AgentRuntimeContextRef1 defines model for .
type AgentRuntimeContextRef1 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
Kind string `json:"kind"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId Id `json:"task_id"`
}
// AgentRuntimeContextRef2 defines model for .
type AgentRuntimeContextRef2 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
// DocumentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
DocumentId Id `json:"document_id"`
Kind string `json:"kind"`
}
// AppendDocumentBlocksSemanticOperation defines model for AppendDocumentBlocksSemanticOperation.
type AppendDocumentBlocksSemanticOperation struct {
Blocks DocumentSemanticBlocks `json:"blocks"`
Kind string `json:"kind"`
}
// AppliedDocumentChangeResult defines model for AppliedDocumentChangeResult.
type AppliedDocumentChangeResult struct {
CompleteReferences CompleteReferences `json:"complete_references"`
Seq PersistedSequence `json:"seq"`
StateHash Sha256 `json:"state_hash"`
Status string `json:"status"`
// Title The title after a semantic change; other changes return the current title they were given or an empty string.
Title string `json:"title"`
}
// ApplyDocumentChangeRequest defines model for ApplyDocumentChangeRequest.
type ApplyDocumentChangeRequest struct {
// ActorId Opaque, case-sensitive TeamHub identifier.
ActorId DocumentInternalId `json:"actor_id"`
Change DocumentChange `json:"change"`
ExpectedSeq *PersistedSequence `json:"expected_seq,omitempty"`
// OperationId Opaque, case-sensitive TeamHub identifier.
OperationId DocumentInternalId `json:"operation_id"`
}
// ApplyDocumentChangeResult defines model for ApplyDocumentChangeResult.
type ApplyDocumentChangeResult struct {
union json.RawMessage
}
// BrowserConnectionConfigureCommand A normalized Playwright Extension token for the Local Computer. The Computer stores it privately and never returns it.
type BrowserConnectionConfigureCommand struct {
ExtensionToken *string `json:"extension_token,omitempty"`
// Profile A Chrome profile directory name inside the user's Chrome data directory.
Profile *BrowserProfile `json:"profile,omitempty"`
}
// BrowserConnectionStatus The browser that browser tools of this owner's Agents drive on one Local Computer. It never contains the Playwright Extension token.
type BrowserConnectionStatus struct {
Browser *BrowserConnectionStatusBrowser `json:"browser,omitempty"`
// ConfiguredAt UTC timestamp in RFC 3339 format with an explicit offset.
ConfiguredAt *Timestamp `json:"configured_at,omitempty"`
Message *string `json:"message,omitempty"`
Mode BrowserConnectionStatusMode `json:"mode"`
Platform BrowserConnectionStatusPlatform `json:"platform"`
// Profile A Chrome profile directory name inside the user's Chrome data directory.
Profile *BrowserProfile `json:"profile,omitempty"`
State BrowserConnectionStatusState `json:"state"`
// VerifiedAt UTC timestamp in RFC 3339 format with an explicit offset.
VerifiedAt *Timestamp `json:"verified_at,omitempty"`
}
// BrowserConnectionStatusBrowser defines model for BrowserConnectionStatus.Browser.
type BrowserConnectionStatusBrowser string
// BrowserConnectionStatusMode defines model for BrowserConnectionStatus.Mode.
type BrowserConnectionStatusMode string
// BrowserConnectionStatusPlatform defines model for BrowserConnectionStatus.Platform.
type BrowserConnectionStatusPlatform string
// BrowserConnectionStatusState defines model for BrowserConnectionStatus.State.
type BrowserConnectionStatusState string
// BrowserProfile A Chrome profile directory name inside the user's Chrome data directory.
type BrowserProfile = string
// ByokEndpointInput A BYOK endpoint address and key, enough to list its models at base_url + path + /models with protocol's key header. The API key is never persisted in TeamHub or Agent Service.
type ByokEndpointInput struct {
ApiKey *string `json:"api_key,omitempty"`
BaseUrl string `json:"base_url"`
// Endpoint A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Endpoint ByokUrlPath `json:"endpoint"`
// Path A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Path ByokUrlPath `json:"path"`
// Protocol Wire format of a BYOK upstream endpoint. The owner's client derives it from the end of the request address, else from the Runtime's own format; the Computer does not probe for it.
Protocol ByokProtocol `json:"protocol"`
ReuseSavedKey *bool `json:"reuse_saved_key,omitempty"`
}
// ByokInput Upstream endpoint configuration supplied by the Computer owner. Requests go to base_url + path + endpoint in protocol, and models are listed at base_url + path + /models. The API key is never persisted in TeamHub or Agent Service; only the Local Computer stores it in a private 0600 file.
type ByokInput struct {
ApiKey *string `json:"api_key,omitempty"`
BaseUrl string `json:"base_url"`
ContextWindow *int `json:"context_window,omitempty"`
// Endpoint A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Endpoint ByokUrlPath `json:"endpoint"`
ModelId string `json:"model_id"`
// Path A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Path ByokUrlPath `json:"path"`
// Protocol Wire format of a BYOK upstream endpoint. The owner's client derives it from the end of the request address, else from the Runtime's own format; the Computer does not probe for it.
Protocol ByokProtocol `json:"protocol"`
ReuseSavedKey *bool `json:"reuse_saved_key,omitempty"`
}
// ByokModel A model a BYOK endpoint lists.
type ByokModel struct {
ContextWindow *int `json:"context_window,omitempty"`
Id string `json:"id"`
// Name The endpoint's display name, when it differs from id.
Name *string `json:"name,omitempty"`
}
// ByokModelList The models a BYOK endpoint lists, sorted by id.
type ByokModelList struct {
Models []ByokModel `json:"models"`
// Url The address that listed them.
Url string `json:"url"`
}
// ByokProtocol Wire format of a BYOK upstream endpoint. The owner's client derives it from the end of the request address, else from the Runtime's own format; the Computer does not probe for it.
type ByokProtocol string
// ByokSummary Redacted BYOK configuration metadata reported by the Computer. path and endpoint are omitted when empty: a configured summary without them appends nothing there.
type ByokSummary struct {
BaseUrl *string `json:"base_url,omitempty"`
Configured bool `json:"configured"`
ContextWindow *int `json:"context_window,omitempty"`
// Endpoint A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Endpoint *ByokUrlPath `json:"endpoint,omitempty"`
KeySaved bool `json:"key_saved"`
ModelId *string `json:"model_id,omitempty"`
// Path A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
Path *ByokUrlPath `json:"path,omitempty"`
// Protocol Wire format of a BYOK upstream endpoint. The owner's client derives it from the end of the request address, else from the Runtime's own format; the Computer does not probe for it.
Protocol *ByokProtocol `json:"protocol,omitempty"`
}
// ByokTestRequest A BYOK endpoint to verify with one request from the Computer.
type ByokTestRequest struct {
// Byok Upstream endpoint configuration supplied by the Computer owner. Requests go to base_url + path + endpoint in protocol, and models are listed at base_url + path + /models. The API key is never persisted in TeamHub or Agent Service; only the Local Computer stores it in a private 0600 file.
Byok ByokInput `json:"byok"`
}
// ByokTestResult Outcome of one request to an upstream BYOK endpoint from the Local Computer.
type ByokTestResult struct {
ContextWindow int `json:"context_window"`
ModelId string `json:"model_id"`
Ok bool `json:"ok"`
// Protocol Wire format of a BYOK upstream endpoint. The owner's client derives it from the end of the request address, else from the Runtime's own format; the Computer does not probe for it.
Protocol ByokProtocol `json:"protocol"`
// Url The address the request went to.
Url string `json:"url"`
}
// ByokUrlPath A path appended to a BYOK base URL: empty, or whole segments each led by one slash, so it can only extend the base URL's path.
type ByokUrlPath = string
// CancelAgentRunRequest defines model for CancelAgentRunRequest.
type CancelAgentRunRequest struct {
ContextRef *AgentRuntimeContextRef `json:"context_ref,omitempty"`
// RequestId Client-generated key scoped to the authenticated principal and operation.
RequestId IdempotencyKey `json:"request_id"`
// RunId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RunId Id `json:"run_id"`
}
// CancelAgentRunResult defines model for CancelAgentRunResult.
type CancelAgentRunResult struct {
// RunId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RunId Id `json:"run_id"`
Status CancelAgentRunResultStatus `json:"status"`
}
// CancelAgentRunResultStatus defines model for CancelAgentRunResult.Status.
type CancelAgentRunResultStatus string
// CommentAnchorDocumentChange Marks a Comment thread on the selection a read-only commenter quoted; an editable session writes the mark itself.
type CommentAnchorDocumentChange struct {
// BlockId Opaque, case-sensitive TeamHub identifier.
BlockId DocumentInternalId `json:"block_id"`
ContextAfter string `json:"context_after"`
ContextBefore string `json:"context_before"`
Kind string `json:"kind"`
QuotedText string `json:"quoted_text"`
// ThreadId Opaque, case-sensitive TeamHub identifier.
ThreadId DocumentInternalId `json:"thread_id"`
}
// CompleteReferences defines model for CompleteReferences.
type CompleteReferences struct {
DocumentAssetIds []DocumentInternalId `json:"document_asset_ids"`
DocumentThreadIds []DocumentInternalId `json:"document_thread_ids"`
}
// ComputedDocumentState defines model for ComputedDocumentState.
type ComputedDocumentState struct {
BytesSha256 Sha256 `json:"bytes_sha256"`
CompleteReferences CompleteReferences `json:"complete_references"`
StateBytes DocumentStateBytes `json:"state_bytes"`
StateHash Sha256 `json:"state_hash"`
StateHashVersion StateHashVersion `json:"state_hash_version"`
StateVector StateVector `json:"state_vector"`
Warnings []string `json:"warnings"`
}
// ComputerPermissionAction One step the owner takes on their own Mac. prompt raises the macOS prompt, open_settings opens the System Settings pane, and relaunch restarts the Linger desktop app so a new grant takes effect.
type ComputerPermissionAction struct {
Action ComputerPermissionActionAction `json:"action"`
// Permission A macOS privacy permission an Agent can ask its Computer owner to grant.
Permission *ComputerPermissionId `json:"permission,omitempty"`
// Subject The app macOS grants the permission to. linger is the Linger desktop app, which owns shell commands such as screencapture; computer_use is CuaDriver, which owns the computer-use tools.
Subject ComputerPermissionSubject `json:"subject"`
}
// ComputerPermissionActionAction defines model for ComputerPermissionAction.Action.
type ComputerPermissionActionAction string
// ComputerPermissionEntry defines model for ComputerPermissionEntry.
type ComputerPermissionEntry struct {
// Id A macOS privacy permission an Agent can ask its Computer owner to grant.
Id ComputerPermissionId `json:"id"`
// Prompt available when the Computer can raise the macOS prompt itself; settings_only when it can only open the System Settings pane.
Prompt ComputerPermissionPrompt `json:"prompt"`
// RelaunchRequired macOS applies a new grant only after the app restarts. True once the running app asked for this permission without seeing it granted.
RelaunchRequired bool `json:"relaunch_required"`
State ComputerPermissionState `json:"state"`
}
// ComputerPermissionId A macOS privacy permission an Agent can ask its Computer owner to grant.
type ComputerPermissionId string
// ComputerPermissionPrompt available when the Computer can raise the macOS prompt itself; settings_only when it can only open the System Settings pane.
type ComputerPermissionPrompt string
// ComputerPermissionState defines model for ComputerPermissionState.
type ComputerPermissionState string
// ComputerPermissionStatus The macOS privacy permissions of one Local Computer. Other platforms have no such permissions and report no subjects.
type ComputerPermissionStatus struct {
// Host desktop when the Linger desktop app runs the Computer; standalone otherwise.
Host ComputerPermissionStatusHost `json:"host"`
Platform ComputerPermissionStatusPlatform `json:"platform"`
Subjects []ComputerPermissionSubjectStatus `json:"subjects"`
}
// ComputerPermissionStatusHost desktop when the Linger desktop app runs the Computer; standalone otherwise.
type ComputerPermissionStatusHost string
// ComputerPermissionStatusPlatform defines model for ComputerPermissionStatus.Platform.
type ComputerPermissionStatusPlatform string
// ComputerPermissionSubject The app macOS grants the permission to. linger is the Linger desktop app, which owns shell commands such as screencapture; computer_use is CuaDriver, which owns the computer-use tools.
type ComputerPermissionSubject string
// ComputerPermissionSubjectStatus defines model for ComputerPermissionSubjectStatus.
type ComputerPermissionSubjectStatus struct {
Permissions []ComputerPermissionEntry `json:"permissions"`
// Subject The app macOS grants the permission to. linger is the Linger desktop app, which owns shell commands such as screencapture; computer_use is CuaDriver, which owns the computer-use tools.
Subject ComputerPermissionSubject `json:"subject"`
}
// ConflictedDocumentChangeResult defines model for ConflictedDocumentChangeResult.
type ConflictedDocumentChangeResult struct {
Reason ConflictedDocumentChangeResultReason `json:"reason"`
Status string `json:"status"`
}
// ConflictedDocumentChangeResultReason defines model for ConflictedDocumentChangeResult.Reason.
type ConflictedDocumentChangeResultReason string
// DeleteDocumentBlocksSemanticOperation defines model for DeleteDocumentBlocksSemanticOperation.
type DeleteDocumentBlocksSemanticOperation struct {
Kind string `json:"kind"`
StableBlockIds []DocumentInternalId `json:"stable_block_ids"`
}
// DisconnectDocumentConnectionsRequest An actor_id closes only that Actor's connections; without it every connection of the Document closes.
type DisconnectDocumentConnectionsRequest struct {
// ActorId Opaque, case-sensitive TeamHub identifier.
ActorId *DocumentInternalId `json:"actor_id,omitempty"`
}
// DocumentChange defines model for DocumentChange.
type DocumentChange struct {
union json.RawMessage
}
// DocumentDuplicateAssetMapping defines model for DocumentDuplicateAssetMapping.
type DocumentDuplicateAssetMapping struct {
// SourceAssetId Opaque, case-sensitive TeamHub identifier.
SourceAssetId DocumentInternalId `json:"source_asset_id"`
// TargetAssetId Opaque, case-sensitive TeamHub identifier.
TargetAssetId DocumentInternalId `json:"target_asset_id"`
}
// DocumentInternalError defines model for DocumentInternalError.
type DocumentInternalError struct {
Code InternalErrorCode `json:"code"`
Message string `json:"message"`
RequestId *string `json:"request_id,omitempty"`
RetryAfterMs *int `json:"retry_after_ms,omitempty"`
Retryable bool `json:"retryable"`
}
// DocumentInternalId Opaque, case-sensitive TeamHub identifier.
type DocumentInternalId = string
// DocumentNormalizationRetryableErrorResponse defines model for DocumentNormalizationRetryableErrorResponse.
type DocumentNormalizationRetryableErrorResponse struct {
Error struct {
Code string `json:"code"`
Disposition string `json:"disposition"`
Message string `json:"message"`
} `json:"error"`
}
// DocumentNormalizationTerminalErrorResponse defines model for DocumentNormalizationTerminalErrorResponse.
type DocumentNormalizationTerminalErrorResponse struct {
Error struct {
Code DocumentNormalizationTerminalErrorResponseErrorCode `json:"code"`
Disposition string `json:"disposition"`
Message string `json:"message"`
} `json:"error"`
}
// DocumentNormalizationTerminalErrorResponseErrorCode defines model for DocumentNormalizationTerminalErrorResponse.Error.Code.
type DocumentNormalizationTerminalErrorResponseErrorCode string
// DocumentSemanticBlocks defines model for DocumentSemanticBlocks.
type DocumentSemanticBlocks = []map[string]interface{}
// DocumentSemanticOperations Targeted operations are limited to 256 KiB encoded JSON. A single replace_body_html or replace_body_blocks operation permits up to 1 MiB body and 8 MiB encoded JSON; it cannot be combined with other operations.
type DocumentSemanticOperations = []DocumentSemanticOperations_Item
// DocumentSemanticOperations_Item defines model for DocumentSemanticOperations.Item.
type DocumentSemanticOperations_Item struct {
union json.RawMessage
}
// DocumentSourceBytes defines model for DocumentSourceBytes.
type DocumentSourceBytes = string
// DocumentStateBytes defines model for DocumentStateBytes.
type DocumentStateBytes = string
// EditNativeDocumentSemanticOperation One Native Document edit, resolved against the frozen mutation state. Action-specific fields are validated before admission and computation.
type EditNativeDocumentSemanticOperation struct {
// AssetId Image and file commands only. An available Asset of this Document, an image for image commands; admission pins it for this mutation.
AssetId *string `json:"asset_id,omitempty"`
BlockId *string `json:"block_id,omitempty"`
// Caption Optional single-line image caption for image commands.
Caption *string `json:"caption,omitempty"`
Command EditNativeDocumentSemanticOperationCommand `json:"command"`
Content *string `json:"content,omitempty"`
EndBlockId *string `json:"end_block_id,omitempty"`
Kind string `json:"kind"`
// Name Optional single-line file name shown on the block, for file_insert_after.
Name *string `json:"name,omitempty"`
ParserVersion string `json:"parser_version"`
Pattern *string `json:"pattern,omitempty"`
StartBlockId *string `json:"start_block_id,omitempty"`
Title *string `json:"title,omitempty"`
}
// EditNativeDocumentSemanticOperationCommand defines model for EditNativeDocumentSemanticOperation.Command.
type EditNativeDocumentSemanticOperationCommand string
// Error defines model for Error.
type Error struct {
Code string `json:"code"`
Details *[]ErrorDetail `json:"details,omitempty"`
// Message Human-readable summary safe to display; clients branch on code, not message.
Message string `json:"message"`
RequestId string `json:"request_id"`
Retryable *bool `json:"retryable,omitempty"`
}
// ErrorDetail defines model for ErrorDetail.
type ErrorDetail struct {
// Code Optional stable classification for this individual validation issue.
Code *string `json:"code,omitempty"`
Field string `json:"field"`
// LimitBytes With code too_large, the largest size the field accepts, in bytes.
LimitBytes *int64 `json:"limit_bytes,omitempty"`
Reason string `json:"reason"`
}
// ErrorResponse defines model for ErrorResponse.
type ErrorResponse struct {
Error Error `json:"error"`
}
// ExportDocumentRequest defines model for ExportDocumentRequest.
type ExportDocumentRequest struct {
AssetManifest ManifestEntries `json:"asset_manifest"`
Format ExportDocumentRequestFormat `json:"format"`
// RevisionId Opaque, case-sensitive TeamHub identifier.
RevisionId DocumentInternalId `json:"revision_id"`
SchemaVersion SchemaVersion `json:"schema_version"`
State ComputedDocumentState `json:"state"`
}
// ExportDocumentRequestFormat defines model for ExportDocumentRequest.Format.
type ExportDocumentRequestFormat string
// ExportDocumentResult defines model for ExportDocumentResult.
type ExportDocumentResult struct {
Bytes DocumentSourceBytes `json:"bytes"`
CompleteReferences CompleteReferences `json:"complete_references"`
MediaType ExportDocumentResultMediaType `json:"media_type"`
Sha256 Sha256 `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
Warnings []string `json:"warnings"`
}
// ExportDocumentResultMediaType defines model for ExportDocumentResult.MediaType.
type ExportDocumentResultMediaType string
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type Id = string
// IdempotencyKey Client-generated key scoped to the authenticated principal and operation.
type IdempotencyKey = string
// ImportDocumentRequest A text source (markdown, plain_text, sanitized_html) becomes a new state that may place the allowed Assets; blank needs no source; a document_state source is an existing state remapped to new Asset IDs without its Comment threads.
type ImportDocumentRequest struct {
AllowedDocumentAssetIds *[]DocumentInternalId `json:"allowed_document_asset_ids,omitempty"`
AssetMappings *[]DocumentDuplicateAssetMapping `json:"asset_mappings,omitempty"`
// OperationId Opaque, case-sensitive TeamHub identifier.
OperationId DocumentInternalId `json:"operation_id"`
SchemaVersion SchemaVersion `json:"schema_version"`
SourceBytes *DocumentSourceBytes `json:"source_bytes,omitempty"`
SourceKind ImportDocumentRequestSourceKind `json:"source_kind"`
}
// ImportDocumentRequestSourceKind defines model for ImportDocumentRequest.SourceKind.
type ImportDocumentRequestSourceKind string
// InsertDocumentBlocksSemanticOperation defines model for InsertDocumentBlocksSemanticOperation.
type InsertDocumentBlocksSemanticOperation struct {
Blocks DocumentSemanticBlocks `json:"blocks"`
Kind string `json:"kind"`
Position InsertDocumentBlocksSemanticOperationPosition `json:"position"`
// StableBlockId Opaque, case-sensitive TeamHub identifier.
StableBlockId DocumentInternalId `json:"stable_block_id"`
}
// InsertDocumentBlocksSemanticOperationPosition defines model for InsertDocumentBlocksSemanticOperation.Position.
type InsertDocumentBlocksSemanticOperationPosition string
// InternalErrorCode defines model for InternalErrorCode.
type InternalErrorCode string
// LocalComputerToolCall defines model for LocalComputerToolCall.
type LocalComputerToolCall struct {
AgentId string `json:"agent_id"`
Arguments map[string]interface{} `json:"arguments"`
ComputerId string `json:"computer_id"`
// DeadlineMs How long the Computer may take; 60000 when omitted.
DeadlineMs *int `json:"deadline_ms,omitempty"`
OwnerActorId string `json:"owner_actor_id"`
Server LocalComputerToolCallServer `json:"server"`
TenantId string `json:"tenant_id"`
ToolName string `json:"tool_name"`
ToolSessionId string `json:"tool_session_id"`
}
// LocalComputerToolCallServer defines model for LocalComputerToolCall.Server.
type LocalComputerToolCallServer string
// LocalComputerToolResult defines model for LocalComputerToolResult.
type LocalComputerToolResult struct {
Result map[string]interface{} `json:"result"`
}
// LocalModelActionAck The Computer's immediate answer. accepted means the job started (or a snapshot is coming for refresh); refused means nothing changed. Progress and outcomes arrive only as snapshots.
type LocalModelActionAck struct {
Outcome LocalModelActionAckOutcome `json:"outcome"`
Refusal *LocalModelActionRefusal `json:"refusal,omitempty"`
// RequestId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RequestId Id `json:"request_id"`
}
// LocalModelActionAckOutcome defines model for LocalModelActionAck.Outcome.
type LocalModelActionAckOutcome string
// LocalModelActionCommand TeamHub asks Agent Service to send one execute local_models frame to an owned Computer. model_id is required except for refresh; unload_first only with load.
type LocalModelActionCommand struct {
// Action refresh asks the Computer to reread its library and send a snapshot; it names no model.
Action LocalModelActionKind `json:"action"`
// ExpiresAt UTC timestamp in RFC 3339 format with an explicit offset.
ExpiresAt Timestamp `json:"expires_at"`
// ModelId Stable localmodels library id: catalog id and variant, such as qwen3-4b:Q4_K_M.
ModelId *LocalModelId `json:"model_id,omitempty"`
// RequestId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RequestId Id `json:"request_id"`
UnloadFirst *[]LocalModelId `json:"unload_first,omitempty"`
}
// LocalModelActionKind refresh asks the Computer to reread its library and send a snapshot; it names no model.
type LocalModelActionKind string
// LocalModelActionRefusal defines model for LocalModelActionRefusal.
type LocalModelActionRefusal struct {
// Code Why the Computer refused an action before starting it: a localmodels library error or a reason the library is unavailable.
Code LocalModelActionRefusalCode `json:"code"`
// Detail Diagnostic text for display; never matched on.
Detail *string `json:"detail,omitempty"`
FreeBytes *int64 `json:"free_bytes,omitempty"`
NeedBytes *int64 `json:"need_bytes,omitempty"`
// Pool A place a model can live: gpu:<index>, system (RAM beside GPUs), or unified (RAM of a host without discrete GPUs).
Pool *LocalModelPoolId `json:"pool,omitempty"`
}
// LocalModelActionRefusalCode Why the Computer refused an action before starting it: a localmodels library error or a reason the library is unavailable.
type LocalModelActionRefusalCode string
// LocalModelId Stable localmodels library id: catalog id and variant, such as qwen3-4b:Q4_K_M.
type LocalModelId = string
// LocalModelPoolId A place a model can live: gpu:<index>, system (RAM beside GPUs), or unified (RAM of a host without discrete GPUs).
type LocalModelPoolId = string
// LocalSkillCandidate defines model for LocalSkillCandidate.
type LocalSkillCandidate struct {
// CandidateRef Opaque, case-sensitive identifier. Clients must not infer type or time from it.
CandidateRef Id `json:"candidate_ref"`
Description string `json:"description"`
ErrorCode *string `json:"error_code,omitempty"`
ErrorDetail *string `json:"error_detail,omitempty"`
FileCount int `json:"file_count"`
Importability LocalSkillCandidateImportability `json:"importability"`
ManifestExcerpt *string `json:"manifest_excerpt,omitempty"`
Name string `json:"name"`
NativeEnabled *bool `json:"native_enabled,omitempty"`
NativeSource *string `json:"native_source,omitempty"`
Normalizations []string `json:"normalizations"`
PackageSha256 string `json:"package_sha256"`
RiskFlags []string `json:"risk_flags"`
SizeBytes int64 `json:"size_bytes"`
}
// LocalSkillCandidateImportability defines model for LocalSkillCandidate.Importability.
type LocalSkillCandidateImportability string
// LocalSkillScan defines model for LocalSkillScan.
type LocalSkillScan struct {
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
// ExpiresAt UTC timestamp in RFC 3339 format with an explicit offset.
ExpiresAt Timestamp `json:"expires_at"`
Items []LocalSkillCandidate `json:"items"`
RuntimeType LocalSkillScanRuntimeType `json:"runtime_type"`
// ScanId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ScanId Id `json:"scan_id"`
}
// LocalSkillScanRuntimeType defines model for LocalSkillScan.RuntimeType.
type LocalSkillScanRuntimeType string
// LocalSkillScanCommandRequest defines model for LocalSkillScanCommandRequest.
type LocalSkillScanCommandRequest struct {
// ExpiresAt UTC timestamp in RFC 3339 format with an explicit offset.
ExpiresAt Timestamp `json:"expires_at"`
// RequestId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RequestId Id `json:"request_id"`
RuntimeType LocalSkillScanCommandRequestRuntimeType `json:"runtime_type"`
// ScanId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ScanId Id `json:"scan_id"`
}
// LocalSkillScanCommandRequestRuntimeType defines model for LocalSkillScanCommandRequest.RuntimeType.
type LocalSkillScanCommandRequestRuntimeType string
// ManifestEntries defines model for ManifestEntries.
type ManifestEntries = []ManifestEntry
// ManifestEntry defines model for ManifestEntry.
type ManifestEntry struct {
// Id Opaque, case-sensitive TeamHub identifier.
Id DocumentInternalId `json:"id"`
MediaType string `json:"media_type"`
Sha256 Sha256 `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
Title *string `json:"title,omitempty"`
}
// MeetingFiles defines model for MeetingFiles.
type MeetingFiles struct {
CaptureId string `json:"capture_id"`
RecordingDocumentId string `json:"recording_document_id"`
RecordingFilename string `json:"recording_filename"`
RecordingVersionId string `json:"recording_version_id"`
StartedAt time.Time `json:"started_at"`
// SummaryPath Reader-facing Markdown path under timeline/meetings in the personal memory tree.
SummaryPath *string `json:"summary_path,omitempty"`
SummaryReady bool `json:"summary_ready"`
TranscriptDocumentId string `json:"transcript_document_id"`
TranscriptVersionId string `json:"transcript_version_id"`
}
// MemoryCalendarFailure defines model for MemoryCalendarFailure.
type MemoryCalendarFailure struct {
Attempts int `json:"attempts"`
Key MemoryCalendarTaskKey `json:"key"`
NextAttemptAt *time.Time `json:"next_attempt_at,omitempty"`
// Period Business date, the week start for Weekly, or the start date of a rebuild init/index step.
Period openapi_types.Date `json:"period"`
// Subjects Memory subjects still requiring retry; empty means all.
Subjects []string `json:"subjects"`
Task MemoryCalendarFailureTask `json:"task"`
TerminalReason *string `json:"terminal_reason,omitempty"`
}
// MemoryCalendarFailureTask defines model for MemoryCalendarFailure.Task.
type MemoryCalendarFailureTask string
// MemoryCalendarTaskKey defines model for MemoryCalendarTaskKey.
type MemoryCalendarTaskKey = string
// MemoryEntry defines model for MemoryEntry.
type MemoryEntry struct {
Content string `json:"content"`
Date *openapi_types.Date `json:"date,omitempty"`
Id string `json:"id"`
Kind MemoryEntryKind `json:"kind"`
Meeting *MeetingFiles `json:"meeting,omitempty"`
// Path Relative Memory path, or virtual display path for a meeting. Meeting paths are not filesystem paths.
Path string `json:"path"`
Summary string `json:"summary"`
Title string `json:"title"`
UpdatedAt time.Time `json:"updated_at"`
}
// MemoryEntryKind defines model for MemoryEntryKind.
type MemoryEntryKind string
// MemoryEntryPage defines model for MemoryEntryPage.
type MemoryEntryPage struct {
Items []MemoryEntry `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
// MemoryErrorResponse defines model for MemoryErrorResponse.
type MemoryErrorResponse struct {
Error struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
// MemoryFailureRetryRequest defines model for MemoryFailureRetryRequest.
type MemoryFailureRetryRequest struct {
// Scheduler Revives the listed exhausted tasks (all when task_keys is omitted) and the dependents they blocked; the next scheduler tick runs them.
Scheduler *struct {
TaskKeys *[]MemoryCalendarTaskKey `json:"task_keys,omitempty"`
} `json:"scheduler,omitempty"`
}
// MemoryFailureRetryResponse defines model for MemoryFailureRetryResponse.
type MemoryFailureRetryResponse struct {
Scheduler *struct {
Revived int `json:"revived"`
TaskKeys []MemoryCalendarTaskKey `json:"task_keys"`
} `json:"scheduler,omitempty"`
}
// MemoryFailureSectionNotConfigured defines model for MemoryFailureSectionNotConfigured.
type MemoryFailureSectionNotConfigured struct {
Configured bool `json:"configured"`
}
// MemoryFailureSectionUnavailable defines model for MemoryFailureSectionUnavailable.
type MemoryFailureSectionUnavailable struct {
Error string `json:"error"`
}
// MemoryFailureSummaryResponse defines model for MemoryFailureSummaryResponse.
type MemoryFailureSummaryResponse struct {
RawChunkSources MemoryFailureSummaryResponse_RawChunkSources `json:"raw_chunk_sources"`
Scheduler struct {
Exhausted []MemoryCalendarFailure `json:"exhausted"`
ExhaustedTotal int `json:"exhausted_total"`
PendingRetries []MemoryCalendarFailure `json:"pending_retries"`
PendingRetriesTotal int `json:"pending_retries_total"`
} `json:"scheduler"`
SessionFacts MemoryFailureSummaryResponse_SessionFacts `json:"session_facts"`
}
// MemoryFailureSummaryResponse_RawChunkSources defines model for MemoryFailureSummaryResponse.RawChunkSources.
type MemoryFailureSummaryResponse_RawChunkSources struct {
union json.RawMessage
}
// MemoryFailureSummaryResponse_SessionFacts defines model for MemoryFailureSummaryResponse.SessionFacts.
type MemoryFailureSummaryResponse_SessionFacts struct {
union json.RawMessage
}
// MemoryRebuildRequest Exactly one of memory_subject_key or owner_actor_id. Session dates are discovered from TeamHub up to today in the scheduler zone.
type MemoryRebuildRequest struct {
// From Optional pilot start; earlier Session dates are skipped.
From *openapi_types.Date `json:"from,omitempty"`
MemorySubjectKey *AgentId `json:"memory_subject_key,omitempty"`
OwnerActorId *AgentId `json:"owner_actor_id,omitempty"`
// Restart Forget this subject's finished rebuild and archive its state again.
Restart *bool `json:"restart,omitempty"`
}
// MemoryRebuildResponse defines model for MemoryRebuildResponse.
type MemoryRebuildResponse struct {
Count int `json:"count"`
MemorySubjectKey string `json:"memory_subject_key"`
// Queued Steps newly queued by this request.
Queued []MemoryCalendarTaskKey `json:"queued"`
QueuedCount int `json:"queued_count"`
// TaskKeys The whole ordered chain for the requested range.
TaskKeys []MemoryCalendarTaskKey `json:"task_keys"`
}
// MemoryRebuildStatus defines model for MemoryRebuildStatus.
type MemoryRebuildStatus struct {
Completed int `json:"completed"`
CurrentAttempts *int `json:"current_attempts,omitempty"`
// CurrentDate Business date of the current Session-phase step; null for init and index steps.
CurrentDate *openapi_types.Date `json:"current_date"`
CurrentTask *string `json:"current_task"`
Failed int `json:"failed"`
Failures []struct {
Attempts int `json:"attempts"`
Key MemoryCalendarTaskKey `json:"key"`
TerminalReason string `json:"terminal_reason"`
} `json:"failures"`
From *openapi_types.Date `json:"from"`
// IndexHold Automatic indexing skips this subject while steps are pending.
IndexHold bool `json:"index_hold"`
MemorySubjectKey string `json:"memory_subject_key"`
NextAttemptAt *time.Time `json:"next_attempt_at,omitempty"`
Pending int `json:"pending"`
Phase *MemoryRebuildStatusPhase `json:"phase"`
Running bool `json:"running"`
Sessions struct {
Completed int `json:"completed"`
Total int `json:"total"`
} `json:"sessions"`
To *openapi_types.Date `json:"to"`
Total int `json:"total"`
}
// MemoryRebuildStatusPhase defines model for MemoryRebuildStatus.Phase.
type MemoryRebuildStatusPhase string
// ModelCallEffort Reasoning effort for the Runtime's default model; omitted, low.
type ModelCallEffort string
// ModelCallKind An approval borrows its Run's place on the same endpoint or queues first. Recording questions and notes go before chat, can use the reserved place and swap out a running Run of lower priority. All three calls stop waiting when their caller leaves and never answer pending.
type ModelCallKind string
// ModelCallRequest defines model for ModelCallRequest.
type ModelCallRequest struct {
// Effort Reasoning effort for the Runtime's default model; omitted, low.
Effort *ModelCallEffort `json:"effort,omitempty"`
// Input Together with instructions at most 1,000,000 characters, which keeps the prompt under the Runtime's 3 MiB limit.
Input string `json:"input"`
// Instructions Shares the 1,000,000-character prompt budget with input.
Instructions *string `json:"instructions,omitempty"`
// Key Names the work, for example profile:<generation_id>. A request with the same key and the same content joins the running execution or receives its cached result; the same key with other content is a new request.
Key string `json:"key"`
// Kind An approval borrows its Run's place on the same endpoint or queues first. Recording questions and notes go before chat, can use the reserved place and swap out a running Run of lower priority. All three calls stop waiting when their caller leaves and never answer pending.
Kind ModelCallKind `json:"kind"`
// Output Asks for one JSON object; omitted, the answer is text.
Output *struct {
Name string `json:"name"`
// Schema A strict JSON Schema for the returned object.
Schema map[string]interface{} `json:"schema"`
} `json:"output,omitempty"`
// Owner The Human whose Another Me's Computer runs the call; omitted, the deployment's only Another Me.
Owner *struct {
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OwnerActorId Id `json:"ownerActorId"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenantId"`
} `json:"owner,omitempty"`
// RunOperationId Only for approval. The Run Operation whose action is reviewed; while that Run holds its place on the same Runtime, the review runs in it instead of queuing behind the Run that waits for it.
RunOperationId *string `json:"runOperationId,omitempty"`
// SessionKey Names the session a structured call belongs to. Codex answers one session's calls in one resident thread that keeps the instructions and earlier calls, so only the new input is uncached; a schema correction and a Claude call run on their own.
SessionKey *string `json:"sessionKey,omitempty"`
// TimeoutMs The budget of one Runtime attempt from its start, each correction getting its own; waiting for a place does not count. Omitted, the kind's default.
TimeoutMs *int `json:"timeoutMs,omitempty"`
}
// ModelCallResult defines model for ModelCallResult.
type ModelCallResult struct {
// Model The model the Runtime reported, when it reported one.
Model *string `json:"model,omitempty"`
// Output The validated object, when the request asked for one.
Output *map[string]interface{} `json:"output,omitempty"`
// Text The answer, when the request asked for text.
Text *string `json:"text,omitempty"`
}
// ModelSourceApplyCommand Internal command sent from TeamHub to Agent Service to switch a Computer's model source.
type ModelSourceApplyCommand struct {
// Byok Upstream endpoint configuration supplied by the Computer owner. Requests go to base_url + path + endpoint in protocol, and models are listed at base_url + path + /models. The API key is never persisted in TeamHub or Agent Service; only the Local Computer stores it in a private 0600 file.
Byok *ByokInput `json:"byok,omitempty"`
// LocalModelId Stable localmodels library id: catalog id and variant, such as qwen3-4b:Q4_K_M.
LocalModelId *LocalModelId `json:"local_model_id,omitempty"`
// Mode Active model source mode on a Local Computer.
Mode ModelSourceMode `json:"mode"`
// Runtime Agent runtime harness driving turns on the Computer.
Runtime *ModelSourceRuntime `json:"runtime,omitempty"`
}
// ModelSourceMode Active model source mode on a Local Computer.
type ModelSourceMode string
// ModelSourceRuntime Agent runtime harness driving turns on the Computer.
type ModelSourceRuntime string
// ModelSourceStatus Active model source and redacted BYOK metadata on one Local Computer.
type ModelSourceStatus struct {
// Byok Redacted BYOK configuration metadata reported by the Computer. path and endpoint are omitted when empty: a configured summary without them appends nothing there.
Byok ByokSummary `json:"byok"`
GatewayUrl *string `json:"gateway_url,omitempty"`
// Mode Active model source mode on a Local Computer.
Mode ModelSourceMode `json:"mode"`
ReasoningEffort *AgentReasoningEffort `json:"reasoning_effort,omitempty"`
// Runtime Agent runtime harness driving turns on the Computer.
Runtime ModelSourceRuntime `json:"runtime"`
// RuntimeModel After a switch, the model the Computer's Agents run: the target model when the active Runtime offers it, else that Runtime's default.
RuntimeModel string `json:"runtime_model"`
}
// PersistedSequence defines model for PersistedSequence.
type PersistedSequence = int64
// PersonalKnowledgeEvidenceGap defines model for PersonalKnowledgeEvidenceGap.
type PersonalKnowledgeEvidenceGap struct {
// Code Extensible stable code. Unknown codes must be handled as a generic evidence gap.
Code string `json:"code"`
Detail *string `json:"detail,omitempty"`
}
// PersonalKnowledgeEvidenceId Opaque Raw source identifier returned by candidate query and passed unchanged to evidence read. It names a source ID and immutable content hash and grants no access outside the authenticated Tenant and represented Human scope.
type PersonalKnowledgeEvidenceId = string
// PersonalKnowledgeEvidenceReadRequest defines model for PersonalKnowledgeEvidenceReadRequest.
type PersonalKnowledgeEvidenceReadRequest struct {
AgentActorId AgentId `json:"agent_actor_id"`
AgentId AgentId `json:"agent_id"`
// EvidenceId Opaque Raw source identifier returned by candidate query and passed unchanged to evidence read. It names a source ID and immutable content hash and grants no access outside the authenticated Tenant and represented Human scope.
EvidenceId PersonalKnowledgeEvidenceId `json:"evidence_id"`
SectionRequests []PersonalKnowledgeSectionReadRequest `json:"section_requests"`
TenantId AgentId `json:"tenant_id"`
UserArtifactOwnerActorId AgentId `json:"user_artifact_owner_actor_id"`
}
// PersonalKnowledgeEvidenceReadResponse defines model for PersonalKnowledgeEvidenceReadResponse.
type PersonalKnowledgeEvidenceReadResponse struct {
// Complete True only when every requested section exists and its requested page was returned without truncation.
Complete bool `json:"complete"`
Directory []PersonalKnowledgeSectionDirectoryEntry `json:"directory"`
// EvidenceId Opaque Raw source identifier returned by candidate query and passed unchanged to evidence read. It names a source ID and immutable content hash and grants no access outside the authenticated Tenant and represented Human scope.
EvidenceId PersonalKnowledgeEvidenceId `json:"evidenceId"`
MissingSections []string `json:"missingSections"`
SchemaVersion int `json:"schemaVersion"`
Sections []PersonalKnowledgeEvidenceSection `json:"sections"`
Source PersonalKnowledgeEvidenceSource `json:"source"`
TimeHint *string `json:"timeHint,omitempty"`
Title string `json:"title"`
}
// PersonalKnowledgeEvidenceSection defines model for PersonalKnowledgeEvidenceSection.
type PersonalKnowledgeEvidenceSection struct {
// Content Verbatim Markdown body for this section page.
Content string `json:"content"`
Id string `json:"id"`
Level int `json:"level"`
// NextOffset Offset for the next page; present only when truncated.
NextOffset *int `json:"nextOffset,omitempty"`
Offset int `json:"offset"`
Title string `json:"title"`
Truncated bool `json:"truncated"`
}
// PersonalKnowledgeEvidenceSource defines model for PersonalKnowledgeEvidenceSource.
type PersonalKnowledgeEvidenceSource struct {
// Kind Extensible source kind. The current value is raw.
Kind string `json:"kind"`
Label *string `json:"label,omitempty"`
// Ref Opaque source reference. It is not a user-facing label.
Ref string `json:"ref"`
}
// PersonalKnowledgeGraphVisualizationRequest defines model for PersonalKnowledgeGraphVisualizationRequest.
type PersonalKnowledgeGraphVisualizationRequest struct {
OwnerActorId AgentId `json:"owner_actor_id"`
TenantId AgentId `json:"tenant_id"`
}
// PersonalKnowledgeQueryRequest defines model for PersonalKnowledgeQueryRequest.
type PersonalKnowledgeQueryRequest struct {
AgentActorId AgentId `json:"agent_actor_id"`
AgentId AgentId `json:"agent_id"`
// Alternates Synonyms and translations searched beside the query; each ranks keywords separately.
Alternates *[]string `json:"alternates,omitempty"`
// AsOf Optional day a changing value or state is asked for, such as today for the current one. Among similarly relevant results, those recorded shortly before that day rank a little higher; later ones remain eligible.
AsOf *openapi_types.Date `json:"as_of,omitempty"`
// DateFrom Optional inclusive start of when the asked records were made, the source's local date. It ranks sources and facts recorded in that period higher and excludes none.
DateFrom *openapi_types.Date `json:"date_from,omitempty"`
// DateTo Optional inclusive end of when the asked records were made; see date_from.
DateTo *openapi_types.Date `json:"date_to,omitempty"`
// EventFrom Optional inclusive start of the time the asked event happened. It ranks Session facts in that period higher and never filters by source date, so later mentions of earlier events remain eligible.
EventFrom *openapi_types.Date `json:"event_from,omitempty"`
// EventTo Optional inclusive end of the asked event time; see event_from.
EventTo *openapi_types.Date `json:"event_to,omitempty"`
// Page Result page of the same search; a response with nextPage has more.
Page *int `json:"page,omitempty"`
Query string `json:"query"`
// Scope Search only one list and give it the whole result size; omitted returns both lists.
Scope *PersonalKnowledgeQueryRequestScope `json:"scope,omitempty"`
TenantId AgentId `json:"tenant_id"`
UserArtifactOwnerActorId AgentId `json:"user_artifact_owner_actor_id"`
}
// PersonalKnowledgeQueryRequestScope Search only one list and give it the whole result size; omitted returns both lists.
type PersonalKnowledgeQueryRequestScope string
// PersonalKnowledgeQueryResponse One search returns two separately ranked lists, so long derived reports never crowd out original evidence. Items are original sources and summaries are derived Wiki pages and Daily/Weekly reports. The top entries of each list carry content around their best match; the rest carry a snippet and sections to read.
type PersonalKnowledgeQueryResponse struct {
// Facts Session facts extracted from conversations, recordings, Pocket Notes and personal mail that matched the query, ranked separately from the lists so they never displace them. Each names the Raw chunk that states it; that chunk remains the original evidence.
Facts *[]PersonalKnowledgeSessionFact `json:"facts,omitempty"`
Gaps []PersonalKnowledgeEvidenceGap `json:"gaps"`
IndexedAt *time.Time `json:"indexedAt"`
// Items Original sources: room, recording, mail, my_pages, pocket_note and profile.
Items []PersonalKnowledgeSearchEntry `json:"items"`
// NextPage Present when the same search has more entries on that page.
NextPage *int `json:"nextPage,omitempty"`
Page int `json:"page"`
RequestId *string `json:"requestId,omitempty"`
SchemaVersion int `json:"schemaVersion"`
Scope *PersonalKnowledgeQueryResponseScope `json:"scope,omitempty"`
// Status grounded has entries and no gaps, partial has entries and at least one gap, and empty has no entries.
Status PersonalKnowledgeQueryResponseStatus `json:"status"`
// Summaries Derived Wiki pages and Daily/Weekly reports.
Summaries []PersonalKnowledgeSearchEntry `json:"summaries"`
}
// PersonalKnowledgeQueryResponseScope defines model for PersonalKnowledgeQueryResponse.Scope.
type PersonalKnowledgeQueryResponseScope string
// PersonalKnowledgeQueryResponseStatus grounded has entries and no gaps, partial has entries and at least one gap, and empty has no entries.
type PersonalKnowledgeQueryResponseStatus string
// PersonalKnowledgeSearchEntry defines model for PersonalKnowledgeSearchEntry.
type PersonalKnowledgeSearchEntry struct {
// CiteAs S<n> for items, W<n> for summaries.
CiteAs string `json:"citeAs"`
// Content Text around the entry's best match, for the top entries of a list.
Content *string `json:"content,omitempty"`
// EvidenceId Opaque Raw source identifier returned by candidate query and passed unchanged to evidence read. It names a source ID and immutable content hash and grants no access outside the authenticated Tenant and represented Human scope.
EvidenceId PersonalKnowledgeEvidenceId `json:"evidenceId"`
Kind PersonalKnowledgeSearchEntryKind `json:"kind"`
// RoomId The Room a room entry's conversation belongs to.
RoomId *string `json:"roomId,omitempty"`
// Sections Matched and neighboring sections to read next.
Sections []struct {
SectionId string `json:"sectionId"`
Title string `json:"title"`
} `json:"sections"`
// Snippet A short window around the best match, for entries without content.
Snippet *string `json:"snippet,omitempty"`
TimeHint *string `json:"timeHint,omitempty"`
Title string `json:"title"`
}
// PersonalKnowledgeSearchEntryKind defines model for PersonalKnowledgeSearchEntry.Kind.
type PersonalKnowledgeSearchEntryKind string
// PersonalKnowledgeSectionDirectoryEntry defines model for PersonalKnowledgeSectionDirectoryEntry.
type PersonalKnowledgeSectionDirectoryEntry struct {
// Id Stable section identifier within this evidence item.
Id string `json:"id"`
Level int `json:"level"`
// Purpose Optional directory guidance, never evidence content.
Purpose *string `json:"purpose,omitempty"`
Title string `json:"title"`
}
// PersonalKnowledgeSectionReadRequest defines model for PersonalKnowledgeSectionReadRequest.
type PersonalKnowledgeSectionReadRequest struct {
// Offset Character offset used to continue a truncated section.
Offset *int `json:"offset,omitempty"`
SectionId string `json:"section_id"`
}
// PersonalKnowledgeSessionFact A Session fact in Hindsight's stored shape: what | When | Involving | why as one text, world or assistant, plain entities and the event time.
type PersonalKnowledgeSessionFact struct {
Entities *[]string `json:"entities,omitempty"`
// EvidenceId Opaque Raw source identifier returned by candidate query and passed unchanged to evidence read. It names a source ID and immutable content hash and grants no access outside the authenticated Tenant and represented Human scope.
EvidenceId PersonalKnowledgeEvidenceId `json:"evidenceId"`
FactType PersonalKnowledgeSessionFactFactType `json:"factType"`
MentionedAt time.Time `json:"mentionedAt"`
OccurredEnd *openapi_types.Date `json:"occurredEnd,omitempty"`
OccurredStart *openapi_types.Date `json:"occurredStart,omitempty"`
// SectionId Raw section to read for the fact's original wording.
SectionId string `json:"sectionId"`
Text string `json:"text"`
}
// PersonalKnowledgeSessionFactFactType defines model for PersonalKnowledgeSessionFact.FactType.
type PersonalKnowledgeSessionFactFactType string
// PocketNoteTrackingRefreshRequest defines model for PocketNoteTrackingRefreshRequest.
type PocketNoteTrackingRefreshRequest struct {
// Date The Pocket Note day in TeamHub's local time zone.
Date openapi_types.Date `json:"date"`
OwnerActorId AgentId `json:"owner_actor_id"`
TenantId AgentId `json:"tenant_id"`
}
// ProactiveEventJudgeRequest defines model for ProactiveEventJudgeRequest.
type ProactiveEventJudgeRequest struct {
// OpenItems The Human's open Tracking Items.
OpenItems []struct {
Content string `json:"content"`
DueAt *time.Time `json:"dueAt,omitempty"`
} `json:"openItems"`
// Specific The Human's learned specific rules.
Specific []string `json:"specific"`
}
// ProactiveEventJudgement The rules Another Me applies when it is woken with the event.
type ProactiveEventJudgement struct {
Instructions string `json:"instructions"`
}
// ProfileMemorySyncRequest defines model for ProfileMemorySyncRequest.
type ProfileMemorySyncRequest struct {
OwnerActorId AgentId `json:"owner_actor_id"`
TenantId AgentId `json:"tenant_id"`
}
// PublishedWikiGraphUpdateRequest defines model for PublishedWikiGraphUpdateRequest.
type PublishedWikiGraphUpdateRequest struct {
OwnerActorId AgentId `json:"owner_actor_id"`
TenantId AgentId `json:"tenant_id"`
WikiRevisionId AgentId `json:"wiki_revision_id"`
}
// RawChunkSourceFailures defines model for RawChunkSourceFailures.
type RawChunkSourceFailures struct {
ByOwner []struct {
Count int `json:"count"`
OwnerId string `json:"owner_id"`
TenantId string `json:"tenant_id"`
} `json:"by_owner"`
Configured bool `json:"configured"`
Items []struct {
AgentId string `json:"agent_id"`
LastIndexError *string `json:"last_index_error"`
OriginKind string `json:"origin_kind"`
OwnerId string `json:"owner_id"`
SourceKind string `json:"source_kind"`
TenantId string `json:"tenant_id"`
Title string `json:"title"`
UpdatedAt time.Time `json:"updated_at"`
} `json:"items"`
Total int `json:"total"`
}
// ReplaceDocumentBlocksSemanticOperation defines model for ReplaceDocumentBlocksSemanticOperation.
type ReplaceDocumentBlocksSemanticOperation struct {
Blocks []map[string]interface{} `json:"blocks"`
Kind string `json:"kind"`
StableBlockIds []DocumentInternalId `json:"stable_block_ids"`
}
// ReplaceDocumentBodyBlocksSemanticOperation defines model for ReplaceDocumentBodyBlocksSemanticOperation.
type ReplaceDocumentBodyBlocksSemanticOperation struct {
Blocks DocumentSemanticBlocks `json:"blocks"`
Kind string `json:"kind"`
}
// ReplaceDocumentBodyHTMLSemanticOperation defines model for ReplaceDocumentBodyHTMLSemanticOperation.
type ReplaceDocumentBodyHTMLSemanticOperation struct {
Html string `json:"html"`
Kind string `json:"kind"`
}
// ReplaceDocumentCommentTextSemanticOperation defines model for ReplaceDocumentCommentTextSemanticOperation.
type ReplaceDocumentCommentTextSemanticOperation struct {
Kind string `json:"kind"`
Replacement string `json:"replacement"`
// ThreadId Opaque, case-sensitive TeamHub identifier.
ThreadId DocumentInternalId `json:"thread_id"`
}
// RestoreDocumentChange Replaces the body with a History Revision's state.
type RestoreDocumentChange struct {
Kind string `json:"kind"`
TargetStateBytes DocumentStateBytes `json:"target_state_bytes"`
TargetStateBytesSha256 Sha256 `json:"target_state_bytes_sha256"`
}
// SchemaVersion defines model for SchemaVersion.
type SchemaVersion = int
// SemanticDocumentChange defines model for SemanticDocumentChange.
type SemanticDocumentChange struct {
AllowedDocumentAssetIds []DocumentInternalId `json:"allowed_document_asset_ids"`
CurrentTitle string `json:"current_title"`
Kind string `json:"kind"`
// Operations Targeted operations are limited to 256 KiB encoded JSON. A single replace_body_html or replace_body_blocks operation permits up to 1 MiB body and 8 MiB encoded JSON; it cannot be combined with other operations.
Operations DocumentSemanticOperations `json:"operations"`
SchemaVersion string `json:"schema_version"`
}
// ServiceTokenErrorResponse defines model for ServiceTokenErrorResponse.
type ServiceTokenErrorResponse struct {
Error struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
// SessionFactFailure defines model for SessionFactFailure.
type SessionFactFailure struct {
AgentId string `json:"agent_id"`
// FailedWindows Windows not extracted in the latest sync, or null if the sync aborted before a complete count.
FailedWindows *int `json:"failed_windows"`
// LastErrorKind Last structured ModelCallError kind, invalid_output for omitted windows, or unknown; never inferred from error prose.
LastErrorKind string `json:"last_error_kind"`
LastFailureAt time.Time `json:"last_failure_at"`
}
// SessionFactFailures Latest failed Session fact sync per Agent observed by this process. A successful sync clears only that Agent. Resets on restart; zero does not establish that all persisted sources have facts.
type SessionFactFailures struct {
Configured bool `json:"configured"`
Items []SessionFactFailure `json:"items"`
ObservedSince time.Time `json:"observed_since"`
Scope string `json:"scope"`
// Total Number of Agents whose latest observed sync failed, before the list limit.
Total int `json:"total"`
}
// SetDocumentTitleSemanticOperation defines model for SetDocumentTitleSemanticOperation.
type SetDocumentTitleSemanticOperation struct {
Kind string `json:"kind"`
Title string `json:"title"`
}
// Sha256 defines model for Sha256.
type Sha256 = string
// StateHashVersion defines model for StateHashVersion.
type StateHashVersion = int
// StateVector defines model for StateVector.
type StateVector = string
// TeamHubId Opaque, case-sensitive TeamHub identifier.
type TeamHubId = string
// Timestamp UTC timestamp in RFC 3339 format with an explicit offset.
type Timestamp = time.Time
// UpdateDocumentBlockSemanticOperation defines model for UpdateDocumentBlockSemanticOperation.
type UpdateDocumentBlockSemanticOperation struct {
Block map[string]interface{} `json:"block"`
Kind string `json:"kind"`
// StableBlockId Opaque, case-sensitive TeamHub identifier.
StableBlockId DocumentInternalId `json:"stable_block_id"`
}
// VoiceWorkersReconcileResult defines model for VoiceWorkersReconcileResult.
type VoiceWorkersReconcileResult struct {
// Ready Every worker the effective keys require is ready to take a job.
Ready bool `json:"ready"`
}
// WikiRefreshBasePage defines model for WikiRefreshBasePage.
type WikiRefreshBasePage struct {
MarkdownContent []byte `json:"markdown_content"`
MarkdownSha256 string `json:"markdown_sha256"`
PageKey string `json:"page_key"`
}
// WikiRefreshCandidateErrorResponse defines model for WikiRefreshCandidateErrorResponse.
type WikiRefreshCandidateErrorResponse struct {
Error struct {
Code string `json:"code"`
Disposition WikiRefreshCandidateErrorResponseErrorDisposition `json:"disposition"`
Message string `json:"message"`
} `json:"error"`
}
// WikiRefreshCandidateErrorResponseErrorDisposition defines model for WikiRefreshCandidateErrorResponse.Error.Disposition.
type WikiRefreshCandidateErrorResponseErrorDisposition string
// WikiRefreshCandidateGenerationRequest `initialize` carries no base pages and at least one added source; `update` carries the current Wiki pages as base pages. `changes` lists 1 to 1,000 sources in total across added, modified, and removed.
type WikiRefreshCandidateGenerationRequest struct {
BasePages []WikiRefreshBasePage `json:"base_pages"`
Changes WikiRefreshSourceChanges `json:"changes"`
// GeneratorAgentActorId Opaque, case-sensitive TeamHub identifier.
GeneratorAgentActorId TeamHubId `json:"generator_agent_actor_id"`
Mode WikiRefreshCandidateGenerationRequestMode `json:"mode"`
// TenantId Opaque, case-sensitive TeamHub identifier.
TenantId TeamHubId `json:"tenant_id"`
// WikiRefreshId Opaque, case-sensitive TeamHub identifier.
WikiRefreshId TeamHubId `json:"wiki_refresh_id"`
}
// WikiRefreshCandidateGenerationRequestMode defines model for WikiRefreshCandidateGenerationRequest.Mode.
type WikiRefreshCandidateGenerationRequestMode string
// WikiRefreshCandidateGenerationResult defines model for WikiRefreshCandidateGenerationResult.
type WikiRefreshCandidateGenerationResult struct {
// DeferredSources Added or modified sources left unwritten only because the generation's time or run budget ran out before their tasks started. TeamHub keeps them pending like unsettled sources, but they spend none of their tries.
DeferredSources []WikiRefreshSourceReference `json:"deferred_sources"`
Pages []WikiRefreshCandidatePage `json:"pages"`
// UnsettledSources Added or modified sources whose pages this candidate does not fully hold because a model task over them failed: it timed out, stayed too large or ran out of steps, or validation dropped the pages written from them. TeamHub publishes the candidate but keeps these sources pending, so a later refresh writes them again, up to a bounded number of tries.
UnsettledSources []WikiRefreshSourceReference `json:"unsettled_sources"`
// WikiRefreshId Opaque, case-sensitive TeamHub identifier.
WikiRefreshId TeamHubId `json:"wiki_refresh_id"`
}
// WikiRefreshCandidatePage defines model for WikiRefreshCandidatePage.
type WikiRefreshCandidatePage struct {
MarkdownContent []byte `json:"markdown_content"`
MarkdownSha256 string `json:"markdown_sha256"`
PageKey string `json:"page_key"`
}
// WikiRefreshFrozenSource defines model for WikiRefreshFrozenSource.
type WikiRefreshFrozenSource struct {
// Content A Document source's Markdown as TeamHub normalized it once into its Document text, or a Session source's indexed Raw text.
Content []byte `json:"content"`
// DocumentId Opaque, case-sensitive TeamHub identifier.
DocumentId TeamHubId `json:"document_id"`
// DocumentVersionId Opaque, case-sensitive TeamHub identifier.
DocumentVersionId TeamHubId `json:"document_version_id"`
// Filename Stored filename as TeamHub sends it: control characters become spaces and a longer name is shortened to at most 255 UTF-8 bytes, keeping its extension.
Filename string `json:"filename"`
// Session Present when the source is a Room or recording Session of the Memory index rather than a Document. Its document_id is then the index source ID and its document_version_id the SHA-256 of the indexed text.
Session *WikiRefreshSessionSource `json:"session,omitempty"`
Sha256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
}
// WikiRefreshSessionSource Present when the source is a Room or recording Session of the Memory index rather than a Document. Its document_id is then the index source ID and its document_version_id the SHA-256 of the indexed text.
type WikiRefreshSessionSource struct {
// Date The Session's business date; it names the dated Session page.
Date openapi_types.Date `json:"date"`
Kind WikiRefreshSessionSourceKind `json:"kind"`
// RepresentedHumanActorId Opaque, case-sensitive TeamHub identifier.
RepresentedHumanActorId TeamHubId `json:"represented_human_actor_id"`
RepresentedHumanDisplayName string `json:"represented_human_display_name"`
// RoomId Opaque, case-sensitive TeamHub identifier.
RoomId TeamHubId `json:"room_id"`
// SessionId Opaque, case-sensitive TeamHub identifier.
SessionId TeamHubId `json:"session_id"`
// TranscriptDocumentId Opaque, case-sensitive TeamHub identifier.
TranscriptDocumentId *TeamHubId `json:"transcript_document_id,omitempty"`
// TranscriptDocumentVersionId Opaque, case-sensitive TeamHub identifier.
TranscriptDocumentVersionId *TeamHubId `json:"transcript_document_version_id,omitempty"`
}
// WikiRefreshSessionSourceKind defines model for WikiRefreshSessionSource.Kind.
type WikiRefreshSessionSourceKind string
// WikiRefreshSourceChanges defines model for WikiRefreshSourceChanges.
type WikiRefreshSourceChanges struct {
Added []WikiRefreshFrozenSource `json:"added"`
Modified []WikiRefreshFrozenSource `json:"modified"`
Removed []WikiRefreshSourceReference `json:"removed"`
}
// WikiRefreshSourceReference defines model for WikiRefreshSourceReference.
type WikiRefreshSourceReference struct {
// DocumentId Opaque, case-sensitive TeamHub identifier.
DocumentId TeamHubId `json:"document_id"`
// DocumentVersionId Opaque, case-sensitive TeamHub identifier.
DocumentVersionId TeamHubId `json:"document_version_id"`
// Filename Stored filename as TeamHub sends it: control characters become spaces and a longer name is shortened to at most 255 UTF-8 bytes, keeping its extension.
Filename string `json:"filename"`
}
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type ComputerId = Id
// DocumentId Opaque, case-sensitive TeamHub identifier.
type DocumentId = DocumentInternalId
// ManagedAgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type ManagedAgentId = Id
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type OwnerActorId = Id
// RunId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type RunId = Id
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type TenantId = Id
// BadGateway defines model for BadGateway.
type BadGateway = ErrorResponse
// BadRequest defines model for BadRequest.
type BadRequest = ErrorResponse
// Conflict defines model for Conflict.
type Conflict = ErrorResponse
// MemoryError defines model for MemoryError.
type MemoryError = MemoryErrorResponse
// NotFound defines model for NotFound.
type NotFound = ErrorResponse
// ServiceUnavailable defines model for ServiceUnavailable.
type ServiceUnavailable = ErrorResponse
// Unauthenticated defines model for Unauthenticated.
type Unauthenticated = ErrorResponse
// WikiOperationRetryable defines model for WikiOperationRetryable.
type WikiOperationRetryable = WikiRefreshCandidateErrorResponse
// WikiRefreshBadRequest defines model for WikiRefreshBadRequest.
type WikiRefreshBadRequest = WikiRefreshCandidateErrorResponse
// agentManagementBearerContextKey is the context key for agentManagementBearer security scheme
type agentManagementBearerContextKey string
// llmWikiBearerContextKey is the context key for llmWikiBearer security scheme
type llmWikiBearerContextKey string
// mcpServerBearerContextKey is the context key for mcpServerBearer security scheme
type mcpServerBearerContextKey string
// memoryBearerContextKey is the context key for memoryBearer security scheme
type memoryBearerContextKey string
// teamHubToRuntimeBearerContextKey is the context key for teamHubToRuntimeBearer security scheme
type teamHubToRuntimeBearerContextKey string
// ListMemoryEntriesParams defines parameters for ListMemoryEntries.
type ListMemoryEntriesParams struct {
TenantId AgentId `form:"tenant_id" json:"tenant_id"`
OwnerActorId AgentId `form:"owner_actor_id" json:"owner_actor_id"`
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
// GetMemoryEntryParams defines parameters for GetMemoryEntry.
type GetMemoryEntryParams struct {
TenantId AgentId `form:"tenant_id" json:"tenant_id"`
OwnerActorId AgentId `form:"owner_actor_id" json:"owner_actor_id"`
}
// GetMemoryRebuildParams defines parameters for GetMemoryRebuild.
type GetMemoryRebuildParams struct {
MemorySubjectKey *AgentId `form:"memory_subject_key,omitempty" json:"memory_subject_key,omitempty"`
// OwnerActorId Human actor; must resolve to exactly one Another Me subject.
OwnerActorId *AgentId `form:"owner_actor_id,omitempty" json:"owner_actor_id,omitempty"`
}
// NormalizeDocumentParams defines parameters for NormalizeDocument.
type NormalizeDocumentParams struct {
// XSourceMediaType Canonical media type recorded for the immutable source Version.
XSourceMediaType string `json:"X-Source-Media-Type"`
// XSourceFilename Original filename of the source Version as percent-encoded UTF-8, at most 255 characters once decoded. When the media type is generic, such as application/octet-stream, the extension picks the extractor. A missing filename, malformed encoding, or control characters return 400.
XSourceFilename string `json:"X-Source-Filename"`
// XSourceRepresentationFormat Representation format recorded for the source Version. It picks the extractor when neither the media type nor the filename does.
XSourceRepresentationFormat *string `json:"X-Source-Representation-Format,omitempty"`
}
// ExportDocumentJSONRequestBody defines body for ExportDocument for application/json ContentType.
type ExportDocumentJSONRequestBody = ExportDocumentRequest
// ImportDocumentJSONRequestBody defines body for ImportDocument for application/json ContentType.
type ImportDocumentJSONRequestBody = ImportDocumentRequest
// ApplyDocumentChangeJSONRequestBody defines body for ApplyDocumentChange for application/json ContentType.
type ApplyDocumentChangeJSONRequestBody = ApplyDocumentChangeRequest
// DisconnectDocumentConnectionsJSONRequestBody defines body for DisconnectDocumentConnections for application/json ContentType.
type DisconnectDocumentConnectionsJSONRequestBody = DisconnectDocumentConnectionsRequest
// RetryMemoryFailuresJSONRequestBody defines body for RetryMemoryFailures for application/json ContentType.
type RetryMemoryFailuresJSONRequestBody = MemoryFailureRetryRequest
// GetPersonalKnowledgeGraphVisualizationJSONRequestBody defines body for GetPersonalKnowledgeGraphVisualization for application/json ContentType.
type GetPersonalKnowledgeGraphVisualizationJSONRequestBody = PersonalKnowledgeGraphVisualizationRequest
// ReadPersonalKnowledgeEvidenceJSONRequestBody defines body for ReadPersonalKnowledgeEvidence for application/json ContentType.
type ReadPersonalKnowledgeEvidenceJSONRequestBody = PersonalKnowledgeEvidenceReadRequest
// RefreshPocketNoteTrackingItemsJSONRequestBody defines body for RefreshPocketNoteTrackingItems for application/json ContentType.
type RefreshPocketNoteTrackingItemsJSONRequestBody = PocketNoteTrackingRefreshRequest
// SyncProfileMemoryJSONRequestBody defines body for SyncProfileMemory for application/json ContentType.
type SyncProfileMemoryJSONRequestBody = ProfileMemorySyncRequest
// UpdateGraphForPublishedWikiJSONRequestBody defines body for UpdateGraphForPublishedWiki for application/json ContentType.
type UpdateGraphForPublishedWikiJSONRequestBody = PublishedWikiGraphUpdateRequest
// QueryPersonalKnowledgeJSONRequestBody defines body for QueryPersonalKnowledge for application/json ContentType.
type QueryPersonalKnowledgeJSONRequestBody = PersonalKnowledgeQueryRequest
// StartMemoryRebuildJSONRequestBody defines body for StartMemoryRebuild for application/json ContentType.
type StartMemoryRebuildJSONRequestBody = MemoryRebuildRequest
// GenerateWikiRefreshCandidatesJSONRequestBody defines body for GenerateWikiRefreshCandidates for application/json ContentType.
type GenerateWikiRefreshCandidatesJSONRequestBody = WikiRefreshCandidateGenerationRequest
// ReadAgentDebugContextHistoryJSONRequestBody defines body for ReadAgentDebugContextHistory for application/json ContentType.
type ReadAgentDebugContextHistoryJSONRequestBody = AgentDebugHistoryRequest
// CancelAgentRunJSONRequestBody defines body for CancelAgentRun for application/json ContentType.
type CancelAgentRunJSONRequestBody = CancelAgentRunRequest
// CallLocalComputerToolJSONRequestBody defines body for CallLocalComputerTool for application/json ContentType.
type CallLocalComputerToolJSONRequestBody = LocalComputerToolCall
// CallModelJSONRequestBody defines body for CallModel for application/json ContentType.
type CallModelJSONRequestBody = ModelCallRequest
// JudgeProactiveEventJSONRequestBody defines body for JudgeProactiveEvent for application/json ContentType.
type JudgeProactiveEventJSONRequestBody = ProactiveEventJudgeRequest
// ConfigureLocalComputerBrowserConnectionJSONRequestBody defines body for ConfigureLocalComputerBrowserConnection for application/json ContentType.
type ConfigureLocalComputerBrowserConnectionJSONRequestBody = BrowserConnectionConfigureCommand
// ActOnLocalComputerModelsJSONRequestBody defines body for ActOnLocalComputerModels for application/json ContentType.
type ActOnLocalComputerModelsJSONRequestBody = LocalModelActionCommand
// ApplyLocalComputerModelSourceJSONRequestBody defines body for ApplyLocalComputerModelSource for application/json ContentType.
type ApplyLocalComputerModelSourceJSONRequestBody = ModelSourceApplyCommand
// ListLocalComputerByokModelsJSONRequestBody defines body for ListLocalComputerByokModels for application/json ContentType.
type ListLocalComputerByokModelsJSONRequestBody = ByokEndpointInput
// TestLocalComputerByokJSONRequestBody defines body for TestLocalComputerByok for application/json ContentType.
type TestLocalComputerByokJSONRequestBody = ByokTestRequest
// ActOnLocalComputerPermissionJSONRequestBody defines body for ActOnLocalComputerPermission for application/json ContentType.
type ActOnLocalComputerPermissionJSONRequestBody = ComputerPermissionAction
// ScanLocalComputerSkillsJSONRequestBody defines body for ScanLocalComputerSkills for application/json ContentType.
type ScanLocalComputerSkillsJSONRequestBody = LocalSkillScanCommandRequest
// AsAgentRuntimeContextRef0 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef0
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef0() (AgentRuntimeContextRef0, error) {
var body AgentRuntimeContextRef0
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef0 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef0
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef0(v AgentRuntimeContextRef0) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef0 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef0
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef0(v AgentRuntimeContextRef0) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeContextRef1 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef1
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef1() (AgentRuntimeContextRef1, error) {
var body AgentRuntimeContextRef1
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef1 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef1
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef1(v AgentRuntimeContextRef1) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef1 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef1
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef1(v AgentRuntimeContextRef1) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeContextRef2 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef2
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef2() (AgentRuntimeContextRef2, error) {
var body AgentRuntimeContextRef2
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef2 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef2
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef2(v AgentRuntimeContextRef2) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef2 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef2
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef2(v AgentRuntimeContextRef2) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t AgentRuntimeContextRef) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *AgentRuntimeContextRef) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsAppliedDocumentChangeResult returns the union data inside the ApplyDocumentChangeResult as a AppliedDocumentChangeResult
func (t ApplyDocumentChangeResult) AsAppliedDocumentChangeResult() (AppliedDocumentChangeResult, error) {
var body AppliedDocumentChangeResult
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAppliedDocumentChangeResult overwrites any union data inside the ApplyDocumentChangeResult as the provided AppliedDocumentChangeResult
func (t *ApplyDocumentChangeResult) FromAppliedDocumentChangeResult(v AppliedDocumentChangeResult) error {
v.Status = "applied"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAppliedDocumentChangeResult performs a merge with any union data inside the ApplyDocumentChangeResult, using the provided AppliedDocumentChangeResult
func (t *ApplyDocumentChangeResult) MergeAppliedDocumentChangeResult(v AppliedDocumentChangeResult) error {
v.Status = "applied"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsConflictedDocumentChangeResult returns the union data inside the ApplyDocumentChangeResult as a ConflictedDocumentChangeResult
func (t ApplyDocumentChangeResult) AsConflictedDocumentChangeResult() (ConflictedDocumentChangeResult, error) {
var body ConflictedDocumentChangeResult
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromConflictedDocumentChangeResult overwrites any union data inside the ApplyDocumentChangeResult as the provided ConflictedDocumentChangeResult
func (t *ApplyDocumentChangeResult) FromConflictedDocumentChangeResult(v ConflictedDocumentChangeResult) error {
v.Status = "conflicted"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeConflictedDocumentChangeResult performs a merge with any union data inside the ApplyDocumentChangeResult, using the provided ConflictedDocumentChangeResult
func (t *ApplyDocumentChangeResult) MergeConflictedDocumentChangeResult(v ConflictedDocumentChangeResult) error {
v.Status = "conflicted"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t ApplyDocumentChangeResult) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"status"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t ApplyDocumentChangeResult) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "applied":
return t.AsAppliedDocumentChangeResult()
case "conflicted":
return t.AsConflictedDocumentChangeResult()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t ApplyDocumentChangeResult) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *ApplyDocumentChangeResult) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsSemanticDocumentChange returns the union data inside the DocumentChange as a SemanticDocumentChange
func (t DocumentChange) AsSemanticDocumentChange() (SemanticDocumentChange, error) {
var body SemanticDocumentChange
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromSemanticDocumentChange overwrites any union data inside the DocumentChange as the provided SemanticDocumentChange
func (t *DocumentChange) FromSemanticDocumentChange(v SemanticDocumentChange) error {
v.Kind = "semantic"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeSemanticDocumentChange performs a merge with any union data inside the DocumentChange, using the provided SemanticDocumentChange
func (t *DocumentChange) MergeSemanticDocumentChange(v SemanticDocumentChange) error {
v.Kind = "semantic"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsRestoreDocumentChange returns the union data inside the DocumentChange as a RestoreDocumentChange
func (t DocumentChange) AsRestoreDocumentChange() (RestoreDocumentChange, error) {
var body RestoreDocumentChange
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromRestoreDocumentChange overwrites any union data inside the DocumentChange as the provided RestoreDocumentChange
func (t *DocumentChange) FromRestoreDocumentChange(v RestoreDocumentChange) error {
v.Kind = "restore"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeRestoreDocumentChange performs a merge with any union data inside the DocumentChange, using the provided RestoreDocumentChange
func (t *DocumentChange) MergeRestoreDocumentChange(v RestoreDocumentChange) error {
v.Kind = "restore"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsCommentAnchorDocumentChange returns the union data inside the DocumentChange as a CommentAnchorDocumentChange
func (t DocumentChange) AsCommentAnchorDocumentChange() (CommentAnchorDocumentChange, error) {
var body CommentAnchorDocumentChange
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromCommentAnchorDocumentChange overwrites any union data inside the DocumentChange as the provided CommentAnchorDocumentChange
func (t *DocumentChange) FromCommentAnchorDocumentChange(v CommentAnchorDocumentChange) error {
v.Kind = "comment_anchor"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeCommentAnchorDocumentChange performs a merge with any union data inside the DocumentChange, using the provided CommentAnchorDocumentChange
func (t *DocumentChange) MergeCommentAnchorDocumentChange(v CommentAnchorDocumentChange) error {
v.Kind = "comment_anchor"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t DocumentChange) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"kind"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t DocumentChange) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "comment_anchor":
return t.AsCommentAnchorDocumentChange()
case "restore":
return t.AsRestoreDocumentChange()
case "semantic":
return t.AsSemanticDocumentChange()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t DocumentChange) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *DocumentChange) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsEditNativeDocumentSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a EditNativeDocumentSemanticOperation
func (t DocumentSemanticOperations_Item) AsEditNativeDocumentSemanticOperation() (EditNativeDocumentSemanticOperation, error) {
var body EditNativeDocumentSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromEditNativeDocumentSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided EditNativeDocumentSemanticOperation
func (t *DocumentSemanticOperations_Item) FromEditNativeDocumentSemanticOperation(v EditNativeDocumentSemanticOperation) error {
v.Kind = "edit_document"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeEditNativeDocumentSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided EditNativeDocumentSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeEditNativeDocumentSemanticOperation(v EditNativeDocumentSemanticOperation) error {
v.Kind = "edit_document"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsReplaceDocumentBodyBlocksSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a ReplaceDocumentBodyBlocksSemanticOperation
func (t DocumentSemanticOperations_Item) AsReplaceDocumentBodyBlocksSemanticOperation() (ReplaceDocumentBodyBlocksSemanticOperation, error) {
var body ReplaceDocumentBodyBlocksSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromReplaceDocumentBodyBlocksSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided ReplaceDocumentBodyBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) FromReplaceDocumentBodyBlocksSemanticOperation(v ReplaceDocumentBodyBlocksSemanticOperation) error {
v.Kind = "replace_body_blocks"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeReplaceDocumentBodyBlocksSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided ReplaceDocumentBodyBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeReplaceDocumentBodyBlocksSemanticOperation(v ReplaceDocumentBodyBlocksSemanticOperation) error {
v.Kind = "replace_body_blocks"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsReplaceDocumentBodyHTMLSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a ReplaceDocumentBodyHTMLSemanticOperation
func (t DocumentSemanticOperations_Item) AsReplaceDocumentBodyHTMLSemanticOperation() (ReplaceDocumentBodyHTMLSemanticOperation, error) {
var body ReplaceDocumentBodyHTMLSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromReplaceDocumentBodyHTMLSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided ReplaceDocumentBodyHTMLSemanticOperation
func (t *DocumentSemanticOperations_Item) FromReplaceDocumentBodyHTMLSemanticOperation(v ReplaceDocumentBodyHTMLSemanticOperation) error {
v.Kind = "replace_body_html"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeReplaceDocumentBodyHTMLSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided ReplaceDocumentBodyHTMLSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeReplaceDocumentBodyHTMLSemanticOperation(v ReplaceDocumentBodyHTMLSemanticOperation) error {
v.Kind = "replace_body_html"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsSetDocumentTitleSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a SetDocumentTitleSemanticOperation
func (t DocumentSemanticOperations_Item) AsSetDocumentTitleSemanticOperation() (SetDocumentTitleSemanticOperation, error) {
var body SetDocumentTitleSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromSetDocumentTitleSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided SetDocumentTitleSemanticOperation
func (t *DocumentSemanticOperations_Item) FromSetDocumentTitleSemanticOperation(v SetDocumentTitleSemanticOperation) error {
v.Kind = "set_title"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeSetDocumentTitleSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided SetDocumentTitleSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeSetDocumentTitleSemanticOperation(v SetDocumentTitleSemanticOperation) error {
v.Kind = "set_title"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsInsertDocumentBlocksSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a InsertDocumentBlocksSemanticOperation
func (t DocumentSemanticOperations_Item) AsInsertDocumentBlocksSemanticOperation() (InsertDocumentBlocksSemanticOperation, error) {
var body InsertDocumentBlocksSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromInsertDocumentBlocksSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided InsertDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) FromInsertDocumentBlocksSemanticOperation(v InsertDocumentBlocksSemanticOperation) error {
v.Kind = "insert_blocks"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeInsertDocumentBlocksSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided InsertDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeInsertDocumentBlocksSemanticOperation(v InsertDocumentBlocksSemanticOperation) error {
v.Kind = "insert_blocks"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAppendDocumentBlocksSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a AppendDocumentBlocksSemanticOperation
func (t DocumentSemanticOperations_Item) AsAppendDocumentBlocksSemanticOperation() (AppendDocumentBlocksSemanticOperation, error) {
var body AppendDocumentBlocksSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAppendDocumentBlocksSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided AppendDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) FromAppendDocumentBlocksSemanticOperation(v AppendDocumentBlocksSemanticOperation) error {
v.Kind = "append_blocks"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAppendDocumentBlocksSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided AppendDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeAppendDocumentBlocksSemanticOperation(v AppendDocumentBlocksSemanticOperation) error {
v.Kind = "append_blocks"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsReplaceDocumentBlocksSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a ReplaceDocumentBlocksSemanticOperation
func (t DocumentSemanticOperations_Item) AsReplaceDocumentBlocksSemanticOperation() (ReplaceDocumentBlocksSemanticOperation, error) {
var body ReplaceDocumentBlocksSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromReplaceDocumentBlocksSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided ReplaceDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) FromReplaceDocumentBlocksSemanticOperation(v ReplaceDocumentBlocksSemanticOperation) error {
v.Kind = "replace_blocks"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeReplaceDocumentBlocksSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided ReplaceDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeReplaceDocumentBlocksSemanticOperation(v ReplaceDocumentBlocksSemanticOperation) error {
v.Kind = "replace_blocks"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsUpdateDocumentBlockSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a UpdateDocumentBlockSemanticOperation
func (t DocumentSemanticOperations_Item) AsUpdateDocumentBlockSemanticOperation() (UpdateDocumentBlockSemanticOperation, error) {
var body UpdateDocumentBlockSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromUpdateDocumentBlockSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided UpdateDocumentBlockSemanticOperation
func (t *DocumentSemanticOperations_Item) FromUpdateDocumentBlockSemanticOperation(v UpdateDocumentBlockSemanticOperation) error {
v.Kind = "update_block"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeUpdateDocumentBlockSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided UpdateDocumentBlockSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeUpdateDocumentBlockSemanticOperation(v UpdateDocumentBlockSemanticOperation) error {
v.Kind = "update_block"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsDeleteDocumentBlocksSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a DeleteDocumentBlocksSemanticOperation
func (t DocumentSemanticOperations_Item) AsDeleteDocumentBlocksSemanticOperation() (DeleteDocumentBlocksSemanticOperation, error) {
var body DeleteDocumentBlocksSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromDeleteDocumentBlocksSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided DeleteDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) FromDeleteDocumentBlocksSemanticOperation(v DeleteDocumentBlocksSemanticOperation) error {
v.Kind = "delete_blocks"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeDeleteDocumentBlocksSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided DeleteDocumentBlocksSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeDeleteDocumentBlocksSemanticOperation(v DeleteDocumentBlocksSemanticOperation) error {
v.Kind = "delete_blocks"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsReplaceDocumentCommentTextSemanticOperation returns the union data inside the DocumentSemanticOperations_Item as a ReplaceDocumentCommentTextSemanticOperation
func (t DocumentSemanticOperations_Item) AsReplaceDocumentCommentTextSemanticOperation() (ReplaceDocumentCommentTextSemanticOperation, error) {
var body ReplaceDocumentCommentTextSemanticOperation
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromReplaceDocumentCommentTextSemanticOperation overwrites any union data inside the DocumentSemanticOperations_Item as the provided ReplaceDocumentCommentTextSemanticOperation
func (t *DocumentSemanticOperations_Item) FromReplaceDocumentCommentTextSemanticOperation(v ReplaceDocumentCommentTextSemanticOperation) error {
v.Kind = "replace_comment_text"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeReplaceDocumentCommentTextSemanticOperation performs a merge with any union data inside the DocumentSemanticOperations_Item, using the provided ReplaceDocumentCommentTextSemanticOperation
func (t *DocumentSemanticOperations_Item) MergeReplaceDocumentCommentTextSemanticOperation(v ReplaceDocumentCommentTextSemanticOperation) error {
v.Kind = "replace_comment_text"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t DocumentSemanticOperations_Item) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"kind"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t DocumentSemanticOperations_Item) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "append_blocks":
return t.AsAppendDocumentBlocksSemanticOperation()
case "delete_blocks":
return t.AsDeleteDocumentBlocksSemanticOperation()
case "edit_document":
return t.AsEditNativeDocumentSemanticOperation()
case "insert_blocks":
return t.AsInsertDocumentBlocksSemanticOperation()
case "replace_blocks":
return t.AsReplaceDocumentBlocksSemanticOperation()
case "replace_body_blocks":
return t.AsReplaceDocumentBodyBlocksSemanticOperation()
case "replace_body_html":
return t.AsReplaceDocumentBodyHTMLSemanticOperation()
case "replace_comment_text":
return t.AsReplaceDocumentCommentTextSemanticOperation()
case "set_title":
return t.AsSetDocumentTitleSemanticOperation()
case "update_block":
return t.AsUpdateDocumentBlockSemanticOperation()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t DocumentSemanticOperations_Item) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *DocumentSemanticOperations_Item) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsMemoryFailureSectionNotConfigured returns the union data inside the MemoryFailureSummaryResponse_RawChunkSources as a MemoryFailureSectionNotConfigured
func (t MemoryFailureSummaryResponse_RawChunkSources) AsMemoryFailureSectionNotConfigured() (MemoryFailureSectionNotConfigured, error) {
var body MemoryFailureSectionNotConfigured
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromMemoryFailureSectionNotConfigured overwrites any union data inside the MemoryFailureSummaryResponse_RawChunkSources as the provided MemoryFailureSectionNotConfigured
func (t *MemoryFailureSummaryResponse_RawChunkSources) FromMemoryFailureSectionNotConfigured(v MemoryFailureSectionNotConfigured) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeMemoryFailureSectionNotConfigured performs a merge with any union data inside the MemoryFailureSummaryResponse_RawChunkSources, using the provided MemoryFailureSectionNotConfigured
func (t *MemoryFailureSummaryResponse_RawChunkSources) MergeMemoryFailureSectionNotConfigured(v MemoryFailureSectionNotConfigured) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsMemoryFailureSectionUnavailable returns the union data inside the MemoryFailureSummaryResponse_RawChunkSources as a MemoryFailureSectionUnavailable
func (t MemoryFailureSummaryResponse_RawChunkSources) AsMemoryFailureSectionUnavailable() (MemoryFailureSectionUnavailable, error) {
var body MemoryFailureSectionUnavailable
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromMemoryFailureSectionUnavailable overwrites any union data inside the MemoryFailureSummaryResponse_RawChunkSources as the provided MemoryFailureSectionUnavailable
func (t *MemoryFailureSummaryResponse_RawChunkSources) FromMemoryFailureSectionUnavailable(v MemoryFailureSectionUnavailable) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeMemoryFailureSectionUnavailable performs a merge with any union data inside the MemoryFailureSummaryResponse_RawChunkSources, using the provided MemoryFailureSectionUnavailable
func (t *MemoryFailureSummaryResponse_RawChunkSources) MergeMemoryFailureSectionUnavailable(v MemoryFailureSectionUnavailable) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsRawChunkSourceFailures returns the union data inside the MemoryFailureSummaryResponse_RawChunkSources as a RawChunkSourceFailures
func (t MemoryFailureSummaryResponse_RawChunkSources) AsRawChunkSourceFailures() (RawChunkSourceFailures, error) {
var body RawChunkSourceFailures
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromRawChunkSourceFailures overwrites any union data inside the MemoryFailureSummaryResponse_RawChunkSources as the provided RawChunkSourceFailures
func (t *MemoryFailureSummaryResponse_RawChunkSources) FromRawChunkSourceFailures(v RawChunkSourceFailures) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeRawChunkSourceFailures performs a merge with any union data inside the MemoryFailureSummaryResponse_RawChunkSources, using the provided RawChunkSourceFailures
func (t *MemoryFailureSummaryResponse_RawChunkSources) MergeRawChunkSourceFailures(v RawChunkSourceFailures) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t MemoryFailureSummaryResponse_RawChunkSources) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *MemoryFailureSummaryResponse_RawChunkSources) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsMemoryFailureSectionNotConfigured returns the union data inside the MemoryFailureSummaryResponse_SessionFacts as a MemoryFailureSectionNotConfigured
func (t MemoryFailureSummaryResponse_SessionFacts) AsMemoryFailureSectionNotConfigured() (MemoryFailureSectionNotConfigured, error) {
var body MemoryFailureSectionNotConfigured
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromMemoryFailureSectionNotConfigured overwrites any union data inside the MemoryFailureSummaryResponse_SessionFacts as the provided MemoryFailureSectionNotConfigured
func (t *MemoryFailureSummaryResponse_SessionFacts) FromMemoryFailureSectionNotConfigured(v MemoryFailureSectionNotConfigured) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeMemoryFailureSectionNotConfigured performs a merge with any union data inside the MemoryFailureSummaryResponse_SessionFacts, using the provided MemoryFailureSectionNotConfigured
func (t *MemoryFailureSummaryResponse_SessionFacts) MergeMemoryFailureSectionNotConfigured(v MemoryFailureSectionNotConfigured) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsMemoryFailureSectionUnavailable returns the union data inside the MemoryFailureSummaryResponse_SessionFacts as a MemoryFailureSectionUnavailable
func (t MemoryFailureSummaryResponse_SessionFacts) AsMemoryFailureSectionUnavailable() (MemoryFailureSectionUnavailable, error) {
var body MemoryFailureSectionUnavailable
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromMemoryFailureSectionUnavailable overwrites any union data inside the MemoryFailureSummaryResponse_SessionFacts as the provided MemoryFailureSectionUnavailable
func (t *MemoryFailureSummaryResponse_SessionFacts) FromMemoryFailureSectionUnavailable(v MemoryFailureSectionUnavailable) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeMemoryFailureSectionUnavailable performs a merge with any union data inside the MemoryFailureSummaryResponse_SessionFacts, using the provided MemoryFailureSectionUnavailable
func (t *MemoryFailureSummaryResponse_SessionFacts) MergeMemoryFailureSectionUnavailable(v MemoryFailureSectionUnavailable) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsSessionFactFailures returns the union data inside the MemoryFailureSummaryResponse_SessionFacts as a SessionFactFailures
func (t MemoryFailureSummaryResponse_SessionFacts) AsSessionFactFailures() (SessionFactFailures, error) {
var body SessionFactFailures
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromSessionFactFailures overwrites any union data inside the MemoryFailureSummaryResponse_SessionFacts as the provided SessionFactFailures
func (t *MemoryFailureSummaryResponse_SessionFacts) FromSessionFactFailures(v SessionFactFailures) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeSessionFactFailures performs a merge with any union data inside the MemoryFailureSummaryResponse_SessionFacts, using the provided SessionFactFailures
func (t *MemoryFailureSummaryResponse_SessionFacts) MergeSessionFactFailures(v SessionFactFailures) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t MemoryFailureSummaryResponse_SessionFacts) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *MemoryFailureSummaryResponse_SessionFacts) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// RequestEditorFn is the function signature for the RequestEditor callback function
type RequestEditorFn func(ctx context.Context, req *http.Request) error
// Doer performs HTTP requests.
//
// The standard http.Client implements this interface.
type HttpRequestDoer interface {
Do(req *http.Request) (*http.Response, error)
}
// Client which conforms to the OpenAPI3 specification for this service.
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
}
// ClientOption allows setting custom parameters during construction
type ClientOption func(*Client) error
// Creates a new Client, with reasonable defaults
func NewClient(server string, opts ...ClientOption) (*Client, error) {
// create a client with sane default values
client := Client{
Server: server,
}
// mutate client and add all optional params
for _, o := range opts {
if err := o(&client); err != nil {
return nil, err
}
}
// ensure the server URL always has a trailing slash
if !strings.HasSuffix(client.Server, "/") {
client.Server += "/"
}
// create httpClient, if not already present
if client.Client == nil {
client.Client = &http.Client{}
}
return &client, nil
}
// WithHTTPClient allows overriding the default Doer, which is
// automatically created using http.Client. This is useful for tests.
func WithHTTPClient(doer HttpRequestDoer) ClientOption {
return func(c *Client) error {
c.Client = doer
return nil
}
}
// WithRequestEditorFn allows setting up a callback function, which will be
// called right before sending the request. This can be used to mutate the request.
func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
return func(c *Client) error {
c.RequestEditors = append(c.RequestEditors, fn)
return nil
}
}
// The interface specification for the client above.
type ClientInterface interface {
// GetLlmWikiHealth request
GetLlmWikiHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExportDocumentWithBody request with any body
ExportDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExportDocument(ctx context.Context, body ExportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportDocumentWithBody request with any body
ImportDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ImportDocument(ctx context.Context, body ImportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyDocumentChangeWithBody request with any body
ApplyDocumentChangeWithBody(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyDocumentChange(ctx context.Context, documentId DocumentId, body ApplyDocumentChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisconnectDocumentConnectionsWithBody request with any body
DisconnectDocumentConnectionsWithBody(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DisconnectDocumentConnections(ctx context.Context, documentId DocumentId, body DisconnectDocumentConnectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMemoryFailureSummary request
GetMemoryFailureSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryMemoryFailuresWithBody request with any body
RetryMemoryFailuresWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RetryMemoryFailures(ctx context.Context, body RetryMemoryFailuresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMemoryEntries request
ListMemoryEntries(ctx context.Context, params *ListMemoryEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMemoryEntry request
GetMemoryEntry(ctx context.Context, entryId string, params *GetMemoryEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPersonalKnowledgeGraphVisualizationWithBody request with any body
GetPersonalKnowledgeGraphVisualizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPersonalKnowledgeGraphVisualization(ctx context.Context, body GetPersonalKnowledgeGraphVisualizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReadPersonalKnowledgeEvidenceWithBody request with any body
ReadPersonalKnowledgeEvidenceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReadPersonalKnowledgeEvidence(ctx context.Context, body ReadPersonalKnowledgeEvidenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshPocketNoteTrackingItemsWithBody request with any body
RefreshPocketNoteTrackingItemsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshPocketNoteTrackingItems(ctx context.Context, body RefreshPocketNoteTrackingItemsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncProfileMemoryWithBody request with any body
SyncProfileMemoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SyncProfileMemory(ctx context.Context, body SyncProfileMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGraphForPublishedWikiWithBody request with any body
UpdateGraphForPublishedWikiWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGraphForPublishedWiki(ctx context.Context, body UpdateGraphForPublishedWikiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryPersonalKnowledgeWithBody request with any body
QueryPersonalKnowledgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryPersonalKnowledge(ctx context.Context, body QueryPersonalKnowledgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMemoryRebuild request
GetMemoryRebuild(ctx context.Context, params *GetMemoryRebuildParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartMemoryRebuildWithBody request with any body
StartMemoryRebuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartMemoryRebuild(ctx context.Context, body StartMemoryRebuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GenerateWikiRefreshCandidatesWithBody request with any body
GenerateWikiRefreshCandidatesWithBody(ctx context.Context, wikiRefreshId TeamHubId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GenerateWikiRefreshCandidates(ctx context.Context, wikiRefreshId TeamHubId, body GenerateWikiRefreshCandidatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLlmWikiReadiness request
GetLlmWikiReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// NormalizeDocumentWithBody request with any body
NormalizeDocumentWithBody(ctx context.Context, params *NormalizeDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReadAgentDebugContextHistoryWithBody request with any body
ReadAgentDebugContextHistoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReadAgentDebugContextHistory(ctx context.Context, body ReadAgentDebugContextHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelAgentRunWithBody request with any body
CancelAgentRunWithBody(ctx context.Context, runId RunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelAgentRun(ctx context.Context, runId RunId, body CancelAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// NotifyAgentRegistrationChanged request
NotifyAgentRegistrationChanged(ctx context.Context, agentId ManagedAgentId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CallLocalComputerToolWithBody request with any body
CallLocalComputerToolWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CallLocalComputerTool(ctx context.Context, body CallLocalComputerToolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CallModelWithBody request with any body
CallModelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CallModel(ctx context.Context, body CallModelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// JudgeProactiveEventWithBody request with any body
JudgeProactiveEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
JudgeProactiveEvent(ctx context.Context, body JudgeProactiveEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveLocalComputer request
RemoveLocalComputer(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisconnectLocalComputerBrowserConnection request
DisconnectLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLocalComputerBrowserConnection request
GetLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigureLocalComputerBrowserConnectionWithBody request with any body
ConfigureLocalComputerBrowserConnectionWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfigureLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ConfigureLocalComputerBrowserConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ActOnLocalComputerModelsWithBody request with any body
ActOnLocalComputerModelsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ActOnLocalComputerModels(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLocalComputerModelSource request
GetLocalComputerModelSource(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyLocalComputerModelSourceWithBody request with any body
ApplyLocalComputerModelSourceWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyLocalComputerModelSource(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ApplyLocalComputerModelSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLocalComputerByokModelsWithBody request with any body
ListLocalComputerByokModelsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLocalComputerByokModels(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ListLocalComputerByokModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestLocalComputerByokWithBody request with any body
TestLocalComputerByokWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TestLocalComputerByok(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body TestLocalComputerByokJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLocalComputerPermissions request
GetLocalComputerPermissions(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ActOnLocalComputerPermissionWithBody request with any body
ActOnLocalComputerPermissionWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ActOnLocalComputerPermission(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScanLocalComputerSkillsWithBody request with any body
ScanLocalComputerSkillsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ScanLocalComputerSkills(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ScanLocalComputerSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReconcileVoiceWorkers request
ReconcileVoiceWorkers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
func (c *Client) GetLlmWikiHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLlmWikiHealthRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ExportDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewExportDocumentRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ExportDocument(ctx context.Context, body ExportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewExportDocumentRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ImportDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewImportDocumentRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ImportDocument(ctx context.Context, body ImportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewImportDocumentRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ApplyDocumentChangeWithBody(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewApplyDocumentChangeRequestWithBody(c.Server, documentId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ApplyDocumentChange(ctx context.Context, documentId DocumentId, body ApplyDocumentChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewApplyDocumentChangeRequest(c.Server, documentId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) DisconnectDocumentConnectionsWithBody(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewDisconnectDocumentConnectionsRequestWithBody(c.Server, documentId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) DisconnectDocumentConnections(ctx context.Context, documentId DocumentId, body DisconnectDocumentConnectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewDisconnectDocumentConnectionsRequest(c.Server, documentId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetMemoryFailureSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetMemoryFailureSummaryRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) RetryMemoryFailuresWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRetryMemoryFailuresRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) RetryMemoryFailures(ctx context.Context, body RetryMemoryFailuresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRetryMemoryFailuresRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ListMemoryEntries(ctx context.Context, params *ListMemoryEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListMemoryEntriesRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetMemoryEntry(ctx context.Context, entryId string, params *GetMemoryEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetMemoryEntryRequest(c.Server, entryId, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetPersonalKnowledgeGraphVisualizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetPersonalKnowledgeGraphVisualizationRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetPersonalKnowledgeGraphVisualization(ctx context.Context, body GetPersonalKnowledgeGraphVisualizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetPersonalKnowledgeGraphVisualizationRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ReadPersonalKnowledgeEvidenceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewReadPersonalKnowledgeEvidenceRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ReadPersonalKnowledgeEvidence(ctx context.Context, body ReadPersonalKnowledgeEvidenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewReadPersonalKnowledgeEvidenceRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) RefreshPocketNoteTrackingItemsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRefreshPocketNoteTrackingItemsRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) RefreshPocketNoteTrackingItems(ctx context.Context, body RefreshPocketNoteTrackingItemsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRefreshPocketNoteTrackingItemsRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) SyncProfileMemoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewSyncProfileMemoryRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) SyncProfileMemory(ctx context.Context, body SyncProfileMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewSyncProfileMemoryRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) UpdateGraphForPublishedWikiWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewUpdateGraphForPublishedWikiRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) UpdateGraphForPublishedWiki(ctx context.Context, body UpdateGraphForPublishedWikiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewUpdateGraphForPublishedWikiRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) QueryPersonalKnowledgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewQueryPersonalKnowledgeRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) QueryPersonalKnowledge(ctx context.Context, body QueryPersonalKnowledgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewQueryPersonalKnowledgeRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetMemoryRebuild(ctx context.Context, params *GetMemoryRebuildParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetMemoryRebuildRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) StartMemoryRebuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewStartMemoryRebuildRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) StartMemoryRebuild(ctx context.Context, body StartMemoryRebuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewStartMemoryRebuildRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GenerateWikiRefreshCandidatesWithBody(ctx context.Context, wikiRefreshId TeamHubId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGenerateWikiRefreshCandidatesRequestWithBody(c.Server, wikiRefreshId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GenerateWikiRefreshCandidates(ctx context.Context, wikiRefreshId TeamHubId, body GenerateWikiRefreshCandidatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGenerateWikiRefreshCandidatesRequest(c.Server, wikiRefreshId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetLlmWikiReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLlmWikiReadinessRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) NormalizeDocumentWithBody(ctx context.Context, params *NormalizeDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewNormalizeDocumentRequestWithBody(c.Server, params, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ReadAgentDebugContextHistoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewReadAgentDebugContextHistoryRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ReadAgentDebugContextHistory(ctx context.Context, body ReadAgentDebugContextHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewReadAgentDebugContextHistoryRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CancelAgentRunWithBody(ctx context.Context, runId RunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCancelAgentRunRequestWithBody(c.Server, runId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CancelAgentRun(ctx context.Context, runId RunId, body CancelAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCancelAgentRunRequest(c.Server, runId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) NotifyAgentRegistrationChanged(ctx context.Context, agentId ManagedAgentId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewNotifyAgentRegistrationChangedRequest(c.Server, agentId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CallLocalComputerToolWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCallLocalComputerToolRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CallLocalComputerTool(ctx context.Context, body CallLocalComputerToolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCallLocalComputerToolRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CallModelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCallModelRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) CallModel(ctx context.Context, body CallModelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewCallModelRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) JudgeProactiveEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewJudgeProactiveEventRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) JudgeProactiveEvent(ctx context.Context, body JudgeProactiveEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewJudgeProactiveEventRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) RemoveLocalComputer(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRemoveLocalComputerRequest(c.Server, tenantId, ownerActorId, computerId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) DisconnectLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewDisconnectLocalComputerBrowserConnectionRequest(c.Server, tenantId, ownerActorId, computerId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLocalComputerBrowserConnectionRequest(c.Server, tenantId, ownerActorId, computerId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ConfigureLocalComputerBrowserConnectionWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigureLocalComputerBrowserConnectionRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ConfigureLocalComputerBrowserConnection(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ConfigureLocalComputerBrowserConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigureLocalComputerBrowserConnectionRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ActOnLocalComputerModelsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewActOnLocalComputerModelsRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ActOnLocalComputerModels(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewActOnLocalComputerModelsRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetLocalComputerModelSource(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLocalComputerModelSourceRequest(c.Server, tenantId, ownerActorId, computerId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ApplyLocalComputerModelSourceWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewApplyLocalComputerModelSourceRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ApplyLocalComputerModelSource(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ApplyLocalComputerModelSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewApplyLocalComputerModelSourceRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ListLocalComputerByokModelsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListLocalComputerByokModelsRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ListLocalComputerByokModels(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ListLocalComputerByokModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListLocalComputerByokModelsRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) TestLocalComputerByokWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewTestLocalComputerByokRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) TestLocalComputerByok(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body TestLocalComputerByokJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewTestLocalComputerByokRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) GetLocalComputerPermissions(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLocalComputerPermissionsRequest(c.Server, tenantId, ownerActorId, computerId)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ActOnLocalComputerPermissionWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewActOnLocalComputerPermissionRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ActOnLocalComputerPermission(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewActOnLocalComputerPermissionRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ScanLocalComputerSkillsWithBody(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewScanLocalComputerSkillsRequestWithBody(c.Server, tenantId, ownerActorId, computerId, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ScanLocalComputerSkills(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ScanLocalComputerSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewScanLocalComputerSkillsRequest(c.Server, tenantId, ownerActorId, computerId, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
func (c *Client) ReconcileVoiceWorkers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewReconcileVoiceWorkersRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// NewGetLlmWikiHealthRequest generates requests for GetLlmWikiHealth
func NewGetLlmWikiHealthRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/healthz")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewExportDocumentRequest calls the generic ExportDocument builder with application/json body
func NewExportDocumentRequest(server string, body ExportDocumentJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewExportDocumentRequestWithBody(server, "application/json", bodyReader)
}
// NewExportDocumentRequestWithBody generates requests for ExportDocument with any type of body
func NewExportDocumentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/documents/export")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewImportDocumentRequest calls the generic ImportDocument builder with application/json body
func NewImportDocumentRequest(server string, body ImportDocumentJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewImportDocumentRequestWithBody(server, "application/json", bodyReader)
}
// NewImportDocumentRequestWithBody generates requests for ImportDocument with any type of body
func NewImportDocumentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/documents/import")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewApplyDocumentChangeRequest calls the generic ApplyDocumentChange builder with application/json body
func NewApplyDocumentChangeRequest(server string, documentId DocumentId, body ApplyDocumentChangeJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewApplyDocumentChangeRequestWithBody(server, documentId, "application/json", bodyReader)
}
// NewApplyDocumentChangeRequestWithBody generates requests for ApplyDocumentChange with any type of body
func NewApplyDocumentChangeRequestWithBody(server string, documentId DocumentId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "documentId", documentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/documents/%s/apply", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewDisconnectDocumentConnectionsRequest calls the generic DisconnectDocumentConnections builder with application/json body
func NewDisconnectDocumentConnectionsRequest(server string, documentId DocumentId, body DisconnectDocumentConnectionsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewDisconnectDocumentConnectionsRequestWithBody(server, documentId, "application/json", bodyReader)
}
// NewDisconnectDocumentConnectionsRequestWithBody generates requests for DisconnectDocumentConnections with any type of body
func NewDisconnectDocumentConnectionsRequestWithBody(server string, documentId DocumentId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "documentId", documentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/documents/%s/disconnect", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGetMemoryFailureSummaryRequest generates requests for GetMemoryFailureSummary
func NewGetMemoryFailureSummaryRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/health/failures")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRetryMemoryFailuresRequest calls the generic RetryMemoryFailures builder with application/json body
func NewRetryMemoryFailuresRequest(server string, body RetryMemoryFailuresJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewRetryMemoryFailuresRequestWithBody(server, "application/json", bodyReader)
}
// NewRetryMemoryFailuresRequestWithBody generates requests for RetryMemoryFailures with any type of body
func NewRetryMemoryFailuresRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/health/failures:retry")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewListMemoryEntriesRequest generates requests for ListMemoryEntries
func NewListMemoryEntriesRequest(server string, params *ListMemoryEntriesParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/memory/entries")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tenant_id", params.TenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_actor_id", params.OwnerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if params.Kind != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "kind", *params.Kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.Cursor != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.Limit != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewGetMemoryEntryRequest generates requests for GetMemoryEntry
func NewGetMemoryEntryRequest(server string, entryId string, params *GetMemoryEntryParams) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "entry_id", entryId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/memory/entries/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tenant_id", params.TenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_actor_id", params.OwnerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewGetPersonalKnowledgeGraphVisualizationRequest calls the generic GetPersonalKnowledgeGraphVisualization builder with application/json body
func NewGetPersonalKnowledgeGraphVisualizationRequest(server string, body GetPersonalKnowledgeGraphVisualizationJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewGetPersonalKnowledgeGraphVisualizationRequestWithBody(server, "application/json", bodyReader)
}
// NewGetPersonalKnowledgeGraphVisualizationRequestWithBody generates requests for GetPersonalKnowledgeGraphVisualization with any type of body
func NewGetPersonalKnowledgeGraphVisualizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/personal-knowledge-graph-visualization")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewReadPersonalKnowledgeEvidenceRequest calls the generic ReadPersonalKnowledgeEvidence builder with application/json body
func NewReadPersonalKnowledgeEvidenceRequest(server string, body ReadPersonalKnowledgeEvidenceJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewReadPersonalKnowledgeEvidenceRequestWithBody(server, "application/json", bodyReader)
}
// NewReadPersonalKnowledgeEvidenceRequestWithBody generates requests for ReadPersonalKnowledgeEvidence with any type of body
func NewReadPersonalKnowledgeEvidenceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/personal-knowledge/evidence")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewRefreshPocketNoteTrackingItemsRequest calls the generic RefreshPocketNoteTrackingItems builder with application/json body
func NewRefreshPocketNoteTrackingItemsRequest(server string, body RefreshPocketNoteTrackingItemsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewRefreshPocketNoteTrackingItemsRequestWithBody(server, "application/json", bodyReader)
}
// NewRefreshPocketNoteTrackingItemsRequestWithBody generates requests for RefreshPocketNoteTrackingItems with any type of body
func NewRefreshPocketNoteTrackingItemsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/pocket-note-tracking-refreshes")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewSyncProfileMemoryRequest calls the generic SyncProfileMemory builder with application/json body
func NewSyncProfileMemoryRequest(server string, body SyncProfileMemoryJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewSyncProfileMemoryRequestWithBody(server, "application/json", bodyReader)
}
// NewSyncProfileMemoryRequestWithBody generates requests for SyncProfileMemory with any type of body
func NewSyncProfileMemoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/profile-memory-syncs")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewUpdateGraphForPublishedWikiRequest calls the generic UpdateGraphForPublishedWiki builder with application/json body
func NewUpdateGraphForPublishedWikiRequest(server string, body UpdateGraphForPublishedWikiJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewUpdateGraphForPublishedWikiRequestWithBody(server, "application/json", bodyReader)
}
// NewUpdateGraphForPublishedWikiRequestWithBody generates requests for UpdateGraphForPublishedWiki with any type of body
func NewUpdateGraphForPublishedWikiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/published-wiki-graph-updates")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewQueryPersonalKnowledgeRequest calls the generic QueryPersonalKnowledge builder with application/json body
func NewQueryPersonalKnowledgeRequest(server string, body QueryPersonalKnowledgeJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewQueryPersonalKnowledgeRequestWithBody(server, "application/json", bodyReader)
}
// NewQueryPersonalKnowledgeRequestWithBody generates requests for QueryPersonalKnowledge with any type of body
func NewQueryPersonalKnowledgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/query")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGetMemoryRebuildRequest generates requests for GetMemoryRebuild
func NewGetMemoryRebuildRequest(server string, params *GetMemoryRebuildParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/rebuild")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.MemorySubjectKey != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "memory_subject_key", *params.MemorySubjectKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.OwnerActorId != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_actor_id", *params.OwnerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewStartMemoryRebuildRequest calls the generic StartMemoryRebuild builder with application/json body
func NewStartMemoryRebuildRequest(server string, body StartMemoryRebuildJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewStartMemoryRebuildRequestWithBody(server, "application/json", bodyReader)
}
// NewStartMemoryRebuildRequestWithBody generates requests for StartMemoryRebuild with any type of body
func NewStartMemoryRebuildRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/rebuild")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGenerateWikiRefreshCandidatesRequest calls the generic GenerateWikiRefreshCandidates builder with application/json body
func NewGenerateWikiRefreshCandidatesRequest(server string, wikiRefreshId TeamHubId, body GenerateWikiRefreshCandidatesJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewGenerateWikiRefreshCandidatesRequestWithBody(server, wikiRefreshId, "application/json", bodyReader)
}
// NewGenerateWikiRefreshCandidatesRequestWithBody generates requests for GenerateWikiRefreshCandidates with any type of body
func NewGenerateWikiRefreshCandidatesRequestWithBody(server string, wikiRefreshId TeamHubId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "wikiRefreshId", wikiRefreshId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/internal/v1/wiki-refreshes/%s/candidates", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGetLlmWikiReadinessRequest generates requests for GetLlmWikiReadiness
func NewGetLlmWikiReadinessRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/readyz")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewNormalizeDocumentRequestWithBody generates requests for NormalizeDocument with any type of body
func NewNormalizeDocumentRequestWithBody(server string, params *NormalizeDocumentParams, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v0/document-normalizations")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
if params != nil {
var headerParam0 string
headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Source-Media-Type", params.XSourceMediaType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
if err != nil {
return nil, err
}
req.Header.Set("X-Source-Media-Type", headerParam0)
var headerParam1 string
headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Source-Filename", params.XSourceFilename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
if err != nil {
return nil, err
}
req.Header.Set("X-Source-Filename", headerParam1)
if params.XSourceRepresentationFormat != nil {
var headerParam2 string
headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Source-Representation-Format", *params.XSourceRepresentationFormat, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
if err != nil {
return nil, err
}
req.Header.Set("X-Source-Representation-Format", headerParam2)
}
}
return req, nil
}
// NewReadAgentDebugContextHistoryRequest calls the generic ReadAgentDebugContextHistory builder with application/json body
func NewReadAgentDebugContextHistoryRequest(server string, body ReadAgentDebugContextHistoryJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewReadAgentDebugContextHistoryRequestWithBody(server, "application/json", bodyReader)
}
// NewReadAgentDebugContextHistoryRequestWithBody generates requests for ReadAgentDebugContextHistory with any type of body
func NewReadAgentDebugContextHistoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/agent-debug/history:read")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewCancelAgentRunRequest calls the generic CancelAgentRun builder with application/json body
func NewCancelAgentRunRequest(server string, runId RunId, body CancelAgentRunJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewCancelAgentRunRequestWithBody(server, runId, "application/json", bodyReader)
}
// NewCancelAgentRunRequestWithBody generates requests for CancelAgentRun with any type of body
func NewCancelAgentRunRequestWithBody(server string, runId RunId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "runId", runId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/agent-runs/%s/cancel", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewNotifyAgentRegistrationChangedRequest generates requests for NotifyAgentRegistrationChanged
func NewNotifyAgentRegistrationChangedRequest(server string, agentId ManagedAgentId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "agentId", agentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/agents/%s/registration-changes", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewCallLocalComputerToolRequest calls the generic CallLocalComputerTool builder with application/json body
func NewCallLocalComputerToolRequest(server string, body CallLocalComputerToolJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewCallLocalComputerToolRequestWithBody(server, "application/json", bodyReader)
}
// NewCallLocalComputerToolRequestWithBody generates requests for CallLocalComputerTool with any type of body
func NewCallLocalComputerToolRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/local-computer-tools:call")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewCallModelRequest calls the generic CallModel builder with application/json body
func NewCallModelRequest(server string, body CallModelJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewCallModelRequestWithBody(server, "application/json", bodyReader)
}
// NewCallModelRequestWithBody generates requests for CallModel with any type of body
func NewCallModelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/model-calls")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewJudgeProactiveEventRequest calls the generic JudgeProactiveEvent builder with application/json body
func NewJudgeProactiveEventRequest(server string, body JudgeProactiveEventJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewJudgeProactiveEventRequestWithBody(server, "application/json", bodyReader)
}
// NewJudgeProactiveEventRequestWithBody generates requests for JudgeProactiveEvent with any type of body
func NewJudgeProactiveEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/proactive-events:judge")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewRemoveLocalComputerRequest generates requests for RemoveLocalComputer
func NewRemoveLocalComputerRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewDisconnectLocalComputerBrowserConnectionRequest generates requests for DisconnectLocalComputerBrowserConnection
func NewDisconnectLocalComputerBrowserConnectionRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/browser-connection", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewGetLocalComputerBrowserConnectionRequest generates requests for GetLocalComputerBrowserConnection
func NewGetLocalComputerBrowserConnectionRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/browser-connection", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigureLocalComputerBrowserConnectionRequest calls the generic ConfigureLocalComputerBrowserConnection builder with application/json body
func NewConfigureLocalComputerBrowserConnectionRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ConfigureLocalComputerBrowserConnectionJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigureLocalComputerBrowserConnectionRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewConfigureLocalComputerBrowserConnectionRequestWithBody generates requests for ConfigureLocalComputerBrowserConnection with any type of body
func NewConfigureLocalComputerBrowserConnectionRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/browser-connection", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewActOnLocalComputerModelsRequest calls the generic ActOnLocalComputerModels builder with application/json body
func NewActOnLocalComputerModelsRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerModelsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewActOnLocalComputerModelsRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewActOnLocalComputerModelsRequestWithBody generates requests for ActOnLocalComputerModels with any type of body
func NewActOnLocalComputerModelsRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/local-model-actions", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGetLocalComputerModelSourceRequest generates requests for GetLocalComputerModelSource
func NewGetLocalComputerModelSourceRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/model-source", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewApplyLocalComputerModelSourceRequest calls the generic ApplyLocalComputerModelSource builder with application/json body
func NewApplyLocalComputerModelSourceRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ApplyLocalComputerModelSourceJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewApplyLocalComputerModelSourceRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewApplyLocalComputerModelSourceRequestWithBody generates requests for ApplyLocalComputerModelSource with any type of body
func NewApplyLocalComputerModelSourceRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/model-source", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewListLocalComputerByokModelsRequest calls the generic ListLocalComputerByokModels builder with application/json body
func NewListLocalComputerByokModelsRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ListLocalComputerByokModelsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewListLocalComputerByokModelsRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewListLocalComputerByokModelsRequestWithBody generates requests for ListLocalComputerByokModels with any type of body
func NewListLocalComputerByokModelsRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/model-source/models", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewTestLocalComputerByokRequest calls the generic TestLocalComputerByok builder with application/json body
func NewTestLocalComputerByokRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body TestLocalComputerByokJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewTestLocalComputerByokRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewTestLocalComputerByokRequestWithBody generates requests for TestLocalComputerByok with any type of body
func NewTestLocalComputerByokRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/model-source/test", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewGetLocalComputerPermissionsRequest generates requests for GetLocalComputerPermissions
func NewGetLocalComputerPermissionsRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/permissions", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewActOnLocalComputerPermissionRequest calls the generic ActOnLocalComputerPermission builder with application/json body
func NewActOnLocalComputerPermissionRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerPermissionJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewActOnLocalComputerPermissionRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewActOnLocalComputerPermissionRequestWithBody generates requests for ActOnLocalComputerPermission with any type of body
func NewActOnLocalComputerPermissionRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/permissions", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewScanLocalComputerSkillsRequest calls the generic ScanLocalComputerSkills builder with application/json body
func NewScanLocalComputerSkillsRequest(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ScanLocalComputerSkillsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewScanLocalComputerSkillsRequestWithBody(server, tenantId, ownerActorId, computerId, "application/json", bodyReader)
}
// NewScanLocalComputerSkillsRequestWithBody generates requests for ScanLocalComputerSkills with any type of body
func NewScanLocalComputerSkillsRequestWithBody(server string, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tenantId", tenantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam1 string
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ownerActorId", ownerActorId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
var pathParam2 string
pathParam2, err = runtime.StyleParamWithOptions("simple", false, "computerId", computerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/tenants/%s/owners/%s/local-computers/%s/skill-scans", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewReconcileVoiceWorkersRequest generates requests for ReconcileVoiceWorkers
func NewReconcileVoiceWorkersRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v1/voice/workers:reconcile")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
for _, r := range c.RequestEditors {
if err := r(ctx, req); err != nil {
return err
}
}
for _, r := range additionalEditors {
if err := r(ctx, req); err != nil {
return err
}
}
return nil
}
// ClientWithResponses builds on ClientInterface to offer response payloads
type ClientWithResponses struct {
ClientInterface
}
// NewClientWithResponses creates a new ClientWithResponses, which wraps
// Client with return type handling
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
client, err := NewClient(server, opts...)
if err != nil {
return nil, err
}
return &ClientWithResponses{client}, nil
}
// WithBaseURL overrides the baseURL.
func WithBaseURL(baseURL string) ClientOption {
return func(c *Client) error {
newBaseURL, err := url.Parse(baseURL)
if err != nil {
return err
}
c.Server = newBaseURL.String()
return nil
}
}
// ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClientWithResponsesInterface interface {
// GetLlmWikiHealthWithResponse request
GetLlmWikiHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLlmWikiHealthResponse, error)
// ExportDocumentWithBodyWithResponse request with any body
ExportDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportDocumentResponse, error)
ExportDocumentWithResponse(ctx context.Context, body ExportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportDocumentResponse, error)
// ImportDocumentWithBodyWithResponse request with any body
ImportDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportDocumentResponse, error)
ImportDocumentWithResponse(ctx context.Context, body ImportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportDocumentResponse, error)
// ApplyDocumentChangeWithBodyWithResponse request with any body
ApplyDocumentChangeWithBodyWithResponse(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyDocumentChangeResponse, error)
ApplyDocumentChangeWithResponse(ctx context.Context, documentId DocumentId, body ApplyDocumentChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyDocumentChangeResponse, error)
// DisconnectDocumentConnectionsWithBodyWithResponse request with any body
DisconnectDocumentConnectionsWithBodyWithResponse(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisconnectDocumentConnectionsResponse, error)
DisconnectDocumentConnectionsWithResponse(ctx context.Context, documentId DocumentId, body DisconnectDocumentConnectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*DisconnectDocumentConnectionsResponse, error)
// GetMemoryFailureSummaryWithResponse request
GetMemoryFailureSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMemoryFailureSummaryResponse, error)
// RetryMemoryFailuresWithBodyWithResponse request with any body
RetryMemoryFailuresWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryMemoryFailuresResponse, error)
RetryMemoryFailuresWithResponse(ctx context.Context, body RetryMemoryFailuresJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryMemoryFailuresResponse, error)
// ListMemoryEntriesWithResponse request
ListMemoryEntriesWithResponse(ctx context.Context, params *ListMemoryEntriesParams, reqEditors ...RequestEditorFn) (*ListMemoryEntriesResponse, error)
// GetMemoryEntryWithResponse request
GetMemoryEntryWithResponse(ctx context.Context, entryId string, params *GetMemoryEntryParams, reqEditors ...RequestEditorFn) (*GetMemoryEntryResponse, error)
// GetPersonalKnowledgeGraphVisualizationWithBodyWithResponse request with any body
GetPersonalKnowledgeGraphVisualizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPersonalKnowledgeGraphVisualizationResponse, error)
GetPersonalKnowledgeGraphVisualizationWithResponse(ctx context.Context, body GetPersonalKnowledgeGraphVisualizationJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPersonalKnowledgeGraphVisualizationResponse, error)
// ReadPersonalKnowledgeEvidenceWithBodyWithResponse request with any body
ReadPersonalKnowledgeEvidenceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadPersonalKnowledgeEvidenceResponse, error)
ReadPersonalKnowledgeEvidenceWithResponse(ctx context.Context, body ReadPersonalKnowledgeEvidenceJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadPersonalKnowledgeEvidenceResponse, error)
// RefreshPocketNoteTrackingItemsWithBodyWithResponse request with any body
RefreshPocketNoteTrackingItemsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshPocketNoteTrackingItemsResponse, error)
RefreshPocketNoteTrackingItemsWithResponse(ctx context.Context, body RefreshPocketNoteTrackingItemsJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshPocketNoteTrackingItemsResponse, error)
// SyncProfileMemoryWithBodyWithResponse request with any body
SyncProfileMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProfileMemoryResponse, error)
SyncProfileMemoryWithResponse(ctx context.Context, body SyncProfileMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProfileMemoryResponse, error)
// UpdateGraphForPublishedWikiWithBodyWithResponse request with any body
UpdateGraphForPublishedWikiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGraphForPublishedWikiResponse, error)
UpdateGraphForPublishedWikiWithResponse(ctx context.Context, body UpdateGraphForPublishedWikiJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGraphForPublishedWikiResponse, error)
// QueryPersonalKnowledgeWithBodyWithResponse request with any body
QueryPersonalKnowledgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryPersonalKnowledgeResponse, error)
QueryPersonalKnowledgeWithResponse(ctx context.Context, body QueryPersonalKnowledgeJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryPersonalKnowledgeResponse, error)
// GetMemoryRebuildWithResponse request
GetMemoryRebuildWithResponse(ctx context.Context, params *GetMemoryRebuildParams, reqEditors ...RequestEditorFn) (*GetMemoryRebuildResponse, error)
// StartMemoryRebuildWithBodyWithResponse request with any body
StartMemoryRebuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMemoryRebuildResponse, error)
StartMemoryRebuildWithResponse(ctx context.Context, body StartMemoryRebuildJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMemoryRebuildResponse, error)
// GenerateWikiRefreshCandidatesWithBodyWithResponse request with any body
GenerateWikiRefreshCandidatesWithBodyWithResponse(ctx context.Context, wikiRefreshId TeamHubId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateWikiRefreshCandidatesResponse, error)
GenerateWikiRefreshCandidatesWithResponse(ctx context.Context, wikiRefreshId TeamHubId, body GenerateWikiRefreshCandidatesJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateWikiRefreshCandidatesResponse, error)
// GetLlmWikiReadinessWithResponse request
GetLlmWikiReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLlmWikiReadinessResponse, error)
// NormalizeDocumentWithBodyWithResponse request with any body
NormalizeDocumentWithBodyWithResponse(ctx context.Context, params *NormalizeDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NormalizeDocumentResponse, error)
// ReadAgentDebugContextHistoryWithBodyWithResponse request with any body
ReadAgentDebugContextHistoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadAgentDebugContextHistoryResponse, error)
ReadAgentDebugContextHistoryWithResponse(ctx context.Context, body ReadAgentDebugContextHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadAgentDebugContextHistoryResponse, error)
// CancelAgentRunWithBodyWithResponse request with any body
CancelAgentRunWithBodyWithResponse(ctx context.Context, runId RunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error)
CancelAgentRunWithResponse(ctx context.Context, runId RunId, body CancelAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error)
// NotifyAgentRegistrationChangedWithResponse request
NotifyAgentRegistrationChangedWithResponse(ctx context.Context, agentId ManagedAgentId, reqEditors ...RequestEditorFn) (*NotifyAgentRegistrationChangedResponse, error)
// CallLocalComputerToolWithBodyWithResponse request with any body
CallLocalComputerToolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallLocalComputerToolResponse, error)
CallLocalComputerToolWithResponse(ctx context.Context, body CallLocalComputerToolJSONRequestBody, reqEditors ...RequestEditorFn) (*CallLocalComputerToolResponse, error)
// CallModelWithBodyWithResponse request with any body
CallModelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallModelResponse, error)
CallModelWithResponse(ctx context.Context, body CallModelJSONRequestBody, reqEditors ...RequestEditorFn) (*CallModelResponse, error)
// JudgeProactiveEventWithBodyWithResponse request with any body
JudgeProactiveEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*JudgeProactiveEventResponse, error)
JudgeProactiveEventWithResponse(ctx context.Context, body JudgeProactiveEventJSONRequestBody, reqEditors ...RequestEditorFn) (*JudgeProactiveEventResponse, error)
// RemoveLocalComputerWithResponse request
RemoveLocalComputerWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*RemoveLocalComputerResponse, error)
// DisconnectLocalComputerBrowserConnectionWithResponse request
DisconnectLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*DisconnectLocalComputerBrowserConnectionResponse, error)
// GetLocalComputerBrowserConnectionWithResponse request
GetLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerBrowserConnectionResponse, error)
// ConfigureLocalComputerBrowserConnectionWithBodyWithResponse request with any body
ConfigureLocalComputerBrowserConnectionWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureLocalComputerBrowserConnectionResponse, error)
ConfigureLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ConfigureLocalComputerBrowserConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureLocalComputerBrowserConnectionResponse, error)
// ActOnLocalComputerModelsWithBodyWithResponse request with any body
ActOnLocalComputerModelsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActOnLocalComputerModelsResponse, error)
ActOnLocalComputerModelsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*ActOnLocalComputerModelsResponse, error)
// GetLocalComputerModelSourceWithResponse request
GetLocalComputerModelSourceWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerModelSourceResponse, error)
// ApplyLocalComputerModelSourceWithBodyWithResponse request with any body
ApplyLocalComputerModelSourceWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyLocalComputerModelSourceResponse, error)
ApplyLocalComputerModelSourceWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ApplyLocalComputerModelSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyLocalComputerModelSourceResponse, error)
// ListLocalComputerByokModelsWithBodyWithResponse request with any body
ListLocalComputerByokModelsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListLocalComputerByokModelsResponse, error)
ListLocalComputerByokModelsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ListLocalComputerByokModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListLocalComputerByokModelsResponse, error)
// TestLocalComputerByokWithBodyWithResponse request with any body
TestLocalComputerByokWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestLocalComputerByokResponse, error)
TestLocalComputerByokWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body TestLocalComputerByokJSONRequestBody, reqEditors ...RequestEditorFn) (*TestLocalComputerByokResponse, error)
// GetLocalComputerPermissionsWithResponse request
GetLocalComputerPermissionsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerPermissionsResponse, error)
// ActOnLocalComputerPermissionWithBodyWithResponse request with any body
ActOnLocalComputerPermissionWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActOnLocalComputerPermissionResponse, error)
ActOnLocalComputerPermissionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*ActOnLocalComputerPermissionResponse, error)
// ScanLocalComputerSkillsWithBodyWithResponse request with any body
ScanLocalComputerSkillsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScanLocalComputerSkillsResponse, error)
ScanLocalComputerSkillsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ScanLocalComputerSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*ScanLocalComputerSkillsResponse, error)
// ReconcileVoiceWorkersWithResponse request
ReconcileVoiceWorkersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReconcileVoiceWorkersResponse, error)
}
type GetLlmWikiHealthResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Status interface{} `json:"status"`
}
}
// Status returns HTTPResponse.Status
func (r GetLlmWikiHealthResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetLlmWikiHealthResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetLlmWikiHealthResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ExportDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExportDocumentResult
JSONDefault *DocumentInternalError
}
// Status returns HTTPResponse.Status
func (r ExportDocumentResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ExportDocumentResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ExportDocumentResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ImportDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ComputedDocumentState
JSONDefault *DocumentInternalError
}
// Status returns HTTPResponse.Status
func (r ImportDocumentResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ImportDocumentResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ImportDocumentResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ApplyDocumentChangeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApplyDocumentChangeResult
JSONDefault *DocumentInternalError
}
// Status returns HTTPResponse.Status
func (r ApplyDocumentChangeResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ApplyDocumentChangeResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ApplyDocumentChangeResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type DisconnectDocumentConnectionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *DocumentInternalError
}
// Status returns HTTPResponse.Status
func (r DisconnectDocumentConnectionsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r DisconnectDocumentConnectionsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r DisconnectDocumentConnectionsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetMemoryFailureSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryFailureSummaryResponse
JSON401 *MemoryError
}
// Status returns HTTPResponse.Status
func (r GetMemoryFailureSummaryResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetMemoryFailureSummaryResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetMemoryFailureSummaryResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RetryMemoryFailuresResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryFailureRetryResponse
JSON400 *MemoryError
JSON401 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r RetryMemoryFailuresResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RetryMemoryFailuresResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RetryMemoryFailuresResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ListMemoryEntriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryEntryPage
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r ListMemoryEntriesResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ListMemoryEntriesResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ListMemoryEntriesResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetMemoryEntryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryEntry
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r GetMemoryEntryResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetMemoryEntryResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetMemoryEntryResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetPersonalKnowledgeGraphVisualizationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r GetPersonalKnowledgeGraphVisualizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetPersonalKnowledgeGraphVisualizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetPersonalKnowledgeGraphVisualizationResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ReadPersonalKnowledgeEvidenceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PersonalKnowledgeEvidenceReadResponse
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r ReadPersonalKnowledgeEvidenceResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ReadPersonalKnowledgeEvidenceResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ReadPersonalKnowledgeEvidenceResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RefreshPocketNoteTrackingItemsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *MemoryError
JSON401 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r RefreshPocketNoteTrackingItemsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RefreshPocketNoteTrackingItemsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RefreshPocketNoteTrackingItemsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type SyncProfileMemoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *MemoryError
JSON401 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r SyncProfileMemoryResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r SyncProfileMemoryResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r SyncProfileMemoryResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type UpdateGraphForPublishedWikiResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *MemoryError
JSON401 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r UpdateGraphForPublishedWikiResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r UpdateGraphForPublishedWikiResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r UpdateGraphForPublishedWikiResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type QueryPersonalKnowledgeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PersonalKnowledgeQueryResponse
JSON400 *MemoryError
JSON401 *MemoryError
JSON503 *MemoryError
}
// Status returns HTTPResponse.Status
func (r QueryPersonalKnowledgeResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r QueryPersonalKnowledgeResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r QueryPersonalKnowledgeResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetMemoryRebuildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryRebuildStatus
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON409 *MemoryError
}
// Status returns HTTPResponse.Status
func (r GetMemoryRebuildResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetMemoryRebuildResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetMemoryRebuildResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type StartMemoryRebuildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *MemoryRebuildResponse
JSON400 *MemoryError
JSON401 *MemoryError
JSON404 *MemoryError
JSON409 *MemoryError
}
// Status returns HTTPResponse.Status
func (r StartMemoryRebuildResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r StartMemoryRebuildResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r StartMemoryRebuildResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GenerateWikiRefreshCandidatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WikiRefreshCandidateGenerationResult
JSON400 *WikiRefreshBadRequest
JSON401 *ServiceTokenErrorResponse
JSON413 *WikiRefreshBadRequest
JSON500 *WikiRefreshCandidateErrorResponse
JSON503 *WikiOperationRetryable
}
// Status returns HTTPResponse.Status
func (r GenerateWikiRefreshCandidatesResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GenerateWikiRefreshCandidatesResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GenerateWikiRefreshCandidatesResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetLlmWikiReadinessResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Status interface{} `json:"status"`
}
JSON503 *struct {
Reason string `json:"reason"`
Status interface{} `json:"status"`
}
}
// Status returns HTTPResponse.Status
func (r GetLlmWikiReadinessResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetLlmWikiReadinessResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetLlmWikiReadinessResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type NormalizeDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *DocumentNormalizationTerminalErrorResponse
JSON401 *ServiceTokenErrorResponse
JSON413 *DocumentNormalizationTerminalErrorResponse
JSON415 *DocumentNormalizationTerminalErrorResponse
JSON422 *DocumentNormalizationTerminalErrorResponse
JSON503 *DocumentNormalizationRetryableErrorResponse
}
// Status returns HTTPResponse.Status
func (r NormalizeDocumentResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r NormalizeDocumentResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r NormalizeDocumentResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ReadAgentDebugContextHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AgentDebugRuntimeHistory
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ReadAgentDebugContextHistoryResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ReadAgentDebugContextHistoryResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ReadAgentDebugContextHistoryResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type CancelAgentRunResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CancelAgentRunResult
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r CancelAgentRunResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r CancelAgentRunResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r CancelAgentRunResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type NotifyAgentRegistrationChangedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthenticated
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r NotifyAgentRegistrationChangedResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r NotifyAgentRegistrationChangedResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r NotifyAgentRegistrationChangedResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type CallLocalComputerToolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LocalComputerToolResult
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r CallLocalComputerToolResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r CallLocalComputerToolResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r CallLocalComputerToolResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type CallModelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ModelCallResult
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON409 *ErrorResponse
JSON502 *ErrorResponse
JSON503 *ErrorResponse
JSON504 *ErrorResponse
}
// Status returns HTTPResponse.Status
func (r CallModelResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r CallModelResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r CallModelResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type JudgeProactiveEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProactiveEventJudgement
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r JudgeProactiveEventResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r JudgeProactiveEventResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r JudgeProactiveEventResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RemoveLocalComputerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r RemoveLocalComputerResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RemoveLocalComputerResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RemoveLocalComputerResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type DisconnectLocalComputerBrowserConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BrowserConnectionStatus
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r DisconnectLocalComputerBrowserConnectionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r DisconnectLocalComputerBrowserConnectionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r DisconnectLocalComputerBrowserConnectionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetLocalComputerBrowserConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BrowserConnectionStatus
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r GetLocalComputerBrowserConnectionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetLocalComputerBrowserConnectionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetLocalComputerBrowserConnectionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigureLocalComputerBrowserConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BrowserConnectionStatus
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ConfigureLocalComputerBrowserConnectionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigureLocalComputerBrowserConnectionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigureLocalComputerBrowserConnectionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ActOnLocalComputerModelsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LocalModelActionAck
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ActOnLocalComputerModelsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ActOnLocalComputerModelsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ActOnLocalComputerModelsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetLocalComputerModelSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ModelSourceStatus
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r GetLocalComputerModelSourceResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetLocalComputerModelSourceResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetLocalComputerModelSourceResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ApplyLocalComputerModelSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ModelSourceStatus
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ApplyLocalComputerModelSourceResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ApplyLocalComputerModelSourceResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ApplyLocalComputerModelSourceResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ListLocalComputerByokModelsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ByokModelList
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ListLocalComputerByokModelsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ListLocalComputerByokModelsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ListLocalComputerByokModelsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type TestLocalComputerByokResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ByokTestResult
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r TestLocalComputerByokResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r TestLocalComputerByokResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r TestLocalComputerByokResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type GetLocalComputerPermissionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ComputerPermissionStatus
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r GetLocalComputerPermissionsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r GetLocalComputerPermissionsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r GetLocalComputerPermissionsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ActOnLocalComputerPermissionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ComputerPermissionStatus
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON502 *BadGateway
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ActOnLocalComputerPermissionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ActOnLocalComputerPermissionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ActOnLocalComputerPermissionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ScanLocalComputerSkillsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LocalSkillScan
JSON400 *BadRequest
JSON401 *Unauthenticated
JSON404 *NotFound
JSON409 *Conflict
JSON503 *ServiceUnavailable
}
// Status returns HTTPResponse.Status
func (r ScanLocalComputerSkillsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ScanLocalComputerSkillsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ScanLocalComputerSkillsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ReconcileVoiceWorkersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VoiceWorkersReconcileResult
JSON401 *Unauthenticated
}
// Status returns HTTPResponse.Status
func (r ReconcileVoiceWorkersResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ReconcileVoiceWorkersResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ReconcileVoiceWorkersResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
// GetLlmWikiHealthWithResponse request returning *GetLlmWikiHealthResponse
func (c *ClientWithResponses) GetLlmWikiHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLlmWikiHealthResponse, error) {
rsp, err := c.GetLlmWikiHealth(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetLlmWikiHealthResponse(rsp)
}
// ExportDocumentWithBodyWithResponse request with arbitrary body returning *ExportDocumentResponse
func (c *ClientWithResponses) ExportDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportDocumentResponse, error) {
rsp, err := c.ExportDocumentWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseExportDocumentResponse(rsp)
}
func (c *ClientWithResponses) ExportDocumentWithResponse(ctx context.Context, body ExportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportDocumentResponse, error) {
rsp, err := c.ExportDocument(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseExportDocumentResponse(rsp)
}
// ImportDocumentWithBodyWithResponse request with arbitrary body returning *ImportDocumentResponse
func (c *ClientWithResponses) ImportDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportDocumentResponse, error) {
rsp, err := c.ImportDocumentWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseImportDocumentResponse(rsp)
}
func (c *ClientWithResponses) ImportDocumentWithResponse(ctx context.Context, body ImportDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportDocumentResponse, error) {
rsp, err := c.ImportDocument(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseImportDocumentResponse(rsp)
}
// ApplyDocumentChangeWithBodyWithResponse request with arbitrary body returning *ApplyDocumentChangeResponse
func (c *ClientWithResponses) ApplyDocumentChangeWithBodyWithResponse(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyDocumentChangeResponse, error) {
rsp, err := c.ApplyDocumentChangeWithBody(ctx, documentId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseApplyDocumentChangeResponse(rsp)
}
func (c *ClientWithResponses) ApplyDocumentChangeWithResponse(ctx context.Context, documentId DocumentId, body ApplyDocumentChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyDocumentChangeResponse, error) {
rsp, err := c.ApplyDocumentChange(ctx, documentId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseApplyDocumentChangeResponse(rsp)
}
// DisconnectDocumentConnectionsWithBodyWithResponse request with arbitrary body returning *DisconnectDocumentConnectionsResponse
func (c *ClientWithResponses) DisconnectDocumentConnectionsWithBodyWithResponse(ctx context.Context, documentId DocumentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisconnectDocumentConnectionsResponse, error) {
rsp, err := c.DisconnectDocumentConnectionsWithBody(ctx, documentId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseDisconnectDocumentConnectionsResponse(rsp)
}
func (c *ClientWithResponses) DisconnectDocumentConnectionsWithResponse(ctx context.Context, documentId DocumentId, body DisconnectDocumentConnectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*DisconnectDocumentConnectionsResponse, error) {
rsp, err := c.DisconnectDocumentConnections(ctx, documentId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseDisconnectDocumentConnectionsResponse(rsp)
}
// GetMemoryFailureSummaryWithResponse request returning *GetMemoryFailureSummaryResponse
func (c *ClientWithResponses) GetMemoryFailureSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMemoryFailureSummaryResponse, error) {
rsp, err := c.GetMemoryFailureSummary(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetMemoryFailureSummaryResponse(rsp)
}
// RetryMemoryFailuresWithBodyWithResponse request with arbitrary body returning *RetryMemoryFailuresResponse
func (c *ClientWithResponses) RetryMemoryFailuresWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryMemoryFailuresResponse, error) {
rsp, err := c.RetryMemoryFailuresWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseRetryMemoryFailuresResponse(rsp)
}
func (c *ClientWithResponses) RetryMemoryFailuresWithResponse(ctx context.Context, body RetryMemoryFailuresJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryMemoryFailuresResponse, error) {
rsp, err := c.RetryMemoryFailures(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseRetryMemoryFailuresResponse(rsp)
}
// ListMemoryEntriesWithResponse request returning *ListMemoryEntriesResponse
func (c *ClientWithResponses) ListMemoryEntriesWithResponse(ctx context.Context, params *ListMemoryEntriesParams, reqEditors ...RequestEditorFn) (*ListMemoryEntriesResponse, error) {
rsp, err := c.ListMemoryEntries(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseListMemoryEntriesResponse(rsp)
}
// GetMemoryEntryWithResponse request returning *GetMemoryEntryResponse
func (c *ClientWithResponses) GetMemoryEntryWithResponse(ctx context.Context, entryId string, params *GetMemoryEntryParams, reqEditors ...RequestEditorFn) (*GetMemoryEntryResponse, error) {
rsp, err := c.GetMemoryEntry(ctx, entryId, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetMemoryEntryResponse(rsp)
}
// GetPersonalKnowledgeGraphVisualizationWithBodyWithResponse request with arbitrary body returning *GetPersonalKnowledgeGraphVisualizationResponse
func (c *ClientWithResponses) GetPersonalKnowledgeGraphVisualizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPersonalKnowledgeGraphVisualizationResponse, error) {
rsp, err := c.GetPersonalKnowledgeGraphVisualizationWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetPersonalKnowledgeGraphVisualizationResponse(rsp)
}
func (c *ClientWithResponses) GetPersonalKnowledgeGraphVisualizationWithResponse(ctx context.Context, body GetPersonalKnowledgeGraphVisualizationJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPersonalKnowledgeGraphVisualizationResponse, error) {
rsp, err := c.GetPersonalKnowledgeGraphVisualization(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetPersonalKnowledgeGraphVisualizationResponse(rsp)
}
// ReadPersonalKnowledgeEvidenceWithBodyWithResponse request with arbitrary body returning *ReadPersonalKnowledgeEvidenceResponse
func (c *ClientWithResponses) ReadPersonalKnowledgeEvidenceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadPersonalKnowledgeEvidenceResponse, error) {
rsp, err := c.ReadPersonalKnowledgeEvidenceWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseReadPersonalKnowledgeEvidenceResponse(rsp)
}
func (c *ClientWithResponses) ReadPersonalKnowledgeEvidenceWithResponse(ctx context.Context, body ReadPersonalKnowledgeEvidenceJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadPersonalKnowledgeEvidenceResponse, error) {
rsp, err := c.ReadPersonalKnowledgeEvidence(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseReadPersonalKnowledgeEvidenceResponse(rsp)
}
// RefreshPocketNoteTrackingItemsWithBodyWithResponse request with arbitrary body returning *RefreshPocketNoteTrackingItemsResponse
func (c *ClientWithResponses) RefreshPocketNoteTrackingItemsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshPocketNoteTrackingItemsResponse, error) {
rsp, err := c.RefreshPocketNoteTrackingItemsWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseRefreshPocketNoteTrackingItemsResponse(rsp)
}
func (c *ClientWithResponses) RefreshPocketNoteTrackingItemsWithResponse(ctx context.Context, body RefreshPocketNoteTrackingItemsJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshPocketNoteTrackingItemsResponse, error) {
rsp, err := c.RefreshPocketNoteTrackingItems(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseRefreshPocketNoteTrackingItemsResponse(rsp)
}
// SyncProfileMemoryWithBodyWithResponse request with arbitrary body returning *SyncProfileMemoryResponse
func (c *ClientWithResponses) SyncProfileMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProfileMemoryResponse, error) {
rsp, err := c.SyncProfileMemoryWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseSyncProfileMemoryResponse(rsp)
}
func (c *ClientWithResponses) SyncProfileMemoryWithResponse(ctx context.Context, body SyncProfileMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProfileMemoryResponse, error) {
rsp, err := c.SyncProfileMemory(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseSyncProfileMemoryResponse(rsp)
}
// UpdateGraphForPublishedWikiWithBodyWithResponse request with arbitrary body returning *UpdateGraphForPublishedWikiResponse
func (c *ClientWithResponses) UpdateGraphForPublishedWikiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGraphForPublishedWikiResponse, error) {
rsp, err := c.UpdateGraphForPublishedWikiWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseUpdateGraphForPublishedWikiResponse(rsp)
}
func (c *ClientWithResponses) UpdateGraphForPublishedWikiWithResponse(ctx context.Context, body UpdateGraphForPublishedWikiJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGraphForPublishedWikiResponse, error) {
rsp, err := c.UpdateGraphForPublishedWiki(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseUpdateGraphForPublishedWikiResponse(rsp)
}
// QueryPersonalKnowledgeWithBodyWithResponse request with arbitrary body returning *QueryPersonalKnowledgeResponse
func (c *ClientWithResponses) QueryPersonalKnowledgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryPersonalKnowledgeResponse, error) {
rsp, err := c.QueryPersonalKnowledgeWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseQueryPersonalKnowledgeResponse(rsp)
}
func (c *ClientWithResponses) QueryPersonalKnowledgeWithResponse(ctx context.Context, body QueryPersonalKnowledgeJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryPersonalKnowledgeResponse, error) {
rsp, err := c.QueryPersonalKnowledge(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseQueryPersonalKnowledgeResponse(rsp)
}
// GetMemoryRebuildWithResponse request returning *GetMemoryRebuildResponse
func (c *ClientWithResponses) GetMemoryRebuildWithResponse(ctx context.Context, params *GetMemoryRebuildParams, reqEditors ...RequestEditorFn) (*GetMemoryRebuildResponse, error) {
rsp, err := c.GetMemoryRebuild(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetMemoryRebuildResponse(rsp)
}
// StartMemoryRebuildWithBodyWithResponse request with arbitrary body returning *StartMemoryRebuildResponse
func (c *ClientWithResponses) StartMemoryRebuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMemoryRebuildResponse, error) {
rsp, err := c.StartMemoryRebuildWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseStartMemoryRebuildResponse(rsp)
}
func (c *ClientWithResponses) StartMemoryRebuildWithResponse(ctx context.Context, body StartMemoryRebuildJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMemoryRebuildResponse, error) {
rsp, err := c.StartMemoryRebuild(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseStartMemoryRebuildResponse(rsp)
}
// GenerateWikiRefreshCandidatesWithBodyWithResponse request with arbitrary body returning *GenerateWikiRefreshCandidatesResponse
func (c *ClientWithResponses) GenerateWikiRefreshCandidatesWithBodyWithResponse(ctx context.Context, wikiRefreshId TeamHubId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateWikiRefreshCandidatesResponse, error) {
rsp, err := c.GenerateWikiRefreshCandidatesWithBody(ctx, wikiRefreshId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseGenerateWikiRefreshCandidatesResponse(rsp)
}
func (c *ClientWithResponses) GenerateWikiRefreshCandidatesWithResponse(ctx context.Context, wikiRefreshId TeamHubId, body GenerateWikiRefreshCandidatesJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateWikiRefreshCandidatesResponse, error) {
rsp, err := c.GenerateWikiRefreshCandidates(ctx, wikiRefreshId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseGenerateWikiRefreshCandidatesResponse(rsp)
}
// GetLlmWikiReadinessWithResponse request returning *GetLlmWikiReadinessResponse
func (c *ClientWithResponses) GetLlmWikiReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLlmWikiReadinessResponse, error) {
rsp, err := c.GetLlmWikiReadiness(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetLlmWikiReadinessResponse(rsp)
}
// NormalizeDocumentWithBodyWithResponse request with arbitrary body returning *NormalizeDocumentResponse
func (c *ClientWithResponses) NormalizeDocumentWithBodyWithResponse(ctx context.Context, params *NormalizeDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NormalizeDocumentResponse, error) {
rsp, err := c.NormalizeDocumentWithBody(ctx, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseNormalizeDocumentResponse(rsp)
}
// ReadAgentDebugContextHistoryWithBodyWithResponse request with arbitrary body returning *ReadAgentDebugContextHistoryResponse
func (c *ClientWithResponses) ReadAgentDebugContextHistoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadAgentDebugContextHistoryResponse, error) {
rsp, err := c.ReadAgentDebugContextHistoryWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseReadAgentDebugContextHistoryResponse(rsp)
}
func (c *ClientWithResponses) ReadAgentDebugContextHistoryWithResponse(ctx context.Context, body ReadAgentDebugContextHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadAgentDebugContextHistoryResponse, error) {
rsp, err := c.ReadAgentDebugContextHistory(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseReadAgentDebugContextHistoryResponse(rsp)
}
// CancelAgentRunWithBodyWithResponse request with arbitrary body returning *CancelAgentRunResponse
func (c *ClientWithResponses) CancelAgentRunWithBodyWithResponse(ctx context.Context, runId RunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error) {
rsp, err := c.CancelAgentRunWithBody(ctx, runId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCancelAgentRunResponse(rsp)
}
func (c *ClientWithResponses) CancelAgentRunWithResponse(ctx context.Context, runId RunId, body CancelAgentRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelAgentRunResponse, error) {
rsp, err := c.CancelAgentRun(ctx, runId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCancelAgentRunResponse(rsp)
}
// NotifyAgentRegistrationChangedWithResponse request returning *NotifyAgentRegistrationChangedResponse
func (c *ClientWithResponses) NotifyAgentRegistrationChangedWithResponse(ctx context.Context, agentId ManagedAgentId, reqEditors ...RequestEditorFn) (*NotifyAgentRegistrationChangedResponse, error) {
rsp, err := c.NotifyAgentRegistrationChanged(ctx, agentId, reqEditors...)
if err != nil {
return nil, err
}
return ParseNotifyAgentRegistrationChangedResponse(rsp)
}
// CallLocalComputerToolWithBodyWithResponse request with arbitrary body returning *CallLocalComputerToolResponse
func (c *ClientWithResponses) CallLocalComputerToolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallLocalComputerToolResponse, error) {
rsp, err := c.CallLocalComputerToolWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCallLocalComputerToolResponse(rsp)
}
func (c *ClientWithResponses) CallLocalComputerToolWithResponse(ctx context.Context, body CallLocalComputerToolJSONRequestBody, reqEditors ...RequestEditorFn) (*CallLocalComputerToolResponse, error) {
rsp, err := c.CallLocalComputerTool(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCallLocalComputerToolResponse(rsp)
}
// CallModelWithBodyWithResponse request with arbitrary body returning *CallModelResponse
func (c *ClientWithResponses) CallModelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallModelResponse, error) {
rsp, err := c.CallModelWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCallModelResponse(rsp)
}
func (c *ClientWithResponses) CallModelWithResponse(ctx context.Context, body CallModelJSONRequestBody, reqEditors ...RequestEditorFn) (*CallModelResponse, error) {
rsp, err := c.CallModel(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseCallModelResponse(rsp)
}
// JudgeProactiveEventWithBodyWithResponse request with arbitrary body returning *JudgeProactiveEventResponse
func (c *ClientWithResponses) JudgeProactiveEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*JudgeProactiveEventResponse, error) {
rsp, err := c.JudgeProactiveEventWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseJudgeProactiveEventResponse(rsp)
}
func (c *ClientWithResponses) JudgeProactiveEventWithResponse(ctx context.Context, body JudgeProactiveEventJSONRequestBody, reqEditors ...RequestEditorFn) (*JudgeProactiveEventResponse, error) {
rsp, err := c.JudgeProactiveEvent(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseJudgeProactiveEventResponse(rsp)
}
// RemoveLocalComputerWithResponse request returning *RemoveLocalComputerResponse
func (c *ClientWithResponses) RemoveLocalComputerWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*RemoveLocalComputerResponse, error) {
rsp, err := c.RemoveLocalComputer(ctx, tenantId, ownerActorId, computerId, reqEditors...)
if err != nil {
return nil, err
}
return ParseRemoveLocalComputerResponse(rsp)
}
// DisconnectLocalComputerBrowserConnectionWithResponse request returning *DisconnectLocalComputerBrowserConnectionResponse
func (c *ClientWithResponses) DisconnectLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*DisconnectLocalComputerBrowserConnectionResponse, error) {
rsp, err := c.DisconnectLocalComputerBrowserConnection(ctx, tenantId, ownerActorId, computerId, reqEditors...)
if err != nil {
return nil, err
}
return ParseDisconnectLocalComputerBrowserConnectionResponse(rsp)
}
// GetLocalComputerBrowserConnectionWithResponse request returning *GetLocalComputerBrowserConnectionResponse
func (c *ClientWithResponses) GetLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerBrowserConnectionResponse, error) {
rsp, err := c.GetLocalComputerBrowserConnection(ctx, tenantId, ownerActorId, computerId, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetLocalComputerBrowserConnectionResponse(rsp)
}
// ConfigureLocalComputerBrowserConnectionWithBodyWithResponse request with arbitrary body returning *ConfigureLocalComputerBrowserConnectionResponse
func (c *ClientWithResponses) ConfigureLocalComputerBrowserConnectionWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureLocalComputerBrowserConnectionResponse, error) {
rsp, err := c.ConfigureLocalComputerBrowserConnectionWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigureLocalComputerBrowserConnectionResponse(rsp)
}
func (c *ClientWithResponses) ConfigureLocalComputerBrowserConnectionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ConfigureLocalComputerBrowserConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureLocalComputerBrowserConnectionResponse, error) {
rsp, err := c.ConfigureLocalComputerBrowserConnection(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigureLocalComputerBrowserConnectionResponse(rsp)
}
// ActOnLocalComputerModelsWithBodyWithResponse request with arbitrary body returning *ActOnLocalComputerModelsResponse
func (c *ClientWithResponses) ActOnLocalComputerModelsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActOnLocalComputerModelsResponse, error) {
rsp, err := c.ActOnLocalComputerModelsWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseActOnLocalComputerModelsResponse(rsp)
}
func (c *ClientWithResponses) ActOnLocalComputerModelsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*ActOnLocalComputerModelsResponse, error) {
rsp, err := c.ActOnLocalComputerModels(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseActOnLocalComputerModelsResponse(rsp)
}
// GetLocalComputerModelSourceWithResponse request returning *GetLocalComputerModelSourceResponse
func (c *ClientWithResponses) GetLocalComputerModelSourceWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerModelSourceResponse, error) {
rsp, err := c.GetLocalComputerModelSource(ctx, tenantId, ownerActorId, computerId, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetLocalComputerModelSourceResponse(rsp)
}
// ApplyLocalComputerModelSourceWithBodyWithResponse request with arbitrary body returning *ApplyLocalComputerModelSourceResponse
func (c *ClientWithResponses) ApplyLocalComputerModelSourceWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyLocalComputerModelSourceResponse, error) {
rsp, err := c.ApplyLocalComputerModelSourceWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseApplyLocalComputerModelSourceResponse(rsp)
}
func (c *ClientWithResponses) ApplyLocalComputerModelSourceWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ApplyLocalComputerModelSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyLocalComputerModelSourceResponse, error) {
rsp, err := c.ApplyLocalComputerModelSource(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseApplyLocalComputerModelSourceResponse(rsp)
}
// ListLocalComputerByokModelsWithBodyWithResponse request with arbitrary body returning *ListLocalComputerByokModelsResponse
func (c *ClientWithResponses) ListLocalComputerByokModelsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListLocalComputerByokModelsResponse, error) {
rsp, err := c.ListLocalComputerByokModelsWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseListLocalComputerByokModelsResponse(rsp)
}
func (c *ClientWithResponses) ListLocalComputerByokModelsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ListLocalComputerByokModelsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListLocalComputerByokModelsResponse, error) {
rsp, err := c.ListLocalComputerByokModels(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseListLocalComputerByokModelsResponse(rsp)
}
// TestLocalComputerByokWithBodyWithResponse request with arbitrary body returning *TestLocalComputerByokResponse
func (c *ClientWithResponses) TestLocalComputerByokWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestLocalComputerByokResponse, error) {
rsp, err := c.TestLocalComputerByokWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseTestLocalComputerByokResponse(rsp)
}
func (c *ClientWithResponses) TestLocalComputerByokWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body TestLocalComputerByokJSONRequestBody, reqEditors ...RequestEditorFn) (*TestLocalComputerByokResponse, error) {
rsp, err := c.TestLocalComputerByok(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseTestLocalComputerByokResponse(rsp)
}
// GetLocalComputerPermissionsWithResponse request returning *GetLocalComputerPermissionsResponse
func (c *ClientWithResponses) GetLocalComputerPermissionsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, reqEditors ...RequestEditorFn) (*GetLocalComputerPermissionsResponse, error) {
rsp, err := c.GetLocalComputerPermissions(ctx, tenantId, ownerActorId, computerId, reqEditors...)
if err != nil {
return nil, err
}
return ParseGetLocalComputerPermissionsResponse(rsp)
}
// ActOnLocalComputerPermissionWithBodyWithResponse request with arbitrary body returning *ActOnLocalComputerPermissionResponse
func (c *ClientWithResponses) ActOnLocalComputerPermissionWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActOnLocalComputerPermissionResponse, error) {
rsp, err := c.ActOnLocalComputerPermissionWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseActOnLocalComputerPermissionResponse(rsp)
}
func (c *ClientWithResponses) ActOnLocalComputerPermissionWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ActOnLocalComputerPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*ActOnLocalComputerPermissionResponse, error) {
rsp, err := c.ActOnLocalComputerPermission(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseActOnLocalComputerPermissionResponse(rsp)
}
// ScanLocalComputerSkillsWithBodyWithResponse request with arbitrary body returning *ScanLocalComputerSkillsResponse
func (c *ClientWithResponses) ScanLocalComputerSkillsWithBodyWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScanLocalComputerSkillsResponse, error) {
rsp, err := c.ScanLocalComputerSkillsWithBody(ctx, tenantId, ownerActorId, computerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseScanLocalComputerSkillsResponse(rsp)
}
func (c *ClientWithResponses) ScanLocalComputerSkillsWithResponse(ctx context.Context, tenantId TenantId, ownerActorId OwnerActorId, computerId ComputerId, body ScanLocalComputerSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*ScanLocalComputerSkillsResponse, error) {
rsp, err := c.ScanLocalComputerSkills(ctx, tenantId, ownerActorId, computerId, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseScanLocalComputerSkillsResponse(rsp)
}
// ReconcileVoiceWorkersWithResponse request returning *ReconcileVoiceWorkersResponse
func (c *ClientWithResponses) ReconcileVoiceWorkersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReconcileVoiceWorkersResponse, error) {
rsp, err := c.ReconcileVoiceWorkers(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseReconcileVoiceWorkersResponse(rsp)
}
// ParseGetLlmWikiHealthResponse parses an HTTP response from a GetLlmWikiHealthWithResponse call
func ParseGetLlmWikiHealthResponse(rsp *http.Response) (*GetLlmWikiHealthResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetLlmWikiHealthResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
Status interface{} `json:"status"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
}
return response, nil
}
// ParseExportDocumentResponse parses an HTTP response from a ExportDocumentWithResponse call
func ParseExportDocumentResponse(rsp *http.Response) (*ExportDocumentResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ExportDocumentResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ExportDocumentResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest DocumentInternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSONDefault = &dest
}
return response, nil
}
// ParseImportDocumentResponse parses an HTTP response from a ImportDocumentWithResponse call
func ParseImportDocumentResponse(rsp *http.Response) (*ImportDocumentResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ImportDocumentResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ComputedDocumentState
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest DocumentInternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSONDefault = &dest
}
return response, nil
}
// ParseApplyDocumentChangeResponse parses an HTTP response from a ApplyDocumentChangeWithResponse call
func ParseApplyDocumentChangeResponse(rsp *http.Response) (*ApplyDocumentChangeResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ApplyDocumentChangeResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ApplyDocumentChangeResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest DocumentInternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSONDefault = &dest
}
return response, nil
}
// ParseDisconnectDocumentConnectionsResponse parses an HTTP response from a DisconnectDocumentConnectionsWithResponse call
func ParseDisconnectDocumentConnectionsResponse(rsp *http.Response) (*DisconnectDocumentConnectionsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &DisconnectDocumentConnectionsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest DocumentInternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSONDefault = &dest
}
return response, nil
}
// ParseGetMemoryFailureSummaryResponse parses an HTTP response from a GetMemoryFailureSummaryWithResponse call
func ParseGetMemoryFailureSummaryResponse(rsp *http.Response) (*GetMemoryFailureSummaryResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetMemoryFailureSummaryResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MemoryFailureSummaryResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
}
return response, nil
}
// ParseRetryMemoryFailuresResponse parses an HTTP response from a RetryMemoryFailuresWithResponse call
func ParseRetryMemoryFailuresResponse(rsp *http.Response) (*RetryMemoryFailuresResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RetryMemoryFailuresResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MemoryFailureRetryResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseListMemoryEntriesResponse parses an HTTP response from a ListMemoryEntriesWithResponse call
func ParseListMemoryEntriesResponse(rsp *http.Response) (*ListMemoryEntriesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ListMemoryEntriesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MemoryEntryPage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetMemoryEntryResponse parses an HTTP response from a GetMemoryEntryWithResponse call
func ParseGetMemoryEntryResponse(rsp *http.Response) (*GetMemoryEntryResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetMemoryEntryResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MemoryEntry
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetPersonalKnowledgeGraphVisualizationResponse parses an HTTP response from a GetPersonalKnowledgeGraphVisualizationWithResponse call
func ParseGetPersonalKnowledgeGraphVisualizationResponse(rsp *http.Response) (*GetPersonalKnowledgeGraphVisualizationResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetPersonalKnowledgeGraphVisualizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseReadPersonalKnowledgeEvidenceResponse parses an HTTP response from a ReadPersonalKnowledgeEvidenceWithResponse call
func ParseReadPersonalKnowledgeEvidenceResponse(rsp *http.Response) (*ReadPersonalKnowledgeEvidenceResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ReadPersonalKnowledgeEvidenceResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PersonalKnowledgeEvidenceReadResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseRefreshPocketNoteTrackingItemsResponse parses an HTTP response from a RefreshPocketNoteTrackingItemsWithResponse call
func ParseRefreshPocketNoteTrackingItemsResponse(rsp *http.Response) (*RefreshPocketNoteTrackingItemsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RefreshPocketNoteTrackingItemsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseSyncProfileMemoryResponse parses an HTTP response from a SyncProfileMemoryWithResponse call
func ParseSyncProfileMemoryResponse(rsp *http.Response) (*SyncProfileMemoryResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &SyncProfileMemoryResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseUpdateGraphForPublishedWikiResponse parses an HTTP response from a UpdateGraphForPublishedWikiWithResponse call
func ParseUpdateGraphForPublishedWikiResponse(rsp *http.Response) (*UpdateGraphForPublishedWikiResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &UpdateGraphForPublishedWikiResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseQueryPersonalKnowledgeResponse parses an HTTP response from a QueryPersonalKnowledgeWithResponse call
func ParseQueryPersonalKnowledgeResponse(rsp *http.Response) (*QueryPersonalKnowledgeResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &QueryPersonalKnowledgeResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PersonalKnowledgeQueryResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetMemoryRebuildResponse parses an HTTP response from a GetMemoryRebuildWithResponse call
func ParseGetMemoryRebuildResponse(rsp *http.Response) (*GetMemoryRebuildResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetMemoryRebuildResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MemoryRebuildStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
}
return response, nil
}
// ParseStartMemoryRebuildResponse parses an HTTP response from a StartMemoryRebuildWithResponse call
func ParseStartMemoryRebuildResponse(rsp *http.Response) (*StartMemoryRebuildResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &StartMemoryRebuildResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
var dest MemoryRebuildResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON202 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest MemoryError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
}
return response, nil
}
// ParseGenerateWikiRefreshCandidatesResponse parses an HTTP response from a GenerateWikiRefreshCandidatesWithResponse call
func ParseGenerateWikiRefreshCandidatesResponse(rsp *http.Response) (*GenerateWikiRefreshCandidatesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GenerateWikiRefreshCandidatesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest WikiRefreshCandidateGenerationResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest WikiRefreshBadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest ServiceTokenErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
var dest WikiRefreshBadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON413 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest WikiRefreshCandidateErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest WikiOperationRetryable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
case rsp.StatusCode == 200:
// Content-type (application/x-ndjson) unsupported
}
return response, nil
}
// ParseGetLlmWikiReadinessResponse parses an HTTP response from a GetLlmWikiReadinessWithResponse call
func ParseGetLlmWikiReadinessResponse(rsp *http.Response) (*GetLlmWikiReadinessResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetLlmWikiReadinessResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
Status interface{} `json:"status"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest struct {
Reason string `json:"reason"`
Status interface{} `json:"status"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseNormalizeDocumentResponse parses an HTTP response from a NormalizeDocumentWithResponse call
func ParseNormalizeDocumentResponse(rsp *http.Response) (*NormalizeDocumentResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &NormalizeDocumentResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest DocumentNormalizationTerminalErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest ServiceTokenErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
var dest DocumentNormalizationTerminalErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON413 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415:
var dest DocumentNormalizationTerminalErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON415 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest DocumentNormalizationTerminalErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON422 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest DocumentNormalizationRetryableErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseReadAgentDebugContextHistoryResponse parses an HTTP response from a ReadAgentDebugContextHistoryWithResponse call
func ParseReadAgentDebugContextHistoryResponse(rsp *http.Response) (*ReadAgentDebugContextHistoryResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ReadAgentDebugContextHistoryResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest AgentDebugRuntimeHistory
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseCancelAgentRunResponse parses an HTTP response from a CancelAgentRunWithResponse call
func ParseCancelAgentRunResponse(rsp *http.Response) (*CancelAgentRunResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &CancelAgentRunResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest CancelAgentRunResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseNotifyAgentRegistrationChangedResponse parses an HTTP response from a NotifyAgentRegistrationChangedWithResponse call
func ParseNotifyAgentRegistrationChangedResponse(rsp *http.Response) (*NotifyAgentRegistrationChangedResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &NotifyAgentRegistrationChangedResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseCallLocalComputerToolResponse parses an HTTP response from a CallLocalComputerToolWithResponse call
func ParseCallLocalComputerToolResponse(rsp *http.Response) (*CallLocalComputerToolResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &CallLocalComputerToolResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest LocalComputerToolResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseCallModelResponse parses an HTTP response from a CallModelWithResponse call
func ParseCallModelResponse(rsp *http.Response) (*CallModelResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &CallModelResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ModelCallResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest ErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest ErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 504:
var dest ErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON504 = &dest
}
return response, nil
}
// ParseJudgeProactiveEventResponse parses an HTTP response from a JudgeProactiveEventWithResponse call
func ParseJudgeProactiveEventResponse(rsp *http.Response) (*JudgeProactiveEventResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &JudgeProactiveEventResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ProactiveEventJudgement
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseRemoveLocalComputerResponse parses an HTTP response from a RemoveLocalComputerWithResponse call
func ParseRemoveLocalComputerResponse(rsp *http.Response) (*RemoveLocalComputerResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RemoveLocalComputerResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseDisconnectLocalComputerBrowserConnectionResponse parses an HTTP response from a DisconnectLocalComputerBrowserConnectionWithResponse call
func ParseDisconnectLocalComputerBrowserConnectionResponse(rsp *http.Response) (*DisconnectLocalComputerBrowserConnectionResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &DisconnectLocalComputerBrowserConnectionResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest BrowserConnectionStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetLocalComputerBrowserConnectionResponse parses an HTTP response from a GetLocalComputerBrowserConnectionWithResponse call
func ParseGetLocalComputerBrowserConnectionResponse(rsp *http.Response) (*GetLocalComputerBrowserConnectionResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetLocalComputerBrowserConnectionResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest BrowserConnectionStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseConfigureLocalComputerBrowserConnectionResponse parses an HTTP response from a ConfigureLocalComputerBrowserConnectionWithResponse call
func ParseConfigureLocalComputerBrowserConnectionResponse(rsp *http.Response) (*ConfigureLocalComputerBrowserConnectionResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigureLocalComputerBrowserConnectionResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest BrowserConnectionStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseActOnLocalComputerModelsResponse parses an HTTP response from a ActOnLocalComputerModelsWithResponse call
func ParseActOnLocalComputerModelsResponse(rsp *http.Response) (*ActOnLocalComputerModelsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ActOnLocalComputerModelsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest LocalModelActionAck
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetLocalComputerModelSourceResponse parses an HTTP response from a GetLocalComputerModelSourceWithResponse call
func ParseGetLocalComputerModelSourceResponse(rsp *http.Response) (*GetLocalComputerModelSourceResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetLocalComputerModelSourceResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ModelSourceStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseApplyLocalComputerModelSourceResponse parses an HTTP response from a ApplyLocalComputerModelSourceWithResponse call
func ParseApplyLocalComputerModelSourceResponse(rsp *http.Response) (*ApplyLocalComputerModelSourceResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ApplyLocalComputerModelSourceResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ModelSourceStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseListLocalComputerByokModelsResponse parses an HTTP response from a ListLocalComputerByokModelsWithResponse call
func ParseListLocalComputerByokModelsResponse(rsp *http.Response) (*ListLocalComputerByokModelsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ListLocalComputerByokModelsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ByokModelList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseTestLocalComputerByokResponse parses an HTTP response from a TestLocalComputerByokWithResponse call
func ParseTestLocalComputerByokResponse(rsp *http.Response) (*TestLocalComputerByokResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &TestLocalComputerByokResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ByokTestResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseGetLocalComputerPermissionsResponse parses an HTTP response from a GetLocalComputerPermissionsWithResponse call
func ParseGetLocalComputerPermissionsResponse(rsp *http.Response) (*GetLocalComputerPermissionsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &GetLocalComputerPermissionsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ComputerPermissionStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseActOnLocalComputerPermissionResponse parses an HTTP response from a ActOnLocalComputerPermissionWithResponse call
func ParseActOnLocalComputerPermissionResponse(rsp *http.Response) (*ActOnLocalComputerPermissionResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ActOnLocalComputerPermissionResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest ComputerPermissionStatus
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
var dest BadGateway
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON502 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseScanLocalComputerSkillsResponse parses an HTTP response from a ScanLocalComputerSkillsWithResponse call
func ParseScanLocalComputerSkillsResponse(rsp *http.Response) (*ScanLocalComputerSkillsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ScanLocalComputerSkillsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest LocalSkillScan
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON409 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest ServiceUnavailable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON503 = &dest
}
return response, nil
}
// ParseReconcileVoiceWorkersResponse parses an HTTP response from a ReconcileVoiceWorkersWithResponse call
func ParseReconcileVoiceWorkersResponse(rsp *http.Response) (*ReconcileVoiceWorkersResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ReconcileVoiceWorkersResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest VoiceWorkersReconcileResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Unauthenticated
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON401 = &dest
}
return response, nil
}