// Package generated provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
package generated

import (
	"time"
)

// Defines values for AgentActivityKind.
const (
	AgentActivityKindCheckpoint     AgentActivityKind = "checkpoint"
	AgentActivityKindLifecycle      AgentActivityKind = "lifecycle"
	AgentActivityKindOther          AgentActivityKind = "other"
	AgentActivityKindPermission     AgentActivityKind = "permission"
	AgentActivityKindProviderSignal AgentActivityKind = "provider_signal"
	AgentActivityKindRuntimeSignal  AgentActivityKind = "runtime_signal"
	AgentActivityKindToolResult     AgentActivityKind = "tool_result"
	AgentActivityKindToolUse        AgentActivityKind = "tool_use"
	AgentActivityKindUnspecified    AgentActivityKind = "unspecified"
)

// Defines values for AgentActivityStatus.
const (
	AgentActivityStatusCancelled   AgentActivityStatus = "cancelled"
	AgentActivityStatusDenied      AgentActivityStatus = "denied"
	AgentActivityStatusFailed      AgentActivityStatus = "failed"
	AgentActivityStatusPlanned     AgentActivityStatus = "planned"
	AgentActivityStatusSkipped     AgentActivityStatus = "skipped"
	AgentActivityStatusStarted     AgentActivityStatus = "started"
	AgentActivityStatusSucceeded   AgentActivityStatus = "succeeded"
	AgentActivityStatusUnspecified AgentActivityStatus = "unspecified"
	AgentActivityStatusWaiting     AgentActivityStatus = "waiting"
)

// Defines values for AgentRunStatus.
const (
	AgentRunStatusCancelled   AgentRunStatus = "cancelled"
	AgentRunStatusCompleted   AgentRunStatus = "completed"
	AgentRunStatusFailed      AgentRunStatus = "failed"
	AgentRunStatusRequested   AgentRunStatus = "requested"
	AgentRunStatusRunning     AgentRunStatus = "running"
	AgentRunStatusStarting    AgentRunStatus = "starting"
	AgentRunStatusUnspecified AgentRunStatus = "unspecified"
	AgentRunStatusWaiting     AgentRunStatus = "waiting"
)

// Defines values for AgentRuntimeJobStatus.
const (
	AgentRuntimeJobStatusCancelled   AgentRuntimeJobStatus = "cancelled"
	AgentRuntimeJobStatusClaimed     AgentRuntimeJobStatus = "claimed"
	AgentRuntimeJobStatusFailed      AgentRuntimeJobStatus = "failed"
	AgentRuntimeJobStatusPending     AgentRuntimeJobStatus = "pending"
	AgentRuntimeJobStatusRunning     AgentRuntimeJobStatus = "running"
	AgentRuntimeJobStatusSucceeded   AgentRuntimeJobStatus = "succeeded"
	AgentRuntimeJobStatusTimedOut    AgentRuntimeJobStatus = "timed_out"
	AgentRuntimeJobStatusUnspecified AgentRuntimeJobStatus = "unspecified"
)

// Defines values for AgentScopeType.
const (
	AgentScopeTypeOrganization AgentScopeType = "organization"
	AgentScopeTypePlatform     AgentScopeType = "platform"
	AgentScopeTypeProject      AgentScopeType = "project"
	AgentScopeTypeRepository   AgentScopeType = "repository"
)

// Defines values for AgentSessionStatus.
const (
	AgentSessionStatusCancelled   AgentSessionStatus = "cancelled"
	AgentSessionStatusCompleted   AgentSessionStatus = "completed"
	AgentSessionStatusFailed      AgentSessionStatus = "failed"
	AgentSessionStatusOpen        AgentSessionStatus = "open"
	AgentSessionStatusUnspecified AgentSessionStatus = "unspecified"
	AgentSessionStatusWaiting     AgentSessionStatus = "waiting"
)

// Defines values for CallbackProcessingStatus.
const (
	CallbackProcessingStatusAccepted    CallbackProcessingStatus = "accepted"
	CallbackProcessingStatusDuplicate   CallbackProcessingStatus = "duplicate"
	CallbackProcessingStatusFailed      CallbackProcessingStatus = "failed"
	CallbackProcessingStatusRejected    CallbackProcessingStatus = "rejected"
	CallbackProcessingStatusUnspecified CallbackProcessingStatus = "unspecified"
)

// Defines values for CallbackSignatureStatus.
const (
	CallbackSignatureStatusRejectedBeforeDomain CallbackSignatureStatus = "rejected_before_domain"
	CallbackSignatureStatusTrustedInternal      CallbackSignatureStatus = "trusted_internal"
	CallbackSignatureStatusUnspecified          CallbackSignatureStatus = "unspecified"
	CallbackSignatureStatusVerified             CallbackSignatureStatus = "verified"
)

// Defines values for DecisionOwnerKind.
const (
	DecisionOwnerKindAgentManager      DecisionOwnerKind = "agent_manager"
	DecisionOwnerKindGovernanceManager DecisionOwnerKind = "governance_manager"
	DecisionOwnerKindOperationsHub     DecisionOwnerKind = "operations_hub"
	DecisionOwnerKindProviderHub       DecisionOwnerKind = "provider_hub"
	DecisionOwnerKindSystem            DecisionOwnerKind = "system"
)

// Defines values for DeliveryAttemptStatus.
const (
	DeliveryAttemptStatusAccepted    DeliveryAttemptStatus = "accepted"
	DeliveryAttemptStatusCancelled   DeliveryAttemptStatus = "cancelled"
	DeliveryAttemptStatusDelivered   DeliveryAttemptStatus = "delivered"
	DeliveryAttemptStatusExpired     DeliveryAttemptStatus = "expired"
	DeliveryAttemptStatusFailed      DeliveryAttemptStatus = "failed"
	DeliveryAttemptStatusQueued      DeliveryAttemptStatus = "queued"
	DeliveryAttemptStatusSent        DeliveryAttemptStatus = "sent"
	DeliveryAttemptStatusUnspecified DeliveryAttemptStatus = "unspecified"
)

// Defines values for DeliveryErrorClass.
const (
	DeliveryErrorClassAuth        DeliveryErrorClass = "auth"
	DeliveryErrorClassPermanent   DeliveryErrorClass = "permanent"
	DeliveryErrorClassPolicy      DeliveryErrorClass = "policy"
	DeliveryErrorClassRateLimited DeliveryErrorClass = "rate_limited"
	DeliveryErrorClassTemporary   DeliveryErrorClass = "temporary"
	DeliveryErrorClassUnspecified DeliveryErrorClass = "unspecified"
)

// Defines values for GovernanceBlockingSignalStatus.
const (
	GovernanceBlockingSignalStatusActive      GovernanceBlockingSignalStatus = "active"
	GovernanceBlockingSignalStatusDismissed   GovernanceBlockingSignalStatus = "dismissed"
	GovernanceBlockingSignalStatusResolved    GovernanceBlockingSignalStatus = "resolved"
	GovernanceBlockingSignalStatusUnspecified GovernanceBlockingSignalStatus = "unspecified"
)

// Defines values for GovernanceDecisionAttention.
const (
	GovernanceDecisionAttentionBlocked       GovernanceDecisionAttention = "blocked"
	GovernanceDecisionAttentionCompleted     GovernanceDecisionAttention = "completed"
	GovernanceDecisionAttentionInformational GovernanceDecisionAttention = "informational"
	GovernanceDecisionAttentionPending       GovernanceDecisionAttention = "pending"
	GovernanceDecisionAttentionUnspecified   GovernanceDecisionAttention = "unspecified"
)

// Defines values for GovernanceDecisionSummaryKind.
const (
	GovernanceDecisionSummaryKindBlockingSignal         GovernanceDecisionSummaryKind = "blocking_signal"
	GovernanceDecisionSummaryKindGateDecision           GovernanceDecisionSummaryKind = "gate_decision"
	GovernanceDecisionSummaryKindGateRequest            GovernanceDecisionSummaryKind = "gate_request"
	GovernanceDecisionSummaryKindReleaseDecision        GovernanceDecisionSummaryKind = "release_decision"
	GovernanceDecisionSummaryKindReleaseDecisionPackage GovernanceDecisionSummaryKind = "release_decision_package"
	GovernanceDecisionSummaryKindReleaseSafetyState     GovernanceDecisionSummaryKind = "release_safety_state"
	GovernanceDecisionSummaryKindReviewSignal           GovernanceDecisionSummaryKind = "review_signal"
	GovernanceDecisionSummaryKindRiskAssessment         GovernanceDecisionSummaryKind = "risk_assessment"
	GovernanceDecisionSummaryKindUnspecified            GovernanceDecisionSummaryKind = "unspecified"
)

// Defines values for GovernanceEvidenceKind.
const (
	GovernanceEvidenceKindAgentAcceptance     GovernanceEvidenceKind = "agent_acceptance"
	GovernanceEvidenceKindAgentHumanGate      GovernanceEvidenceKind = "agent_human_gate"
	GovernanceEvidenceKindAgentRun            GovernanceEvidenceKind = "agent_run"
	GovernanceEvidenceKindCustom              GovernanceEvidenceKind = "custom"
	GovernanceEvidenceKindDocument            GovernanceEvidenceKind = "document"
	GovernanceEvidenceKindInteractionCallback GovernanceEvidenceKind = "interaction_callback"
	GovernanceEvidenceKindObjectRef           GovernanceEvidenceKind = "object_ref"
	GovernanceEvidenceKindProviderCheck       GovernanceEvidenceKind = "provider_check"
	GovernanceEvidenceKindProviderComment     GovernanceEvidenceKind = "provider_comment"
	GovernanceEvidenceKindProviderReview      GovernanceEvidenceKind = "provider_review"
	GovernanceEvidenceKindReviewSignal        GovernanceEvidenceKind = "review_signal"
	GovernanceEvidenceKindRiskFactor          GovernanceEvidenceKind = "risk_factor"
	GovernanceEvidenceKindRuntimeSummary      GovernanceEvidenceKind = "runtime_summary"
	GovernanceEvidenceKindUnspecified         GovernanceEvidenceKind = "unspecified"
)

// Defines values for GovernanceGateOutcome.
const (
	GovernanceGateOutcomeApprove               GovernanceGateOutcome = "approve"
	GovernanceGateOutcomeApproveWithConditions GovernanceGateOutcome = "approve_with_conditions"
	GovernanceGateOutcomeEscalate              GovernanceGateOutcome = "escalate"
	GovernanceGateOutcomeHold                  GovernanceGateOutcome = "hold"
	GovernanceGateOutcomeReject                GovernanceGateOutcome = "reject"
	GovernanceGateOutcomeRevise                GovernanceGateOutcome = "revise"
	GovernanceGateOutcomeRollback              GovernanceGateOutcome = "rollback"
	GovernanceGateOutcomeUnspecified           GovernanceGateOutcome = "unspecified"
)

// Defines values for GovernanceGateRequestStatus.
const (
	GovernanceGateRequestStatusAwaitingDecision GovernanceGateRequestStatus = "awaiting_decision"
	GovernanceGateRequestStatusCancelled        GovernanceGateRequestStatus = "cancelled"
	GovernanceGateRequestStatusDelivering       GovernanceGateRequestStatus = "delivering"
	GovernanceGateRequestStatusExpired          GovernanceGateRequestStatus = "expired"
	GovernanceGateRequestStatusRequested        GovernanceGateRequestStatus = "requested"
	GovernanceGateRequestStatusResolved         GovernanceGateRequestStatus = "resolved"
	GovernanceGateRequestStatusUnspecified      GovernanceGateRequestStatus = "unspecified"
)

