Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- type AcceptInvitationResponse
- type AccountDeletionInfo
- type AgentTask
- type AgentTaskListResponse
- type AgentTaskVerificationStatus
- type ApprovalCall
- type AuditAction
- type AuditEvent
- type AuditEventActionCategory
- type AuditLogListResponse
- type AuthURLResponse
- type BillingErrorResponse
- type Business
- type BusinessIDPath
- type BusinessMembershipRoleRef
- type BusinessMembershipSummary
- type BusinessNotFound
- type ChangeEmailBeforeVerifyJSONRequestBody
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequest
- type ChannelDemandCount
- type ChannelDemandSummary
- type ChannelRequestChannel
- type ChatHistoryEntry
- type ChatHistoryEntryRole
- type ChatRequest
- type ChatRequestProjectWhitelistMode
- type ChatRequestSelectedPlatforms
- type ChatTurnJSONRequestBody
- type ChatTurnParams
- type ChatTurnRequest
- type ChatTurnRequestSelectedPlatforms
- type ChatView
- type CodeErrorResponse
- type ConfirmEmailVerificationJSONRequestBody
- type ConfirmPasswordResetJSONRequestBody
- type ConfirmPasswordResetRequest
- type ConnectDelegatedYandexBusinessJSONRequestBody
- type ConnectDelegatedYandexRequest
- type ConnectTelegramJSONRequestBody
- type ConnectTelegramRequest
- type ConnectVKJSONRequestBody
- type ConnectVKRequest
- type ConnectYandexBusinessJSONRequestBody
- type ConnectYandexRequest
- type ConsentRecord
- type ConsentRequiredResponse
- type ConsentRequiredResponseCode
- type ContentTemplate
- type ContentTemplateKind
- type ContentTemplateRequest
- type ContentTemplateRequestKind
- type Conversation
- type ConversationTitleStatus
- type CreateBusinessJSONRequestBody
- type CreateBusinessRequest
- type CreateChannelRequestJSONRequestBody
- type CreateChannelRequestRequest
- type CreateChannelRequestRequestChannel
- type CreateContentTemplateFromPostJSONRequestBody
- type CreateContentTemplateFromReviewJSONRequestBody
- type CreateContentTemplateFromSourceRequest
- type CreateContentTemplateJSONRequestBody
- type CreateConversationJSONRequestBody
- type CreateConversationRequest
- type CreateInvitationJSONRequestBody
- type CreateInvitationRequest
- type CreateInvitationResponse
- type CreateProjectJSONRequestBody
- type CreateRoleJSONRequestBody
- type CreateRoleParams
- type CreateRoleRequest
- type DailySpendResponse
- type DeleteAccountJSONRequestBody
- type DeleteAccountRequest
- type DeleteRoleParams
- type DescriptionTemplateResponse
- type DraftReplyExample
- type DraftReplyRequest
- type DraftReplyResponse
- type DriftAlertSettings
- type DriftAlertSettingsLocale
- type EmailBeforeVerifyRequest
- type ErrorResponse
- type GetPresenceHealthParams
- type GetReviewSLAParams
- type GetVKCommunityAuthURLParams
- type GoogleBusinessOAuthCallbackParams
- type GoogleLocationRef
- type GoogleLocationsResponse
- type GoogleSelectLocationRequest
- type HITLAlreadyResolvedError
- type HITLAlreadyResolvedErrorError
- type HITLAlreadyResolvedErrorReason
- type HITLBatchResolvingError
- type HITLBatchResolvingErrorError
- type HITLBatchResolvingErrorReason
- type HITLDecisionInput
- type HITLDecisionInputAction
- type HITLExpiredError
- type HITLExpiredErrorError
- type HITLFieldNotEditableError
- type HITLNonScalarFieldError
- type HITLRejectReasonTooLongError
- type HITLRejectReasonTooLongErrorError
- type HITLResolveRequest
- type HITLResolveResponse
- type HITLResolvedCall
- type HITLResolvedCallAction
- type HITLShapeMismatchError
- type HITLShapeMismatchErrorError
- type HitlResolveBatchJSONRequestBody
- type HitlResumeParams
- type IngestBusinessTelemetryJSONBody
- type IngestBusinessTelemetryJSONRequestBody
- type IngestTelemetryJSONBody
- type IngestTelemetryJSONRequestBody
- type Integration
- type IntegrationHealth
- type IntegrationHealthStatus
- type IntegrationIDPath
- type InternalError
- type InternalGetDailySpendParams
- type InternalGetTokenParams
- type InternalLogUsageJSONRequestBody
- type InternalTokenResponse
- type InvitationPreview
- type InvitationStateErrorResponse
- type InvitationTokenPath
- type JoinWaitlistJSONRequestBody
- type LandingEventRequest
- type LandingEventRequestCta
- type ListAgentTasksParams
- type ListAuditLogsParams
- type ListAuditLogsParamsCategory
- type ListConsentsResponse
- type ListConversationsParams
- type ListPostsParams
- type ListReviewsParams
- type ListReviewsParamsReplyStatus
- type ListYandexCompaniesJSONRequestBody
- type LoginJSONRequestBody
- type LoginRequest
- type LoginResponse
- type MeResponse
- type MeResponsePreferredLocale
- type Member
- type Message
- type MessageAttachment
- type MessageRole
- type MessageToolCall
- type MessageToolResult
- type MoveConversationJSONRequestBody
- type MoveConversationRequest
- type MyPermissionsResponse
- type OrchestratorChatJSONRequestBody
- type OrchestratorChatParams
- type OrchestratorDraftReplyJSONRequestBody
- type OrchestratorResumeJSONRequestBody
- type OrchestratorResumeParams
- type OwnerBriefResponse
- type PasswordResetErrorResponse
- type PendingApproval
- type PendingApprovalCall
- type PendingApprovalStatus
- type PendingDeletionResponse
- type PendingDeletionResponseCode
- type PendingInvitation
- type Permission
- type PermissionGroup
- type PermissionRegistryResponse
- type Platform
- type PlatformStatus
- type Post
- type PostListResponse
- type PostPlatformResult
- type PresenceHealthResponse
- type PresenceRecommendation
- type PresenceRecommendationArea
- type PresenceSubScores
- type PresenceWeights
- type ProbeYandexBusinessJSONRequestBody
- type Project
- type ProjectApprovalOverrides
- type ProjectConversationCountResponse
- type ProjectDeleteResponse
- type ProjectRequest
- type ProjectRequestApprovalOverrides
- type ProjectRequestWhitelistMode
- type ProjectWhitelistMode
- type PublicChannelVoteRequest
- type PublicChannelVoteRequestChannel
- type ReconsentJSONRequestBody
- type ReconsentPolicy
- type ReconsentRequest
- type RecordChannelVoteJSONRequestBody
- type RecordLandingEventJSONRequestBody
- type RefreshStartedResponse
- type RefreshStartedResponseStatus
- type RefreshTelegramLinkedGroupJSONRequestBody
- type RefreshTelegramRequest
- type RefreshTelegramResponse
- type RefreshTelegramResponseLinkedGroupStatus
- type RefreshTokenResponse
- type RegisterConsents
- type RegisterJSONRequestBody
- type RegisterRequest
- type RenderContentTemplateJSONRequestBody
- type RenderContentTemplateRequest
- type RenderContentTemplateResponse
- type ReplyToReviewJSONRequestBody
- type ReplyToReviewRequest
- type RequestPasswordResetJSONRequestBody
- type RequestPasswordResetRequest
- type RequiresReconsentInfo
- type ResumeRequest
- type ResumeRequestWhitelistMode
- type Review
- type ReviewAutopilotResponse
- type ReviewDelegationMetrics
- type ReviewDelegationWeek
- type ReviewDraftStatus
- type ReviewListResponse
- type ReviewPlatformSLA
- type ReviewReplyStatus
- type ReviewSLAResponse
- type ReviewUnansweredBuckets
- type Role
- type RoleIDPath
- type SSEConcurrencyError
- type SSEConcurrencyErrorCode
- type SSEEvent
- func (t SSEEvent) AsSSEEventApprovalRequired() (SSEEventApprovalRequired, error)
- func (t SSEEvent) AsSSEEventDone() (SSEEventDone, error)
- func (t SSEEvent) AsSSEEventError() (SSEEventError, error)
- func (t SSEEvent) AsSSEEventText() (SSEEventText, error)
- func (t SSEEvent) AsSSEEventToolCall() (SSEEventToolCall, error)
- func (t SSEEvent) AsSSEEventToolRejected() (SSEEventToolRejected, error)
- func (t SSEEvent) AsSSEEventToolResult() (SSEEventToolResult, error)
- func (t SSEEvent) Discriminator() (string, error)
- func (t *SSEEvent) FromSSEEventApprovalRequired(v SSEEventApprovalRequired) error
- func (t *SSEEvent) FromSSEEventDone(v SSEEventDone) error
- func (t *SSEEvent) FromSSEEventError(v SSEEventError) error
- func (t *SSEEvent) FromSSEEventText(v SSEEventText) error
- func (t *SSEEvent) FromSSEEventToolCall(v SSEEventToolCall) error
- func (t *SSEEvent) FromSSEEventToolRejected(v SSEEventToolRejected) error
- func (t *SSEEvent) FromSSEEventToolResult(v SSEEventToolResult) error
- func (t SSEEvent) MarshalJSON() ([]byte, error)
- func (t *SSEEvent) MergeSSEEventApprovalRequired(v SSEEventApprovalRequired) error
- func (t *SSEEvent) MergeSSEEventDone(v SSEEventDone) error
- func (t *SSEEvent) MergeSSEEventError(v SSEEventError) error
- func (t *SSEEvent) MergeSSEEventText(v SSEEventText) error
- func (t *SSEEvent) MergeSSEEventToolCall(v SSEEventToolCall) error
- func (t *SSEEvent) MergeSSEEventToolRejected(v SSEEventToolRejected) error
- func (t *SSEEvent) MergeSSEEventToolResult(v SSEEventToolResult) error
- func (t *SSEEvent) UnmarshalJSON(b []byte) error
- func (t SSEEvent) ValueByDiscriminator() (interface{}, error)
- type SSEEventApprovalRequired
- type SSEEventApprovalRequiredType
- type SSEEventDone
- type SSEEventDoneType
- type SSEEventError
- type SSEEventErrorType
- type SSEEventText
- type SSEEventTextType
- type SSEEventToolCall
- type SSEEventToolCallType
- type SSEEventToolRejected
- type SSEEventToolRejectedType
- type SSEEventToolResult
- type SSEEventToolResultType
- type SearchParams
- type SearchResult
- type SearchResultTitleStatus
- type SelectGoogleLocationJSONRequestBody
- type SoleOwnerBusinessEntry
- type SoleOwnerResponse
- type SoleOwnerResponseCode
- type StatusOKResponse
- type StatusOkResponse
- type StatusOkResponseStatus
- type TelegramConnectError
- type TelegramLoginRequest
- type TelegramLoginRequestAuthDate0
- type TelegramLoginRequestAuthDate1
- type TelegramLoginRequest_AuthDate
- func (t TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate0() (TelegramLoginRequestAuthDate0, error)
- func (t TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate1() (TelegramLoginRequestAuthDate1, error)
- func (t *TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate0(v TelegramLoginRequestAuthDate0) error
- func (t *TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate1(v TelegramLoginRequestAuthDate1) error
- func (t TelegramLoginRequest_AuthDate) MarshalJSON() ([]byte, error)
- func (t *TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate0(v TelegramLoginRequestAuthDate0) error
- func (t *TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate1(v TelegramLoginRequestAuthDate1) error
- func (t *TelegramLoginRequest_AuthDate) UnmarshalJSON(b []byte) error
- type TelegramLoginVerifiedResponse
- type TelegramOwnerLinkResponse
- type TelemetryEvent
- type TelemetryEventEventType
- type TitlerConflictError
- type TitlerConflictErrorError
- type TitlerDisabledError
- type TitlerDisabledErrorError
- type ToolApprovalsResponse
- type ToolEntry
- type ToolEntryFloor
- type ToolFloor
- type ToolNamesResponse
- type ToolRegistryEntry
- type Unauthorized
- type UpdateBusinessDescriptionTemplateJSONRequestBody
- type UpdateBusinessDriftAlertsJSONRequestBody
- type UpdateBusinessJSONRequestBody
- type UpdateBusinessOwnerBriefJSONRequestBody
- type UpdateBusinessRequest
- type UpdateBusinessReviewAutopilotJSONRequestBody
- type UpdateBusinessScheduleJSONRequestBody
- type UpdateBusinessToolApprovalsJSONRequestBody
- type UpdateBusinessVoiceProfileJSONRequestBody
- type UpdateBusinessVoiceToneJSONRequestBody
- type UpdateContentTemplateJSONRequestBody
- type UpdateConversationJSONRequestBody
- type UpdateConversationRequest
- type UpdateDescriptionTemplateRequest
- type UpdateDriftAlertSettingsRequest
- type UpdateDriftAlertSettingsRequestLocale
- type UpdateMemberRoleJSONRequestBody
- type UpdateMemberRoleRequest
- type UpdateMemberRoleResponse
- type UpdateOwnerBriefRequest
- type UpdatePreferredLocaleJSONRequestBody
- type UpdatePreferredLocaleRequest
- type UpdatePreferredLocaleRequestLocale
- type UpdateProfileRequest
- type UpdateProjectJSONRequestBody
- type UpdateReviewAutopilotRequest
- type UpdateRoleJSONRequestBody
- type UpdateRoleRequest
- type UpdateScheduleRequest
- type UpdateToolApprovalsRequest
- type UpdateVoiceProfileRequest
- type UpdateVoiceToneRequest
- type UploadBusinessLogoMultipartRequestBody
- type UploadLogoRequest
- type UsageLog
- type User
- type UserIDPath
- type UserPreferredLocale
- type VKCommunity
- type ValidationErrorResponse
- type VerifyConfirmRequest
- type VerifyIntegrationsResponse
- type VerifyTelegramLoginJSONRequestBody
- type VerifyYandexAccessRequest
- type VerifyYandexAccessResponse
- type VerifyYandexBusinessAccessJSONRequestBody
- type VersionMismatchResponse
- type VersionMismatchResponseCode
- type VkCommunityOAuthCallbackParams
- type VkOAuthCallbackParams
- type VoiceProfileResponse
- type WaitlistRequest
- type WaitlistRequestPain
- type WaitlistRequestPlan
- type WaitlistRequestSource
- type WaitlistRequestSphere
- type WeeklyValueRecap
- type YandexBusinessOAuthCallbackParams
- type YandexCompaniesResponse
- type YandexCompanyEntry
- type YandexCookiesRequest
- type YandexDelegatedConfigResponse
- type YandexProbeResponse
Constants ¶
const ( CookieAuthScopes = "cookieAuth.Scopes" MtlsScopes = "mtls.Scopes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptInvitationResponse ¶
type AcceptInvitationResponse struct {
BusinessId openapi_types.UUID `json:"business_id" validate:"required,uuid"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
}
AcceptInvitationResponse defines model for AcceptInvitationResponse.
type AccountDeletionInfo ¶
type AccountDeletionInfo struct {
CanRestoreUntil time.Time `json:"canRestoreUntil" validate:"required"`
RequestedAt time.Time `json:"requestedAt" validate:"required"`
ScheduledDeletionAt time.Time `json:"scheduledDeletionAt" validate:"required"`
}
AccountDeletionInfo defines model for AccountDeletionInfo.
type AgentTask ¶
type AgentTask struct {
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CompletedAt *time.Time `json:"completedAt"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
DisplayName *string `json:"displayName,omitempty"`
DisplayNameKey *string `json:"displayNameKey,omitempty"`
Error *string `json:"error,omitempty"`
ErrorCode *string `json:"errorCode,omitempty"`
Id string `json:"id" validate:"required"`
// Input Free-form per-task input payload.
Input *interface{} `json:"input,omitempty"`
// OriginConversationId Exact originating conversation, present only when it is live and owned by the requesting user.
OriginConversationId *string `json:"originConversationId,omitempty"`
// Output Free-form per-task output payload.
Output *interface{} `json:"output,omitempty"`
Platform string `json:"platform" validate:"required"`
StartedAt *time.Time `json:"startedAt"`
Status string `json:"status" validate:"required"`
Type string `json:"type" validate:"required"`
// VerificationCanRerun Server-authoritative eligibility for another readonly verification.
VerificationCanRerun *bool `json:"verificationCanRerun,omitempty"`
VerificationCheckedAt *time.Time `json:"verificationCheckedAt,omitempty"`
VerificationErrorCode *string `json:"verificationErrorCode,omitempty"`
VerificationFields *[]string `json:"verificationFields,omitempty"`
VerificationMismatches *[]string `json:"verificationMismatches,omitempty"`
VerificationStatus *AgentTaskVerificationStatus `` /* 127-byte string literal not displayed */
}
AgentTask defines model for AgentTask.
type AgentTaskListResponse ¶
type AgentTaskListResponse struct {
Tasks []AgentTask `json:"tasks" validate:"required"`
Total int `json:"total" validate:"required"`
}
AgentTaskListResponse defines model for AgentTaskListResponse.
type AgentTaskVerificationStatus ¶
type AgentTaskVerificationStatus string
AgentTaskVerificationStatus defines model for AgentTask.VerificationStatus.
const ( AgentTaskVerificationStatusError AgentTaskVerificationStatus = "error" AgentTaskVerificationStatusMismatch AgentTaskVerificationStatus = "mismatch" AgentTaskVerificationStatusPending AgentTaskVerificationStatus = "pending" AgentTaskVerificationStatusRunning AgentTaskVerificationStatus = "running" AgentTaskVerificationStatusUnsupported AgentTaskVerificationStatus = "unsupported" AgentTaskVerificationStatusUnverifiable AgentTaskVerificationStatus = "unverifiable" AgentTaskVerificationStatusVerified AgentTaskVerificationStatus = "verified" )
Defines values for AgentTaskVerificationStatus.
type ApprovalCall ¶
type ApprovalCall struct {
Args map[string]interface{} `json:"args" validate:"required"`
CallId string `json:"call_id" validate:"required"`
EditableFields []string `json:"editable_fields" validate:"required"`
// Floor Per-tool HITL floor (strictness: auto < manual < forbidden).
// Business-level approvals only persist `auto` / `manual`;
// `forbidden` is reserved for tool-registry defaults.
Floor ToolFloor `json:"floor"`
ToolName string `json:"tool_name" validate:"required"`
}
ApprovalCall defines model for ApprovalCall.
type AuditAction ¶
type AuditAction string
AuditAction defines model for AuditAction.
const ( AuthLoginFailed AuditAction = "auth.login_failed" AuthLoginSuccess AuditAction = "auth.login_success" AuthLogout AuditAction = "auth.logout" AuthPasswordChanged AuditAction = "auth.password_changed" AuthUserRegistered AuditAction = "auth.user_registered" BusinessCreated AuditAction = "business.created" BusinessDeletionCanceled AuditAction = "business.deletion_canceled" BusinessDeletionRequested AuditAction = "business.deletion_requested" BusinessNotOwnerBlocked AuditAction = "business.not_owner_blocked" BusinessSelfDeleted AuditAction = "business.self_deleted" BusinessUpdated AuditAction = "business.updated" HitlApprovalResolved AuditAction = "hitl.approval_resolved" IntegrationConnected AuditAction = "integration.connected" IntegrationDeleted AuditAction = "integration.deleted" IntegrationDisconnected AuditAction = "integration.disconnected" IntegrationExternalIdUpdated AuditAction = "integration.external_id_updated" IntegrationMetadataUpdated AuditAction = "integration.metadata_updated" IntegrationTokenDecrypted AuditAction = "integration.token_decrypted" IntegrationTokenExpired AuditAction = "integration.token_expired" IntegrationTokenRotated AuditAction = "integration.token_rotated" PlatformDmSent AuditAction = "platform.dm_sent" PlatformPostPublished AuditAction = "platform.post_published" PlatformReviewReplied AuditAction = "platform.review_replied" ProjectCreated AuditAction = "project.created" ProjectDeleted AuditAction = "project.deleted" ProjectUpdated AuditAction = "project.updated" RbacInvitationAccepted AuditAction = "rbac.invitation_accepted" RbacInvitationCreated AuditAction = "rbac.invitation_created" RbacInvitationRevoked AuditAction = "rbac.invitation_revoked" RbacMemberRemoved AuditAction = "rbac.member_removed" RbacRoleCreated AuditAction = "rbac.role_created" RbacRoleDeleted AuditAction = "rbac.role_deleted" RbacRoleGranted AuditAction = "rbac.role_granted" RbacRoleUpdated AuditAction = "rbac.role_updated" ReviewAutoReplied AuditAction = "review.auto_replied" RpaHoursUpdated AuditAction = "rpa.hours_updated" RpaInfoUpdated AuditAction = "rpa.info_updated" RpaPhotoUploaded AuditAction = "rpa.photo_uploaded" RpaPostPublished AuditAction = "rpa.post_published" RpaReviewReplied AuditAction = "rpa.review_replied" RpaScopeViolation AuditAction = "rpa.scope_violation" )
Defines values for AuditAction.
type AuditEvent ¶
type AuditEvent struct {
Action AuditAction `json:"action"`
ActionCategory AuditEventActionCategory `json:"action_category" validate:"required,oneof=rbac auth integration business project rpa platform review hitl other"`
ActorDisplayName *string `json:"actor_display_name"`
ActorEmail *openapi_types.Email `json:"actor_email" validate:"omitempty,email"`
ActorId *openapi_types.UUID `json:"actor_id" validate:"omitempty,uuid"`
BusinessId *openapi_types.UUID `json:"business_id" validate:"omitempty,uuid"`
CreatedAt time.Time `json:"created_at" validate:"required"`
Details map[string]interface{} `json:"details" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Resource string `json:"resource" validate:"required"`
}
AuditEvent defines model for AuditEvent.
type AuditEventActionCategory ¶
type AuditEventActionCategory string
AuditEventActionCategory defines model for AuditEvent.ActionCategory.
const ( AuditEventActionCategoryAuth AuditEventActionCategory = "auth" AuditEventActionCategoryBusiness AuditEventActionCategory = "business" AuditEventActionCategoryHitl AuditEventActionCategory = "hitl" AuditEventActionCategoryIntegration AuditEventActionCategory = "integration" AuditEventActionCategoryOther AuditEventActionCategory = "other" AuditEventActionCategoryPlatform AuditEventActionCategory = "platform" AuditEventActionCategoryProject AuditEventActionCategory = "project" AuditEventActionCategoryRbac AuditEventActionCategory = "rbac" AuditEventActionCategoryReview AuditEventActionCategory = "review" AuditEventActionCategoryRpa AuditEventActionCategory = "rpa" )
Defines values for AuditEventActionCategory.
type AuditLogListResponse ¶
type AuditLogListResponse struct {
Items []AuditEvent `json:"items" validate:"required"`
NextCursor *string `json:"next_cursor"`
}
AuditLogListResponse defines model for AuditLogListResponse.
type AuthURLResponse ¶
type AuthURLResponse struct {
Url string `json:"url" validate:"required"`
}
AuthURLResponse defines model for AuthURLResponse.
type BillingErrorResponse ¶
type BillingErrorResponse struct {
Detail *string `json:"detail,omitempty"`
Error string `json:"error" validate:"required"`
}
BillingErrorResponse Error envelope used by the internal billing endpoints. `error` values map to pkg/billingclient sentinels.
type Business ¶
type Business struct {
Address *string `json:"address,omitempty"`
Category *string `json:"category,omitempty"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
Description *string `json:"description,omitempty"`
// HasFirstSuccessfulAction Whether the organization has a persisted completed platform tool task or text-only assistant answer with an explicit successful outcome across its entire history, or a successfully generated review draft or confirmed review reply dispatch. Imported replies and ambiguous review attempts do not count. Ambiguous historical turns do not count; organization ID backfills never assign success. Authoritative on GET business profile.
HasFirstSuccessfulAction *bool `json:"hasFirstSuccessfulAction,omitempty"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
LogoUrl *string `json:"logoUrl,omitempty"`
Name string `json:"name" validate:"required"`
Phone *string `json:"phone,omitempty"`
Settings map[string]interface{} `json:"settings" validate:"required"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
Website *string `json:"website"`
}
Business defines model for Business.
type BusinessIDPath ¶
type BusinessIDPath = openapi_types.UUID
BusinessIDPath defines model for BusinessIDPath.
type BusinessMembershipRoleRef ¶
type BusinessMembershipRoleRef struct {
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
}
BusinessMembershipRoleRef defines model for BusinessMembershipRoleRef.
type BusinessMembershipSummary ¶
type BusinessMembershipSummary struct {
// DeletionPendingUntil Present for pending-deletion organizations, including the last organization. Restore via POST /businesses/{id}/restore before this deadline; ordinary organization reads remain unavailable.
DeletionPendingUntil *time.Time `json:"deletion_pending_until,omitempty"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
JoinedAt time.Time `json:"joined_at" validate:"required"`
Name string `json:"name" validate:"required"`
Role BusinessMembershipRoleRef `json:"role"`
Status string `json:"status" validate:"required"`
}
BusinessMembershipSummary defines model for BusinessMembershipSummary.
type BusinessNotFound ¶
type BusinessNotFound = ErrorResponse
BusinessNotFound Plain-text error envelope; emitted by writeJSONError.
type ChangeEmailBeforeVerifyJSONRequestBody ¶
type ChangeEmailBeforeVerifyJSONRequestBody = EmailBeforeVerifyRequest
ChangeEmailBeforeVerifyJSONRequestBody defines body for ChangeEmailBeforeVerify for application/json ContentType.
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = ChangePasswordRequest
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordRequest ¶
type ChangePasswordRequest struct {
CurrentPassword string `json:"currentPassword" validate:"required"`
NewPassword string `json:"newPassword" validate:"required,min=8"`
}
ChangePasswordRequest defines model for ChangePasswordRequest.
type ChannelDemandCount ¶
type ChannelDemandCount struct {
// Channel A not-yet-supported channel a business is expressing demand for.
// Backs a fake-door affordance so pull is measured before the channel
// is built.
Channel ChannelRequestChannel `json:"channel"`
Count int `json:"count" validate:"required"`
}
ChannelDemandCount defines model for ChannelDemandCount.
type ChannelDemandSummary ¶
type ChannelDemandSummary struct {
Channels []ChannelDemandCount `json:"channels" validate:"required"`
}
ChannelDemandSummary defines model for ChannelDemandSummary.
type ChannelRequestChannel ¶
type ChannelRequestChannel string
ChannelRequestChannel A not-yet-supported channel a business is expressing demand for. Backs a fake-door affordance so pull is measured before the channel is built.
const ( ChannelRequestChannelAvito ChannelRequestChannel = "avito" ChannelRequestChannelN2gis ChannelRequestChannel = "2gis" ChannelRequestChannelOther ChannelRequestChannel = "other" ChannelRequestChannelOzon ChannelRequestChannel = "ozon" ChannelRequestChannelWildberries ChannelRequestChannel = "wildberries" )
Defines values for ChannelRequestChannel.
type ChatHistoryEntry ¶
type ChatHistoryEntry struct {
Content string `json:"content" validate:"required"`
Role ChatHistoryEntryRole `json:"role" validate:"required,oneof=system user assistant tool"`
}
ChatHistoryEntry defines model for ChatHistoryEntry.
type ChatHistoryEntryRole ¶
type ChatHistoryEntryRole string
ChatHistoryEntryRole defines model for ChatHistoryEntry.Role.
const ( ChatHistoryEntryRoleAssistant ChatHistoryEntryRole = "assistant" ChatHistoryEntryRoleSystem ChatHistoryEntryRole = "system" ChatHistoryEntryRoleTool ChatHistoryEntryRole = "tool" ChatHistoryEntryRoleUser ChatHistoryEntryRole = "user" )
Defines values for ChatHistoryEntryRole.
type ChatRequest ¶
type ChatRequest struct {
ActiveIntegrations *[]string `json:"active_integrations,omitempty"`
BusinessAddress *string `json:"business_address,omitempty"`
BusinessApprovals *map[string]ToolFloor `json:"business_approvals,omitempty"`
BusinessCategory *string `json:"business_category,omitempty"`
BusinessDescription *string `json:"business_description,omitempty"`
BusinessId *openapi_types.UUID `json:"business_id,omitempty" validate:"omitempty,uuid"`
BusinessName *string `json:"business_name,omitempty"`
BusinessPhone *string `json:"business_phone,omitempty"`
BusinessVoiceTone *[]string `json:"business_voice_tone,omitempty"`
BusinessWebsite *string `json:"business_website,omitempty"`
History *[]ChatHistoryEntry `json:"history,omitempty"`
Locale *string `json:"locale,omitempty"`
Message string `json:"message" validate:"required"`
MessageId *string `json:"message_id,omitempty"`
Model *string `json:"model,omitempty"`
ProjectAllowedTools *[]string `json:"project_allowed_tools,omitempty"`
ProjectApprovalOverrides *map[string]ToolFloor `json:"project_approval_overrides,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
ProjectName *string `json:"project_name,omitempty"`
ProjectSystemPrompt *string `json:"project_system_prompt,omitempty"`
ProjectWhitelistMode *ChatRequestProjectWhitelistMode `json:"project_whitelist_mode,omitempty" validate:"omitempty,oneof=inherit all explicit none"`
SelectedPlatforms *[]ChatRequestSelectedPlatforms `json:"selected_platforms,omitempty"`
Tier *string `json:"tier,omitempty"`
UserId *string `json:"user_id,omitempty"`
}
ChatRequest defines model for ChatRequest.
type ChatRequestProjectWhitelistMode ¶
type ChatRequestProjectWhitelistMode string
ChatRequestProjectWhitelistMode defines model for ChatRequest.ProjectWhitelistMode.
const ( ChatRequestProjectWhitelistModeAll ChatRequestProjectWhitelistMode = "all" ChatRequestProjectWhitelistModeEmpty ChatRequestProjectWhitelistMode = "" ChatRequestProjectWhitelistModeExplicit ChatRequestProjectWhitelistMode = "explicit" ChatRequestProjectWhitelistModeInherit ChatRequestProjectWhitelistMode = "inherit" ChatRequestProjectWhitelistModeNone ChatRequestProjectWhitelistMode = "none" )
Defines values for ChatRequestProjectWhitelistMode.
type ChatRequestSelectedPlatforms ¶
type ChatRequestSelectedPlatforms string
ChatRequestSelectedPlatforms defines model for ChatRequest.SelectedPlatforms.
const ( ChatRequestSelectedPlatformsTelegram ChatRequestSelectedPlatforms = "telegram" ChatRequestSelectedPlatformsVk ChatRequestSelectedPlatforms = "vk" ChatRequestSelectedPlatformsYandexBusiness ChatRequestSelectedPlatforms = "yandex_business" )
Defines values for ChatRequestSelectedPlatforms.
type ChatTurnJSONRequestBody ¶
type ChatTurnJSONRequestBody = ChatTurnRequest
ChatTurnJSONRequestBody defines body for ChatTurn for application/json ContentType.
type ChatTurnParams ¶
type ChatTurnParams struct {
BatchId *string `form:"batch_id,omitempty" json:"batch_id,omitempty"`
XOnevoiceResumeBatchId *string `json:"X-Onevoice-Resume-Batch-Id,omitempty"`
}
ChatTurnParams defines parameters for ChatTurn.
type ChatTurnRequest ¶
type ChatTurnRequest struct {
// Locale BCP-47 language tag (e.g. "ru", "en") for the LLM response language. Takes precedence over the Accept-Language header, which browsers cannot set on fetch. Empty falls back to Accept-Language.
Locale *string `json:"locale,omitempty"`
Message *string `json:"message,omitempty"`
Model *string `json:"model,omitempty"`
// SelectedPlatforms Optional closed guided-compose publication scope. Omission preserves ordinary chat behavior; when present, only these freshly active platform integrations may be offered or dispatched.
SelectedPlatforms *[]ChatTurnRequestSelectedPlatforms `json:"selected_platforms,omitempty"`
}
ChatTurnRequest defines model for ChatTurnRequest.
type ChatTurnRequestSelectedPlatforms ¶
type ChatTurnRequestSelectedPlatforms string
ChatTurnRequestSelectedPlatforms defines model for ChatTurnRequest.SelectedPlatforms.
const ( ChatTurnRequestSelectedPlatformsTelegram ChatTurnRequestSelectedPlatforms = "telegram" ChatTurnRequestSelectedPlatformsVk ChatTurnRequestSelectedPlatforms = "vk" ChatTurnRequestSelectedPlatformsYandexBusiness ChatTurnRequestSelectedPlatforms = "yandex_business" )
Defines values for ChatTurnRequestSelectedPlatforms.
type ChatView ¶
type ChatView struct {
Messages []Message `json:"messages" validate:"required"`
PendingApprovals []PendingApproval `json:"pendingApprovals" validate:"required"`
}
ChatView defines model for ChatView.
type CodeErrorResponse ¶
type CodeErrorResponse struct {
Code string `json:"code" validate:"required"`
}
CodeErrorResponse Machine-routable error envelope; emitted by writeJSONCodeError. Frontend resolves `code` to a localized message via i18n catalog.
type ConfirmEmailVerificationJSONRequestBody ¶
type ConfirmEmailVerificationJSONRequestBody = VerifyConfirmRequest
ConfirmEmailVerificationJSONRequestBody defines body for ConfirmEmailVerification for application/json ContentType.
type ConfirmPasswordResetJSONRequestBody ¶
type ConfirmPasswordResetJSONRequestBody = ConfirmPasswordResetRequest
ConfirmPasswordResetJSONRequestBody defines body for ConfirmPasswordReset for application/json ContentType.
type ConfirmPasswordResetRequest ¶
type ConfirmPasswordResetRequest struct {
NewPassword string `json:"newPassword" validate:"required,min=8"`
Token string `json:"token" validate:"required,min=1"`
}
ConfirmPasswordResetRequest defines model for ConfirmPasswordResetRequest.
type ConnectDelegatedYandexBusinessJSONRequestBody ¶
type ConnectDelegatedYandexBusinessJSONRequestBody = ConnectDelegatedYandexRequest
ConnectDelegatedYandexBusinessJSONRequestBody defines body for ConnectDelegatedYandexBusiness for application/json ContentType.
type ConnectDelegatedYandexRequest ¶
type ConnectDelegatedYandexRequest struct {
BusinessName *string `json:"business_name,omitempty"`
// MapsUrl A pasted Yandex Maps/Sprav URL to extract the permalink from.
MapsUrl *string `json:"maps_url,omitempty"`
// Permalink Numeric Yandex organization permalink.
Permalink *string `json:"permalink,omitempty"`
}
ConnectDelegatedYandexRequest Connect a Yandex organization via delegated-representative access. The owner supplies only their organization permalink (or a Maps/Sprav URL); no customer credential is captured. Exactly one of permalink or maps_url must be provided.
type ConnectTelegramJSONRequestBody ¶
type ConnectTelegramJSONRequestBody = ConnectTelegramRequest
ConnectTelegramJSONRequestBody defines body for ConnectTelegram for application/json ContentType.
type ConnectTelegramRequest ¶
type ConnectTelegramRequest struct {
ChannelId string `json:"channel_id" validate:"required"`
TelegramUserId *string `json:"telegram_user_id,omitempty"`
}
ConnectTelegramRequest defines model for ConnectTelegramRequest.
type ConnectVKJSONRequestBody ¶
type ConnectVKJSONRequestBody = ConnectVKRequest
ConnectVKJSONRequestBody defines body for ConnectVK for application/json ContentType.
type ConnectVKRequest ¶
type ConnectVKRequest struct {
AccessToken string `json:"access_token" validate:"required"`
GroupId *string `json:"group_id,omitempty"`
}
ConnectVKRequest defines model for ConnectVKRequest.
type ConnectYandexBusinessJSONRequestBody ¶
type ConnectYandexBusinessJSONRequestBody = ConnectYandexRequest
ConnectYandexBusinessJSONRequestBody defines body for ConnectYandexBusiness for application/json ContentType.
type ConnectYandexRequest ¶
type ConnectYandexRequest struct {
BusinessName *string `json:"business_name,omitempty"`
Cookies string `json:"cookies" validate:"required"`
Permalink *string `json:"permalink,omitempty"`
}
ConnectYandexRequest defines model for ConnectYandexRequest.
type ConsentRecord ¶
type ConsentRecord struct {
AcceptedAt time.Time `json:"acceptedAt" validate:"required"`
Sha256 *string `json:"sha256,omitempty"`
Slug string `json:"slug" validate:"required"`
Version string `json:"version" validate:"required"`
WithdrawnAt *time.Time `json:"withdrawnAt,omitempty"`
}
ConsentRecord Per-policy consent ledger row returned by GET /users/me/consents. `withdrawnAt` is optional (`omitempty`): the field is OMITTED from the JSON envelope when the row is active. Frontend treats a missing `withdrawnAt` as "consent still in force". `sha256` is also optional (early ledger rows may not carry the policy hash).
type ConsentRequiredResponse ¶
type ConsentRequiredResponse struct {
Code ConsentRequiredResponseCode `json:"code" validate:"required,oneof=consent_required"`
Missing []string `json:"missing" validate:"required"`
}
ConsentRequiredResponse defines model for ConsentRequiredResponse.
type ConsentRequiredResponseCode ¶
type ConsentRequiredResponseCode string
ConsentRequiredResponseCode defines model for ConsentRequiredResponse.Code.
const (
ConsentRequired ConsentRequiredResponseCode = "consent_required"
)
Defines values for ConsentRequiredResponseCode.
type ContentTemplate ¶
type ContentTemplate struct {
Body string `json:"body" validate:"required,min=1,max=16384"`
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
CreatedBy openapi_types.UUID `json:"createdBy" validate:"required,uuid"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Kind ContentTemplateKind `json:"kind" validate:"required,oneof=post review_reply"`
Name string `json:"name" validate:"required,min=1,max=80"`
Placeholders []string `json:"placeholders" validate:"required"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
}
ContentTemplate defines model for ContentTemplate.
type ContentTemplateKind ¶
type ContentTemplateKind string
ContentTemplateKind defines model for ContentTemplate.Kind.
const ( ContentTemplateKindPost ContentTemplateKind = "post" ContentTemplateKindReviewReply ContentTemplateKind = "review_reply" )
Defines values for ContentTemplateKind.
type ContentTemplateRequest ¶
type ContentTemplateRequest struct {
Body string `json:"body" validate:"required,min=1,max=16384"`
Kind ContentTemplateRequestKind `json:"kind" validate:"required,oneof=post review_reply"`
Name string `json:"name" validate:"required,min=1,max=80"`
Placeholders []string `json:"placeholders" validate:"required"`
}
ContentTemplateRequest defines model for ContentTemplateRequest.
type ContentTemplateRequestKind ¶
type ContentTemplateRequestKind string
ContentTemplateRequestKind defines model for ContentTemplateRequest.Kind.
const ( ContentTemplateRequestKindPost ContentTemplateRequestKind = "post" ContentTemplateRequestKindReviewReply ContentTemplateRequestKind = "review_reply" )
Defines values for ContentTemplateRequestKind.
type Conversation ¶
type Conversation struct {
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
Id string `json:"id" validate:"required"`
LastMessageAt *time.Time `json:"lastMessageAt"`
PinnedAt *time.Time `json:"pinnedAt"`
// Preview Computed on conversation list responses from the latest nonblank user or assistant message, ordered by createdAt then message ID descending. Unicode whitespace is collapsed before truncation to 160 code points plus an ellipsis. Empty for chats without readable messages. Other conversation endpoints do not populate this field.
Preview *string `json:"preview,omitempty" validate:"omitempty,max=161"`
ProjectId *string `json:"projectId"`
// Title Empty with titleStatus auto marks a settled fallback; localize from createdAt at display time.
Title string `json:"title" validate:"required"`
TitleStatus ConversationTitleStatus `json:"titleStatus" validate:"required,oneof=auto_pending auto manual"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
UserId openapi_types.UUID `json:"userId" validate:"required,uuid"`
}
Conversation defines model for Conversation.
type ConversationTitleStatus ¶
type ConversationTitleStatus string
ConversationTitleStatus defines model for Conversation.TitleStatus.
const ( ConversationTitleStatusAuto ConversationTitleStatus = "auto" ConversationTitleStatusAutoPending ConversationTitleStatus = "auto_pending" ConversationTitleStatusManual ConversationTitleStatus = "manual" )
Defines values for ConversationTitleStatus.
type CreateBusinessJSONRequestBody ¶
type CreateBusinessJSONRequestBody = CreateBusinessRequest
CreateBusinessJSONRequestBody defines body for CreateBusiness for application/json ContentType.
type CreateBusinessRequest ¶
type CreateBusinessRequest struct {
Address *string `json:"address,omitempty" validate:"omitempty,max=500"`
Category *string `json:"category,omitempty" validate:"omitempty,max=255"`
Description *string `json:"description,omitempty" validate:"omitempty,max=2000"`
Name string `json:"name" validate:"required,max=200"`
Phone *string `json:"phone,omitempty" validate:"omitempty,max=255"`
Website *string `json:"website" validate:"omitempty,max=255"`
}
CreateBusinessRequest defines model for CreateBusinessRequest.
type CreateChannelRequestJSONRequestBody ¶
type CreateChannelRequestJSONRequestBody = CreateChannelRequestRequest
CreateChannelRequestJSONRequestBody defines body for CreateChannelRequest for application/json ContentType.
type CreateChannelRequestRequest ¶
type CreateChannelRequestRequest struct {
// Channel A not-yet-supported channel a business is expressing demand for.
Channel CreateChannelRequestRequestChannel `json:"channel" validate:"required,oneof=avito wildberries ozon 2gis other"`
Note *string `json:"note,omitempty" validate:"omitempty,max=280"`
}
CreateChannelRequestRequest defines model for CreateChannelRequestRequest.
type CreateChannelRequestRequestChannel ¶
type CreateChannelRequestRequestChannel string
CreateChannelRequestRequestChannel A not-yet-supported channel a business is expressing demand for.
const ( CreateChannelRequestRequestChannelAvito CreateChannelRequestRequestChannel = "avito" CreateChannelRequestRequestChannelN2gis CreateChannelRequestRequestChannel = "2gis" CreateChannelRequestRequestChannelOther CreateChannelRequestRequestChannel = "other" CreateChannelRequestRequestChannelOzon CreateChannelRequestRequestChannel = "ozon" CreateChannelRequestRequestChannelWildberries CreateChannelRequestRequestChannel = "wildberries" )
Defines values for CreateChannelRequestRequestChannel.
type CreateContentTemplateFromPostJSONRequestBody ¶
type CreateContentTemplateFromPostJSONRequestBody = CreateContentTemplateFromSourceRequest
CreateContentTemplateFromPostJSONRequestBody defines body for CreateContentTemplateFromPost for application/json ContentType.
type CreateContentTemplateFromReviewJSONRequestBody ¶
type CreateContentTemplateFromReviewJSONRequestBody = CreateContentTemplateFromSourceRequest
CreateContentTemplateFromReviewJSONRequestBody defines body for CreateContentTemplateFromReview for application/json ContentType.
type CreateContentTemplateFromSourceRequest ¶
type CreateContentTemplateFromSourceRequest struct {
Name string `json:"name" validate:"required,min=1,max=80"`
}
CreateContentTemplateFromSourceRequest defines model for CreateContentTemplateFromSourceRequest.
type CreateContentTemplateJSONRequestBody ¶
type CreateContentTemplateJSONRequestBody = ContentTemplateRequest
CreateContentTemplateJSONRequestBody defines body for CreateContentTemplate for application/json ContentType.
type CreateConversationJSONRequestBody ¶
type CreateConversationJSONRequestBody = CreateConversationRequest
CreateConversationJSONRequestBody defines body for CreateConversation for application/json ContentType.
type CreateConversationRequest ¶
type CreateConversationRequest struct {
ProjectId *string `json:"projectId"`
Title string `json:"title" validate:"required,max=200"`
}
CreateConversationRequest defines model for CreateConversationRequest.
type CreateInvitationJSONRequestBody ¶
type CreateInvitationJSONRequestBody = CreateInvitationRequest
CreateInvitationJSONRequestBody defines body for CreateInvitation for application/json ContentType.
type CreateInvitationRequest ¶
type CreateInvitationRequest struct {
ExpiresIn *int `json:"expires_in,omitempty" validate:"omitempty,min=3600,max=2592000"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
}
CreateInvitationRequest defines model for CreateInvitationRequest.
type CreateInvitationResponse ¶
type CreateInvitationResponse struct {
CreatedAt time.Time `json:"created_at" validate:"required"`
ExpiresAt time.Time `json:"expires_at" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
Token string `json:"token" validate:"required"`
}
CreateInvitationResponse defines model for CreateInvitationResponse.
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody = ProjectRequest
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateRoleJSONRequestBody ¶
type CreateRoleJSONRequestBody = CreateRoleRequest
CreateRoleJSONRequestBody defines body for CreateRole for application/json ContentType.
type CreateRoleParams ¶
type CreateRoleParams struct {
// CloneFrom Hint for the frontend pre-fill flow; ignored server-side.
CloneFrom *openapi_types.UUID `form:"clone_from,omitempty" json:"clone_from,omitempty"`
}
CreateRoleParams defines parameters for CreateRole.
type CreateRoleRequest ¶
type CreateRoleRequest struct {
Description *string `json:"description,omitempty"`
Name string `json:"name" validate:"required,min=1"`
Permissions []string `json:"permissions" validate:"required"`
}
CreateRoleRequest defines model for CreateRoleRequest.
type DailySpendResponse ¶
type DailySpendResponse struct {
DailySpendUsd float64 `json:"daily_spend_usd" validate:"required"`
}
DailySpendResponse defines model for DailySpendResponse.
type DeleteAccountJSONRequestBody ¶
type DeleteAccountJSONRequestBody = DeleteAccountRequest
DeleteAccountJSONRequestBody defines body for DeleteAccount for application/json ContentType.
type DeleteAccountRequest ¶
type DeleteAccountRequest struct {
Password string `json:"password" validate:"required,min=1"`
}
DeleteAccountRequest defines model for DeleteAccountRequest.
type DeleteRoleParams ¶
type DeleteRoleParams struct {
// ReassignTo Destination role for members holding the doomed role.
ReassignTo *openapi_types.UUID `form:"reassign_to,omitempty" json:"reassign_to,omitempty"`
}
DeleteRoleParams defines parameters for DeleteRole.
type DescriptionTemplateResponse ¶
type DescriptionTemplateResponse struct {
// DescriptionTemplate Stored template override; empty string when unset.
DescriptionTemplate string `json:"descriptionTemplate" validate:"required"`
// Placeholders Allowed placeholder names the template may reference.
Placeholders []string `json:"placeholders" validate:"required"`
}
DescriptionTemplateResponse defines model for DescriptionTemplateResponse.
type DraftReplyExample ¶
type DraftReplyExample struct {
Rating *int `json:"rating,omitempty" validate:"omitempty,min=0,max=5"`
ReplyText string `json:"replyText" validate:"required"`
ReviewText string `json:"reviewText" validate:"required"`
}
DraftReplyExample defines model for DraftReplyExample.
type DraftReplyRequest ¶
type DraftReplyRequest struct {
AuthorName *string `json:"authorName,omitempty"`
BusinessCategory *string `json:"businessCategory,omitempty"`
BusinessDescription *string `json:"businessDescription,omitempty"`
BusinessId string `json:"businessId" validate:"required"`
BusinessName *string `json:"businessName,omitempty"`
Examples *[]DraftReplyExample `json:"examples,omitempty"`
Platform string `json:"platform" validate:"required"`
Rating int `json:"rating" validate:"required,min=0,max=5"`
ReviewText string `json:"reviewText" validate:"required"`
}
DraftReplyRequest defines model for DraftReplyRequest.
type DraftReplyResponse ¶
type DraftReplyResponse struct {
DraftReply string `json:"draftReply" validate:"required"`
Model *string `json:"model,omitempty"`
Provider *string `json:"provider,omitempty"`
}
DraftReplyResponse defines model for DraftReplyResponse.
type DriftAlertSettings ¶
type DriftAlertSettings struct {
// Enabled Whether private drift notifications are enabled. Defaults to false.
Enabled bool `json:"enabled" validate:"required"`
Locale DriftAlertSettingsLocale `json:"locale" validate:"required,oneof=ru en"`
}
DriftAlertSettings defines model for DriftAlertSettings.
type DriftAlertSettingsLocale ¶
type DriftAlertSettingsLocale string
DriftAlertSettingsLocale defines model for DriftAlertSettings.Locale.
const ( DriftAlertSettingsLocaleEn DriftAlertSettingsLocale = "en" DriftAlertSettingsLocaleRu DriftAlertSettingsLocale = "ru" )
Defines values for DriftAlertSettingsLocale.
type EmailBeforeVerifyRequest ¶
type EmailBeforeVerifyRequest struct {
NewEmail openapi_types.Email `json:"newEmail" validate:"required,email"`
}
EmailBeforeVerifyRequest defines model for EmailBeforeVerifyRequest.
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error" validate:"required"`
}
ErrorResponse Plain-text error envelope; emitted by writeJSONError.
type GetPresenceHealthParams ¶
type GetPresenceHealthParams struct {
// TargetHours Answered-within-target window in hours (default 24) the SLA sub-score is computed against. Values <= 0 fall back to the default.
TargetHours *int `form:"target_hours,omitempty" json:"target_hours,omitempty"`
}
GetPresenceHealthParams defines parameters for GetPresenceHealth.
type GetReviewSLAParams ¶
type GetReviewSLAParams struct {
// TargetHours Answered-within-target window in hours (default 24). Values <= 0 fall back to the default.
TargetHours *int `form:"target_hours,omitempty" json:"target_hours,omitempty"`
}
GetReviewSLAParams defines parameters for GetReviewSLA.
type GetVKCommunityAuthURLParams ¶
type GetVKCommunityAuthURLParams struct {
// GroupId Numeric VK group_id, screen_name, or full VK URL. Resolved
// server-side to a numeric id before the OAuth URL is built.
GroupId string `form:"group_id" json:"group_id"`
}
GetVKCommunityAuthURLParams defines parameters for GetVKCommunityAuthURL.
type GoogleBusinessOAuthCallbackParams ¶
type GoogleBusinessOAuthCallbackParams struct {
Code string `form:"code" json:"code"`
State string `form:"state" json:"state"`
}
GoogleBusinessOAuthCallbackParams defines parameters for GoogleBusinessOAuthCallback.
type GoogleLocationRef ¶
type GoogleLocationRef struct {
AccountName string `json:"account_name" validate:"required"`
LocationName string `json:"location_name" validate:"required"`
Title string `json:"title" validate:"required"`
}
GoogleLocationRef defines model for GoogleLocationRef.
type GoogleLocationsResponse ¶
type GoogleLocationsResponse struct {
Locations []GoogleLocationRef `json:"locations" validate:"required"`
}
GoogleLocationsResponse defines model for GoogleLocationsResponse.
type GoogleSelectLocationRequest ¶
type GoogleSelectLocationRequest struct {
AccountId string `json:"account_id" validate:"required"`
LocationId string `json:"location_id" validate:"required"`
}
GoogleSelectLocationRequest defines model for GoogleSelectLocationRequest.
type HITLAlreadyResolvedError ¶
type HITLAlreadyResolvedError struct {
Error HITLAlreadyResolvedErrorError `json:"error" validate:"required"`
Reason HITLAlreadyResolvedErrorReason `json:"reason" validate:"required,oneof=already_resolved"`
}
HITLAlreadyResolvedError defines model for HITLAlreadyResolvedError.
type HITLAlreadyResolvedErrorError ¶
type HITLAlreadyResolvedErrorError string
HITLAlreadyResolvedErrorError defines model for HITLAlreadyResolvedError.Error.
const (
BatchAlreadyResolved HITLAlreadyResolvedErrorError = "batch already resolved"
)
Defines values for HITLAlreadyResolvedErrorError.
type HITLAlreadyResolvedErrorReason ¶
type HITLAlreadyResolvedErrorReason string
HITLAlreadyResolvedErrorReason defines model for HITLAlreadyResolvedError.Reason.
const (
AlreadyResolved HITLAlreadyResolvedErrorReason = "already_resolved"
)
Defines values for HITLAlreadyResolvedErrorReason.
type HITLBatchResolvingError ¶
type HITLBatchResolvingError struct {
Error HITLBatchResolvingErrorError `json:"error" validate:"required"`
Reason HITLBatchResolvingErrorReason `json:"reason" validate:"required"`
RetryAfterMs int `json:"retry_after_ms" validate:"required"`
}
HITLBatchResolvingError defines model for HITLBatchResolvingError.
type HITLBatchResolvingErrorError ¶
type HITLBatchResolvingErrorError string
HITLBatchResolvingErrorError defines model for HITLBatchResolvingError.Error.
const (
BatchResolving HITLBatchResolvingErrorError = "batch resolving"
)
Defines values for HITLBatchResolvingErrorError.
type HITLBatchResolvingErrorReason ¶
type HITLBatchResolvingErrorReason string
HITLBatchResolvingErrorReason defines model for HITLBatchResolvingError.Reason.
const (
ConcurrentResolveInProgress HITLBatchResolvingErrorReason = "concurrent resolve in progress"
)
Defines values for HITLBatchResolvingErrorReason.
type HITLDecisionInput ¶
type HITLDecisionInput struct {
Action HITLDecisionInputAction `json:"action" validate:"required,oneof=approve edit reject"`
EditedArgs *map[string]interface{} `json:"edited_args,omitempty"`
Id string `json:"id" validate:"required"`
RejectReason *string `json:"reject_reason,omitempty"`
}
HITLDecisionInput defines model for HITLDecisionInput.
type HITLDecisionInputAction ¶
type HITLDecisionInputAction string
HITLDecisionInputAction defines model for HITLDecisionInput.Action.
const ( HITLDecisionInputActionApprove HITLDecisionInputAction = "approve" HITLDecisionInputActionEdit HITLDecisionInputAction = "edit" HITLDecisionInputActionReject HITLDecisionInputAction = "reject" )
Defines values for HITLDecisionInputAction.
type HITLExpiredError ¶
type HITLExpiredError struct {
Error HITLExpiredErrorError `json:"error" validate:"required,oneof=approval_expired"`
}
HITLExpiredError defines model for HITLExpiredError.
type HITLExpiredErrorError ¶
type HITLExpiredErrorError string
HITLExpiredErrorError defines model for HITLExpiredError.Error.
const (
ApprovalExpired HITLExpiredErrorError = "approval_expired"
)
Defines values for HITLExpiredErrorError.
type HITLFieldNotEditableError ¶
type HITLFieldNotEditableError struct {
Editable []string `json:"editable" validate:"required"`
Error string `json:"error" validate:"required"`
}
HITLFieldNotEditableError defines model for HITLFieldNotEditableError.
type HITLNonScalarFieldError ¶
type HITLNonScalarFieldError struct {
Error string `json:"error" validate:"required"`
Tool string `json:"tool" validate:"required"`
}
HITLNonScalarFieldError defines model for HITLNonScalarFieldError.
type HITLRejectReasonTooLongError ¶
type HITLRejectReasonTooLongError struct {
Error HITLRejectReasonTooLongErrorError `json:"error" validate:"required"`
Max int `json:"max" validate:"required"`
}
HITLRejectReasonTooLongError defines model for HITLRejectReasonTooLongError.
type HITLRejectReasonTooLongErrorError ¶
type HITLRejectReasonTooLongErrorError string
HITLRejectReasonTooLongErrorError defines model for HITLRejectReasonTooLongError.Error.
const (
RejectReasonTooLong HITLRejectReasonTooLongErrorError = "reject_reason too long"
)
Defines values for HITLRejectReasonTooLongErrorError.
type HITLResolveRequest ¶
type HITLResolveRequest struct {
Decisions []HITLDecisionInput `json:"decisions" validate:"required"`
}
HITLResolveRequest defines model for HITLResolveRequest.
type HITLResolveResponse ¶
type HITLResolveResponse struct {
BatchId string `json:"batch_id" validate:"required"`
Decisions []HITLResolvedCall `json:"decisions" validate:"required"`
ResolvedAt time.Time `json:"resolved_at" validate:"required"`
}
HITLResolveResponse defines model for HITLResolveResponse.
type HITLResolvedCall ¶
type HITLResolvedCall struct {
Action HITLResolvedCallAction `json:"action" validate:"required,oneof=approve edit reject"`
Id string `json:"id" validate:"required"`
Reason *string `json:"reason,omitempty"`
}
HITLResolvedCall defines model for HITLResolvedCall.
type HITLResolvedCallAction ¶
type HITLResolvedCallAction string
HITLResolvedCallAction defines model for HITLResolvedCall.Action.
const ( HITLResolvedCallActionApprove HITLResolvedCallAction = "approve" HITLResolvedCallActionEdit HITLResolvedCallAction = "edit" HITLResolvedCallActionReject HITLResolvedCallAction = "reject" )
Defines values for HITLResolvedCallAction.
type HITLShapeMismatchError ¶
type HITLShapeMismatchError struct {
Error HITLShapeMismatchErrorError `json:"error" validate:"required"`
Missing []string `json:"missing" validate:"required"`
}
HITLShapeMismatchError defines model for HITLShapeMismatchError.
type HITLShapeMismatchErrorError ¶
type HITLShapeMismatchErrorError string
HITLShapeMismatchErrorError defines model for HITLShapeMismatchError.Error.
const (
ShapeMismatch HITLShapeMismatchErrorError = "shape mismatch"
)
Defines values for HITLShapeMismatchErrorError.
type HitlResolveBatchJSONRequestBody ¶
type HitlResolveBatchJSONRequestBody = HITLResolveRequest
HitlResolveBatchJSONRequestBody defines body for HitlResolveBatch for application/json ContentType.
type HitlResumeParams ¶
type HitlResumeParams struct {
BatchId string `form:"batch_id" json:"batch_id"`
}
HitlResumeParams defines parameters for HitlResume.
type IngestBusinessTelemetryJSONBody ¶
type IngestBusinessTelemetryJSONBody = []TelemetryEvent
IngestBusinessTelemetryJSONBody defines parameters for IngestBusinessTelemetry.
type IngestBusinessTelemetryJSONRequestBody ¶
type IngestBusinessTelemetryJSONRequestBody = IngestBusinessTelemetryJSONBody
IngestBusinessTelemetryJSONRequestBody defines body for IngestBusinessTelemetry for application/json ContentType.
type IngestTelemetryJSONBody ¶
type IngestTelemetryJSONBody = []TelemetryEvent
IngestTelemetryJSONBody defines parameters for IngestTelemetry.
type IngestTelemetryJSONRequestBody ¶
type IngestTelemetryJSONRequestBody = IngestTelemetryJSONBody
IngestTelemetryJSONRequestBody defines body for IngestTelemetry for application/json ContentType.
type Integration ¶
type Integration struct {
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
ExternalId string `json:"externalId" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Metadata map[string]interface{} `json:"metadata" validate:"required"`
Platform string `json:"platform" validate:"required"`
Status string `json:"status" validate:"required"`
TokenExpiresAt *time.Time `json:"tokenExpiresAt"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
}
Integration defines model for Integration.
type IntegrationHealth ¶
type IntegrationHealth struct {
CheckedAt time.Time `json:"checkedAt" validate:"required"`
ExternalId string `json:"externalId" validate:"required"`
Platform string `json:"platform" validate:"required"`
// ReasonCode Stable machine code resolved to human copy on the client (e.g. tg_not_admin, vk_wall_scope_missing, yandex_session_expired, ok, inconclusive).
ReasonCode string `json:"reasonCode" validate:"required"`
Status IntegrationHealthStatus `json:"status" validate:"required,oneof=active degraded broken unknown"`
}
IntegrationHealth Per-integration connection-liveness verdict computed synchronously by the verify endpoint. Distinct from the composite presence-health score.
type IntegrationHealthStatus ¶
type IntegrationHealthStatus string
IntegrationHealthStatus defines model for IntegrationHealth.Status.
const ( IntegrationHealthStatusActive IntegrationHealthStatus = "active" IntegrationHealthStatusBroken IntegrationHealthStatus = "broken" IntegrationHealthStatusDegraded IntegrationHealthStatus = "degraded" IntegrationHealthStatusUnknown IntegrationHealthStatus = "unknown" )
Defines values for IntegrationHealthStatus.
type IntegrationIDPath ¶
type IntegrationIDPath = openapi_types.UUID
IntegrationIDPath defines model for IntegrationIDPath.
type InternalError ¶
type InternalError = CodeErrorResponse
InternalError Machine-routable error envelope; emitted by writeJSONCodeError. Frontend resolves `code` to a localized message via i18n catalog.
type InternalGetDailySpendParams ¶
type InternalGetDailySpendParams struct {
BusinessId openapi_types.UUID `form:"business_id" json:"business_id"`
Date string `form:"date" json:"date"`
}
InternalGetDailySpendParams defines parameters for InternalGetDailySpend.
type InternalGetTokenParams ¶
type InternalGetTokenParams struct {
BusinessId openapi_types.UUID `form:"business_id" json:"business_id"`
Platform string `form:"platform" json:"platform"`
ExternalId *string `form:"external_id,omitempty" json:"external_id,omitempty"`
}
InternalGetTokenParams defines parameters for InternalGetToken.
type InternalLogUsageJSONRequestBody ¶
type InternalLogUsageJSONRequestBody = UsageLog
InternalLogUsageJSONRequestBody defines body for InternalLogUsage for application/json ContentType.
type InternalTokenResponse ¶
type InternalTokenResponse struct {
AccessToken string `json:"access_token" validate:"required"`
ExpiresAt *time.Time `json:"expires_at"`
ExternalId string `json:"external_id" validate:"required"`
IntegrationId openapi_types.UUID `json:"integration_id" validate:"required,uuid"`
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Platform string `json:"platform" validate:"required"`
UserToken *string `json:"user_token,omitempty"`
UserTokenExpiresAt *time.Time `json:"user_token_expires_at"`
}
InternalTokenResponse defines model for InternalTokenResponse.
type InvitationPreview ¶
type InvitationPreview struct {
BusinessId openapi_types.UUID `json:"business_id" validate:"required,uuid"`
BusinessName string `json:"business_name" validate:"required"`
ExpiresAt time.Time `json:"expires_at" validate:"required"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
RoleName string `json:"role_name" validate:"required"`
}
InvitationPreview defines model for InvitationPreview.
type InvitationStateErrorResponse ¶
type InvitationStateErrorResponse struct {
Error string `json:"error" validate:"required"`
Reason *string `json:"reason,omitempty"`
}
InvitationStateErrorResponse 410-gone envelope emitted by writeInvitationStateError. `error` is always the literal "gone"; `reason` discriminates the cause (`expired` / `revoked` / `accepted` / `unknown`) for the frontend refusal matrix. `unknown` is the safe default for ErrInvitationNotFound — uniform 410 defends against token existence enumeration.
type InvitationTokenPath ¶
type InvitationTokenPath = string
InvitationTokenPath defines model for InvitationTokenPath.
type JoinWaitlistJSONRequestBody ¶
type JoinWaitlistJSONRequestBody = WaitlistRequest
JoinWaitlistJSONRequestBody defines body for JoinWaitlist for application/json ContentType.
type LandingEventRequest ¶
type LandingEventRequest struct {
Cta LandingEventRequestCta `` /* 156-byte string literal not displayed */
// Path Local pathname starting with a single slash, without query or fragment.
Path string `json:"path" validate:"required,min=1,max=1024"`
}
LandingEventRequest defines model for LandingEventRequest.
type LandingEventRequestCta ¶
type LandingEventRequestCta string
LandingEventRequestCta defines model for LandingEventRequest.Cta.
const ( HeroRegister LandingEventRequestCta = "hero-register" HeroWaitlist LandingEventRequestCta = "hero-waitlist" PricingFreeRegister LandingEventRequestCta = "pricing-free-register" PricingProWaitlist LandingEventRequestCta = "pricing-pro-waitlist" WaitlistSuccessRegister LandingEventRequestCta = "waitlist-success-register" )
Defines values for LandingEventRequestCta.
type ListAgentTasksParams ¶
type ListAgentTasksParams struct {
Platform *string `form:"platform,omitempty" json:"platform,omitempty"`
Status *string `form:"status,omitempty" json:"status,omitempty"`
Type *string `form:"type,omitempty" json:"type,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
ListAgentTasksParams defines parameters for ListAgentTasks.
type ListAuditLogsParams ¶
type ListAuditLogsParams struct {
Category *ListAuditLogsParamsCategory `form:"category,omitempty" json:"category,omitempty"`
Action *AuditAction `form:"action,omitempty" json:"action,omitempty"`
Actor *openapi_types.UUID `form:"actor,omitempty" json:"actor,omitempty"`
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListAuditLogsParams defines parameters for ListAuditLogs.
type ListAuditLogsParamsCategory ¶
type ListAuditLogsParamsCategory string
ListAuditLogsParamsCategory defines parameters for ListAuditLogs.
const ( ListAuditLogsParamsCategoryAuth ListAuditLogsParamsCategory = "auth" ListAuditLogsParamsCategoryBusiness ListAuditLogsParamsCategory = "business" ListAuditLogsParamsCategoryHitl ListAuditLogsParamsCategory = "hitl" ListAuditLogsParamsCategoryIntegration ListAuditLogsParamsCategory = "integration" ListAuditLogsParamsCategoryPlatform ListAuditLogsParamsCategory = "platform" ListAuditLogsParamsCategoryProject ListAuditLogsParamsCategory = "project" ListAuditLogsParamsCategoryRbac ListAuditLogsParamsCategory = "rbac" ListAuditLogsParamsCategoryReview ListAuditLogsParamsCategory = "review" ListAuditLogsParamsCategoryRpa ListAuditLogsParamsCategory = "rpa" )
Defines values for ListAuditLogsParamsCategory.
type ListConsentsResponse ¶
type ListConsentsResponse struct {
Consents []ConsentRecord `json:"consents" validate:"required"`
}
ListConsentsResponse defines model for ListConsentsResponse.
type ListConversationsParams ¶
type ListConversationsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
ListConversationsParams defines parameters for ListConversations.
type ListPostsParams ¶
type ListPostsParams struct {
Platform *string `form:"platform,omitempty" json:"platform,omitempty"`
Status *string `form:"status,omitempty" json:"status,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
ListPostsParams defines parameters for ListPosts.
type ListReviewsParams ¶
type ListReviewsParams struct {
Platform *string `form:"platform,omitempty" json:"platform,omitempty"`
ReplyStatus *ListReviewsParamsReplyStatus `form:"reply_status,omitempty" json:"reply_status,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
ListReviewsParams defines parameters for ListReviews.
type ListReviewsParamsReplyStatus ¶
type ListReviewsParamsReplyStatus string
ListReviewsParamsReplyStatus defines parameters for ListReviews.
const ( Error ListReviewsParamsReplyStatus = "error" Pending ListReviewsParamsReplyStatus = "pending" Replied ListReviewsParamsReplyStatus = "replied" )
Defines values for ListReviewsParamsReplyStatus.
type ListYandexCompaniesJSONRequestBody ¶
type ListYandexCompaniesJSONRequestBody = YandexCookiesRequest
ListYandexCompaniesJSONRequestBody defines body for ListYandexCompanies for application/json ContentType.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequest ¶
type LoginRequest struct {
Email openapi_types.Email `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required,min=8"`
}
LoginRequest defines model for LoginRequest.
type LoginResponse ¶
type LoginResponse struct {
AccessToken string `json:"accessToken" validate:"required"`
User User `json:"user"`
}
LoginResponse defines model for LoginResponse.
type MeResponse ¶
type MeResponse struct {
AccountDeletion *AccountDeletionInfo `json:"accountDeletion,omitempty"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
Email openapi_types.Email `json:"email" validate:"required,email"`
EmailVerificationDeadline *time.Time `json:"emailVerificationDeadline,omitempty"`
EmailVerified bool `json:"emailVerified" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
PreferredLocale MeResponsePreferredLocale `json:"preferred_locale" validate:"required,oneof=ru en"`
RequiresReconsent *RequiresReconsentInfo `json:"requiresReconsent,omitempty"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
}
MeResponse defines model for MeResponse.
type MeResponsePreferredLocale ¶
type MeResponsePreferredLocale string
MeResponsePreferredLocale defines model for MeResponse.PreferredLocale.
const ( MeResponsePreferredLocaleEn MeResponsePreferredLocale = "en" MeResponsePreferredLocaleRu MeResponsePreferredLocale = "ru" )
Defines values for MeResponsePreferredLocale.
type Member ¶
type Member struct {
InvitedAt *time.Time `json:"invited_at"`
InvitedBy *openapi_types.UUID `json:"invited_by" validate:"omitempty,uuid"`
JoinedAt time.Time `json:"joined_at" validate:"required"`
Role struct {
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
Permissions []string `json:"permissions" validate:"required"`
} `json:"role" validate:"required"`
Status string `json:"status" validate:"required"`
User struct {
Email openapi_types.Email `json:"email" validate:"required,email"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name *string `json:"name,omitempty"`
} `json:"user" validate:"required"`
}
Member defines model for Member.
type Message ¶
type Message struct {
Attachments *[]MessageAttachment `json:"attachments,omitempty"`
Content string `json:"content" validate:"required"`
ConversationId string `json:"conversationId" validate:"required"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
// ErrorCode Machine-readable stream error code; STREAM_ERROR when no upstream code is supplied.
ErrorCode *string `json:"errorCode,omitempty"`
Id string `json:"id" validate:"required"`
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Role MessageRole `json:"role" validate:"required,oneof=user assistant system"`
// Status Complete denotes a successful turn; error denotes a failed stream, including partial text. An absent legacy status is not proof of success.
Status *string `json:"status,omitempty"`
ToolCalls *[]MessageToolCall `json:"toolCalls,omitempty"`
ToolResults *[]MessageToolResult `json:"toolResults,omitempty"`
}
Message defines model for Message.
type MessageAttachment ¶
type MessageAttachment struct {
MimeType string `json:"mimeType" validate:"required"`
Name string `json:"name" validate:"required"`
Type string `json:"type" validate:"required"`
Url string `json:"url" validate:"required"`
}
MessageAttachment defines model for MessageAttachment.
type MessageRole ¶
type MessageRole string
MessageRole defines model for Message.Role.
const ( MessageRoleAssistant MessageRole = "assistant" MessageRoleSystem MessageRole = "system" MessageRoleUser MessageRole = "user" )
Defines values for MessageRole.
type MessageToolCall ¶
type MessageToolCall struct {
ApprovalId *string `json:"approvalId,omitempty"`
Arguments map[string]interface{} `json:"arguments" validate:"required"`
Id string `json:"id" validate:"required"`
Name string `json:"name" validate:"required"`
Status *string `json:"status,omitempty"`
}
MessageToolCall defines model for MessageToolCall.
type MessageToolResult ¶
type MessageToolResult struct {
Code *string `json:"code,omitempty"`
Content map[string]interface{} `json:"content" validate:"required"`
IsError bool `json:"isError" validate:"required"`
ToolCallId string `json:"toolCallId" validate:"required"`
}
MessageToolResult defines model for MessageToolResult.
type MoveConversationJSONRequestBody ¶
type MoveConversationJSONRequestBody = MoveConversationRequest
MoveConversationJSONRequestBody defines body for MoveConversation for application/json ContentType.
type MoveConversationRequest ¶
type MoveConversationRequest struct {
ProjectId *string `json:"projectId"`
}
MoveConversationRequest defines model for MoveConversationRequest.
type MyPermissionsResponse ¶
type MyPermissionsResponse struct {
Permissions []string `json:"permissions" validate:"required"`
}
MyPermissionsResponse defines model for MyPermissionsResponse.
type OrchestratorChatJSONRequestBody ¶
type OrchestratorChatJSONRequestBody = ChatRequest
OrchestratorChatJSONRequestBody defines body for OrchestratorChat for application/json ContentType.
type OrchestratorChatParams ¶
type OrchestratorChatParams struct {
XCorrelationID *string `json:"X-Correlation-ID,omitempty"`
}
OrchestratorChatParams defines parameters for OrchestratorChat.
type OrchestratorDraftReplyJSONRequestBody ¶
type OrchestratorDraftReplyJSONRequestBody = DraftReplyRequest
OrchestratorDraftReplyJSONRequestBody defines body for OrchestratorDraftReply for application/json ContentType.
type OrchestratorResumeJSONRequestBody ¶
type OrchestratorResumeJSONRequestBody = ResumeRequest
OrchestratorResumeJSONRequestBody defines body for OrchestratorResume for application/json ContentType.
type OrchestratorResumeParams ¶
type OrchestratorResumeParams struct {
BatchId string `form:"batch_id" json:"batch_id"`
XCorrelationID *string `json:"X-Correlation-ID,omitempty"`
}
OrchestratorResumeParams defines parameters for OrchestratorResume.
type OwnerBriefResponse ¶
type OwnerBriefResponse struct {
// Enabled Whether the proactive weekly owner-brief DM is enabled. Default-on:
// true when the business never set a preference.
Enabled bool `json:"enabled" validate:"required"`
// Hour Hour-of-day (0-23) the brief fires at.
Hour int `json:"hour" validate:"required,min=0,max=23"`
// LastSent ISO year-week ("<year>-W<week>") of the last successful send; absent
// when a brief has never been sent.
LastSent *string `json:"lastSent,omitempty"`
// Weekday Weekday the brief fires on (0=Sunday .. 6=Saturday).
Weekday int `json:"weekday" validate:"required,min=0,max=6"`
}
OwnerBriefResponse defines model for OwnerBriefResponse.
type PasswordResetErrorResponse ¶
type PasswordResetErrorResponse struct {
Code string `json:"code" validate:"required"`
Message string `json:"message" validate:"required"`
}
PasswordResetErrorResponse Discriminated error envelope emitted by writePasswordResetError. `code` is one of `reset_token_invalid` / `reset_token_expired` / `password_too_weak`; `message` is a server-localized RU string the frontend renders as-is when no i18n catalog entry matches.
type PendingApproval ¶
type PendingApproval struct {
BatchId string `json:"batchId" validate:"required"`
Calls []PendingApprovalCall `json:"calls" validate:"required"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
// ExpiresAt Approval deadline; absent for an unavailable batch that has already been physically removed.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
MessageId string `json:"messageId" validate:"required"`
// Status Unavailable means the batch was physically removed; it does not assert whether the tool executed.
Status PendingApprovalStatus `json:"status" validate:"required,oneof=pending resolving expired unavailable"`
}
PendingApproval defines model for PendingApproval.
type PendingApprovalCall ¶
type PendingApprovalCall struct {
Args map[string]interface{} `json:"args" validate:"required"`
CallId string `json:"callId" validate:"required"`
EditableFields []string `json:"editableFields" validate:"required"`
ToolName string `json:"toolName" validate:"required"`
}
PendingApprovalCall defines model for PendingApprovalCall.
type PendingApprovalStatus ¶
type PendingApprovalStatus string
PendingApprovalStatus Unavailable means the batch was physically removed; it does not assert whether the tool executed.
const ( PendingApprovalStatusExpired PendingApprovalStatus = "expired" PendingApprovalStatusPending PendingApprovalStatus = "pending" PendingApprovalStatusResolving PendingApprovalStatus = "resolving" )
Defines values for PendingApprovalStatus.
type PendingDeletionResponse ¶
type PendingDeletionResponse struct {
Code PendingDeletionResponseCode `json:"code" validate:"required,oneof=account_pending_deletion business_pending_deletion"`
DeletionDate string `json:"deletionDate" validate:"required"`
RestoreUrl string `json:"restoreUrl" validate:"required"`
}
PendingDeletionResponse defines model for PendingDeletionResponse.
type PendingDeletionResponseCode ¶
type PendingDeletionResponseCode string
PendingDeletionResponseCode defines model for PendingDeletionResponse.Code.
const ( AccountPendingDeletion PendingDeletionResponseCode = "account_pending_deletion" BusinessPendingDeletion PendingDeletionResponseCode = "business_pending_deletion" )
Defines values for PendingDeletionResponseCode.
type PendingInvitation ¶
type PendingInvitation struct {
CreatedAt time.Time `json:"created_at" validate:"required"`
CreatedBy struct {
Email openapi_types.Email `json:"email" validate:"required,email"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
} `json:"created_by" validate:"required"`
ExpiresAt time.Time `json:"expires_at" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
RoleName string `json:"role_name" validate:"required"`
}
PendingInvitation defines model for PendingInvitation.
type Permission ¶
type Permission struct {
Description string `json:"description" validate:"required"`
Name string `json:"name" validate:"required"`
}
Permission defines model for Permission.
type PermissionGroup ¶
type PermissionGroup struct {
Permissions []Permission `json:"permissions" validate:"required"`
Resource string `json:"resource" validate:"required"`
}
PermissionGroup defines model for PermissionGroup.
type PermissionRegistryResponse ¶
type PermissionRegistryResponse struct {
Groups []PermissionGroup `json:"groups" validate:"required"`
}
PermissionRegistryResponse defines model for PermissionRegistryResponse.
type Platform ¶
type Platform struct {
Id string `json:"id" validate:"required"`
Status PlatformStatus `json:"status"`
}
Platform defines model for Platform.
type PlatformStatus ¶
type PlatformStatus string
PlatformStatus defines model for PlatformStatus.
const ( PlatformStatusActive PlatformStatus = "active" PlatformStatusComingSoon PlatformStatus = "coming_soon" PlatformStatusOauthNotConfigured PlatformStatus = "oauth_not_configured" )
Defines values for PlatformStatus.
type Post ¶
type Post struct {
// BroadcastGroupId Groups posts fanned out by one cross-platform broadcast turn. Posts sharing a non-empty value were created together; absent for standalone posts and records that predate the field.
BroadcastGroupId *string `json:"broadcastGroupId,omitempty"`
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
Content string `json:"content" validate:"required"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
Id string `json:"id" validate:"required"`
MediaUrls *[]string `json:"mediaUrls,omitempty"`
PlatformResults *map[string]PostPlatformResult `json:"platformResults,omitempty"`
PublishedAt *time.Time `json:"publishedAt"`
ScheduledAt *time.Time `json:"scheduledAt"`
Status string `json:"status" validate:"required"`
}
Post defines model for Post.
type PostListResponse ¶
type PostListResponse struct {
Posts []Post `json:"posts" validate:"required"`
Total int `json:"total" validate:"required"`
}
PostListResponse defines model for PostListResponse.
type PostPlatformResult ¶
type PostPlatformResult struct {
Error *string `json:"error,omitempty"`
PostId string `json:"postId" validate:"required"`
Status string `json:"status" validate:"required"`
Url string `json:"url" validate:"required"`
}
PostPlatformResult defines model for PostPlatformResult.
type PresenceHealthResponse ¶
type PresenceHealthResponse struct {
// Composite The weighted 0-100 composite. Null in the empty state (no reviews).
Composite *int `json:"composite"`
// ComputedAt When the score was computed.
ComputedAt time.Time `json:"computedAt" validate:"required"`
// SubScores The four normalized 0-100 presence-health dimensions. rating, sla, and coverage are null in the empty state (no reviews); sync is null when the business has no connected-channel sync signal (the sync dimension is dropped and the other weights renormalize).
SubScores PresenceSubScores `json:"subScores"`
// TopRecommendation The single next-action nudge. Null in the empty state.
TopRecommendation *PresenceRecommendation `json:"topRecommendation"`
// TrendDelta composite minus the most-recent prior-week snapshot's composite. Null when no prior-week snapshot exists.
TrendDelta *int `json:"trendDelta"`
// Weights The weight set the composite was computed under. When the sync dimension is dropped the other three renormalize over 0.90, so these fractions reflect the mix actually used rather than the nominal weights.
Weights PresenceWeights `json:"weights"`
}
PresenceHealthResponse Read-only composite presence-health score. Aggregate-only: no author, review text, or reply text is carried — numbers only. composite and trendDelta are null when there is not yet enough data.
type PresenceRecommendation ¶
type PresenceRecommendation struct {
// Area The composite dimension this recommendation targets.
Area PresenceRecommendationArea `json:"area" validate:"required,oneof=rating sla coverage sync"`
// Message i18n message key the client resolves to a localized fix suggestion.
Message string `json:"message" validate:"required"`
// PotentialGain Composite points recovering this area to 100 would add (round(weight_of_area * (100 - subScore))).
PotentialGain int `json:"potentialGain" validate:"required"`
}
PresenceRecommendation The single next-action nudge — the weakest present sub-score area, a localized message key the client resolves, and the composite points recovering that area to 100 would add.
type PresenceRecommendationArea ¶
type PresenceRecommendationArea string
PresenceRecommendationArea The composite dimension this recommendation targets.
const ( Coverage PresenceRecommendationArea = "coverage" Rating PresenceRecommendationArea = "rating" Sla PresenceRecommendationArea = "sla" Sync PresenceRecommendationArea = "sync" )
Defines values for PresenceRecommendationArea.
type PresenceSubScores ¶
type PresenceSubScores struct {
// CoverageScore Answered share (replied / total) as 0-100. Null when no reviews.
CoverageScore *int `json:"coverageScore"`
// RatingScore Average star rating normalized to 0-100. Null when no rated reviews.
RatingScore *int `json:"ratingScore"`
// SlaScore Percent answered within target normalized to 0-100. Null when no measurable responses.
SlaScore *int `json:"slaScore"`
// SyncScore Connected-channel sync health as 0-100. Null when no sync signal exists.
SyncScore *int `json:"syncScore"`
}
PresenceSubScores The four normalized 0-100 presence-health dimensions. rating, sla, and coverage are null in the empty state (no reviews); sync is null when the business has no connected-channel sync signal (the sync dimension is dropped and the other weights renormalize).
type PresenceWeights ¶
type PresenceWeights struct {
// Coverage Weight applied to coverageScore.
Coverage float32 `json:"coverage" validate:"required"`
// Rating Weight applied to ratingScore.
Rating float32 `json:"rating" validate:"required"`
// Sla Weight applied to slaScore.
Sla float32 `json:"sla" validate:"required"`
// Sync Weight applied to syncScore (0 when the sync dimension was dropped).
Sync float32 `json:"sync" validate:"required"`
}
PresenceWeights The weight set the composite was computed under. When the sync dimension is dropped the other three renormalize over 0.90, so these fractions reflect the mix actually used rather than the nominal weights.
type ProbeYandexBusinessJSONRequestBody ¶
type ProbeYandexBusinessJSONRequestBody = YandexCookiesRequest
ProbeYandexBusinessJSONRequestBody defines body for ProbeYandexBusiness for application/json ContentType.
type Project ¶
type Project struct {
AllowedTools []string `json:"allowedTools" validate:"required"`
ApprovalOverrides *map[string]ProjectApprovalOverrides `json:"approvalOverrides,omitempty"`
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
Description *string `json:"description,omitempty"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
QuickActions []string `json:"quickActions" validate:"required"`
SystemPrompt *string `json:"systemPrompt,omitempty" validate:"omitempty,max=4000"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
WhitelistMode ProjectWhitelistMode `json:"whitelistMode" validate:"required,oneof=inherit all explicit none"`
}
Project defines model for Project.
type ProjectApprovalOverrides ¶
type ProjectApprovalOverrides string
ProjectApprovalOverrides defines model for Project.ApprovalOverrides.
const ( ProjectApprovalOverridesAuto ProjectApprovalOverrides = "auto" ProjectApprovalOverridesManual ProjectApprovalOverrides = "manual" )
Defines values for ProjectApprovalOverrides.
type ProjectConversationCountResponse ¶
type ProjectConversationCountResponse struct {
Count int `json:"count" validate:"required"`
}
ProjectConversationCountResponse defines model for ProjectConversationCountResponse.
type ProjectDeleteResponse ¶
type ProjectDeleteResponse struct {
DeletedConversations int `json:"deletedConversations" validate:"required"`
DeletedMessages int `json:"deletedMessages" validate:"required"`
}
ProjectDeleteResponse defines model for ProjectDeleteResponse.
type ProjectRequest ¶
type ProjectRequest struct {
AllowedTools *[]string `json:"allowedTools,omitempty"`
ApprovalOverrides *map[string]ProjectRequestApprovalOverrides `json:"approvalOverrides,omitempty"`
Description *string `json:"description,omitempty"`
Name string `json:"name" validate:"required"`
QuickActions *[]string `json:"quickActions,omitempty"`
SystemPrompt *string `json:"systemPrompt,omitempty" validate:"omitempty,max=4000"`
WhitelistMode *ProjectRequestWhitelistMode `json:"whitelistMode,omitempty" validate:"omitempty,oneof=inherit all explicit none"`
}
ProjectRequest defines model for ProjectRequest.
type ProjectRequestApprovalOverrides ¶
type ProjectRequestApprovalOverrides string
ProjectRequestApprovalOverrides defines model for ProjectRequest.ApprovalOverrides.
const ( ProjectRequestApprovalOverridesAuto ProjectRequestApprovalOverrides = "auto" ProjectRequestApprovalOverridesInherit ProjectRequestApprovalOverrides = "inherit" ProjectRequestApprovalOverridesManual ProjectRequestApprovalOverrides = "manual" )
Defines values for ProjectRequestApprovalOverrides.
type ProjectRequestWhitelistMode ¶
type ProjectRequestWhitelistMode string
ProjectRequestWhitelistMode defines model for ProjectRequest.WhitelistMode.
const ( ProjectRequestWhitelistModeAll ProjectRequestWhitelistMode = "all" ProjectRequestWhitelistModeExplicit ProjectRequestWhitelistMode = "explicit" ProjectRequestWhitelistModeInherit ProjectRequestWhitelistMode = "inherit" ProjectRequestWhitelistModeNone ProjectRequestWhitelistMode = "none" )
Defines values for ProjectRequestWhitelistMode.
type ProjectWhitelistMode ¶
type ProjectWhitelistMode string
ProjectWhitelistMode defines model for Project.WhitelistMode.
const ( ProjectWhitelistModeAll ProjectWhitelistMode = "all" ProjectWhitelistModeExplicit ProjectWhitelistMode = "explicit" ProjectWhitelistModeInherit ProjectWhitelistMode = "inherit" ProjectWhitelistModeNone ProjectWhitelistMode = "none" )
Defines values for ProjectWhitelistMode.
type PublicChannelVoteRequest ¶
type PublicChannelVoteRequest struct {
Channel PublicChannelVoteRequestChannel `json:"channel" validate:"required,oneof=whatsapp avito 2gis other"`
Note *string `json:"note,omitempty" validate:"omitempty,max=280"`
}
PublicChannelVoteRequest Public fake-door vote for a not-yet-supported channel, cast from the marketing landing by an unauthenticated visitor. Measures anonymous top-of-funnel demand; distinct from the business-scoped CreateChannelRequestRequest.
type PublicChannelVoteRequestChannel ¶
type PublicChannelVoteRequestChannel string
PublicChannelVoteRequestChannel defines model for PublicChannelVoteRequest.Channel.
const ( PublicChannelVoteRequestChannelAvito PublicChannelVoteRequestChannel = "avito" PublicChannelVoteRequestChannelN2gis PublicChannelVoteRequestChannel = "2gis" PublicChannelVoteRequestChannelOther PublicChannelVoteRequestChannel = "other" PublicChannelVoteRequestChannelWhatsapp PublicChannelVoteRequestChannel = "whatsapp" )
Defines values for PublicChannelVoteRequestChannel.
type ReconsentJSONRequestBody ¶
type ReconsentJSONRequestBody = ReconsentRequest
ReconsentJSONRequestBody defines body for Reconsent for application/json ContentType.
type ReconsentPolicy ¶
type ReconsentPolicy struct {
Sha256 *string `json:"sha256,omitempty"`
Slug string `json:"slug" validate:"required"`
Version string `json:"version" validate:"required"`
}
ReconsentPolicy defines model for ReconsentPolicy.
type ReconsentRequest ¶
type ReconsentRequest struct {
Policies []ReconsentPolicy `json:"policies" validate:"required"`
}
ReconsentRequest defines model for ReconsentRequest.
type RecordChannelVoteJSONRequestBody ¶
type RecordChannelVoteJSONRequestBody = PublicChannelVoteRequest
RecordChannelVoteJSONRequestBody defines body for RecordChannelVote for application/json ContentType.
type RecordLandingEventJSONRequestBody ¶
type RecordLandingEventJSONRequestBody = LandingEventRequest
RecordLandingEventJSONRequestBody defines body for RecordLandingEvent for application/json ContentType.
type RefreshStartedResponse ¶
type RefreshStartedResponse struct {
Status RefreshStartedResponseStatus `json:"status" validate:"required,oneof=refresh_started"`
}
RefreshStartedResponse defines model for RefreshStartedResponse.
type RefreshStartedResponseStatus ¶
type RefreshStartedResponseStatus string
RefreshStartedResponseStatus defines model for RefreshStartedResponse.Status.
const (
RefreshStarted RefreshStartedResponseStatus = "refresh_started"
)
Defines values for RefreshStartedResponseStatus.
type RefreshTelegramLinkedGroupJSONRequestBody ¶
type RefreshTelegramLinkedGroupJSONRequestBody = RefreshTelegramRequest
RefreshTelegramLinkedGroupJSONRequestBody defines body for RefreshTelegramLinkedGroup for application/json ContentType.
type RefreshTelegramRequest ¶
type RefreshTelegramRequest struct {
ChannelId string `json:"channel_id" validate:"required"`
}
RefreshTelegramRequest defines model for RefreshTelegramRequest.
type RefreshTelegramResponse ¶
type RefreshTelegramResponse struct {
ChannelTitle string `json:"channel_title" validate:"required"`
LinkedChatId int64 `json:"linked_chat_id" validate:"required"`
LinkedGroupStatus RefreshTelegramResponseLinkedGroupStatus `json:"linked_group_status" validate:"required,oneof=ok bot_not_member no_linked_group"`
}
RefreshTelegramResponse defines model for RefreshTelegramResponse.
type RefreshTelegramResponseLinkedGroupStatus ¶
type RefreshTelegramResponseLinkedGroupStatus string
RefreshTelegramResponseLinkedGroupStatus defines model for RefreshTelegramResponse.LinkedGroupStatus.
const ( RefreshTelegramResponseLinkedGroupStatusBotNotMember RefreshTelegramResponseLinkedGroupStatus = "bot_not_member" RefreshTelegramResponseLinkedGroupStatusNoLinkedGroup RefreshTelegramResponseLinkedGroupStatus = "no_linked_group" RefreshTelegramResponseLinkedGroupStatusOk RefreshTelegramResponseLinkedGroupStatus = "ok" )
Defines values for RefreshTelegramResponseLinkedGroupStatus.
type RefreshTokenResponse ¶
type RefreshTokenResponse struct {
AccessToken string `json:"accessToken" validate:"required"`
User User `json:"user"`
}
RefreshTokenResponse defines model for RefreshTokenResponse.
type RegisterConsents ¶
type RegisterConsents struct {
Pdn *string `json:"pdn,omitempty"`
Privacy *string `json:"privacy,omitempty"`
Tos *string `json:"tos,omitempty"`
}
RegisterConsents Per-slug version map submitted with /auth/register. The handler enforces version-equality (vs `legalconfig.*Version`) and returns 400 consent_required listing the missing slugs, so individual fields are NOT marked `required` at the schema level — a missing field is treated as a stale consent, not a schema violation.
type RegisterJSONRequestBody ¶
type RegisterJSONRequestBody = RegisterRequest
RegisterJSONRequestBody defines body for Register for application/json ContentType.
type RegisterRequest ¶
type RegisterRequest struct {
// Consents Per-slug version map submitted with /auth/register. The handler enforces
// version-equality (vs `legalconfig.*Version`) and returns 400
// consent_required listing the missing slugs, so individual fields are
// NOT marked `required` at the schema level — a missing field is treated
// as a stale consent, not a schema violation.
Consents RegisterConsents `json:"consents"`
Email openapi_types.Email `json:"email" validate:"required,email"`
Name string `json:"name" validate:"required,min=2,max=100"`
Password string `json:"password" validate:"required,min=8"`
}
RegisterRequest defines model for RegisterRequest.
type RenderContentTemplateJSONRequestBody ¶
type RenderContentTemplateJSONRequestBody = RenderContentTemplateRequest
RenderContentTemplateJSONRequestBody defines body for RenderContentTemplate for application/json ContentType.
type RenderContentTemplateRequest ¶
type RenderContentTemplateRequest struct {
Values map[string]string `json:"values" validate:"required"`
}
RenderContentTemplateRequest defines model for RenderContentTemplateRequest.
type RenderContentTemplateResponse ¶
type RenderContentTemplateResponse struct {
Content string `json:"content" validate:"required,max=16384"`
}
RenderContentTemplateResponse defines model for RenderContentTemplateResponse.
type ReplyToReviewJSONRequestBody ¶
type ReplyToReviewJSONRequestBody = ReplyToReviewRequest
ReplyToReviewJSONRequestBody defines body for ReplyToReview for application/json ContentType.
type ReplyToReviewRequest ¶
type ReplyToReviewRequest struct {
ReplyText string `json:"replyText" validate:"required"`
}
ReplyToReviewRequest defines model for ReplyToReviewRequest.
type RequestPasswordResetJSONRequestBody ¶
type RequestPasswordResetJSONRequestBody = RequestPasswordResetRequest
RequestPasswordResetJSONRequestBody defines body for RequestPasswordReset for application/json ContentType.
type RequestPasswordResetRequest ¶
type RequestPasswordResetRequest struct {
Email openapi_types.Email `json:"email" validate:"required,email"`
}
RequestPasswordResetRequest defines model for RequestPasswordResetRequest.
type RequiresReconsentInfo ¶
type RequiresReconsentInfo struct {
Policies []struct {
NewVersion string `json:"newVersion" validate:"required"`
OldVersion string `json:"oldVersion" validate:"required"`
Sha256 string `json:"sha256" validate:"required"`
Slug string `json:"slug" validate:"required"`
} `json:"policies" validate:"required"`
}
RequiresReconsentInfo defines model for RequiresReconsentInfo.
type ResumeRequest ¶
type ResumeRequest struct {
ActiveIntegrations *[]string `json:"active_integrations,omitempty"`
AllowedTools *[]string `json:"allowed_tools,omitempty"`
BusinessApprovals *map[string]ToolFloor `json:"business_approvals,omitempty"`
Model *string `json:"model,omitempty"`
ProjectApprovalOverrides *map[string]ToolFloor `json:"project_approval_overrides,omitempty"`
Tier *string `json:"tier,omitempty"`
WhitelistMode *ResumeRequestWhitelistMode `json:"whitelist_mode,omitempty" validate:"omitempty,oneof=inherit all explicit none"`
}
ResumeRequest defines model for ResumeRequest.
type ResumeRequestWhitelistMode ¶
type ResumeRequestWhitelistMode string
ResumeRequestWhitelistMode defines model for ResumeRequest.WhitelistMode.
const ( All ResumeRequestWhitelistMode = "all" Empty ResumeRequestWhitelistMode = "" Explicit ResumeRequestWhitelistMode = "explicit" Inherit ResumeRequestWhitelistMode = "inherit" None ResumeRequestWhitelistMode = "none" )
Defines values for ResumeRequestWhitelistMode.
type Review ¶
type Review struct {
AuthorName string `json:"authorName" validate:"required"`
BusinessId openapi_types.UUID `json:"businessId" validate:"required,uuid"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
DraftError *string `json:"draftError,omitempty"`
DraftGeneratedAt *time.Time `json:"draftGeneratedAt,omitempty"`
DraftReply *string `json:"draftReply,omitempty"`
DraftStatus *ReviewDraftStatus `json:"draftStatus,omitempty" validate:"omitempty,oneof=generating ready failed"`
ExternalId string `json:"externalId" validate:"required"`
Id string `json:"id" validate:"required"`
Platform string `json:"platform" validate:"required"`
PlatformMeta *map[string]interface{} `json:"platformMeta,omitempty"`
Rating int `json:"rating" validate:"required"`
ReplyStatus ReviewReplyStatus `json:"replyStatus" validate:"required,oneof=pending replied error"`
ReplyText *string `json:"replyText,omitempty"`
Text string `json:"text" validate:"required"`
}
Review defines model for Review.
type ReviewAutopilotResponse ¶
type ReviewAutopilotResponse struct {
// Enabled Whether the review-reply autopilot is enabled (default false).
Enabled bool `json:"enabled" validate:"required"`
// MinRating The minimum star rating that may be auto-published (default 4 when
// unset; always at least 4).
MinRating int `json:"minRating" validate:"required"`
}
ReviewAutopilotResponse defines model for ReviewAutopilotResponse.
type ReviewDelegationMetrics ¶
type ReviewDelegationMetrics struct {
AcceptedUnedited int `json:"acceptedUnedited" validate:"required"`
Edited int `json:"edited" validate:"required"`
From time.Time `json:"from" validate:"required"`
// Measurable acceptedUnedited plus edited; the denominator for known-feedback shares.
Measurable int `json:"measurable" validate:"required"`
Replied int `json:"replied" validate:"required"`
To time.Time `json:"to" validate:"required"`
Unknown int `json:"unknown" validate:"required"`
Weeks []ReviewDelegationWeek `json:"weeks" validate:"required"`
}
ReviewDelegationMetrics Aggregate feedback on saved draft replies with replied_at in the recent weekly interval. Unknown counts timestamped replies without an edit signal. Legacy rows missing replied_at cannot be assigned to a week and are excluded from all totals.
type ReviewDelegationWeek ¶
type ReviewDelegationWeek struct {
AcceptedUnedited int `json:"acceptedUnedited" validate:"required"`
Edited int `json:"edited" validate:"required"`
Replied int `json:"replied" validate:"required"`
Unknown int `json:"unknown" validate:"required"`
WeekStart time.Time `json:"weekStart" validate:"required"`
}
ReviewDelegationWeek defines model for ReviewDelegationWeek.
type ReviewDraftStatus ¶
type ReviewDraftStatus string
ReviewDraftStatus defines model for Review.DraftStatus.
const ( Failed ReviewDraftStatus = "failed" Generating ReviewDraftStatus = "generating" Ready ReviewDraftStatus = "ready" )
Defines values for ReviewDraftStatus.
type ReviewListResponse ¶
type ReviewListResponse struct {
Reviews []Review `json:"reviews" validate:"required"`
Total int `json:"total" validate:"required"`
}
ReviewListResponse defines model for ReviewListResponse.
type ReviewPlatformSLA ¶
type ReviewPlatformSLA struct {
MeasuredResponses int `json:"measuredResponses" validate:"required"`
MedianResponseHours float32 `json:"medianResponseHours" validate:"required"`
Platform string `json:"platform" validate:"required"`
}
ReviewPlatformSLA defines model for ReviewPlatformSLA.
type ReviewReplyStatus ¶
type ReviewReplyStatus string
ReviewReplyStatus defines model for Review.ReplyStatus.
const ( ReviewReplyStatusError ReviewReplyStatus = "error" ReviewReplyStatusPending ReviewReplyStatus = "pending" ReviewReplyStatusReplied ReviewReplyStatus = "replied" )
Defines values for ReviewReplyStatus.
type ReviewSLAResponse ¶
type ReviewSLAResponse struct {
// Answered Reviews whose reply_status is "replied".
Answered int `json:"answered" validate:"required"`
// AverageResponseHours Average response latency in hours (created_at -> replied_at) over measured responses only.
AverageResponseHours float32 `json:"averageResponseHours" validate:"required"`
// Buckets Unanswered reviews partitioned by age (created_at -> now).
Buckets ReviewUnansweredBuckets `json:"buckets"`
// MeasuredResponses Replied reviews carrying a replied_at (the denominator behind the median / average / within-target rate).
MeasuredResponses int `json:"measuredResponses" validate:"required"`
// MedianResponseHours Median response latency in hours (created_at -> replied_at) over measured responses only.
MedianResponseHours float32 `json:"medianResponseHours" validate:"required"`
// OldestUnansweredHours Age in hours of the oldest unanswered review, or null when every review is answered.
OldestUnansweredHours *float32 `json:"oldestUnansweredHours"`
// PercentAnsweredWithinTarget Share of measured responses answered within targetHours, in [0,1].
PercentAnsweredWithinTarget float32 `json:"percentAnsweredWithinTarget" validate:"required"`
// Platforms Per-platform medians over the same full measured response set. Platforms without a valid replied_at sample are omitted.
Platforms []ReviewPlatformSLA `json:"platforms" validate:"required"`
// TargetHours Answered-within-target window in hours the rate was computed against.
TargetHours int `json:"targetHours" validate:"required"`
// Total Total reviews for the business.
Total int `json:"total" validate:"required"`
// Unanswered Reviews whose reply_status is not "replied".
Unanswered int `json:"unanswered" validate:"required"`
}
ReviewSLAResponse Aggregate-only response-SLA metrics. No author, review text, or reply text is carried; platform identifiers are the only non-numeric values.
type ReviewUnansweredBuckets ¶
type ReviewUnansweredBuckets struct {
// Gt72h Unanswered over 72 hours old.
Gt72h int `json:"gt72h" validate:"required"`
// H24to72 Unanswered between 24 and 72 hours old.
H24to72 int `json:"h24to72" validate:"required"`
// Lt24h Unanswered under 24 hours old.
Lt24h int `json:"lt24h" validate:"required"`
}
ReviewUnansweredBuckets Unanswered reviews partitioned by age (created_at -> now).
type Role ¶
type Role struct {
BusinessId *openapi_types.UUID `json:"business_id" validate:"omitempty,uuid"`
Description string `json:"description" validate:"required"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
IsSystem bool `json:"is_system" validate:"required"`
MemberCount *int `json:"member_count,omitempty"`
Name string `json:"name" validate:"required"`
Permissions []string `json:"permissions" validate:"required"`
}
Role defines model for Role.
type SSEConcurrencyError ¶
type SSEConcurrencyError struct {
Code SSEConcurrencyErrorCode `json:"code" validate:"required,oneof=sse_concurrency_exceeded"`
RetryAfterS int `json:"retry_after_s" validate:"required"`
}
SSEConcurrencyError defines model for SSEConcurrencyError.
type SSEConcurrencyErrorCode ¶
type SSEConcurrencyErrorCode string
SSEConcurrencyErrorCode defines model for SSEConcurrencyError.Code.
const (
SseConcurrencyExceeded SSEConcurrencyErrorCode = "sse_concurrency_exceeded"
)
Defines values for SSEConcurrencyErrorCode.
type SSEEvent ¶
type SSEEvent struct {
// contains filtered or unexported fields
}
SSEEvent Discriminated union over the per-type SSE event schemas. `type` is the discriminator. Wire envelope is `data: <json>\n\n`.
func (SSEEvent) AsSSEEventApprovalRequired ¶
func (t SSEEvent) AsSSEEventApprovalRequired() (SSEEventApprovalRequired, error)
AsSSEEventApprovalRequired returns the union data inside the SSEEvent as a SSEEventApprovalRequired
func (SSEEvent) AsSSEEventDone ¶
func (t SSEEvent) AsSSEEventDone() (SSEEventDone, error)
AsSSEEventDone returns the union data inside the SSEEvent as a SSEEventDone
func (SSEEvent) AsSSEEventError ¶
func (t SSEEvent) AsSSEEventError() (SSEEventError, error)
AsSSEEventError returns the union data inside the SSEEvent as a SSEEventError
func (SSEEvent) AsSSEEventText ¶
func (t SSEEvent) AsSSEEventText() (SSEEventText, error)
AsSSEEventText returns the union data inside the SSEEvent as a SSEEventText
func (SSEEvent) AsSSEEventToolCall ¶
func (t SSEEvent) AsSSEEventToolCall() (SSEEventToolCall, error)
AsSSEEventToolCall returns the union data inside the SSEEvent as a SSEEventToolCall
func (SSEEvent) AsSSEEventToolRejected ¶
func (t SSEEvent) AsSSEEventToolRejected() (SSEEventToolRejected, error)
AsSSEEventToolRejected returns the union data inside the SSEEvent as a SSEEventToolRejected
func (SSEEvent) AsSSEEventToolResult ¶
func (t SSEEvent) AsSSEEventToolResult() (SSEEventToolResult, error)
AsSSEEventToolResult returns the union data inside the SSEEvent as a SSEEventToolResult
func (SSEEvent) Discriminator ¶
func (*SSEEvent) FromSSEEventApprovalRequired ¶
func (t *SSEEvent) FromSSEEventApprovalRequired(v SSEEventApprovalRequired) error
FromSSEEventApprovalRequired overwrites any union data inside the SSEEvent as the provided SSEEventApprovalRequired
func (*SSEEvent) FromSSEEventDone ¶
func (t *SSEEvent) FromSSEEventDone(v SSEEventDone) error
FromSSEEventDone overwrites any union data inside the SSEEvent as the provided SSEEventDone
func (*SSEEvent) FromSSEEventError ¶
func (t *SSEEvent) FromSSEEventError(v SSEEventError) error
FromSSEEventError overwrites any union data inside the SSEEvent as the provided SSEEventError
func (*SSEEvent) FromSSEEventText ¶
func (t *SSEEvent) FromSSEEventText(v SSEEventText) error
FromSSEEventText overwrites any union data inside the SSEEvent as the provided SSEEventText
func (*SSEEvent) FromSSEEventToolCall ¶
func (t *SSEEvent) FromSSEEventToolCall(v SSEEventToolCall) error
FromSSEEventToolCall overwrites any union data inside the SSEEvent as the provided SSEEventToolCall
func (*SSEEvent) FromSSEEventToolRejected ¶
func (t *SSEEvent) FromSSEEventToolRejected(v SSEEventToolRejected) error
FromSSEEventToolRejected overwrites any union data inside the SSEEvent as the provided SSEEventToolRejected
func (*SSEEvent) FromSSEEventToolResult ¶
func (t *SSEEvent) FromSSEEventToolResult(v SSEEventToolResult) error
FromSSEEventToolResult overwrites any union data inside the SSEEvent as the provided SSEEventToolResult
func (SSEEvent) MarshalJSON ¶
func (*SSEEvent) MergeSSEEventApprovalRequired ¶
func (t *SSEEvent) MergeSSEEventApprovalRequired(v SSEEventApprovalRequired) error
MergeSSEEventApprovalRequired performs a merge with any union data inside the SSEEvent, using the provided SSEEventApprovalRequired
func (*SSEEvent) MergeSSEEventDone ¶
func (t *SSEEvent) MergeSSEEventDone(v SSEEventDone) error
MergeSSEEventDone performs a merge with any union data inside the SSEEvent, using the provided SSEEventDone
func (*SSEEvent) MergeSSEEventError ¶
func (t *SSEEvent) MergeSSEEventError(v SSEEventError) error
MergeSSEEventError performs a merge with any union data inside the SSEEvent, using the provided SSEEventError
func (*SSEEvent) MergeSSEEventText ¶
func (t *SSEEvent) MergeSSEEventText(v SSEEventText) error
MergeSSEEventText performs a merge with any union data inside the SSEEvent, using the provided SSEEventText
func (*SSEEvent) MergeSSEEventToolCall ¶
func (t *SSEEvent) MergeSSEEventToolCall(v SSEEventToolCall) error
MergeSSEEventToolCall performs a merge with any union data inside the SSEEvent, using the provided SSEEventToolCall
func (*SSEEvent) MergeSSEEventToolRejected ¶
func (t *SSEEvent) MergeSSEEventToolRejected(v SSEEventToolRejected) error
MergeSSEEventToolRejected performs a merge with any union data inside the SSEEvent, using the provided SSEEventToolRejected
func (*SSEEvent) MergeSSEEventToolResult ¶
func (t *SSEEvent) MergeSSEEventToolResult(v SSEEventToolResult) error
MergeSSEEventToolResult performs a merge with any union data inside the SSEEvent, using the provided SSEEventToolResult
func (*SSEEvent) UnmarshalJSON ¶
func (SSEEvent) ValueByDiscriminator ¶
type SSEEventApprovalRequired ¶
type SSEEventApprovalRequired struct {
BatchId string `json:"batch_id" validate:"required"`
Calls []ApprovalCall `json:"calls" validate:"required"`
Type SSEEventApprovalRequiredType `json:"type" validate:"required,oneof=tool_approval_required"`
}
SSEEventApprovalRequired defines model for SSEEventApprovalRequired.
type SSEEventApprovalRequiredType ¶
type SSEEventApprovalRequiredType string
SSEEventApprovalRequiredType defines model for SSEEventApprovalRequired.Type.
const (
ToolApprovalRequired SSEEventApprovalRequiredType = "tool_approval_required"
)
Defines values for SSEEventApprovalRequiredType.
type SSEEventDone ¶
type SSEEventDone struct {
Content *string `json:"content,omitempty"`
Type SSEEventDoneType `json:"type" validate:"required,oneof=done"`
}
SSEEventDone defines model for SSEEventDone.
type SSEEventDoneType ¶
type SSEEventDoneType string
SSEEventDoneType defines model for SSEEventDone.Type.
const (
Done SSEEventDoneType = "done"
)
Defines values for SSEEventDoneType.
type SSEEventError ¶
type SSEEventError struct {
Code *string `json:"code,omitempty"`
Content *string `json:"content,omitempty"`
Type SSEEventErrorType `json:"type" validate:"required,oneof=error"`
}
SSEEventError defines model for SSEEventError.
type SSEEventErrorType ¶
type SSEEventErrorType string
SSEEventErrorType defines model for SSEEventError.Type.
const (
SSEEventErrorTypeError SSEEventErrorType = "error"
)
Defines values for SSEEventErrorType.
type SSEEventText ¶
type SSEEventText struct {
Content *string `json:"content,omitempty"`
Type SSEEventTextType `json:"type" validate:"required,oneof=text"`
}
SSEEventText defines model for SSEEventText.
type SSEEventTextType ¶
type SSEEventTextType string
SSEEventTextType defines model for SSEEventText.Type.
const (
Text SSEEventTextType = "text"
)
Defines values for SSEEventTextType.
type SSEEventToolCall ¶
type SSEEventToolCall struct {
ToolArgs *map[string]interface{} `json:"tool_args,omitempty"`
ToolCallId *string `json:"tool_call_id,omitempty"`
ToolDisplayName *string `json:"tool_display_name,omitempty"`
ToolDisplayNameKey *string `json:"tool_display_name_key,omitempty"`
ToolName *string `json:"tool_name,omitempty"`
Type SSEEventToolCallType `json:"type" validate:"required,oneof=tool_call"`
}
SSEEventToolCall defines model for SSEEventToolCall.
type SSEEventToolCallType ¶
type SSEEventToolCallType string
SSEEventToolCallType defines model for SSEEventToolCall.Type.
const (
ToolCall SSEEventToolCallType = "tool_call"
)
Defines values for SSEEventToolCallType.
type SSEEventToolRejected ¶
type SSEEventToolRejected struct {
Error *string `json:"error,omitempty"`
ToolCallId *string `json:"tool_call_id,omitempty"`
ToolDisplayName *string `json:"tool_display_name,omitempty"`
ToolDisplayNameKey *string `json:"tool_display_name_key,omitempty"`
ToolName *string `json:"tool_name,omitempty"`
Type SSEEventToolRejectedType `json:"type" validate:"required,oneof=tool_rejected"`
}
SSEEventToolRejected defines model for SSEEventToolRejected.
type SSEEventToolRejectedType ¶
type SSEEventToolRejectedType string
SSEEventToolRejectedType defines model for SSEEventToolRejected.Type.
const (
ToolRejected SSEEventToolRejectedType = "tool_rejected"
)
Defines values for SSEEventToolRejectedType.
type SSEEventToolResult ¶
type SSEEventToolResult struct {
Error *string `json:"error,omitempty"`
// Result Tool reply payload (any JSON).
Result *interface{} `json:"result"`
ToolCallId *string `json:"tool_call_id,omitempty"`
ToolDisplayName *string `json:"tool_display_name,omitempty"`
ToolDisplayNameKey *string `json:"tool_display_name_key,omitempty"`
ToolName *string `json:"tool_name,omitempty"`
Type SSEEventToolResultType `json:"type" validate:"required,oneof=tool_result"`
}
SSEEventToolResult defines model for SSEEventToolResult.
type SSEEventToolResultType ¶
type SSEEventToolResultType string
SSEEventToolResultType defines model for SSEEventToolResult.Type.
const (
ToolResult SSEEventToolResultType = "tool_result"
)
Defines values for SSEEventToolResultType.
type SearchParams ¶
type SearchParams struct {
Q string `form:"q" json:"q"`
ProjectId *string `form:"project_id,omitempty" json:"project_id,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
SearchParams defines parameters for Search.
type SearchResult ¶
type SearchResult struct {
ConversationId string `json:"conversationId" validate:"required"`
// CreatedAt Conversation creation time for display-time fallback localization.
CreatedAt *time.Time `json:"createdAt,omitempty"`
LastMessageAt *time.Time `json:"lastMessageAt"`
Marks *[][]int `json:"marks,omitempty"`
MatchCount int `json:"matchCount" validate:"required"`
ProjectId *string `json:"projectId"`
Score float64 `json:"score" validate:"required"`
Snippet *string `json:"snippet,omitempty"`
Title *string `json:"title,omitempty"`
// TitleStatus Present for title hits; manual titles must always be displayed verbatim.
TitleStatus *SearchResultTitleStatus `json:"titleStatus,omitempty" validate:"omitempty,oneof=auto_pending auto manual"`
TopMessageId *string `json:"topMessageId,omitempty"`
}
SearchResult defines model for SearchResult.
type SearchResultTitleStatus ¶
type SearchResultTitleStatus string
SearchResultTitleStatus Present for title hits; manual titles must always be displayed verbatim.
const ( SearchTitleAuto SearchResultTitleStatus = "auto" SearchTitleAutoPending SearchResultTitleStatus = "auto_pending" SearchTitleManual SearchResultTitleStatus = "manual" )
Defines values for SearchResultTitleStatus.
type SelectGoogleLocationJSONRequestBody ¶
type SelectGoogleLocationJSONRequestBody = GoogleSelectLocationRequest
SelectGoogleLocationJSONRequestBody defines body for SelectGoogleLocation for application/json ContentType.
type SoleOwnerBusinessEntry ¶
type SoleOwnerBusinessEntry struct {
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
}
SoleOwnerBusinessEntry defines model for SoleOwnerBusinessEntry.
type SoleOwnerResponse ¶
type SoleOwnerResponse struct {
Businesses []SoleOwnerBusinessEntry `json:"businesses" validate:"required"`
Code SoleOwnerResponseCode `json:"code" validate:"required,oneof=sole_owner_of_businesses"`
}
SoleOwnerResponse defines model for SoleOwnerResponse.
type SoleOwnerResponseCode ¶
type SoleOwnerResponseCode string
SoleOwnerResponseCode defines model for SoleOwnerResponse.Code.
const (
SoleOwnerOfBusinesses SoleOwnerResponseCode = "sole_owner_of_businesses"
)
Defines values for SoleOwnerResponseCode.
type StatusOKResponse ¶
type StatusOKResponse struct {
Status string `json:"status" validate:"required"`
}
StatusOKResponse `{status:"ok"}` envelope used by ChangePassword. Distinct from `StatusOkResponse` (camelCase variant) used by review reply and review-refresh handlers.
type StatusOkResponse ¶
type StatusOkResponse struct {
Status StatusOkResponseStatus `json:"status" validate:"required,oneof=ok"`
}
StatusOkResponse `{status:"ok"}` envelope used by reviewReply and refreshReviews. Enum-pinned variant of `StatusOKResponse`.
type StatusOkResponseStatus ¶
type StatusOkResponseStatus string
StatusOkResponseStatus defines model for StatusOkResponse.Status.
const (
StatusOkResponseStatusOk StatusOkResponseStatus = "ok"
)
Defines values for StatusOkResponseStatus.
type TelegramConnectError ¶
type TelegramConnectError struct {
Error string `json:"error" validate:"required"`
// Reason Stable Telegram connection failure reason.
Reason string `json:"reason" validate:"required"`
}
TelegramConnectError defines model for TelegramConnectError.
type TelegramLoginRequest ¶
type TelegramLoginRequest struct {
AuthDate TelegramLoginRequest_AuthDate `json:"auth_date" validate:"required"`
FirstName *string `json:"first_name,omitempty"`
Hash string `json:"hash" validate:"required"`
Id *int64 `json:"id,omitempty"`
LastName *string `json:"last_name,omitempty"`
PhotoUrl *string `json:"photo_url,omitempty"`
Username *string `json:"username,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
TelegramLoginRequest defines model for TelegramLoginRequest.
func (TelegramLoginRequest) Get ¶
func (a TelegramLoginRequest) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for TelegramLoginRequest. Returns the specified element and whether it was found
func (TelegramLoginRequest) MarshalJSON ¶
func (a TelegramLoginRequest) MarshalJSON() ([]byte, error)
Override default JSON handling for TelegramLoginRequest to handle AdditionalProperties
func (*TelegramLoginRequest) Set ¶
func (a *TelegramLoginRequest) Set(fieldName string, value interface{})
Setter for additional properties for TelegramLoginRequest
func (*TelegramLoginRequest) UnmarshalJSON ¶
func (a *TelegramLoginRequest) UnmarshalJSON(b []byte) error
Override default JSON handling for TelegramLoginRequest to handle AdditionalProperties
type TelegramLoginRequestAuthDate0 ¶
type TelegramLoginRequestAuthDate0 = string
TelegramLoginRequestAuthDate0 defines model for .
type TelegramLoginRequestAuthDate1 ¶
type TelegramLoginRequestAuthDate1 = int
TelegramLoginRequestAuthDate1 defines model for .
type TelegramLoginRequest_AuthDate ¶
type TelegramLoginRequest_AuthDate struct {
// contains filtered or unexported fields
}
TelegramLoginRequest_AuthDate defines model for TelegramLoginRequest.AuthDate.
func (TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate0 ¶
func (t TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate0() (TelegramLoginRequestAuthDate0, error)
AsTelegramLoginRequestAuthDate0 returns the union data inside the TelegramLoginRequest_AuthDate as a TelegramLoginRequestAuthDate0
func (TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate1 ¶
func (t TelegramLoginRequest_AuthDate) AsTelegramLoginRequestAuthDate1() (TelegramLoginRequestAuthDate1, error)
AsTelegramLoginRequestAuthDate1 returns the union data inside the TelegramLoginRequest_AuthDate as a TelegramLoginRequestAuthDate1
func (*TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate0 ¶
func (t *TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate0(v TelegramLoginRequestAuthDate0) error
FromTelegramLoginRequestAuthDate0 overwrites any union data inside the TelegramLoginRequest_AuthDate as the provided TelegramLoginRequestAuthDate0
func (*TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate1 ¶
func (t *TelegramLoginRequest_AuthDate) FromTelegramLoginRequestAuthDate1(v TelegramLoginRequestAuthDate1) error
FromTelegramLoginRequestAuthDate1 overwrites any union data inside the TelegramLoginRequest_AuthDate as the provided TelegramLoginRequestAuthDate1
func (TelegramLoginRequest_AuthDate) MarshalJSON ¶
func (t TelegramLoginRequest_AuthDate) MarshalJSON() ([]byte, error)
func (*TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate0 ¶
func (t *TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate0(v TelegramLoginRequestAuthDate0) error
MergeTelegramLoginRequestAuthDate0 performs a merge with any union data inside the TelegramLoginRequest_AuthDate, using the provided TelegramLoginRequestAuthDate0
func (*TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate1 ¶
func (t *TelegramLoginRequest_AuthDate) MergeTelegramLoginRequestAuthDate1(v TelegramLoginRequestAuthDate1) error
MergeTelegramLoginRequestAuthDate1 performs a merge with any union data inside the TelegramLoginRequest_AuthDate, using the provided TelegramLoginRequestAuthDate1
func (*TelegramLoginRequest_AuthDate) UnmarshalJSON ¶
func (t *TelegramLoginRequest_AuthDate) UnmarshalJSON(b []byte) error
type TelegramLoginVerifiedResponse ¶
type TelegramLoginVerifiedResponse struct {
User map[string]interface{} `json:"user" validate:"required"`
Verified bool `json:"verified" validate:"required"`
}
TelegramLoginVerifiedResponse defines model for TelegramLoginVerifiedResponse.
type TelegramOwnerLinkResponse ¶
type TelegramOwnerLinkResponse struct {
// ExpiresInSeconds Seconds until the deep link expires.
ExpiresInSeconds int `json:"expires_in_seconds" validate:"required"`
// StartUrl A one-time Telegram deep link the business admin opens or forwards to the owner. Tapping it delivers "/start <token>" to the bot; the first authentic tapper within the TTL becomes the verified owner. Single-use.
StartUrl string `json:"start_url" validate:"required"`
}
TelegramOwnerLinkResponse defines model for TelegramOwnerLinkResponse.
type TelemetryEvent ¶
type TelemetryEvent struct {
Action string `json:"action" validate:"required"`
CorrelationId *string `json:"correlationId,omitempty"`
EventType TelemetryEventEventType `json:"eventType" validate:"required,oneof=page_view api_error chat_send button_click activation approval value_recap"`
Metadata *map[string]string `json:"metadata,omitempty"`
Page string `json:"page" validate:"required"`
Timestamp string `json:"timestamp" validate:"required"`
}
TelemetryEvent defines model for TelemetryEvent.
type TelemetryEventEventType ¶
type TelemetryEventEventType string
TelemetryEventEventType defines model for TelemetryEvent.EventType.
const ( Activation TelemetryEventEventType = "activation" ApiError TelemetryEventEventType = "api_error" Approval TelemetryEventEventType = "approval" ButtonClick TelemetryEventEventType = "button_click" ChatSend TelemetryEventEventType = "chat_send" PageView TelemetryEventEventType = "page_view" ValueRecap TelemetryEventEventType = "value_recap" )
Defines values for TelemetryEventEventType.
type TitlerConflictError ¶
type TitlerConflictError struct {
Error TitlerConflictErrorError `json:"error" validate:"required,oneof=title_is_manual title_in_flight title_state_changed"`
Message string `json:"message" validate:"required"`
}
TitlerConflictError defines model for TitlerConflictError.
type TitlerConflictErrorError ¶
type TitlerConflictErrorError string
TitlerConflictErrorError defines model for TitlerConflictError.Error.
const ( TitleInFlight TitlerConflictErrorError = "title_in_flight" TitleIsManual TitlerConflictErrorError = "title_is_manual" TitleStateChanged TitlerConflictErrorError = "title_state_changed" )
Defines values for TitlerConflictErrorError.
type TitlerDisabledError ¶
type TitlerDisabledError struct {
Error TitlerDisabledErrorError `json:"error" validate:"required,oneof=titler_disabled"`
Message string `json:"message" validate:"required"`
}
TitlerDisabledError defines model for TitlerDisabledError.
type TitlerDisabledErrorError ¶
type TitlerDisabledErrorError string
TitlerDisabledErrorError defines model for TitlerDisabledError.Error.
const (
TitlerDisabled TitlerDisabledErrorError = "titler_disabled"
)
Defines values for TitlerDisabledErrorError.
type ToolApprovalsResponse ¶
type ToolApprovalsResponse struct {
ToolApprovals map[string]ToolFloor `json:"toolApprovals" validate:"required"`
}
ToolApprovalsResponse defines model for ToolApprovalsResponse.
type ToolEntry ¶
type ToolEntry struct {
Description string `json:"description" validate:"required"`
DisplayName string `json:"displayName" validate:"required"`
DisplayNameKey *string `json:"displayNameKey,omitempty"`
EditableFields []string `json:"editableFields" validate:"required"`
Floor ToolEntryFloor `json:"floor" validate:"required,oneof=auto manual"`
Name string `json:"name" validate:"required"`
Platform string `json:"platform" validate:"required"`
UserDescription string `json:"userDescription" validate:"required"`
}
ToolEntry Locale-resolved tool registry projection returned by the api service's hitlGetTools (cached 5 minutes). The `floor` here is the wire-effective HITL floor — `auto` or `manual`. Distinct from `ToolRegistryEntry` which is the orchestrator's internal-only projection that may carry `forbidden`.
type ToolEntryFloor ¶
type ToolEntryFloor string
ToolEntryFloor defines model for ToolEntry.Floor.
const ( ToolEntryFloorAuto ToolEntryFloor = "auto" ToolEntryFloorManual ToolEntryFloor = "manual" )
Defines values for ToolEntryFloor.
type ToolFloor ¶
type ToolFloor string
ToolFloor Per-tool HITL floor (strictness: auto < manual < forbidden). Business-level approvals only persist `auto` / `manual`; `forbidden` is reserved for tool-registry defaults.
type ToolNamesResponse ¶
type ToolNamesResponse struct {
Names []string `json:"names" validate:"required"`
}
ToolNamesResponse defines model for ToolNamesResponse.
type ToolRegistryEntry ¶
type ToolRegistryEntry struct {
Description string `json:"description" validate:"required"`
DisplayName string `json:"displayName" validate:"required"`
DisplayNameKey *string `json:"displayNameKey,omitempty"`
EditableFields []string `json:"editableFields" validate:"required"`
// Floor Per-tool HITL floor (strictness: auto < manual < forbidden).
// Business-level approvals only persist `auto` / `manual`;
// `forbidden` is reserved for tool-registry defaults.
Floor ToolFloor `json:"floor"`
Name string `json:"name" validate:"required"`
Platform string `json:"platform" validate:"required"`
UserDescription string `json:"userDescription" validate:"required"`
}
ToolRegistryEntry Orchestrator's internal tool registry projection. The `floor` may carry `forbidden` (in addition to `auto` / `manual`); the api side uses `ToolEntry` (auto/manual only).
type Unauthorized ¶
type Unauthorized = ErrorResponse
Unauthorized Plain-text error envelope; emitted by writeJSONError.
type UpdateBusinessDescriptionTemplateJSONRequestBody ¶
type UpdateBusinessDescriptionTemplateJSONRequestBody = UpdateDescriptionTemplateRequest
UpdateBusinessDescriptionTemplateJSONRequestBody defines body for UpdateBusinessDescriptionTemplate for application/json ContentType.
type UpdateBusinessDriftAlertsJSONRequestBody ¶
type UpdateBusinessDriftAlertsJSONRequestBody = UpdateDriftAlertSettingsRequest
UpdateBusinessDriftAlertsJSONRequestBody defines body for UpdateBusinessDriftAlerts for application/json ContentType.
type UpdateBusinessJSONRequestBody ¶
type UpdateBusinessJSONRequestBody = UpdateBusinessRequest
UpdateBusinessJSONRequestBody defines body for UpdateBusiness for application/json ContentType.
type UpdateBusinessOwnerBriefJSONRequestBody ¶
type UpdateBusinessOwnerBriefJSONRequestBody = UpdateOwnerBriefRequest
UpdateBusinessOwnerBriefJSONRequestBody defines body for UpdateBusinessOwnerBrief for application/json ContentType.
type UpdateBusinessRequest ¶
type UpdateBusinessRequest struct {
Address *string `json:"address,omitempty" validate:"omitempty,max=500"`
Category *string `json:"category,omitempty" validate:"omitempty,max=255"`
Description *string `json:"description,omitempty" validate:"omitempty,max=2000"`
Name string `json:"name" validate:"required,max=200"`
Phone *string `json:"phone,omitempty" validate:"omitempty,max=255"`
Website *string `json:"website" validate:"omitempty,max=255"`
}
UpdateBusinessRequest defines model for UpdateBusinessRequest.
type UpdateBusinessReviewAutopilotJSONRequestBody ¶
type UpdateBusinessReviewAutopilotJSONRequestBody = UpdateReviewAutopilotRequest
UpdateBusinessReviewAutopilotJSONRequestBody defines body for UpdateBusinessReviewAutopilot for application/json ContentType.
type UpdateBusinessScheduleJSONRequestBody ¶
type UpdateBusinessScheduleJSONRequestBody = UpdateScheduleRequest
UpdateBusinessScheduleJSONRequestBody defines body for UpdateBusinessSchedule for application/json ContentType.
type UpdateBusinessToolApprovalsJSONRequestBody ¶
type UpdateBusinessToolApprovalsJSONRequestBody = UpdateToolApprovalsRequest
UpdateBusinessToolApprovalsJSONRequestBody defines body for UpdateBusinessToolApprovals for application/json ContentType.
type UpdateBusinessVoiceProfileJSONRequestBody ¶
type UpdateBusinessVoiceProfileJSONRequestBody = UpdateVoiceProfileRequest
UpdateBusinessVoiceProfileJSONRequestBody defines body for UpdateBusinessVoiceProfile for application/json ContentType.
type UpdateBusinessVoiceToneJSONRequestBody ¶
type UpdateBusinessVoiceToneJSONRequestBody = UpdateVoiceToneRequest
UpdateBusinessVoiceToneJSONRequestBody defines body for UpdateBusinessVoiceTone for application/json ContentType.
type UpdateContentTemplateJSONRequestBody ¶
type UpdateContentTemplateJSONRequestBody = ContentTemplateRequest
UpdateContentTemplateJSONRequestBody defines body for UpdateContentTemplate for application/json ContentType.
type UpdateConversationJSONRequestBody ¶
type UpdateConversationJSONRequestBody = UpdateConversationRequest
UpdateConversationJSONRequestBody defines body for UpdateConversation for application/json ContentType.
type UpdateConversationRequest ¶
type UpdateConversationRequest struct {
Title string `json:"title" validate:"required,max=200"`
}
UpdateConversationRequest defines model for UpdateConversationRequest.
type UpdateDescriptionTemplateRequest ¶
type UpdateDescriptionTemplateRequest struct {
// DescriptionTemplate Free-text template with single-brace placeholders drawn from the
// allowed set (name, category, address, phone, website, hours,
// description). A non-empty value fully replaces the platform
// description; an empty string clears the override.
DescriptionTemplate *string `json:"descriptionTemplate,omitempty" validate:"omitempty,max=1024"`
}
UpdateDescriptionTemplateRequest defines model for UpdateDescriptionTemplateRequest.
type UpdateDriftAlertSettingsRequest ¶
type UpdateDriftAlertSettingsRequest struct {
Enabled *bool `json:"enabled,omitempty"`
Locale UpdateDriftAlertSettingsRequestLocale `json:"locale" validate:"required,oneof=ru en"`
}
UpdateDriftAlertSettingsRequest defines model for UpdateDriftAlertSettingsRequest.
type UpdateDriftAlertSettingsRequestLocale ¶
type UpdateDriftAlertSettingsRequestLocale string
UpdateDriftAlertSettingsRequestLocale defines model for UpdateDriftAlertSettingsRequest.Locale.
const ( UpdateDriftAlertSettingsRequestLocaleEn UpdateDriftAlertSettingsRequestLocale = "en" UpdateDriftAlertSettingsRequestLocaleRu UpdateDriftAlertSettingsRequestLocale = "ru" )
Defines values for UpdateDriftAlertSettingsRequestLocale.
type UpdateMemberRoleJSONRequestBody ¶
type UpdateMemberRoleJSONRequestBody = UpdateMemberRoleRequest
UpdateMemberRoleJSONRequestBody defines body for UpdateMemberRole for application/json ContentType.
type UpdateMemberRoleRequest ¶
type UpdateMemberRoleRequest struct {
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
}
UpdateMemberRoleRequest defines model for UpdateMemberRoleRequest.
type UpdateMemberRoleResponse ¶
type UpdateMemberRoleResponse struct {
BusinessId openapi_types.UUID `json:"business_id" validate:"required,uuid"`
RoleChangedAt *time.Time `json:"role_changed_at"`
RoleChangedBy *openapi_types.UUID `json:"role_changed_by" validate:"omitempty,uuid"`
RoleId openapi_types.UUID `json:"role_id" validate:"required,uuid"`
Status string `json:"status" validate:"required"`
UserId openapi_types.UUID `json:"user_id" validate:"required,uuid"`
}
UpdateMemberRoleResponse defines model for UpdateMemberRoleResponse.
type UpdateOwnerBriefRequest ¶
type UpdateOwnerBriefRequest struct {
// Enabled Enable or disable the weekly owner-brief DM. Setting false is the
// one-tap opt-out. Absent leaves the enabled flag unchanged.
Enabled *bool `json:"enabled,omitempty"`
// Hour Hour-of-day (0-23) the brief fires at.
Hour *int `json:"hour,omitempty" validate:"omitempty,min=0,max=23"`
// Weekday Weekday the brief fires on (0=Sunday .. 6=Saturday).
Weekday *int `json:"weekday,omitempty" validate:"omitempty,min=0,max=6"`
}
UpdateOwnerBriefRequest defines model for UpdateOwnerBriefRequest.
type UpdatePreferredLocaleJSONRequestBody ¶
type UpdatePreferredLocaleJSONRequestBody = UpdatePreferredLocaleRequest
UpdatePreferredLocaleJSONRequestBody defines body for UpdatePreferredLocale for application/json ContentType.
type UpdatePreferredLocaleRequest ¶
type UpdatePreferredLocaleRequest struct {
Locale UpdatePreferredLocaleRequestLocale `json:"locale" validate:"required,oneof=ru en"`
}
UpdatePreferredLocaleRequest defines model for UpdatePreferredLocaleRequest.
type UpdatePreferredLocaleRequestLocale ¶
type UpdatePreferredLocaleRequestLocale string
UpdatePreferredLocaleRequestLocale defines model for UpdatePreferredLocaleRequest.Locale.
const ( UpdatePreferredLocaleRequestLocaleEn UpdatePreferredLocaleRequestLocale = "en" UpdatePreferredLocaleRequestLocaleRu UpdatePreferredLocaleRequestLocale = "ru" )
Defines values for UpdatePreferredLocaleRequestLocale.
type UpdateProfileRequest ¶
type UpdateProfileRequest struct {
Name string `json:"name" validate:"required,min=2,max=100"`
}
UpdateProfileRequest defines model for UpdateProfileRequest.
type UpdateProjectJSONRequestBody ¶
type UpdateProjectJSONRequestBody = ProjectRequest
UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
type UpdateReviewAutopilotRequest ¶
type UpdateReviewAutopilotRequest struct {
// Enabled Opt-in switch for the review-reply autopilot. When true, a positive
// drafted reply on a direct-API platform (Telegram/VK) is auto-published;
// Yandex.Business, negative, and needs_review replies always stay pending
// for manual approval. Absent is treated as false (disabled).
Enabled *bool `json:"enabled,omitempty"`
// MinRating The minimum star rating that may be auto-published. Bounded to the
// positive range so the floor can only be raised (e.g. 5-star-only) and
// can never be lowered to auto-publish a negative or neutral review.
MinRating int `json:"minRating" validate:"required,min=4,max=5"`
}
UpdateReviewAutopilotRequest defines model for UpdateReviewAutopilotRequest.
type UpdateRoleJSONRequestBody ¶
type UpdateRoleJSONRequestBody = UpdateRoleRequest
UpdateRoleJSONRequestBody defines body for UpdateRole for application/json ContentType.
type UpdateRoleRequest ¶
type UpdateRoleRequest = CreateRoleRequest
UpdateRoleRequest defines model for UpdateRoleRequest.
type UpdateScheduleRequest ¶
type UpdateScheduleRequest struct {
// Schedule Free-form per-day schedule blob.
Schedule *interface{} `json:"schedule,omitempty"`
// SpecialDates Optional special-date overrides.
SpecialDates *interface{} `json:"specialDates,omitempty"`
}
UpdateScheduleRequest defines model for UpdateScheduleRequest.
type UpdateToolApprovalsRequest ¶
type UpdateToolApprovalsRequest struct {
ToolApprovals map[string]ToolFloor `json:"toolApprovals" validate:"required"`
}
UpdateToolApprovalsRequest defines model for UpdateToolApprovalsRequest.
type UpdateVoiceProfileRequest ¶
type UpdateVoiceProfileRequest struct {
// VoiceProfile Free-form brand-voice profile (do/don't phrases, emoji policy,
// short exemplars) that governs the AI chat loop and the review
// drafter. A non-empty value is stored verbatim; an empty string
// clears the override.
VoiceProfile *string `json:"voiceProfile,omitempty" validate:"omitempty,max=400"`
}
UpdateVoiceProfileRequest defines model for UpdateVoiceProfileRequest.
type UpdateVoiceToneRequest ¶
type UpdateVoiceToneRequest struct {
Tones *[]string `json:"tones,omitempty"`
}
UpdateVoiceToneRequest defines model for UpdateVoiceToneRequest.
type UploadBusinessLogoMultipartRequestBody ¶
type UploadBusinessLogoMultipartRequestBody = UploadLogoRequest
UploadBusinessLogoMultipartRequestBody defines body for UploadBusinessLogo for multipart/form-data ContentType.
type UploadLogoRequest ¶
type UploadLogoRequest struct {
Logo openapi_types.File `json:"logo" validate:"required"`
}
UploadLogoRequest defines model for UploadLogoRequest.
type UsageLog ¶
type UsageLog struct {
BusinessId openapi_types.UUID `json:"business_id" validate:"required,uuid"`
CacheCreationTokens *int `json:"cache_creation_tokens,omitempty" validate:"omitempty,min=0"`
CacheReadTokens *int `json:"cache_read_tokens,omitempty" validate:"omitempty,min=0"`
CommissionUsd float64 `json:"commission_usd" validate:"required"`
ConversationId *string `json:"conversation_id,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty" validate:"omitempty,uuid"`
InputTokens int `json:"input_tokens" validate:"required,min=0"`
Model string `json:"model" validate:"required"`
OutputTokens int `json:"output_tokens" validate:"required,min=0"`
Provider string `json:"provider" validate:"required"`
ProviderCostUsd float64 `json:"provider_cost_usd" validate:"required"`
RequestId *string `json:"request_id,omitempty"`
UserCostUsd float64 `json:"user_cost_usd" validate:"required"`
UserId openapi_types.UUID `json:"user_id" validate:"required,uuid"`
UserTier string `json:"user_tier" validate:"required"`
}
UsageLog defines model for UsageLog.
type User ¶
type User struct {
CreatedAt time.Time `json:"createdAt" validate:"required"`
Email openapi_types.Email `json:"email" validate:"required,email"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
Name string `json:"name" validate:"required"`
PreferredLocale UserPreferredLocale `json:"preferred_locale" validate:"required,oneof=ru en"`
UpdatedAt time.Time `json:"updatedAt" validate:"required"`
}
User defines model for User.
type UserPreferredLocale ¶
type UserPreferredLocale string
UserPreferredLocale defines model for User.PreferredLocale.
const ( En UserPreferredLocale = "en" Ru UserPreferredLocale = "ru" )
Defines values for UserPreferredLocale.
type VKCommunity ¶
type VKCommunity struct {
Id int64 `json:"id" validate:"required"`
MembersCount *int `json:"members_count,omitempty"`
Name string `json:"name" validate:"required"`
Photo50 *string `json:"photo_50,omitempty"`
ScreenName string `json:"screen_name" validate:"required"`
}
VKCommunity defines model for VKCommunity.
type ValidationErrorResponse ¶
type ValidationErrorResponse struct {
Error string `json:"error" validate:"required"`
Fields map[string]string `json:"fields" validate:"required"`
}
ValidationErrorResponse Field-level validation error envelope; emitted by writeValidationError. `error` carries a localized summary; `fields` maps field name to localized per-field message keyed by validator/v10 tag.
type VerifyConfirmRequest ¶
type VerifyConfirmRequest struct {
Token string `json:"token" validate:"required,min=20"`
}
VerifyConfirmRequest defines model for VerifyConfirmRequest.
type VerifyIntegrationsResponse ¶
type VerifyIntegrationsResponse struct {
Health []IntegrationHealth `json:"health" validate:"required"`
// Started The async re-push + drift reschedule was triggered.
Started bool `json:"started" validate:"required"`
}
VerifyIntegrationsResponse Result of a manual verify/repair pass: the async profile re-push has been started, and the synchronously-computed per-integration health array.
type VerifyTelegramLoginJSONRequestBody ¶
type VerifyTelegramLoginJSONRequestBody = TelegramLoginRequest
VerifyTelegramLoginJSONRequestBody defines body for VerifyTelegramLogin for application/json ContentType.
type VerifyYandexAccessRequest ¶
type VerifyYandexAccessRequest struct {
// Permalink Numeric Yandex organization permalink to verify shared access against.
Permalink string `json:"permalink" validate:"required"`
}
VerifyYandexAccessRequest defines model for VerifyYandexAccessRequest.
type VerifyYandexAccessResponse ¶
type VerifyYandexAccessResponse struct {
// AccessVerified True when the shared representative session can reach and edit the org.
AccessVerified bool `json:"access_verified" validate:"required"`
}
VerifyYandexAccessResponse defines model for VerifyYandexAccessResponse.
type VerifyYandexBusinessAccessJSONRequestBody ¶
type VerifyYandexBusinessAccessJSONRequestBody = VerifyYandexAccessRequest
VerifyYandexBusinessAccessJSONRequestBody defines body for VerifyYandexBusinessAccess for application/json ContentType.
type VersionMismatchResponse ¶
type VersionMismatchResponse struct {
Code VersionMismatchResponseCode `json:"code" validate:"required,oneof=version_mismatch"`
CurrentVersion string `json:"currentVersion" validate:"required"`
}
VersionMismatchResponse defines model for VersionMismatchResponse.
type VersionMismatchResponseCode ¶
type VersionMismatchResponseCode string
VersionMismatchResponseCode defines model for VersionMismatchResponse.Code.
const (
VersionMismatch VersionMismatchResponseCode = "version_mismatch"
)
Defines values for VersionMismatchResponseCode.
type VkCommunityOAuthCallbackParams ¶
type VkCommunityOAuthCallbackParams struct {
Code string `form:"code" json:"code"`
State string `form:"state" json:"state"`
}
VkCommunityOAuthCallbackParams defines parameters for VkCommunityOAuthCallback.
type VkOAuthCallbackParams ¶
type VkOAuthCallbackParams struct {
Code string `form:"code" json:"code"`
State string `form:"state" json:"state"`
}
VkOAuthCallbackParams defines parameters for VkOAuthCallback.
type VoiceProfileResponse ¶
type VoiceProfileResponse struct {
// VoiceProfile Stored brand-voice profile; empty string when unset.
VoiceProfile string `json:"voiceProfile" validate:"required"`
}
VoiceProfileResponse defines model for VoiceProfileResponse.
type WaitlistRequest ¶
type WaitlistRequest struct {
// Consent Must be true — the visitor ticked the personal-data-processing
// consent checkbox. A false or absent value fails validation.
Consent bool `json:"consent" validate:"required"`
Email openapi_types.Email `json:"email" validate:"required,email,max=320"`
// Pain Optional strongest-pain segment.
Pain *WaitlistRequestPain `json:"pain,omitempty" validate:"omitempty,oneof=reviews posts card"`
// Plan Optional requested plan; omitted values preserve existing interest.
Plan *WaitlistRequestPlan `json:"plan,omitempty" validate:"omitempty,oneof=pro"`
// Source Optional latest signup source; omitted values preserve existing attribution.
Source *WaitlistRequestSource `json:"source,omitempty" validate:"omitempty,oneof=landing billing business-limit"`
// Sphere Optional organization-sphere segment.
Sphere *WaitlistRequestSphere `json:"sphere,omitempty" validate:"omitempty,oneof=cafe beauty services retail other"`
}
WaitlistRequest Public closed-beta waitlist signup submitted from the marketing landing. Only email and the processing-consent flag are required; the segmentation fields are optional. Enums are inlined (not $ref) so the generated struct carries validate:oneof tags.
type WaitlistRequestPain ¶
type WaitlistRequestPain string
WaitlistRequestPain Optional strongest-pain segment.
const ( Card WaitlistRequestPain = "card" Posts WaitlistRequestPain = "posts" Reviews WaitlistRequestPain = "reviews" )
Defines values for WaitlistRequestPain.
type WaitlistRequestPlan ¶
type WaitlistRequestPlan string
WaitlistRequestPlan Optional requested plan; omitted values preserve existing interest.
const (
Pro WaitlistRequestPlan = "pro"
)
Defines values for WaitlistRequestPlan.
type WaitlistRequestSource ¶
type WaitlistRequestSource string
WaitlistRequestSource Optional latest signup source; omitted values preserve existing attribution.
const ( Billing WaitlistRequestSource = "billing" BusinessLimit WaitlistRequestSource = "business-limit" Landing WaitlistRequestSource = "landing" )
Defines values for WaitlistRequestSource.
type WaitlistRequestSphere ¶
type WaitlistRequestSphere string
WaitlistRequestSphere Optional organization-sphere segment.
const ( Beauty WaitlistRequestSphere = "beauty" Cafe WaitlistRequestSphere = "cafe" Other WaitlistRequestSphere = "other" Retail WaitlistRequestSphere = "retail" Services WaitlistRequestSphere = "services" )
Defines values for WaitlistRequestSphere.
type WeeklyValueRecap ¶
type WeeklyValueRecap struct {
CompletedSyncs int `json:"completedSyncs" validate:"required,min=0"`
CreatedAt time.Time `json:"createdAt" validate:"required"`
DispatchedReviewReplies int `json:"dispatchedReviewReplies" validate:"required,min=0"`
Id openapi_types.UUID `json:"id" validate:"required,uuid"`
PublishedPosts int `json:"publishedPosts" validate:"required,min=0"`
WeekEnd time.Time `json:"weekEnd" validate:"required"`
WeekStart time.Time `json:"weekStart" validate:"required"`
}
WeeklyValueRecap Counts of completed operations for one closed Monday-to-Monday UTC week.
type YandexBusinessOAuthCallbackParams ¶
type YandexBusinessOAuthCallbackParams struct {
Code string `form:"code" json:"code"`
State string `form:"state" json:"state"`
}
YandexBusinessOAuthCallbackParams defines parameters for YandexBusinessOAuthCallback.
type YandexCompaniesResponse ¶
type YandexCompaniesResponse struct {
Companies []YandexCompanyEntry `json:"companies" validate:"required"`
}
YandexCompaniesResponse defines model for YandexCompaniesResponse.
type YandexCompanyEntry ¶
type YandexCompanyEntry struct {
Name string `json:"name" validate:"required"`
Permalink string `json:"permalink" validate:"required"`
}
YandexCompanyEntry defines model for YandexCompanyEntry.
type YandexCookiesRequest ¶
type YandexCookiesRequest struct {
Cookies string `json:"cookies" validate:"required"`
}
YandexCookiesRequest defines model for YandexCookiesRequest.
type YandexDelegatedConfigResponse ¶
type YandexDelegatedConfigResponse struct {
// Available True when delegated-representative access is provisioned on this deployment (both the shared representative login and the shared session are configured). When false, the delegated connect flow is unavailable and clients should fall back to cookie paste.
Available bool `json:"available" validate:"required"`
// RepLogin The shared representative Yandex login owners must add as a representative to their organization. Empty when not configured.
RepLogin string `json:"rep_login" validate:"required"`
}
YandexDelegatedConfigResponse defines model for YandexDelegatedConfigResponse.
type YandexProbeResponse ¶
type YandexProbeResponse struct {
Error *string `json:"error,omitempty"`
Format *string `json:"format,omitempty"`
Ok bool `json:"ok" validate:"required"`
SessionValid *bool `json:"session_valid,omitempty"`
Username *string `json:"username,omitempty"`
Warnings *[]string `json:"warnings,omitempty"`
}
YandexProbeResponse defines model for YandexProbeResponse.