// Defines values for GovernanceReleaseDecisionOutcome.
const (
	GovernanceReleaseDecisionOutcomeFollowUpRequired GovernanceReleaseDecisionOutcome = "follow_up_required"
	GovernanceReleaseDecisionOutcomeGo               GovernanceReleaseDecisionOutcome = "go"
	GovernanceReleaseDecisionOutcomeGoWithConditions GovernanceReleaseDecisionOutcome = "go_with_conditions"
	GovernanceReleaseDecisionOutcomeHold             GovernanceReleaseDecisionOutcome = "hold"
	GovernanceReleaseDecisionOutcomeNoGo             GovernanceReleaseDecisionOutcome = "no_go"
	GovernanceReleaseDecisionOutcomeRollback         GovernanceReleaseDecisionOutcome = "rollback"
	GovernanceReleaseDecisionOutcomeUnspecified      GovernanceReleaseDecisionOutcome = "unspecified"
)

// Defines values for GovernanceReleaseDecisionStatus.
const (
	GovernanceReleaseDecisionStatusCancelled   GovernanceReleaseDecisionStatus = "cancelled"
	GovernanceReleaseDecisionStatusRequested   GovernanceReleaseDecisionStatus = "requested"
	GovernanceReleaseDecisionStatusResolved    GovernanceReleaseDecisionStatus = "resolved"
	GovernanceReleaseDecisionStatusUnspecified GovernanceReleaseDecisionStatus = "unspecified"
)

// Defines values for GovernanceReleasePackageStatus.
const (
	GovernanceReleasePackageStatusClosed            GovernanceReleasePackageStatus = "closed"
	GovernanceReleasePackageStatusDecisionRequested GovernanceReleasePackageStatus = "decision_requested"
	GovernanceReleasePackageStatusDraft             GovernanceReleasePackageStatus = "draft"
	GovernanceReleasePackageStatusReady             GovernanceReleasePackageStatus = "ready"
	GovernanceReleasePackageStatusUnspecified       GovernanceReleasePackageStatus = "unspecified"
)

// Defines values for GovernanceReviewOutcome.
const (
	GovernanceReviewOutcomeBlock          GovernanceReviewOutcome = "block"
	GovernanceReviewOutcomeInformational  GovernanceReviewOutcome = "informational"
	GovernanceReviewOutcomePass           GovernanceReviewOutcome = "pass"
	GovernanceReviewOutcomePassWithNotes  GovernanceReviewOutcome = "pass_with_notes"
	GovernanceReviewOutcomeRaiseRisk      GovernanceReviewOutcome = "raise_risk"
	GovernanceReviewOutcomeRequestChanges GovernanceReviewOutcome = "request_changes"
	GovernanceReviewOutcomeUnspecified    GovernanceReviewOutcome = "unspecified"
)

// Defines values for GovernanceRiskClass.
const (
	GovernanceRiskClassR0          GovernanceRiskClass = "r0"
	GovernanceRiskClassR1          GovernanceRiskClass = "r1"
	GovernanceRiskClassR2          GovernanceRiskClass = "r2"
	GovernanceRiskClassR3          GovernanceRiskClass = "r3"
	GovernanceRiskClassUnspecified GovernanceRiskClass = "unspecified"
)

// Defines values for GovernanceSignalSeverity.
const (
	GovernanceSignalSeverityBlocking    GovernanceSignalSeverity = "blocking"
	GovernanceSignalSeverityCritical    GovernanceSignalSeverity = "critical"
	GovernanceSignalSeverityInfo        GovernanceSignalSeverity = "info"
	GovernanceSignalSeverityUnspecified GovernanceSignalSeverity = "unspecified"
	GovernanceSignalSeverityWarning     GovernanceSignalSeverity = "warning"
)

// Defines values for GovernanceTargetType.
const (
	GovernanceTargetTypeDocument         GovernanceTargetType = "document"
	GovernanceTargetTypeMerge            GovernanceTargetType = "merge"
	GovernanceTargetTypePolicyChange     GovernanceTargetType = "policy_change"
	GovernanceTargetTypePostdeploy       GovernanceTargetType = "postdeploy"
	GovernanceTargetTypePullRequest      GovernanceTargetType = "pull_request"
	GovernanceTargetTypeReleaseCandidate GovernanceTargetType = "release_candidate"
	GovernanceTargetTypeRollback         GovernanceTargetType = "rollback"
	GovernanceTargetTypeRuntimeJob       GovernanceTargetType = "runtime_job"
	GovernanceTargetTypeSelfDeployPlan   GovernanceTargetType = "self_deploy_plan"
	GovernanceTargetTypeTransition       GovernanceTargetType = "transition"
	GovernanceTargetTypeUnspecified      GovernanceTargetType = "unspecified"
)

// Defines values for RequestKind.
const (
	Approval  RequestKind = "approval"
	Feedback  RequestKind = "feedback"
	HumanGate RequestKind = "human_gate"
)

// Defines values for RequestStatus.
const (
	RequestStatusAnswered  RequestStatus = "answered"
	RequestStatusCancelled RequestStatus = "cancelled"
	RequestStatusCreated   RequestStatus = "created"
	RequestStatusExpired   RequestStatus = "expired"
	RequestStatusFailed    RequestStatus = "failed"
	RequestStatusRouted    RequestStatus = "routed"
	RequestStatusWaiting   RequestStatus = "waiting"
)

// Defines values for ResponseAction.
const (
	Acknowledge    ResponseAction = "acknowledge"
	Answer         ResponseAction = "answer"
	Approve        ResponseAction = "approve"
	Custom         ResponseAction = "custom"
	Defer          ResponseAction = "defer"
	Reject         ResponseAction = "reject"
	RequestChanges ResponseAction = "request_changes"
)

// Defines values for ResponseSourceKind.
const (
	ResponseSourceKindChannelCallback ResponseSourceKind = "channel_callback"
	ResponseSourceKindMcp             ResponseSourceKind = "mcp"
	ResponseSourceKindService         ResponseSourceKind = "service"
	ResponseSourceKindSystem          ResponseSourceKind = "system"
	ResponseSourceKindWebConsole      ResponseSourceKind = "web_console"
)

// Defines values for RuntimeObservationState.
const (
	RuntimeObservationStateConflict    RuntimeObservationState = "conflict"
	RuntimeObservationStateLive        RuntimeObservationState = "live"
	RuntimeObservationStateNotCreated  RuntimeObservationState = "not_created"
	RuntimeObservationStateStoredRef   RuntimeObservationState = "stored_ref"
	RuntimeObservationStateUnavailable RuntimeObservationState = "unavailable"
	RuntimeObservationStateUnspecified RuntimeObservationState = "unspecified"
)

// Defines values for SafeErrorCode.
const (
	SafeErrorCodeConflict              SafeErrorCode = "conflict"
	SafeErrorCodeDownstreamUnavailable SafeErrorCode = "downstream_unavailable"
	SafeErrorCodeInvalidRequest        SafeErrorCode = "invalid_request"
	SafeErrorCodeNotFound              SafeErrorCode = "not_found"
	SafeErrorCodePermissionDenied      SafeErrorCode = "permission_denied"
	SafeErrorCodeRateLimited           SafeErrorCode = "rate_limited"
	SafeErrorCodeStaleVersion          SafeErrorCode = "stale_version"
	SafeErrorCodeUnauthenticated       SafeErrorCode = "unauthenticated"
)

// Defines values for ScopeType.
const (
	ScopeTypeOrganization ScopeType = "organization"
	ScopeTypePlatform     ScopeType = "platform"
	ScopeTypeProject      ScopeType = "project"
	ScopeTypeRepository   ScopeType = "repository"
	ScopeTypeService      ScopeType = "service"
)

// Defines values for SelfDeployChainStatus.
const (
	ApprovedReadyForBuild        SelfDeployChainStatus = "approved_ready_for_build"
	Blocked                      SelfDeployChainStatus = "blocked"
	GovernanceGatePending        SelfDeployChainStatus = "governance_gate_pending"
	NeedsServicesPolicyReconcile SelfDeployChainStatus = "needs_services_policy_reconcile"
	NotConfigured                SelfDeployChainStatus = "not_configured"
	PlanCreated                  SelfDeployChainStatus = "plan_created"
	ProjectMissing               SelfDeployChainStatus = "project_missing"
	ProviderSignalFound          SelfDeployChainStatus = "provider_signal_found"
	RepositoryBindingMissing     SelfDeployChainStatus = "repository_binding_missing"
	WaitingForProviderSignal     SelfDeployChainStatus = "waiting_for_provider_signal"
)

// Defines values for SelfDeployGateDecisionAction.
const (
	SelfDeployGateDecisionActionApprove        SelfDeployGateDecisionAction = "approve"
	SelfDeployGateDecisionActionReject         SelfDeployGateDecisionAction = "reject"
	SelfDeployGateDecisionActionRequestChanges SelfDeployGateDecisionAction = "request_changes"
)

// Defines values for SelfDeployGovernanceStatus.
const (
	SelfDeployGovernanceStatusPending     SelfDeployGovernanceStatus = "pending"
	SelfDeployGovernanceStatusResolved    SelfDeployGovernanceStatus = "resolved"
	SelfDeployGovernanceStatusUnavailable SelfDeployGovernanceStatus = "unavailable"
)

// Defines values for SelfDeployNextStepCode.
const (
	BindRepository          SelfDeployNextStepCode = "bind_repository"
	ConfigureProject        SelfDeployNextStepCode = "configure_project"
	InspectBlocker          SelfDeployNextStepCode = "inspect_blocker"
	None                    SelfDeployNextStepCode = "none"
	ReadyForBuild           SelfDeployNextStepCode = "ready_for_build"
	ReconcileServicesPolicy SelfDeployNextStepCode = "reconcile_services_policy"
	RestoreProject          SelfDeployNextStepCode = "restore_project"
	ReviewGovernanceGate    SelfDeployNextStepCode = "review_governance_gate"
	WaitProviderSignal      SelfDeployNextStepCode = "wait_provider_signal"
	WaitSelfDeployPlan      SelfDeployNextStepCode = "wait_self_deploy_plan"
)

// Defines values for SelfDeployPathCategory.
const (
	SelfDeployPathCategoryDeployManifest SelfDeployPathCategory = "deploy_manifest"
	SelfDeployPathCategoryDocumentation  SelfDeployPathCategory = "documentation"
	SelfDeployPathCategoryOther          SelfDeployPathCategory = "other"
	SelfDeployPathCategoryPlatformPolicy SelfDeployPathCategory = "platform_policy"
	SelfDeployPathCategoryRuntimeConfig  SelfDeployPathCategory = "runtime_config"
	SelfDeployPathCategoryServiceConfig  SelfDeployPathCategory = "service_config"
	SelfDeployPathCategoryServiceSource  SelfDeployPathCategory = "service_source"
	SelfDeployPathCategoryServicesPolicy SelfDeployPathCategory = "services_policy"
	SelfDeployPathCategoryTest           SelfDeployPathCategory = "test"
	SelfDeployPathCategoryUnspecified    SelfDeployPathCategory = "unspecified"
)

// Defines values for SelfDeployPlanStatus.
const (
	SelfDeployPlanStatusApproved        SelfDeployPlanStatus = "approved"
	SelfDeployPlanStatusCancelled       SelfDeployPlanStatus = "cancelled"
	SelfDeployPlanStatusFailed          SelfDeployPlanStatus = "failed"
	SelfDeployPlanStatusPendingApproval SelfDeployPlanStatus = "pending_approval"
	SelfDeployPlanStatusRejected        SelfDeployPlanStatus = "rejected"
	SelfDeployPlanStatusUnavailable     SelfDeployPlanStatus = "unavailable"
	SelfDeployPlanStatusUnspecified     SelfDeployPlanStatus = "unspecified"
)

// Defines values for SelfDeployPlanStatusFilter.
const (
	SelfDeployPlanStatusFilterApproved        SelfDeployPlanStatusFilter = "approved"
	SelfDeployPlanStatusFilterCancelled       SelfDeployPlanStatusFilter = "cancelled"
	SelfDeployPlanStatusFilterFailed          SelfDeployPlanStatusFilter = "failed"
	SelfDeployPlanStatusFilterPendingApproval SelfDeployPlanStatusFilter = "pending_approval"
	SelfDeployPlanStatusFilterRejected        SelfDeployPlanStatusFilter = "rejected"
	SelfDeployPlanStatusFilterUnspecified     SelfDeployPlanStatusFilter = "unspecified"
)

// Defines values for SelfDeployProviderSignalStatus.
const (
	SelfDeployProviderSignalStatusStoredRef   SelfDeployProviderSignalStatus = "stored_ref"
	SelfDeployProviderSignalStatusUnavailable SelfDeployProviderSignalStatus = "unavailable"
)

// Defines values for SelfDeployRuntimeStatus.
const (
	SelfDeployRuntimeStatusCompleted   SelfDeployRuntimeStatus = "completed"
	SelfDeployRuntimeStatusFailed      SelfDeployRuntimeStatus = "failed"
	SelfDeployRuntimeStatusPending     SelfDeployRuntimeStatus = "pending"
	SelfDeployRuntimeStatusRunning     SelfDeployRuntimeStatus = "running"
	SelfDeployRuntimeStatusStoredRef   SelfDeployRuntimeStatus = "stored_ref"
	SelfDeployRuntimeStatusUnavailable SelfDeployRuntimeStatus = "unavailable"
)

// Defines values for SelfDeploySummaryAvailability.
const (
	SelfDeploySummaryAvailabilityReady       SelfDeploySummaryAvailability = "ready"
	SelfDeploySummaryAvailabilityUnavailable SelfDeploySummaryAvailability = "unavailable"
)

// Defines values for SourceOwnerKind.
const (
	SourceOwnerKindAgentManager      SourceOwnerKind = "agent_manager"
	SourceOwnerKindGovernanceManager SourceOwnerKind = "governance_manager"
	SourceOwnerKindOperationsHub     SourceOwnerKind = "operations_hub"
	SourceOwnerKindProviderHub       SourceOwnerKind = "provider_hub"
	SourceOwnerKindSlotAgent         SourceOwnerKind = "slot_agent"
	SourceOwnerKindSystem            SourceOwnerKind = "system"
	SourceOwnerKindUser              SourceOwnerKind = "user"
)

// Defines values for ActorTypeHeader.
const (
	ActorTypeHeaderAgent           ActorTypeHeader = "agent"
	ActorTypeHeaderExternalAccount ActorTypeHeader = "external_account"
	ActorTypeHeaderService         ActorTypeHeader = "service"
	ActorTypeHeaderUser            ActorTypeHeader = "user"
)

// Defines values for ListAgentRunSummariesParamsXKodexActorType.
const (
	ListAgentRunSummariesParamsXKodexActorTypeAgent           ListAgentRunSummariesParamsXKodexActorType = "agent"
	ListAgentRunSummariesParamsXKodexActorTypeExternalAccount ListAgentRunSummariesParamsXKodexActorType = "external_account"
	ListAgentRunSummariesParamsXKodexActorTypeService         ListAgentRunSummariesParamsXKodexActorType = "service"
	ListAgentRunSummariesParamsXKodexActorTypeUser            ListAgentRunSummariesParamsXKodexActorType = "user"
)

// Defines values for ListAgentRunActivitiesParamsXKodexActorType.
const (
	ListAgentRunActivitiesParamsXKodexActorTypeAgent           ListAgentRunActivitiesParamsXKodexActorType = "agent"
	ListAgentRunActivitiesParamsXKodexActorTypeExternalAccount ListAgentRunActivitiesParamsXKodexActorType = "external_account"
	ListAgentRunActivitiesParamsXKodexActorTypeService         ListAgentRunActivitiesParamsXKodexActorType = "service"
	ListAgentRunActivitiesParamsXKodexActorTypeUser            ListAgentRunActivitiesParamsXKodexActorType = "user"
)

// Defines values for GetAgentRunRuntimeStatusParamsXKodexActorType.
const (
	GetAgentRunRuntimeStatusParamsXKodexActorTypeAgent           GetAgentRunRuntimeStatusParamsXKodexActorType = "agent"
	GetAgentRunRuntimeStatusParamsXKodexActorTypeExternalAccount GetAgentRunRuntimeStatusParamsXKodexActorType = "external_account"
	GetAgentRunRuntimeStatusParamsXKodexActorTypeService         GetAgentRunRuntimeStatusParamsXKodexActorType = "service"
	GetAgentRunRuntimeStatusParamsXKodexActorTypeUser            GetAgentRunRuntimeStatusParamsXKodexActorType = "user"
)

// Defines values for ListAgentSessionsParamsXKodexActorType.
const (
	ListAgentSessionsParamsXKodexActorTypeAgent           ListAgentSessionsParamsXKodexActorType = "agent"
	ListAgentSessionsParamsXKodexActorTypeExternalAccount ListAgentSessionsParamsXKodexActorType = "external_account"
	ListAgentSessionsParamsXKodexActorTypeService         ListAgentSessionsParamsXKodexActorType = "service"
	ListAgentSessionsParamsXKodexActorTypeUser            ListAgentSessionsParamsXKodexActorType = "user"
)

// Defines values for GetGovernanceSummaryParamsXKodexActorType.
const (
	GetGovernanceSummaryParamsXKodexActorTypeAgent           GetGovernanceSummaryParamsXKodexActorType = "agent"
	GetGovernanceSummaryParamsXKodexActorTypeExternalAccount GetGovernanceSummaryParamsXKodexActorType = "external_account"
	GetGovernanceSummaryParamsXKodexActorTypeService         GetGovernanceSummaryParamsXKodexActorType = "service"
	GetGovernanceSummaryParamsXKodexActorTypeUser            GetGovernanceSummaryParamsXKodexActorType = "user"
)

// Defines values for ListOwnerInboxItemsParamsXKodexActorType.
const (
	ListOwnerInboxItemsParamsXKodexActorTypeAgent           ListOwnerInboxItemsParamsXKodexActorType = "agent"
	ListOwnerInboxItemsParamsXKodexActorTypeExternalAccount ListOwnerInboxItemsParamsXKodexActorType = "external_account"
	ListOwnerInboxItemsParamsXKodexActorTypeService         ListOwnerInboxItemsParamsXKodexActorType = "service"
	ListOwnerInboxItemsParamsXKodexActorTypeUser            ListOwnerInboxItemsParamsXKodexActorType = "user"
)

// Defines values for GetOwnerInboxItemParamsXKodexActorType.
const (
	GetOwnerInboxItemParamsXKodexActorTypeAgent           GetOwnerInboxItemParamsXKodexActorType = "agent"
	GetOwnerInboxItemParamsXKodexActorTypeExternalAccount GetOwnerInboxItemParamsXKodexActorType = "external_account"
	GetOwnerInboxItemParamsXKodexActorTypeService         GetOwnerInboxItemParamsXKodexActorType = "service"
	GetOwnerInboxItemParamsXKodexActorTypeUser            GetOwnerInboxItemParamsXKodexActorType = "user"
)

// Defines values for RespondOwnerInboxItemParamsXKodexActorType.
const (
	RespondOwnerInboxItemParamsXKodexActorTypeAgent           RespondOwnerInboxItemParamsXKodexActorType = "agent"
	RespondOwnerInboxItemParamsXKodexActorTypeExternalAccount RespondOwnerInboxItemParamsXKodexActorType = "external_account"
	RespondOwnerInboxItemParamsXKodexActorTypeService         RespondOwnerInboxItemParamsXKodexActorType = "service"
	RespondOwnerInboxItemParamsXKodexActorTypeUser            RespondOwnerInboxItemParamsXKodexActorType = "user"
)

// Defines values for SubmitSelfDeployGateDecisionParamsXKodexActorType.
const (
	SubmitSelfDeployGateDecisionParamsXKodexActorTypeAgent           SubmitSelfDeployGateDecisionParamsXKodexActorType = "agent"
	SubmitSelfDeployGateDecisionParamsXKodexActorTypeExternalAccount SubmitSelfDeployGateDecisionParamsXKodexActorType = "external_account"
	SubmitSelfDeployGateDecisionParamsXKodexActorTypeService         SubmitSelfDeployGateDecisionParamsXKodexActorType = "service"
	SubmitSelfDeployGateDecisionParamsXKodexActorTypeUser            SubmitSelfDeployGateDecisionParamsXKodexActorType = "user"
)

// Defines values for GetSelfDeploySummaryParamsXKodexActorType.
const (
	Agent           GetSelfDeploySummaryParamsXKodexActorType = "agent"
	ExternalAccount GetSelfDeploySummaryParamsXKodexActorType = "external_account"
	Service         GetSelfDeploySummaryParamsXKodexActorType = "service"
	User            GetSelfDeploySummaryParamsXKodexActorType = "user"
)

// ActorRef defines model for ActorRef.
type ActorRef struct {
	Ref     string `json:"ref"`
	RefKind string `json:"ref_kind"`
}

// AgentActivityKind defines model for AgentActivityKind.
type AgentActivityKind string

// AgentActivityStatus defines model for AgentActivityStatus.
type AgentActivityStatus string

// AgentActivitySummary defines model for AgentActivitySummary.
type AgentActivitySummary struct {
	ActivityId    string              `json:"activity_id"`
	ActivityKind  AgentActivityKind   `json:"activity_kind"`
	BoundedError  *string             `json:"bounded_error,omitempty"`
	FinishedAt    *time.Time          `json:"finished_at,omitempty"`
	PayloadDigest *string             `json:"payload_digest,omitempty"`
	SafeSummary   *string             `json:"safe_summary,omitempty"`
	StartedAt     *time.Time          `json:"started_at,omitempty"`
	Status        AgentActivityStatus `json:"status"`
	ToolCategory  *string             `json:"tool_category,omitempty"`
	ToolName      *string             `json:"tool_name,omitempty"`
	UpdatedAt     time.Time           `json:"updated_at"`
	Version       int64               `json:"version"`
}

// AgentRunActivitiesResponse defines model for AgentRunActivitiesResponse.
type AgentRunActivitiesResponse struct {
	Activities    []AgentRunActivity `json:"activities"`
	CorrelationId *string            `json:"correlation_id,omitempty"`
	Page          PageInfo           `json:"page"`
	RequestId     string             `json:"request_id"`
	RunId         *string            `json:"run_id,omitempty"`
}

// AgentRunActivity defines model for AgentRunActivity.
type AgentRunActivity struct {
	ActivityId    string            `json:"activity_id"`
	ActivityKind  AgentActivityKind `json:"activity_kind"`
	BoundedError  *string           `json:"bounded_error,omitempty"`
	CorrelationId *string           `json:"correlation_id,omitempty"`
	CreatedAt     time.Time         `json:"created_at"`
	DurationMs    *int64            `json:"duration_ms,omitempty"`
	FinishedAt    *time.Time        `json:"finished_at,omitempty"`
	PayloadDigest *string           `json:"payload_digest,omitempty"`
	RunId         *string           `json:"run_id,omitempty"`

	// SafeDetailsJson Bounded JSON object with safe display details only.
	SafeDetailsJson *string `json:"safe_details_json,omitempty"`

	// SafeRefsJson Bounded JSON object with refs only; never raw payload.
	SafeRefsJson *string             `json:"safe_refs_json,omitempty"`
	SafeSummary  *string             `json:"safe_summary,omitempty"`
	SessionId    string              `json:"session_id"`
	StartedAt    *time.Time          `json:"started_at,omitempty"`
	Status       AgentActivityStatus `json:"status"`
	ToolCategory *string             `json:"tool_category,omitempty"`
	ToolName     *string             `json:"tool_name,omitempty"`
	ToolUseId    *string             `json:"tool_use_id,omitempty"`
	TurnId       *string             `json:"turn_id,omitempty"`
	UpdatedAt    time.Time           `json:"updated_at"`
	Version      int64               `json:"version"`
}

// AgentRunRuntimeStatus defines model for AgentRunRuntimeStatus.
type AgentRunRuntimeStatus struct {
	FollowUpWaiting      bool                    `json:"follow_up_waiting"`
	HumanGateReasonCode  *string                 `json:"human_gate_reason_code,omitempty"`
	HumanGateRequestRef  *string                 `json:"human_gate_request_ref,omitempty"`
	HumanGateWaiting     bool                    `json:"human_gate_waiting"`
	ObservationState     RuntimeObservationState `json:"observation_state"`
	RunFinishedAt        *time.Time              `json:"run_finished_at,omitempty"`
	RunId                string                  `json:"run_id"`
	RunStartedAt         *time.Time              `json:"run_started_at,omitempty"`
	RunStatus            AgentRunStatus          `json:"run_status"`
	RunUpdatedAt         time.Time               `json:"run_updated_at"`
	RunVersion           int64                   `json:"run_version"`
	RuntimeContextRef    *string                 `json:"runtime_context_ref,omitempty"`
	RuntimeJobCommandRef *string                 `json:"runtime_job_command_ref,omitempty"`
	RuntimeJobCreatedAt  *time.Time              `json:"runtime_job_created_at,omitempty"`
	RuntimeJobFinishedAt *time.Time              `json:"runtime_job_finished_at,omitempty"`
	RuntimeJobRef        *string                 `json:"runtime_job_ref,omitempty"`
	RuntimeJobStartedAt  *time.Time              `json:"runtime_job_started_at,omitempty"`
	RuntimeJobStatus     AgentRuntimeJobStatus   `json:"runtime_job_status"`
	RuntimeJobUpdatedAt  *time.Time              `json:"runtime_job_updated_at,omitempty"`
	RuntimeJobVersion    *int64                  `json:"runtime_job_version,omitempty"`
	RuntimeSlotRef       *string                 `json:"runtime_slot_ref,omitempty"`
	SafeErrorCode        *string                 `json:"safe_error_code,omitempty"`
	SafeSummary          *string                 `json:"safe_summary,omitempty"`
}

// AgentRunRuntimeStatusResponse defines model for AgentRunRuntimeStatusResponse.
type AgentRunRuntimeStatusResponse struct {
	CorrelationId *string               `json:"correlation_id,omitempty"`
	RequestId     string                `json:"request_id"`
	RuntimeStatus AgentRunRuntimeStatus `json:"runtime_status"`
}

// AgentRunStatus defines model for AgentRunStatus.
type AgentRunStatus string

// AgentRunSummary defines model for AgentRunSummary.
type AgentRunSummary struct {
	CreatedAt               time.Time               `json:"created_at"`
	FailureCode             *string                 `json:"failure_code,omitempty"`
	FinishedAt              *time.Time              `json:"finished_at,omitempty"`
	FlowVersionId           *string                 `json:"flow_version_id,omitempty"`
	FollowUpWaiting         bool                    `json:"follow_up_waiting"`
	HumanGateReasonCode     *string                 `json:"human_gate_reason_code,omitempty"`
	HumanGateRequestRef     *string                 `json:"human_gate_request_ref,omitempty"`
	HumanGateWaiting        bool                    `json:"human_gate_waiting"`
	LatestActivity          *AgentActivitySummary   `json:"latest_activity,omitempty"`
	ProviderTarget          *ProviderTargetRef      `json:"provider_target,omitempty"`
	ResultSummary           *string                 `json:"result_summary,omitempty"`
	RoleProfileId           string                  `json:"role_profile_id"`
	RoleProfileVersion      int64                   `json:"role_profile_version"`
	RunId                   string                  `json:"run_id"`
	RuntimeContextRef       *string                 `json:"runtime_context_ref,omitempty"`
	RuntimeJobRef           *string                 `json:"runtime_job_ref,omitempty"`
	RuntimeObservationState RuntimeObservationState `json:"runtime_observation_state"`
	RuntimeSafeErrorCode    *string                 `json:"runtime_safe_error_code,omitempty"`
	RuntimeSafeSummary      *string                 `json:"runtime_safe_summary,omitempty"`
	RuntimeSlotRef          *string                 `json:"runtime_slot_ref,omitempty"`
	SessionId               string                  `json:"session_id"`
	StageId                 *string                 `json:"stage_id,omitempty"`
	StartedAt               *time.Time              `json:"started_at,omitempty"`
	Status                  AgentRunStatus          `json:"status"`
	UpdatedAt               time.Time               `json:"updated_at"`
	Version                 int64                   `json:"version"`
}

// AgentRunSummaryListResponse defines model for AgentRunSummaryListResponse.
type AgentRunSummaryListResponse struct {
	CorrelationId *string           `json:"correlation_id,omitempty"`
	Page          PageInfo          `json:"page"`
	RequestId     string            `json:"request_id"`
	Runs          []AgentRunSummary `json:"runs"`
}

// AgentRuntimeJobStatus defines model for AgentRuntimeJobStatus.
type AgentRuntimeJobStatus string

// AgentScopeType defines model for AgentScopeType.
type AgentScopeType string

// AgentSessionListResponse defines model for AgentSessionListResponse.
type AgentSessionListResponse struct {
	CorrelationId *string               `json:"correlation_id,omitempty"`
	Page          PageInfo              `json:"page"`
	RequestId     string                `json:"request_id"`
	Sessions      []AgentSessionSummary `json:"sessions"`
}

// AgentSessionStatus defines model for AgentSessionStatus.
type AgentSessionStatus string

// AgentSessionSummary defines model for AgentSessionSummary.
type AgentSessionSummary struct {
	ActiveRunCount        int                   `json:"active_run_count"`
	CreatedAt             time.Time             `json:"created_at"`
	CreatedByActorRef     string                `json:"created_by_actor_ref"`
	CurrentStageId        *string               `json:"current_stage_id,omitempty"`
	FlowVersionId         *string               `json:"flow_version_id,omitempty"`
	FollowUpRef           *string               `json:"follow_up_ref,omitempty"`
	FollowUpWaiting       bool                  `json:"follow_up_waiting"`
	HumanGateReasonCode   *string               `json:"human_gate_reason_code,omitempty"`
	HumanGateRequestRef   *string               `json:"human_gate_request_ref,omitempty"`
	HumanGateWaiting      bool                  `json:"human_gate_waiting"`
	LatestActivity        *AgentActivitySummary `json:"latest_activity,omitempty"`
	LatestRunId           *string               `json:"latest_run_id,omitempty"`
	LatestRunSafeSummary  *string               `json:"latest_run_safe_summary,omitempty"`
	LatestRunStatus       *AgentRunStatus       `json:"latest_run_status,omitempty"`
	LatestRuntimeJobRef   *string               `json:"latest_runtime_job_ref,omitempty"`
	LatestStateSnapshotId *string               `json:"latest_state_snapshot_id,omitempty"`
	ProviderWorkItemRef   *string               `json:"provider_work_item_ref,omitempty"`
	Scope                 ScopeRef              `json:"scope"`
	SessionId             string                `json:"session_id"`
	Status                AgentSessionStatus    `json:"status"`
	UpdatedAt             time.Time             `json:"updated_at"`
	Version               int64                 `json:"version"`
}

// CallbackProcessingStatus defines model for CallbackProcessingStatus.
type CallbackProcessingStatus string

// CallbackSignatureStatus defines model for CallbackSignatureStatus.
type CallbackSignatureStatus string

// DecisionOwnerKind defines model for DecisionOwnerKind.
type DecisionOwnerKind string

// DecisionOwnerRef defines model for DecisionOwnerRef.
type DecisionOwnerRef struct {
	OwnerDecisionRef *string           `json:"owner_decision_ref,omitempty"`
	OwnerKind        DecisionOwnerKind `json:"owner_kind"`
	OwnerRequestRef  string            `json:"owner_request_ref"`
}

// DeliveryAttemptStatus defines model for DeliveryAttemptStatus.
type DeliveryAttemptStatus string

// DeliveryErrorClass defines model for DeliveryErrorClass.
type DeliveryErrorClass string

// ExternalRef defines model for ExternalRef.
type ExternalRef struct {
	Ref     string `json:"ref"`
	RefKind string `json:"ref_kind"`
}

// GovernanceAgentContextRef defines model for GovernanceAgentContextRef.
type GovernanceAgentContextRef struct {
	AcceptanceRef *string `json:"acceptance_ref,omitempty"`
	RoleRef       *string `json:"role_ref,omitempty"`
	RunRef        *string `json:"run_ref,omitempty"`
	SessionRef    *string `json:"session_ref,omitempty"`
	StageRef      *string `json:"stage_ref,omitempty"`
}

// GovernanceBlockingSignalStatus defines model for GovernanceBlockingSignalStatus.
type GovernanceBlockingSignalStatus string

// GovernanceDecisionAttention defines model for GovernanceDecisionAttention.
type GovernanceDecisionAttention string

// GovernanceDecisionSummary defines model for GovernanceDecisionSummary.
type GovernanceDecisionSummary struct {
	AgentContext             *GovernanceAgentContextRef        `json:"agent_context,omitempty"`
	Attention                GovernanceDecisionAttention       `json:"attention"`
	BlockingSignalStatus     *GovernanceBlockingSignalStatus   `json:"blocking_signal_status,omitempty"`
	CreatedAt                string                            `json:"created_at"`
	EvidenceRefs             []GovernanceEvidenceRef           `json:"evidence_refs"`
	GateOutcome              *GovernanceGateOutcome            `json:"gate_outcome,omitempty"`
	GateRequestStatus        *GovernanceGateRequestStatus      `json:"gate_request_status,omitempty"`
	Id                       string                            `json:"id"`
	IntegrationRefs          []GovernanceReleaseIntegrationRef `json:"integration_refs"`
	Kind                     GovernanceDecisionSummaryKind     `json:"kind"`
	ObservedAt               *time.Time                        `json:"observed_at,omitempty"`
	ParentId                 *string                           `json:"parent_id,omitempty"`
	ProjectContext           *GovernanceProjectContextRef      `json:"project_context,omitempty"`
	ProviderRefs             []GovernanceProviderContextRef    `json:"provider_refs"`
	ReleaseCandidateRef      *string                           `json:"release_candidate_ref,omitempty"`
	ReleaseDecisionOutcome   *GovernanceReleaseDecisionOutcome `json:"release_decision_outcome,omitempty"`
	ReleaseDecisionPackageId *string                           `json:"release_decision_package_id,omitempty"`
	ReleaseDecisionStatus    *GovernanceReleaseDecisionStatus  `json:"release_decision_status,omitempty"`
	ReleasePackageStatus     *GovernanceReleasePackageStatus   `json:"release_package_status,omitempty"`
	ReviewOutcome            *GovernanceReviewOutcome          `json:"review_outcome,omitempty"`
	RiskClass                *GovernanceRiskClass              `json:"risk_class,omitempty"`
	RuntimeRefs              []GovernanceRuntimeContextRef     `json:"runtime_refs"`
	SafeSummary              string                            `json:"safe_summary"`
	Severity                 *GovernanceSignalSeverity         `json:"severity,omitempty"`
	Target                   *GovernanceTargetRef              `json:"target,omitempty"`
	UpdatedAt                string                            `json:"updated_at"`
	Version                  int64                             `json:"version"`
}

// GovernanceDecisionSummaryKind defines model for GovernanceDecisionSummaryKind.
type GovernanceDecisionSummaryKind string

// GovernanceEvidenceKind defines model for GovernanceEvidenceKind.
type GovernanceEvidenceKind string

// GovernanceEvidenceRef defines model for GovernanceEvidenceRef.
type GovernanceEvidenceRef struct {
	Digest         *string                `json:"digest,omitempty"`
	Kind           GovernanceEvidenceKind `json:"kind"`
	Ref            string                 `json:"ref"`
	RetentionClass *string                `json:"retention_class,omitempty"`
	Summary        *string                `json:"summary,omitempty"`
}

// GovernanceEvidenceSummary defines model for GovernanceEvidenceSummary.
type GovernanceEvidenceSummary struct {
	Digest          *string                           `json:"digest,omitempty"`
	ErrorCode       *string                           `json:"error_code,omitempty"`
	EvidenceRefs    []GovernanceEvidenceRef           `json:"evidence_refs"`
	IntegrationRefs []GovernanceReleaseIntegrationRef `json:"integration_refs"`
	ObservedAt      *time.Time                        `json:"observed_at,omitempty"`
	Outcome         *string                           `json:"outcome,omitempty"`
	SafeSummary     string                            `json:"safe_summary"`
	SourceKind      string                            `json:"source_kind"`
	SourceRef       string                            `json:"source_ref"`
	Status          *string                           `json:"status,omitempty"`
	Version         *string                           `json:"version,omitempty"`
}

// GovernanceGateOutcome defines model for GovernanceGateOutcome.
type GovernanceGateOutcome string

// GovernanceGateRequestStatus defines model for GovernanceGateRequestStatus.
type GovernanceGateRequestStatus string

// GovernanceProjectContextRef defines model for GovernanceProjectContextRef.
type GovernanceProjectContextRef struct {
	BranchRulesRef   *string `json:"branch_rules_ref,omitempty"`
	ProjectRef       *string `json:"project_ref,omitempty"`
	ReleaseLineRef   *string `json:"release_line_ref,omitempty"`
	ReleasePolicyRef *string `json:"release_policy_ref,omitempty"`
	RepositoryRef    *string `json:"repository_ref,omitempty"`
	ServiceRef       *string `json:"service_ref,omitempty"`
}

// GovernanceProviderContextRef defines model for GovernanceProviderContextRef.
type GovernanceProviderContextRef struct {
	ChangedFilesSummaryRef *string `json:"changed_files_summary_ref,omitempty"`
	CommentRef             *string `json:"comment_ref,omitempty"`
	ProviderOperationRef   *string `json:"provider_operation_ref,omitempty"`
	PullRequestRef         *string `json:"pull_request_ref,omitempty"`
	ReviewSignalRef        *string `json:"review_signal_ref,omitempty"`
	WorkItemRef            *string `json:"work_item_ref,omitempty"`
}

// GovernanceReleaseDecisionOutcome defines model for GovernanceReleaseDecisionOutcome.
type GovernanceReleaseDecisionOutcome string

// GovernanceReleaseDecisionStatus defines model for GovernanceReleaseDecisionStatus.
type GovernanceReleaseDecisionStatus string

// GovernanceReleaseIntegrationRef defines model for GovernanceReleaseIntegrationRef.
type GovernanceReleaseIntegrationRef struct {
	Digest     *string    `json:"digest,omitempty"`
	Domain     string     `json:"domain"`
	ErrorCode  *string    `json:"error_code,omitempty"`
	Kind       string     `json:"kind"`
	ObservedAt *time.Time `json:"observed_at,omitempty"`
	Ref        string     `json:"ref"`
	Status     *string    `json:"status,omitempty"`
	Summary    *string    `json:"summary,omitempty"`
	Version    *string    `json:"version,omitempty"`
}

// GovernanceReleasePackageStatus defines model for GovernanceReleasePackageStatus.
type GovernanceReleasePackageStatus string

// GovernanceReviewOutcome defines model for GovernanceReviewOutcome.
type GovernanceReviewOutcome string

// GovernanceRiskClass defines model for GovernanceRiskClass.
type GovernanceRiskClass string

// GovernanceRuntimeContextRef defines model for GovernanceRuntimeContextRef.
type GovernanceRuntimeContextRef struct {
	ArtifactRef    *string `json:"artifact_ref,omitempty"`
	EnvironmentRef *string `json:"environment_ref,omitempty"`
	JobRef         *string `json:"job_ref,omitempty"`
	SlotRef        *string `json:"slot_ref,omitempty"`
	SummaryRef     *string `json:"summary_ref,omitempty"`
}

// GovernanceSignalSeverity defines model for GovernanceSignalSeverity.
type GovernanceSignalSeverity string

// GovernanceSummary defines model for GovernanceSummary.
type GovernanceSummary struct {
	CompletedDecisions []GovernanceDecisionSummary `json:"completed_decisions"`
	Diagnostics        []string                    `json:"diagnostics"`
	EvidenceSummaries  []GovernanceEvidenceSummary `json:"evidence_summaries"`
	PendingDecisions   []GovernanceDecisionSummary `json:"pending_decisions"`
	Scope              GovernanceSummaryScope      `json:"scope"`
}

// GovernanceSummaryResponse defines model for GovernanceSummaryResponse.
type GovernanceSummaryResponse struct {
	CorrelationId *string           `json:"correlation_id,omitempty"`
	RequestId     string            `json:"request_id"`
	Summary       GovernanceSummary `json:"summary"`
}

// GovernanceSummaryScope defines model for GovernanceSummaryScope.
type GovernanceSummaryScope struct {
	IntegrationRef           *GovernanceReleaseIntegrationRef `json:"integration_ref,omitempty"`
	ProjectContext           *GovernanceProjectContextRef     `json:"project_context,omitempty"`
	ReleaseCandidateRef      *string                          `json:"release_candidate_ref,omitempty"`
	ReleaseDecisionPackageId *string                          `json:"release_decision_package_id,omitempty"`
	Target                   *GovernanceTargetRef             `json:"target,omitempty"`
}

// GovernanceTargetRef defines model for GovernanceTargetRef.
type GovernanceTargetRef struct {
	Ref  string               `json:"ref"`
	Type GovernanceTargetType `json:"type"`
}

// GovernanceTargetType defines model for GovernanceTargetType.
type GovernanceTargetType string

// InteractionAction defines model for InteractionAction.
type InteractionAction struct {
	ActionKey        string  `json:"action_key"`
	IsTerminal       bool    `json:"is_terminal"`
	LabelTemplateRef *string `json:"label_template_ref,omitempty"`
}

// ObjectRef defines model for ObjectRef.
type ObjectRef struct {
	ObjectDigest    string `json:"object_digest"`
	ObjectSizeBytes *int64 `json:"object_size_bytes,omitempty"`
	ObjectUri       string `json:"object_uri"`
}

// OwnerInboxCallbackSummary defines model for OwnerInboxCallbackSummary.
type OwnerInboxCallbackSummary struct {
	Action           *string                  `json:"action,omitempty"`
	ActorRef         *string                  `json:"actor_ref,omitempty"`
	CallbackId       string                   `json:"callback_id"`
	CallbackRef      string                   `json:"callback_ref"`
	CorrelationId    *string                  `json:"correlation_id,omitempty"`
	DeliveryId       *string                  `json:"delivery_id,omitempty"`
	ErrorCode        *string                  `json:"error_code,omitempty"`
	GatewayRef       *string                  `json:"gateway_ref,omitempty"`
	ProcessingStatus CallbackProcessingStatus `json:"processing_status"`
	ReceivedAt       time.Time                `json:"received_at"`
	SignatureStatus  CallbackSignatureStatus  `json:"signature_status"`
}

// OwnerInboxDeliverySummary defines model for OwnerInboxDeliverySummary.
type OwnerInboxDeliverySummary struct {
	AttemptCount            int32                 `json:"attempt_count"`
	ChannelMessageRef       *string               `json:"channel_message_ref,omitempty"`
	LatestDeliveryAttemptId *string               `json:"latest_delivery_attempt_id,omitempty"`
	LatestDeliveryId        *string               `json:"latest_delivery_id,omitempty"`
	LatestErrorClass        DeliveryErrorClass    `json:"latest_error_class"`
	LatestErrorCode         *string               `json:"latest_error_code,omitempty"`
	LatestStatus            DeliveryAttemptStatus `json:"latest_status"`
	LatestUpdatedAt         *time.Time            `json:"latest_updated_at,omitempty"`
	NextRetryAt             *time.Time            `json:"next_retry_at,omitempty"`
	RouteId                 *string               `json:"route_id,omitempty"`
}

// OwnerInboxItem defines model for OwnerInboxItem.
type OwnerInboxItem struct {
	AllowedActions    []InteractionAction        `json:"allowed_actions"`
	AssigneeRefs      []ActorRef                 `json:"assignee_refs"`
	ContextRefs       []ExternalRef              `json:"context_refs"`
	CreatedAt         time.Time                  `json:"created_at"`
	DeadlineAt        *time.Time                 `json:"deadline_at,omitempty"`
	DecisionOwner     *DecisionOwnerRef          `json:"decision_owner,omitempty"`
	DeliverySummary   OwnerInboxDeliverySummary  `json:"delivery_summary"`
	LatestCallback    *OwnerInboxCallbackSummary `json:"latest_callback,omitempty"`
	LatestResponse    *OwnerInboxResponseSummary `json:"latest_response,omitempty"`
	ReminderPolicyRef *string                    `json:"reminder_policy_ref,omitempty"`
	RequestId         string                     `json:"request_id"`
	RequestKind       RequestKind                `json:"request_kind"`
	RequestStatus     RequestStatus              `json:"request_status"`
	Requester         SourceOwnerRef             `json:"requester"`
	ResolvedAt        *time.Time                 `json:"resolved_at,omitempty"`
	Scope             ScopeRef                   `json:"scope"`
	Summary           string                     `json:"summary"`
	Title             string                     `json:"title"`
	UpdatedAt         time.Time                  `json:"updated_at"`
	Version           int64                      `json:"version"`
}

// OwnerInboxItemResponse defines model for OwnerInboxItemResponse.
type OwnerInboxItemResponse struct {
	CorrelationId *string        `json:"correlation_id,omitempty"`
	Item          OwnerInboxItem `json:"item"`
	RequestId     string         `json:"request_id"`
}

// OwnerInboxListResponse defines model for OwnerInboxListResponse.
type OwnerInboxListResponse struct {
	CorrelationId *string          `json:"correlation_id,omitempty"`
	Items         []OwnerInboxItem `json:"items"`
	Page          PageInfo         `json:"page"`
	RequestId     string           `json:"request_id"`
}

// OwnerInboxRespondRequest Для идемпотентности должен быть передан command_id или idempotency_key.
type OwnerInboxRespondRequest struct {
	Action           ResponseAction `json:"action"`
	CommandId        *string        `json:"command_id,omitempty"`
	ExpectedVersion  int64          `json:"expected_version"`
	IdempotencyKey   *string        `json:"idempotency_key,omitempty"`
	OwnerDecisionRef *string        `json:"owner_decision_ref,omitempty"`
	Reason           *string        `json:"reason,omitempty"`
	ResponseObject   *ObjectRef     `json:"response_object,omitempty"`
	ResponseSummary  *string        `json:"response_summary,omitempty"`
}

// OwnerInboxRespondResponse defines model for OwnerInboxRespondResponse.
type OwnerInboxRespondResponse struct {
	CorrelationId *string                   `json:"correlation_id,omitempty"`
	Item          OwnerInboxItem            `json:"item"`
	RequestId     string                    `json:"request_id"`
	Response      OwnerInboxResponseSummary `json:"response"`
}

// OwnerInboxResponseSummary defines model for OwnerInboxResponseSummary.
type OwnerInboxResponseSummary struct {
	CreatedAt              time.Time          `json:"created_at"`
	InteractionResponseRef *string            `json:"interaction_response_ref,omitempty"`
	OwnerDecisionRef       *string            `json:"owner_decision_ref,omitempty"`
	RespondedByActorRef    string             `json:"responded_by_actor_ref"`
	ResponseAction         ResponseAction     `json:"response_action"`
	ResponseId             string             `json:"response_id"`
	ResponseObject         *ObjectRef         `json:"response_object,omitempty"`
	ResponseSummary        *string            `json:"response_summary,omitempty"`
	ResponseSummaryDigest  *string            `json:"response_summary_digest,omitempty"`
	SourceKind             ResponseSourceKind `json:"source_kind"`
	SourceRef              *string            `json:"source_ref,omitempty"`
}

// PageInfo defines model for PageInfo.
type PageInfo struct {
	NextPageToken *string `json:"next_page_token,omitempty"`
}

// ProviderTargetRef defines model for ProviderTargetRef.
type ProviderTargetRef struct {
	CommentRef      *string `json:"comment_ref,omitempty"`
	PullRequestRef  *string `json:"pull_request_ref,omitempty"`
	ReviewSignalRef *string `json:"review_signal_ref,omitempty"`
	WorkItemRef     *string `json:"work_item_ref,omitempty"`
}

// RequestKind defines model for RequestKind.
type RequestKind string

// RequestStatus defines model for RequestStatus.
type RequestStatus string

// ResponseAction defines model for ResponseAction.
type ResponseAction string

// ResponseSourceKind defines model for ResponseSourceKind.
type ResponseSourceKind string

// RuntimeObservationState defines model for RuntimeObservationState.
type RuntimeObservationState string

// SafeError defines model for SafeError.
type SafeError struct {
	Code          SafeErrorCode `json:"code"`
	CorrelationId *string       `json:"correlation_id,omitempty"`
	Message       string        `json:"message"`
	RequestId     string        `json:"request_id"`
	Retryable     bool          `json:"retryable"`
}

// SafeErrorCode defines model for SafeError.Code.
type SafeErrorCode string

// ScopeRef defines model for ScopeRef.
type ScopeRef struct {
	Ref  string    `json:"ref"`
	Type ScopeType `json:"type"`
}

// ScopeType defines model for ScopeType.
type ScopeType string

// SelfDeployChainStatus defines model for SelfDeployChainStatus.
type SelfDeployChainStatus string

// SelfDeployGateDecisionAction defines model for SelfDeployGateDecisionAction.
type SelfDeployGateDecisionAction string

// SelfDeployGateDecisionRequest defines model for SelfDeployGateDecisionRequest.
type SelfDeployGateDecisionRequest struct {
	Action                 SelfDeployGateDecisionAction `json:"action"`
	Comment                *string                      `json:"comment,omitempty"`
	DecisionPolicyRef      *string                      `json:"decision_policy_ref,omitempty"`
	ExpectedStatus         *SelfDeployGovernanceStatus  `json:"expected_status,omitempty"`
	ExpectedVersion        int64                        `json:"expected_version"`
	IdempotencyKey         string                       `json:"idempotency_key"`
	InteractionCallbackRef *string                      `json:"interaction_callback_ref,omitempty"`
	InteractionDecisionRef *string                      `json:"interaction_decision_ref,omitempty"`
	InteractionDeliveryRef *string                      `json:"interaction_delivery_ref,omitempty"`
	InteractionRequestRef  *string                      `json:"interaction_request_ref,omitempty"`
	SelfDeployPlanRef      string                       `json:"self_deploy_plan_ref"`
}

// SelfDeployGateDecisionResponse defines model for SelfDeployGateDecisionResponse.
type SelfDeployGateDecisionResponse struct {
	CorrelationId *string                       `json:"correlation_id,omitempty"`
	Decision      SelfDeployGateDecisionSummary `json:"decision"`
	RequestId     string                        `json:"request_id"`
}

// SelfDeployGateDecisionSummary defines model for SelfDeployGateDecisionSummary.
type SelfDeployGateDecisionSummary struct {
	Action            SelfDeployGateDecisionAction `json:"action"`
	DecidedAt         *time.Time                   `json:"decided_at,omitempty"`
	GateDecisionRef   *string                      `json:"gate_decision_ref,omitempty"`
	GateRequestId     *string                      `json:"gate_request_id,omitempty"`
	GateRequestRef    string                       `json:"gate_request_ref"`
	GateRequestStatus *GovernanceGateRequestStatus `json:"gate_request_status,omitempty"`
	Outcome           GovernanceGateOutcome        `json:"outcome"`
	SelfDeployPlanRef string                       `json:"self_deploy_plan_ref"`
	Status            SelfDeployGovernanceStatus   `json:"status"`
	Summary           string                       `json:"summary"`
	Version           *int64                       `json:"version,omitempty"`
}

// SelfDeployGovernanceStatus defines model for SelfDeployGovernanceStatus.
type SelfDeployGovernanceStatus string

// SelfDeployGovernanceSummary defines model for SelfDeployGovernanceSummary.
type SelfDeployGovernanceSummary struct {
	AllowedActions            *[]SelfDeployGateDecisionAction `json:"allowed_actions,omitempty"`
	GateDecisionRef           *string                         `json:"gate_decision_ref,omitempty"`
	GatePolicyRef             *string                         `json:"gate_policy_ref,omitempty"`
	GateRequestId             *string                         `json:"gate_request_id,omitempty"`
	GateRequestRef            *string                         `json:"gate_request_ref,omitempty"`
	GateRequestVersion        *int64                          `json:"gate_request_version,omitempty"`
	ReleaseDecisionPackageRef *string                         `json:"release_decision_package_ref,omitempty"`
	ReleaseDecisionRef        *string                         `json:"release_decision_ref,omitempty"`
	Status                    SelfDeployGovernanceStatus      `json:"status"`
}

// SelfDeployNextStep defines model for SelfDeployNextStep.
type SelfDeployNextStep struct {
	Code    SelfDeployNextStepCode `json:"code"`
	Summary string                 `json:"summary"`
}

// SelfDeployNextStepCode defines model for SelfDeployNextStepCode.
type SelfDeployNextStepCode string

// SelfDeployPathCategory defines model for SelfDeployPathCategory.
type SelfDeployPathCategory string

// SelfDeployPlanStatus defines model for SelfDeployPlanStatus.
type SelfDeployPlanStatus string

// SelfDeployPlanStatusFilter defines model for SelfDeployPlanStatusFilter.
type SelfDeployPlanStatusFilter string

// SelfDeployPlanSummary defines model for SelfDeployPlanSummary.
type SelfDeployPlanSummary struct {
	Status SelfDeployPlanStatus `json:"status"`
}

// SelfDeployProviderSignalStatus defines model for SelfDeployProviderSignalStatus.
type SelfDeployProviderSignalStatus string

// SelfDeployProviderSignalSummary defines model for SelfDeployProviderSignalSummary.
type SelfDeployProviderSignalSummary struct {
	Ref    *string                        `json:"ref,omitempty"`
	Status SelfDeployProviderSignalStatus `json:"status"`
}

// SelfDeployRuntimeStatus defines model for SelfDeployRuntimeStatus.
type SelfDeployRuntimeStatus string

// SelfDeployRuntimeSummary defines model for SelfDeployRuntimeSummary.
type SelfDeployRuntimeSummary struct {
	RuntimeJobRef        *string                 `json:"runtime_job_ref,omitempty"`
	RuntimeStatusSummary *string                 `json:"runtime_status_summary,omitempty"`
	Status               SelfDeployRuntimeStatus `json:"status"`
}

// SelfDeploySafeError defines model for SelfDeploySafeError.
type SelfDeploySafeError struct {
	Code    string `json:"code"`
	Summary string `json:"summary"`
}

// SelfDeploySummary defines model for SelfDeploySummary.
type SelfDeploySummary struct {
	AffectedServiceKeys     []string                        `json:"affected_service_keys"`
	Availability            SelfDeploySummaryAvailability   `json:"availability"`
	ChainStatus             SelfDeployChainStatus           `json:"chain_status"`
	CreatedAt               *time.Time                      `json:"created_at,omitempty"`
	DeployPlan              SelfDeployPlanSummary           `json:"deploy_plan"`
	ExpectedRuntimeJobTypes []string                        `json:"expected_runtime_job_types"`
	Governance              SelfDeployGovernanceSummary     `json:"governance"`
	MergeCommitSha          *string                         `json:"merge_commit_sha,omitempty"`
	NextStep                SelfDeployNextStep              `json:"next_step"`
	PathCategories          []SelfDeployPathCategory        `json:"path_categories"`
	PlanFingerprint         *string                         `json:"plan_fingerprint,omitempty"`
	ProjectRef              *string                         `json:"project_ref,omitempty"`
	ProviderSignal          SelfDeployProviderSignalSummary `json:"provider_signal"`
	RepositoryRef           *string                         `json:"repository_ref,omitempty"`
	Runtime                 SelfDeployRuntimeSummary        `json:"runtime"`
	SafeError               *SelfDeploySafeError            `json:"safe_error,omitempty"`
	SafeSummary             *string                         `json:"safe_summary,omitempty"`
	SelfDeployPlanId        *string                         `json:"self_deploy_plan_id,omitempty"`
	ServicesYamlDigest      *string                         `json:"services_yaml_digest,omitempty"`
	ServicesYamlRef         *string                         `json:"services_yaml_ref,omitempty"`
	SourceRef               *string                         `json:"source_ref,omitempty"`
	UpdatedAt               *time.Time                      `json:"updated_at,omitempty"`
	Version                 *int64                          `json:"version,omitempty"`
}

// SelfDeploySummaryAvailability defines model for SelfDeploySummaryAvailability.
type SelfDeploySummaryAvailability string

// SelfDeploySummaryResponse defines model for SelfDeploySummaryResponse.
type SelfDeploySummaryResponse struct {
	CorrelationId *string           `json:"correlation_id,omitempty"`
	RequestId     string            `json:"request_id"`
	Summary       SelfDeploySummary `json:"summary"`
}

// SourceOwnerKind defines model for SourceOwnerKind.
type SourceOwnerKind string

// SourceOwnerRef defines model for SourceOwnerRef.
type SourceOwnerRef struct {
	Kind SourceOwnerKind `json:"kind"`
	Ref  *string         `json:"ref,omitempty"`
}

// ActorIdHeader defines model for ActorIdHeader.
type ActorIdHeader = string

// ActorRefQuery defines model for ActorRefQuery.
type ActorRefQuery = string

// ActorTypeHeader defines model for ActorTypeHeader.
type ActorTypeHeader string

// AgentActivityKindQuery defines model for AgentActivityKindQuery.
type AgentActivityKindQuery = AgentActivityKind

// AgentActivityStatusQuery defines model for AgentActivityStatusQuery.
type AgentActivityStatusQuery = AgentActivityStatus

// AgentRoleProfileIdQuery defines model for AgentRoleProfileIdQuery.
type AgentRoleProfileIdQuery = string

// AgentRunSessionIdQuery defines model for AgentRunSessionIdQuery.
type AgentRunSessionIdQuery = string

// AgentRunStatusQuery defines model for AgentRunStatusQuery.
type AgentRunStatusQuery = AgentRunStatus

// AgentScopeRefQuery defines model for AgentScopeRefQuery.
type AgentScopeRefQuery = string

// AgentScopeTypeQuery defines model for AgentScopeTypeQuery.
type AgentScopeTypeQuery = AgentScopeType

// AgentSessionStatusQuery defines model for AgentSessionStatusQuery.
type AgentSessionStatusQuery = AgentSessionStatus

// AssigneeKindQuery defines model for AssigneeKindQuery.
type AssigneeKindQuery = string

// AssigneeRefQuery defines model for AssigneeRefQuery.
type AssigneeRefQuery = string

// CorrelationIdQuery defines model for CorrelationIdQuery.
type CorrelationIdQuery = string

// CorrelationKindQuery defines model for CorrelationKindQuery.
type CorrelationKindQuery = string

// CorrelationRefQuery defines model for CorrelationRefQuery.
type CorrelationRefQuery = string

// CreatedAfterQuery defines model for CreatedAfterQuery.
type CreatedAfterQuery = time.Time

// CreatedBeforeQuery defines model for CreatedBeforeQuery.
type CreatedBeforeQuery = time.Time

// CreatedByActorRefQuery defines model for CreatedByActorRefQuery.
type CreatedByActorRefQuery = string

// GovernanceBranchRulesRefQuery defines model for GovernanceBranchRulesRefQuery.
type GovernanceBranchRulesRefQuery = string

// GovernanceGateRequestIdPath defines model for GovernanceGateRequestIdPath.
type GovernanceGateRequestIdPath = string

// GovernanceIntegrationDomainQuery defines model for GovernanceIntegrationDomainQuery.
type GovernanceIntegrationDomainQuery = string

// GovernanceIntegrationKindQuery defines model for GovernanceIntegrationKindQuery.
type GovernanceIntegrationKindQuery = string

// GovernanceIntegrationRefQuery defines model for GovernanceIntegrationRefQuery.
type GovernanceIntegrationRefQuery = string

// GovernanceProjectRefQuery defines model for GovernanceProjectRefQuery.
type GovernanceProjectRefQuery = string

// GovernanceReleaseCandidateRefQuery defines model for GovernanceReleaseCandidateRefQuery.
type GovernanceReleaseCandidateRefQuery = string

// GovernanceReleaseDecisionPackageIdQuery defines model for GovernanceReleaseDecisionPackageIdQuery.
type GovernanceReleaseDecisionPackageIdQuery = string

// GovernanceReleaseLineRefQuery defines model for GovernanceReleaseLineRefQuery.
type GovernanceReleaseLineRefQuery = string

// GovernanceReleasePolicyRefQuery defines model for GovernanceReleasePolicyRefQuery.
type GovernanceReleasePolicyRefQuery = string

// GovernanceRepositoryRefQuery defines model for GovernanceRepositoryRefQuery.
type GovernanceRepositoryRefQuery = string

// GovernanceServiceRefQuery defines model for GovernanceServiceRefQuery.
type GovernanceServiceRefQuery = string

// GovernanceTargetRefQuery defines model for GovernanceTargetRefQuery.
type GovernanceTargetRefQuery = string

// GovernanceTargetTypeQuery defines model for GovernanceTargetTypeQuery.
type GovernanceTargetTypeQuery = GovernanceTargetType

// IncludeDiagnosticsQuery defines model for IncludeDiagnosticsQuery.
type IncludeDiagnosticsQuery = bool

// PageSizeQuery defines model for PageSizeQuery.
type PageSizeQuery = int

// PageTokenQuery defines model for PageTokenQuery.
type PageTokenQuery = string

// ProviderPullRequestRefQuery defines model for ProviderPullRequestRefQuery.
type ProviderPullRequestRefQuery = string

// ProviderWorkItemRefQuery defines model for ProviderWorkItemRefQuery.
type ProviderWorkItemRefQuery = string

// RequestIdHeader defines model for RequestIdHeader.
type RequestIdHeader = string

// RequestIdPath defines model for RequestIdPath.
type RequestIdPath = string

// RequestKindsQuery defines model for RequestKindsQuery.
type RequestKindsQuery = []RequestKind

// RequestStatusesQuery defines model for RequestStatusesQuery.
type RequestStatusesQuery = []RequestStatus

// RunIdPath defines model for RunIdPath.
type RunIdPath = string

// ScopeRefQuery defines model for ScopeRefQuery.
type ScopeRefQuery = string

// ScopeTypeQuery defines model for ScopeTypeQuery.
type ScopeTypeQuery = ScopeType

// SelfDeployPlanStatusQuery defines model for SelfDeployPlanStatusQuery.
type SelfDeployPlanStatusQuery = SelfDeployPlanStatusFilter

// SelfDeployProjectRefQuery defines model for SelfDeployProjectRefQuery.
type SelfDeployProjectRefQuery = string

// SelfDeployProviderSignalRefQuery defines model for SelfDeployProviderSignalRefQuery.
type SelfDeployProviderSignalRefQuery = string

// SelfDeployRepositoryRefQuery defines model for SelfDeployRepositoryRefQuery.
type SelfDeployRepositoryRefQuery = string

// SessionIdHeader defines model for SessionIdHeader.
type SessionIdHeader = string

// SourceOwnerKindQuery defines model for SourceOwnerKindQuery.
type SourceOwnerKindQuery = SourceOwnerKind

// SourceOwnerRefQuery defines model for SourceOwnerRefQuery.
type SourceOwnerRefQuery = string

// TraceIdHeader defines model for TraceIdHeader.
type TraceIdHeader = string

// BadRequest defines model for BadRequest.
type BadRequest = SafeError

// Conflict defines model for Conflict.
type Conflict = SafeError

// DownstreamUnavailable defines model for DownstreamUnavailable.
type DownstreamUnavailable = SafeError

// NotFound defines model for NotFound.
type NotFound = SafeError

// PermissionDenied defines model for PermissionDenied.
type PermissionDenied = SafeError

// RateLimited defines model for RateLimited.
type RateLimited = SafeError

// Unauthorized defines model for Unauthorized.
type Unauthorized = SafeError

// ListAgentRunSummariesParams defines parameters for ListAgentRunSummaries.
type ListAgentRunSummariesParams struct {
	// ScopeType Тип области `agent-manager`.
	ScopeType AgentScopeTypeQuery `form:"scope_type" json:"scope_type"`

	// ScopeRef Safe ref области `agent-manager`.
	ScopeRef AgentScopeRefQuery `form:"scope_ref" json:"scope_ref"`

	// SessionId Safe id `AgentSession`.
	SessionId *AgentRunSessionIdQuery `form:"session_id,omitempty" json:"session_id,omitempty"`

	// RoleProfileId Safe id роли агента.
	RoleProfileId *AgentRoleProfileIdQuery `form:"role_profile_id,omitempty" json:"role_profile_id,omitempty"`

	// Status Фильтр Run по lifecycle status.
	Status *AgentRunStatusQuery `form:"status,omitempty" json:"status,omitempty"`

	// ProviderWorkItemRef Safe ref provider-native work item.
	ProviderWorkItemRef *ProviderWorkItemRefQuery `form:"provider_work_item_ref,omitempty" json:"provider_work_item_ref,omitempty"`

	// ProviderPullRequestRef Safe ref provider-native PR/MR.
	ProviderPullRequestRef *ProviderPullRequestRefQuery `form:"provider_pull_request_ref,omitempty" json:"provider_pull_request_ref,omitempty"`

	// CreatedAfter Нижняя граница времени создания.
	CreatedAfter *CreatedAfterQuery `form:"created_after,omitempty" json:"created_after,omitempty"`

	// CreatedBefore Верхняя граница времени создания.
	CreatedBefore *CreatedBeforeQuery `form:"created_before,omitempty" json:"created_before,omitempty"`
	PageSize      *PageSizeQuery      `form:"page_size,omitempty" json:"page_size,omitempty"`
	PageToken     *PageTokenQuery     `form:"page_token,omitempty" json:"page_token,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType ListAgentRunSummariesParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// ListAgentRunSummariesParamsXKodexActorType defines parameters for ListAgentRunSummaries.
type ListAgentRunSummariesParamsXKodexActorType string

// ListAgentRunActivitiesParams defines parameters for ListAgentRunActivities.
type ListAgentRunActivitiesParams struct {
	// ActivityKind Фильтр по виду safe activity entry.
	ActivityKind *AgentActivityKindQuery `form:"activity_kind,omitempty" json:"activity_kind,omitempty"`

	// Status Фильтр по статусу safe activity entry.
	Status    *AgentActivityStatusQuery `form:"status,omitempty" json:"status,omitempty"`
	PageSize  *PageSizeQuery            `form:"page_size,omitempty" json:"page_size,omitempty"`
	PageToken *PageTokenQuery           `form:"page_token,omitempty" json:"page_token,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType ListAgentRunActivitiesParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// ListAgentRunActivitiesParamsXKodexActorType defines parameters for ListAgentRunActivities.
type ListAgentRunActivitiesParamsXKodexActorType string

// GetAgentRunRuntimeStatusParams defines parameters for GetAgentRunRuntimeStatus.
type GetAgentRunRuntimeStatusParams struct {
	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType GetAgentRunRuntimeStatusParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// GetAgentRunRuntimeStatusParamsXKodexActorType defines parameters for GetAgentRunRuntimeStatus.
type GetAgentRunRuntimeStatusParamsXKodexActorType string

// ListAgentSessionsParams defines parameters for ListAgentSessions.
type ListAgentSessionsParams struct {
	// ScopeType Тип области `agent-manager`.
	ScopeType AgentScopeTypeQuery `form:"scope_type" json:"scope_type"`

	// ScopeRef Safe ref области `agent-manager`.
	ScopeRef AgentScopeRefQuery `form:"scope_ref" json:"scope_ref"`

	// Status Фильтр session по lifecycle status.
	Status *AgentSessionStatusQuery `form:"status,omitempty" json:"status,omitempty"`

	// ProviderWorkItemRef Safe ref provider-native work item.
	ProviderWorkItemRef *ProviderWorkItemRefQuery `form:"provider_work_item_ref,omitempty" json:"provider_work_item_ref,omitempty"`

	// CreatedByActorRef Safe ref actor, создавшего session.
	CreatedByActorRef *CreatedByActorRefQuery `form:"created_by_actor_ref,omitempty" json:"created_by_actor_ref,omitempty"`

	// CreatedAfter Нижняя граница времени создания.
	CreatedAfter *CreatedAfterQuery `form:"created_after,omitempty" json:"created_after,omitempty"`

	// CreatedBefore Верхняя граница времени создания.
	CreatedBefore *CreatedBeforeQuery `form:"created_before,omitempty" json:"created_before,omitempty"`
	PageSize      *PageSizeQuery      `form:"page_size,omitempty" json:"page_size,omitempty"`
	PageToken     *PageTokenQuery     `form:"page_token,omitempty" json:"page_token,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType ListAgentSessionsParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// ListAgentSessionsParamsXKodexActorType defines parameters for ListAgentSessions.
type ListAgentSessionsParamsXKodexActorType string

// GetGovernanceSummaryParams defines parameters for GetGovernanceSummary.
type GetGovernanceSummaryParams struct {
	// TargetType Тип governance target. Должен передаваться вместе с `target_ref`.
	TargetType *GovernanceTargetTypeQuery `form:"target_type,omitempty" json:"target_type,omitempty"`

	// TargetRef Safe ref governance target.
	TargetRef *GovernanceTargetRefQuery `form:"target_ref,omitempty" json:"target_ref,omitempty"`

	// ProjectRef Safe ref проекта из `project-catalog`.
	ProjectRef *GovernanceProjectRefQuery `form:"project_ref,omitempty" json:"project_ref,omitempty"`

	// RepositoryRef Safe ref репозитория из `project-catalog`.
	RepositoryRef *GovernanceRepositoryRefQuery `form:"repository_ref,omitempty" json:"repository_ref,omitempty"`

	// ServiceRef Safe ref сервиса в проектной политике.
	ServiceRef *GovernanceServiceRefQuery `form:"service_ref,omitempty" json:"service_ref,omitempty"`

	// BranchRulesRef Safe ref branch rules.
	BranchRulesRef *GovernanceBranchRulesRefQuery `form:"branch_rules_ref,omitempty" json:"branch_rules_ref,omitempty"`

	// ReleasePolicyRef Safe ref release policy.
	ReleasePolicyRef *GovernanceReleasePolicyRefQuery `form:"release_policy_ref,omitempty" json:"release_policy_ref,omitempty"`

	// ReleaseLineRef Safe ref release line.
	ReleaseLineRef *GovernanceReleaseLineRefQuery `form:"release_line_ref,omitempty" json:"release_line_ref,omitempty"`

	// ReleaseCandidateRef Safe ref кандидата релиза.
	ReleaseCandidateRef *GovernanceReleaseCandidateRefQuery `form:"release_candidate_ref,omitempty" json:"release_candidate_ref,omitempty"`

	// ReleaseDecisionPackageId Local id release decision package.
	ReleaseDecisionPackageId *GovernanceReleaseDecisionPackageIdQuery `form:"release_decision_package_id,omitempty" json:"release_decision_package_id,omitempty"`

	// IntegrationDomain Owner domain safe ref, например `provider`, `agent`, `runtime` или `governance`.
	IntegrationDomain *GovernanceIntegrationDomainQuery `form:"integration_domain,omitempty" json:"integration_domain,omitempty"`

	// IntegrationKind Тип safe ref внутри owner domain.
	IntegrationKind *GovernanceIntegrationKindQuery `form:"integration_kind,omitempty" json:"integration_kind,omitempty"`

	// IntegrationRef Safe ref owner-domain факта.
	IntegrationRef *GovernanceIntegrationRefQuery `form:"integration_ref,omitempty" json:"integration_ref,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType GetGovernanceSummaryParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// GetGovernanceSummaryParamsXKodexActorType defines parameters for GetGovernanceSummary.
type GetGovernanceSummaryParamsXKodexActorType string

// ListOwnerInboxItemsParams defines parameters for ListOwnerInboxItems.
type ListOwnerInboxItemsParams struct {
	// ScopeType Тип области interaction request.
	ScopeType ScopeTypeQuery `form:"scope_type" json:"scope_type"`

	// ScopeRef Safe ref области.
	ScopeRef ScopeRefQuery `form:"scope_ref" json:"scope_ref"`

	// RequestKind Список kind через запятую.
	RequestKind *RequestKindsQuery `form:"request_kind,omitempty" json:"request_kind,omitempty"`

	// Status Список статусов через запятую. Пустое значение оставляет default interaction-hub.
	Status             *RequestStatusesQuery    `form:"status,omitempty" json:"status,omitempty"`
	SourceOwnerKind    *SourceOwnerKindQuery    `form:"source_owner_kind,omitempty" json:"source_owner_kind,omitempty"`
	SourceOwnerRef     *SourceOwnerRefQuery     `form:"source_owner_ref,omitempty" json:"source_owner_ref,omitempty"`
	AssigneeKind       *AssigneeKindQuery       `form:"assignee_kind,omitempty" json:"assignee_kind,omitempty"`
	AssigneeRef        *AssigneeRefQuery        `form:"assignee_ref,omitempty" json:"assignee_ref,omitempty"`
	ActorRef           *ActorRefQuery           `form:"actor_ref,omitempty" json:"actor_ref,omitempty"`
	CorrelationKind    *CorrelationKindQuery    `form:"correlation_kind,omitempty" json:"correlation_kind,omitempty"`
	CorrelationRef     *CorrelationRefQuery     `form:"correlation_ref,omitempty" json:"correlation_ref,omitempty"`
	CorrelationId      *CorrelationIdQuery      `form:"correlation_id,omitempty" json:"correlation_id,omitempty"`
	IncludeDiagnostics *IncludeDiagnosticsQuery `form:"include_diagnostics,omitempty" json:"include_diagnostics,omitempty"`
	PageSize           *PageSizeQuery           `form:"page_size,omitempty" json:"page_size,omitempty"`
	PageToken          *PageTokenQuery          `form:"page_token,omitempty" json:"page_token,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType ListOwnerInboxItemsParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// ListOwnerInboxItemsParamsXKodexActorType defines parameters for ListOwnerInboxItems.
type ListOwnerInboxItemsParamsXKodexActorType string

// GetOwnerInboxItemParams defines parameters for GetOwnerInboxItem.
type GetOwnerInboxItemParams struct {
	// ScopeType Тип области interaction request.
	ScopeType ScopeTypeQuery `form:"scope_type" json:"scope_type"`

	// ScopeRef Safe ref области.
	ScopeRef           ScopeRefQuery            `form:"scope_ref" json:"scope_ref"`
	AssigneeKind       *AssigneeKindQuery       `form:"assignee_kind,omitempty" json:"assignee_kind,omitempty"`
	AssigneeRef        *AssigneeRefQuery        `form:"assignee_ref,omitempty" json:"assignee_ref,omitempty"`
	IncludeDiagnostics *IncludeDiagnosticsQuery `form:"include_diagnostics,omitempty" json:"include_diagnostics,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType GetOwnerInboxItemParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// GetOwnerInboxItemParamsXKodexActorType defines parameters for GetOwnerInboxItem.
type GetOwnerInboxItemParamsXKodexActorType string

// RespondOwnerInboxItemParams defines parameters for RespondOwnerInboxItem.
type RespondOwnerInboxItemParams struct {
	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType RespondOwnerInboxItemParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// RespondOwnerInboxItemParamsXKodexActorType defines parameters for RespondOwnerInboxItem.
type RespondOwnerInboxItemParamsXKodexActorType string

// SubmitSelfDeployGateDecisionParams defines parameters for SubmitSelfDeployGateDecision.
type SubmitSelfDeployGateDecisionParams struct {
	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType SubmitSelfDeployGateDecisionParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// SubmitSelfDeployGateDecisionParamsXKodexActorType defines parameters for SubmitSelfDeployGateDecision.
type SubmitSelfDeployGateDecisionParamsXKodexActorType string

// GetSelfDeploySummaryParams defines parameters for GetSelfDeploySummary.
type GetSelfDeploySummaryParams struct {
	// ScopeType Тип области `agent-manager`.
	ScopeType AgentScopeTypeQuery `form:"scope_type" json:"scope_type"`

	// ScopeRef Safe ref области `agent-manager`.
	ScopeRef AgentScopeRefQuery `form:"scope_ref" json:"scope_ref"`

	// ProjectRef Safe ref проекта для фильтра self-deploy plan.
	ProjectRef *SelfDeployProjectRefQuery `form:"project_ref,omitempty" json:"project_ref,omitempty"`

	// RepositoryRef Safe ref репозитория для фильтра self-deploy plan.
	RepositoryRef *SelfDeployRepositoryRefQuery `form:"repository_ref,omitempty" json:"repository_ref,omitempty"`

	// ProviderSignalRef Safe ref provider signal для фильтра self-deploy plan.
	ProviderSignalRef *SelfDeployProviderSignalRefQuery `form:"provider_signal_ref,omitempty" json:"provider_signal_ref,omitempty"`

	// Status Фильтр self-deploy plan по статусу.
	Status *SelfDeployPlanStatusQuery `form:"status,omitempty" json:"status,omitempty"`

	// XKodexRequestId Идентификатор запроса для трассировки. Gateway может заменить невалидное значение.
	XKodexRequestId *RequestIdHeader `json:"X-Kodex-Request-Id,omitempty"`

	// XKodexTraceId Безопасная ссылка на трассу.
	XKodexTraceId *TraceIdHeader `json:"X-Kodex-Trace-Id,omitempty"`

	// XKodexSessionId Безопасная ссылка на пользовательскую сессию.
	XKodexSessionId *SessionIdHeader `json:"X-Kodex-Session-Id,omitempty"`

	// XKodexActorType Тип проверенного субъекта от внешнего auth boundary.
	XKodexActorType GetSelfDeploySummaryParamsXKodexActorType `json:"X-Kodex-Actor-Type"`

	// XKodexActorId Safe id проверенного субъекта без email и имени.
	XKodexActorId ActorIdHeader `json:"X-Kodex-Actor-Id"`
}

// GetSelfDeploySummaryParamsXKodexActorType defines parameters for GetSelfDeploySummary.
type GetSelfDeploySummaryParamsXKodexActorType string

// RespondOwnerInboxItemJSONRequestBody defines body for RespondOwnerInboxItem for application/json ContentType.
type RespondOwnerInboxItemJSONRequestBody = OwnerInboxRespondRequest

// SubmitSelfDeployGateDecisionJSONRequestBody defines body for SubmitSelfDeployGateDecision for application/json ContentType.
type SubmitSelfDeployGateDecisionJSONRequestBody = SelfDeployGateDecisionRequest
