Documentation
¶
Index ¶
- type APIError
- type ActivateOrgOIDCParams
- type ActivatePolicyJSONRequestBody
- type ActivatePolicyParams
- type AdvisoryInput
- type AgentBinding
- type AgentQualification
- type AgentQualificationInput
- type AgentQualificationResponse
- type ApproveCustomProfileJSONRequestBody
- type ApproveCustomProfileParams
- type ArtifactMetadata
- type ArtifactProvenance
- type AuditEvent
- type AuditEventPage
- type Autopilot
- type AutopilotMetric
- type AutopilotUpdate
- type BootstrapJSONRequestBody
- type BootstrapParams
- type BootstrapRequest
- type BotRevalidation
- type BotRevalidationState
- type BudgetAmount
- type BudgetCaps
- type BudgetLimit
- type BudgetLimitInput
- type BudgetLimitInputPeriod
- type BudgetLimitPeriod
- type BudgetQuote
- type BudgetReservation
- type BudgetRoute
- type BudgetRouteInput
- type BudgetScope
- type BudgetScopeSnapshot
- type Campaign
- type CampaignControlInput
- type CampaignControlInputStageDecision
- type CampaignCounts
- type CampaignCreateInput
- type CampaignInput
- type CampaignInputKind
- type CampaignInputSuccess
- type CampaignMember
- type CampaignMemberInput
- type CampaignMemberPage
- type CampaignPage
- type CampaignPreview
- type CampaignWindow
- type CancelCampaignJSONRequestBody
- type CancelCampaignParams
- type CancelDeploymentParams
- type CancelGitHubAppSetupParams
- type CancelGitOpsPromotionParams
- type CancelInventoryJobParams
- type CancelMergeOperationParams
- type CancelTaskParams
- type Capability
- type CapabilityState
- type ChangeState
- type CompletePrivateGrantJSONRequestBody
- type CompletePrivateGrantParams
- type Connection
- type ConnectionCapability
- type ConnectionCreate
- type ConnectionPage
- type ConnectionSettings
- type ConnectionSettingsManaged
- type ConnectionUpdate
- type ContinueGitOpsPromotionParams
- type CreateAgentsConnectionJSONRequestBody
- type CreateAgentsConnectionParams
- type CreateCampaignJSONRequestBody
- type CreateCampaignParams
- type CreateConnectionJSONRequestBody
- type CreateConnectionParams
- type CreateCustomProfileJSONRequestBody
- type CreateDeliveryConnectionJSONRequestBody
- type CreateDeliveryConnectionParams
- type CreateForgesConnectionJSONRequestBody
- type CreateForgesConnectionParams
- type CreateModelsConnectionJSONRequestBody
- type CreateModelsConnectionParams
- type CreateOrgOIDCInvitationJSONRequestBody
- type CreateOrgOIDCInvitationParams
- type CreatePolicyVersionJSONRequestBody
- type CreatePolicyVersionParams
- type CreateRunnerEnrollmentParams
- type CreateRunnerPoolJSONRequestBody
- type CreateRunnerPoolParams
- type CreatedOrgOIDCInvitation
- type CreatedOrgOIDCInvitationRole
- type CredentialRotation
- type CustomProfile
- type CustomProfileApproval
- type CustomProfileInput
- type CustomProfilePage
- type Decision
- type DecisionOutcome
- type DeleteConnectionParams
- type DeleteMembershipParams
- type DeleteTeamParams
- type DeliveryPipelineRequest
- type DeliveryQualification
- type DeliveryWorkflow
- type DeploymentConfiguration
- type DeploymentConfigurationMode
- type DeploymentConfigurationPage
- type DeploymentDetail
- type DeploymentGate
- type DeploymentHealth
- type DeploymentOperation
- type DeploymentOperationCancelState
- type DeploymentOperationPage
- type DeploymentPreviewInput
- type DeploymentRequestInput
- type DeploymentState
- type DeploymentTrackInput
- type DisableOrgOIDCParams
- type DiscoveryScan
- type DiscoveryScanState
- type EnqueueRepairJSONRequestBody
- type EnqueueRepairParams
- type EnqueueTaskJSONRequestBody
- type EnqueueTaskParams
- type EnrollRunnerJSONBody
- type EnrollRunnerJSONRequestBody
- type EnrollmentToken
- type Event
- type EventPage
- type ExportAuditPageParams
- type Finding
- type FindingPage
- type FindingSeverity
- type FindingState
- type FindingUpdate
- type FindingUpdateAction
- type ForgeApproval
- type ForgeChange
- type ForgeCheck
- type ForgeCheckRule
- type ForgeMergeCapabilities
- type ForgeMergeResult
- type ForgeNativeEligibility
- type ForgeQueueState
- type ForgeRepoRef
- type ForgeRepository
- type ForgeRules
- type GetBudgetRouteParams
- type GetEffectivePolicyParams
- type GitHubAppPending
- type GitHubAppPendingPhase
- type GitHubAppSetup
- type GitHubAppSetupCreate
- type GitHubAppStatus
- type GitHubAppStatusMode
- type GitOpsConfiguration
- type GitOpsConfigurationPage
- type GitOpsDetail
- type GitOpsGate
- type GitOpsHealth
- type GitOpsPreviewInput
- type GitOpsPromotion
- type GitOpsPromotionPage
- type GithubAppWebhookJSONBody
- type GithubAppWebhookJSONRequestBody
- type GithubAppWebhookParams
- type GithubInstallCallbackParams
- type GithubManifestCallbackParams
- type GithubOAuthCallbackParams
- type Health
- type ImportAdvisoryJSONRequestBody
- type ImportInventoryCandidatesJSONRequestBody
- type ImportInventoryCandidatesParams
- type InventoryCandidatePage
- type InventoryChangePage
- type InventoryImportInput
- type InventoryJob
- type InventoryJobKind
- type InventoryJobPage
- type InventoryJobState
- type InventorySyncInput
- type InventoryWebhook
- type InvitationAuthorization
- type InvokeRunnerOperationJSONBody
- type InvokeRunnerOperationJSONRequestBody
- type IssuedInventoryWebhook
- type ListAgentsConnectionsParams
- type ListAuditEventsParams
- type ListBotRevalidationsParams
- type ListCampaignMembersParams
- type ListCampaignsParams
- type ListConnectionsParams
- type ListCustomProfilesParams
- type ListDeliveryConnectionsParams
- type ListDeploymentsParams
- type ListFindingsParams
- type ListForgesConnectionsParams
- type ListGitOpsPromotionsParams
- type ListInventoryCandidatesParams
- type ListInventoryChangesParams
- type ListInventoryJobsParams
- type ListMembershipsParams
- type ListMergeOperationsParams
- type ListModelCatalogJSONRequestBody
- type ListModelCatalogParams
- type ListModelsConnectionsParams
- type ListOrgOIDCInvitationsParams
- type ListPolicyVersionsParams
- type ListRunnerPoolsParams
- type ListRunnerPoolsParamsState
- type ListRunnersParams
- type ListTasksParams
- type ListTeamsParams
- type ListUsageParams
- type LogoutParams
- type MaintenanceBotConfig
- type MaintenanceBotIdentity
- type MaintenanceBotIdentityKind
- type MaintenanceBotStatus
- type MaintenanceBotStatusAutomerge
- type MaintenanceConfig
- type MaintenanceConfigMergeAuthority
- type MaintenanceDependency
- type MaintenanceEvidence
- type Membership
- type MembershipInput
- type MembershipPage
- type MergeCompanion
- type MergeConfiguration
- type MergeGate
- type MergeOperation
- type MergeOperationPage
- type MergePreviewRequest
- type MergeQualification
- type MergeRequestInput
- type MergeSnapshot
- type Meta
- type MetaEdition
- type ModelCatalog
- type ModelCatalogItem
- type ModelCatalogRequest
- type ModelCatalogRequestProvider
- type ModelCatalogSettings
- type ModelCatalogSettingsAuthKind
- type ModelCatalogSettingsBillingRoute
- type ModelMessage
- type ModelTool
- type ModelToolCall
- type ModelTurn
- type ModelTurnResult
- type ModelUsage
- type NativeDeliveryWorkflow
- type NativeDeploymentGates
- type NativeDeploymentStatus
- type ObserveDeploymentParams
- type ObserveGitOpsPromotionParams
- type OidcCallbackParams
- type OrgOIDCInput
- type OrgOIDCInvitation
- type OrgOIDCInvitationInput
- type OrgOIDCInvitationInputRole
- type OrgOIDCInvitationPage
- type OrgOIDCInvitationRole
- type OrgOIDCSettings
- type OrgOIDCSettingsStatus
- type Organisation
- type Overview
- type OverviewAttention
- type OverviewCapacity
- type OverviewCounts
- type OverviewDay
- type OverviewPortfolioRow
- type OverviewSeverity
- type Pause
- type PauseCampaignJSONRequestBody
- type PauseCampaignParams
- type PauseInput
- type PinnedSnapshot
- type PolicyActivateRequest
- type PolicyBindingVersion
- type PolicyDefaults
- type PolicyDocument
- type PolicyDocumentReviewProofs
- type PolicyDocumentSchema
- type PolicyEvidence
- type PolicyEvidenceBinding
- type PolicyInput
- type PolicyInputStage
- type PolicyLayer
- type PolicyLimits
- type PolicyLists
- type PolicyRequirement
- type PolicyResult
- type PolicyResultOutcome
- type PolicyScope
- type PolicyScopeKind
- type PolicySimulateRequest
- type PolicySimulation
- type PolicyVersion
- type PolicyVersionCreate
- type PolicyVersionPage
- type PollPrivateGrantJSONBody
- type PollPrivateGrantJSONRequestBody
- type PreviewCampaignJSONRequestBody
- type PreviewCampaignParams
- type PreviewDeploymentJSONRequestBody
- type PreviewDeploymentParams
- type PreviewGitOpsMergeJSONRequestBody
- type PreviewGitOpsMergeParams
- type PreviewGitOpsPromotionJSONRequestBody
- type PreviewGitOpsPromotionParams
- type PreviewProtectedMergeJSONRequestBody
- type PreviewProtectedMergeParams
- type PreviewRepairJSONRequestBody
- type PreviewRepairParams
- type PrivateCompletion
- type PrivateGrant
- type PrivateOperation
- type PrivateOperationKind
- type PrivateRoute
- type PrivateRouteChange
- type ProbeOrgOIDCParams
- type PutAgentQualificationJSONRequestBody
- type PutBudgetJSONRequestBody
- type PutBudgetParams
- type PutBudgetRouteJSONRequestBody
- type PutBudgetRouteParams
- type PutDeploymentConfigurationJSONRequestBody
- type PutDeploymentConfigurationParams
- type PutGitOpsConfigurationJSONRequestBody
- type PutGitOpsConfigurationParams
- type PutMaintenanceConfigJSONRequestBody
- type PutMaintenanceConfigParams
- type PutMembershipJSONRequestBody
- type PutMembershipParams
- type PutMergeConfigurationJSONRequestBody
- type PutMergeConfigurationParams
- type PutOrgOIDCJSONRequestBody
- type PutOrgOIDCParams
- type PutTeamJSONRequestBody
- type PutTeamParams
- type ReceiveForgeWebhookJSONBody
- type ReceiveForgeWebhookJSONRequestBody
- type ReconcileMergeOperationParams
- type ReconcileRepairParams
- type RedeemOrgOIDCInvitationFormdataBody
- type RedeemOrgOIDCInvitationFormdataRequestBody
- type RedeemOrgOIDCInvitationParams
- type RepairCheck
- type RepairCommand
- type RepairExecution
- type RepairInput
- type RepairPatch
- type RepairPlan
- type RepairPreview
- type RepairPublication
- type RepairRecipe
- type RepairReport
- type RepairRun
- type ReplayEventsParams
- type RepositoriesParams
- type Repository
- type RepositoryPage
- type RepositoryProvider
- type RequestDeploymentJSONRequestBody
- type RequestDeploymentParams
- type RequestGitOpsMergeJSONRequestBody
- type RequestGitOpsMergeParams
- type RequestGitOpsPromotionJSONRequestBody
- type RequestGitOpsPromotionParams
- type RequestProtectedMergeJSONRequestBody
- type RequestProtectedMergeParams
- type ResolvedPolicy
- type ResumeCampaignJSONRequestBody
- type ResumeCampaignParams
- type ResumeTaskParams
- type RevokeConnectionParams
- type RevokeCustomProfileParams
- type RevokeInventoryWebhookParams
- type RevokeOrgOIDCInvitationParams
- type RevokeRunnerParams
- type RevokeSessionsParams
- type RewrapCredentialParams
- type Role
- type RotateCredentialJSONRequestBody
- type RotateCredentialParams
- type RotateInventoryWebhookParams
- type RunRepositoryParams
- type Runner
- type RunnerAssignment
- type RunnerCompletion
- type RunnerCompletionOutcome
- type RunnerCredential
- type RunnerHeartbeat
- type RunnerModelTurnJSONRequestBody
- type RunnerPage
- type RunnerPool
- type RunnerPoolInput
- type RunnerPoolInputState
- type RunnerPoolPage
- type RunnerPoolState
- type RunnerProgressJSONBody
- type RunnerProgressJSONRequestBody
- type RunnerRecordNativeChecksJSONRequestBody
- type RunnerRepairPublishJSONRequestBody
- type RunnerRepairReportJSONRequestBody
- type RunnerResultJSONRequestBody
- type SeriesUsageParams
- type Session
- type SetPauseJSONRequestBody
- type SetPauseParams
- type SetPrivateRouteJSONRequestBody
- type SetPrivateRouteParams
- type Setup
- type SetupStep
- type SetupStepId
- type SignedArtifactProvenance
- type SimulatePolicyJSONRequestBody
- type SimulatePolicyParams
- type SourceFile
- type StartCampaignJSONRequestBody
- type StartCampaignParams
- type StartGitHubAppSetupJSONRequestBody
- type StartGitHubAppSetupParams
- type StartInventorySyncJSONRequestBody
- type StartInventorySyncParams
- type StreamEventsParams
- type SubmitDeploymentHealthJSONRequestBody
- type SubmitDeploymentHealthParams
- type SubmitGitOpsHealthJSONRequestBody
- type SubmitGitOpsHealthParams
- type SummarizeUsageParams
- type Task
- type TaskCreate
- type TaskPage
- type TaskState
- type Team
- type TeamInput
- type TeamPage
- type TestConnectionParams
- type TrackDeploymentJSONRequestBody
- type TrackDeploymentParams
- type UpdateAutopilotJSONRequestBody
- type UpdateAutopilotParams
- type UpdateConnectionJSONRequestBody
- type UpdateConnectionParams
- type UpdateFindingJSONRequestBody
- type UpdateFindingParams
- type UpdateRunnerPoolJSONRequestBody
- type UpdateRunnerPoolParams
- type UploadRunnerArtifactJSONBody
- type UploadRunnerArtifactJSONRequestBody
- type UploadRunnerArtifactParams
- type UploadRunnerArtifactTextBody
- type UploadRunnerArtifactTextRequestBody
- type UsageDay
- type UsageEntry
- type UsagePage
- type UsageProvider
- type UsageSeries
- type UsageSummary
- type WorkflowLease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateOrgOIDCParams ¶
type ActivatePolicyJSONRequestBody ¶
type ActivatePolicyJSONRequestBody = PolicyActivateRequest
type ActivatePolicyParams ¶
type AdvisoryInput ¶
type AdvisoryInput struct {
AdvisoryId string `json:"advisory_id"`
AffectedRange string `json:"affected_range"`
CommitSha string `json:"commit_sha"`
Ecosystem string `json:"ecosystem"`
Package string `json:"package"`
Path string `json:"path"`
ReferenceUrl string `json:"reference_url"`
RepositoryId string `json:"repository_id"`
Severity string `json:"severity"`
Title string `json:"title"`
}
type AgentBinding ¶
type AgentBinding struct {
AccountId string `json:"account_id"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int `json:"connection_version"`
CredentialVersion int `json:"credential_version"`
Deployment string `json:"deployment"`
Model string `json:"model"`
OrgId string `json:"org_id"`
RunnerId *string `json:"runner_id,omitempty"`
RuntimeDigest string `json:"runtime_digest"`
}
type AgentQualification ¶
type AgentQualification struct {
AuthCustody bool `json:"auth_custody"`
Binding AgentBinding `json:"binding"`
CheckedAt string `json:"checked_at"`
Entitlement bool `json:"entitlement"`
EvidenceId string `json:"evidence_id"`
ExpiresAt string `json:"expires_at"`
NativeToolContainment bool `json:"native_tool_containment"`
NoPaidOverage bool `json:"no_paid_overage"`
Quota bool `json:"quota"`
Terms bool `json:"terms"`
Topology bool `json:"topology"`
}
type AgentQualificationInput ¶
type AgentQualificationInput struct {
AuthCustody bool `json:"auth_custody"`
CheckedAt string `json:"checked_at"`
Entitlement bool `json:"entitlement"`
EvidenceId string `json:"evidence_id"`
ExpiresAt string `json:"expires_at"`
NativeToolContainment bool `json:"native_tool_containment"`
NoPaidOverage bool `json:"no_paid_overage"`
Quota bool `json:"quota"`
Terms bool `json:"terms"`
Topology bool `json:"topology"`
}
type AgentQualificationResponse ¶
type AgentQualificationResponse struct {
Capabilities map[string]Capability `json:"capabilities"`
Qualification *AgentQualification `json:"qualification,omitempty"`
}
type ApproveCustomProfileJSONRequestBody ¶
type ApproveCustomProfileJSONRequestBody = CustomProfileApproval
type ApproveCustomProfileParams ¶
type ApproveCustomProfileParams struct {
IfMatch string `json:"If-Match"`
}
type ArtifactMetadata ¶
type ArtifactMetadata struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
MediaType string `json:"media_type"`
Name string `json:"name"`
OrgId string `json:"org_id"`
RepositoryId string `json:"repository_id"`
Sha256 string `json:"sha256"`
Size int64 `json:"size"`
TaskId string `json:"task_id"`
}
type ArtifactProvenance ¶
type ArtifactProvenance struct {
ArtifactDigest string `json:"artifact_digest"`
BuildId string `json:"build_id"`
ExpiresAt time.Time `json:"expires_at"`
IssuedAt time.Time `json:"issued_at"`
OrgId string `json:"org_id"`
RepositoryId string `json:"repository_id"`
SourceSha string `json:"source_sha"`
}
type AuditEvent ¶
type AuditEvent struct {
Action string `json:"action"`
ActorId string `json:"actor_id"`
CreatedAt time.Time `json:"created_at"`
Data map[string]interface{} `json:"data"`
Id string `json:"id"`
ObjectId string `json:"object_id"`
RepositoryId *string `json:"repository_id,omitempty"`
RequestId string `json:"request_id"`
}
type AuditEventPage ¶
type AuditEventPage struct {
Complete bool `json:"complete"`
Items []AuditEvent `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type Autopilot ¶
type Autopilot struct {
Active int `json:"active"`
Awaiting int `json:"awaiting"`
Blocked int `json:"blocked"`
CheckedAt *time.Time `json:"checked_at,omitempty"`
Enabled bool `json:"enabled"`
Queued int `json:"queued"`
Skipped int `json:"skipped"`
Status string `json:"status"`
Version int64 `json:"version"`
}
type AutopilotMetric ¶
type AutopilotMetric struct {
AutoMerged int `json:"auto_merged"`
Blocked int `json:"blocked"`
Class string `json:"class"`
Fixed int `json:"fixed"`
MedianHoursToFix *float32 `json:"median_hours_to_fix,omitempty"`
Open int `json:"open"`
Regressed int `json:"regressed"`
Repository string `json:"repository"`
RepositoryId string `json:"repository_id"`
Reverted int `json:"reverted"`
}
type AutopilotUpdate ¶
type AutopilotUpdate struct {
Enabled bool `json:"enabled"`
}
type BootstrapJSONRequestBody ¶
type BootstrapJSONRequestBody = BootstrapRequest
type BootstrapParams ¶
type BootstrapParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type BootstrapRequest ¶
type BotRevalidation ¶
type BotRevalidationState ¶
type BotRevalidationState string
const ( BotRevalidationStateBlocked BotRevalidationState = "blocked" BotRevalidationStateClosed BotRevalidationState = "closed" BotRevalidationStateMerged BotRevalidationState = "merged" BotRevalidationStatePending BotRevalidationState = "pending" BotRevalidationStateReady BotRevalidationState = "ready" BotRevalidationStateWaitingCompanion BotRevalidationState = "waiting_companion" )
func (BotRevalidationState) Valid ¶
func (e BotRevalidationState) Valid() bool
type BudgetAmount ¶
type BudgetCaps ¶
type BudgetLimit ¶
type BudgetLimit struct {
Caps BudgetCaps `json:"caps"`
End *time.Time `json:"end,omitempty"`
Held BudgetAmount `json:"held"`
Paused bool `json:"paused"`
Period BudgetLimitPeriod `json:"period"`
Scope BudgetScope `json:"scope"`
Spent BudgetAmount `json:"spent"`
Start *time.Time `json:"start,omitempty"`
Version int64 `json:"version"`
}
type BudgetLimitInput ¶
type BudgetLimitInput struct {
Caps BudgetCaps `json:"caps"`
End *time.Time `json:"end,omitempty"`
Paused bool `json:"paused"`
Period BudgetLimitInputPeriod `json:"period"`
Start *time.Time `json:"start,omitempty"`
}
type BudgetLimitInputPeriod ¶
type BudgetLimitInputPeriod string
const ( BudgetLimitInputPeriodCustom BudgetLimitInputPeriod = "custom" BudgetLimitInputPeriodDaily BudgetLimitInputPeriod = "daily" BudgetLimitInputPeriodMonthly BudgetLimitInputPeriod = "monthly" )
func (BudgetLimitInputPeriod) Valid ¶
func (e BudgetLimitInputPeriod) Valid() bool
type BudgetLimitPeriod ¶
type BudgetLimitPeriod string
const ( BudgetLimitPeriodCustom BudgetLimitPeriod = "custom" BudgetLimitPeriodDaily BudgetLimitPeriod = "daily" BudgetLimitPeriodMonthly BudgetLimitPeriod = "monthly" )
func (BudgetLimitPeriod) Valid ¶
func (e BudgetLimitPeriod) Valid() bool
type BudgetQuote ¶
type BudgetQuote struct {
InputTokens int64 `json:"input_tokens"`
MaxMilliseconds int64 `json:"max_milliseconds"`
MaxOutputTokens int64 `json:"max_output_tokens"`
MaxRequests int64 `json:"max_requests"`
Model string `json:"model"`
OperationId string `json:"operation_id"`
Route string `json:"route"`
RouteVersion int64 `json:"route_version"`
}
type BudgetReservation ¶
type BudgetReservation struct {
Actual *BudgetAmount `json:"actual,omitempty"`
CampaignId *string `json:"campaign_id,omitempty"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
CreatedAt time.Time `json:"created_at"`
Debt BudgetAmount `json:"debt"`
DispatchedAt *time.Time `json:"dispatched_at,omitempty"`
Id string `json:"id"`
Lease WorkflowLease `json:"lease"`
Maximum BudgetAmount `json:"maximum"`
Quote BudgetQuote `json:"quote"`
Reference *string `json:"reference,omitempty"`
Route BudgetRoute `json:"route"`
Scopes []BudgetScopeSnapshot `json:"scopes"`
State string `json:"state"`
}
type BudgetRoute ¶
type BudgetRoute struct {
ConnectionId string `json:"connection_id"`
InputMicroUsdPerMillion int64 `json:"input_micro_usd_per_million"`
MaxInputTokens int64 `json:"max_input_tokens"`
MaxMilliseconds int64 `json:"max_milliseconds"`
MaxOutputTokens int64 `json:"max_output_tokens"`
MaxRequests int64 `json:"max_requests"`
Mode string `json:"mode"`
Model string `json:"model"`
Name string `json:"name"`
OutputMicroUsdPerMillion int64 `json:"output_micro_usd_per_million"`
Paused bool `json:"paused"`
PricingVersion string `json:"pricing_version"`
QualificationRef string `json:"qualification_ref"`
Qualified bool `json:"qualified"`
RequestMicroUsd int64 `json:"request_micro_usd"`
Version int64 `json:"version"`
}
type BudgetRouteInput ¶
type BudgetRouteInput struct {
InputMicroUsdPerMillion int64 `json:"input_micro_usd_per_million"`
MaxInputTokens int64 `json:"max_input_tokens"`
MaxMilliseconds int64 `json:"max_milliseconds"`
MaxOutputTokens int64 `json:"max_output_tokens"`
MaxRequests int64 `json:"max_requests"`
Mode string `json:"mode"`
Model string `json:"model"`
Name string `json:"name"`
OutputMicroUsdPerMillion int64 `json:"output_micro_usd_per_million"`
Paused bool `json:"paused"`
PricingVersion string `json:"pricing_version"`
RequestMicroUsd int64 `json:"request_micro_usd"`
}
type BudgetScope ¶
type BudgetScopeSnapshot ¶
type BudgetScopeSnapshot struct {
PeriodStart time.Time `json:"period_start"`
Scope BudgetScope `json:"scope"`
Version int64 `json:"version"`
}
type Campaign ¶
type Campaign struct {
Counts CampaignCounts `json:"counts"`
CreatedAt time.Time `json:"created_at"`
GrantExpiresAt time.Time `json:"grant_expires_at"`
Id string `json:"id"`
Kind string `json:"kind"`
Name string `json:"name"`
ObservingSince *time.Time `json:"observing_since,omitempty"`
Reason string `json:"reason"`
RequestedBy string `json:"requested_by"`
Spec CampaignInput `json:"spec"`
Stage int `json:"stage"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type CampaignControlInput ¶
type CampaignControlInput struct {
Reason string `json:"reason"`
StageDecision *CampaignControlInputStageDecision `json:"stage_decision,omitempty"`
}
type CampaignControlInputStageDecision ¶
type CampaignControlInputStageDecision string
const (
ContinueCurrentStage CampaignControlInputStageDecision = "continue_current_stage"
)
func (CampaignControlInputStageDecision) Valid ¶
func (e CampaignControlInputStageDecision) Valid() bool
type CampaignCounts ¶
type CampaignCreateInput ¶
type CampaignInput ¶
type CampaignInput struct {
BatchSize int `json:"batch_size"`
CanaryIds []string `json:"canary_ids"`
CanarySize int `json:"canary_size"`
Concurrency int `json:"concurrency"`
FailureLimit int `json:"failure_limit"`
FailurePercent int `json:"failure_percent"`
Kind CampaignInputKind `json:"kind"`
Members []CampaignMemberInput `json:"members"`
Name string `json:"name"`
NotBefore *time.Time `json:"not_before,omitempty"`
ObservationSeconds int64 `json:"observation_seconds"`
Selection string `json:"selection"`
Success CampaignInputSuccess `json:"success"`
Windows []CampaignWindow `json:"windows"`
}
type CampaignInputKind ¶
type CampaignInputKind string
const ( CampaignInputKindGitops CampaignInputKind = "gitops" CampaignInputKindPipeline CampaignInputKind = "pipeline" CampaignInputKindRepair CampaignInputKind = "repair" )
func (CampaignInputKind) Valid ¶
func (e CampaignInputKind) Valid() bool
type CampaignInputSuccess ¶
type CampaignInputSuccess string
const ( CampaignInputSuccessHealthy CampaignInputSuccess = "healthy" CampaignInputSuccessMerged CampaignInputSuccess = "merged" CampaignInputSuccessPublished CampaignInputSuccess = "published" )
func (CampaignInputSuccess) Valid ¶
func (e CampaignInputSuccess) Valid() bool
type CampaignMember ¶
type CampaignMember struct {
ActionId *string `json:"action_id,omitempty"`
Canary bool `json:"canary"`
Group string `json:"group"`
Halt bool `json:"halt"`
Id string `json:"id"`
Input CampaignMemberInput `json:"input"`
Pins map[string]string `json:"pins"`
Reason string `json:"reason"`
Repositories []string `json:"repositories"`
RepositoryId string `json:"repository_id"`
RepositoryName string `json:"repository_name"`
Stage int `json:"stage"`
State string `json:"state"`
SucceededAt *time.Time `json:"succeeded_at,omitempty"`
}
type CampaignMemberInput ¶
type CampaignMemberInput struct {
Environment *string `json:"environment,omitempty"`
Gitops *GitOpsPreviewInput `json:"gitops,omitempty"`
Pipeline *DeploymentPreviewInput `json:"pipeline,omitempty"`
Repair *RepairInput `json:"repair,omitempty"`
RepositoryId string `json:"repository_id"`
}
type CampaignMemberPage ¶
type CampaignMemberPage struct {
Complete bool `json:"complete"`
Items []CampaignMember `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type CampaignPage ¶
type CampaignPreview ¶
type CampaignPreview struct {
Blockers []string `json:"blockers"`
ExpiresAt time.Time `json:"expires_at"`
Hash string `json:"hash"`
Id string `json:"id"`
Input CampaignInput `json:"input"`
Members []CampaignMember `json:"members"`
}
type CampaignWindow ¶
type CancelCampaignJSONRequestBody ¶
type CancelCampaignJSONRequestBody = CampaignControlInput
type CancelCampaignParams ¶
type CancelDeploymentParams ¶
type CancelGitHubAppSetupParams ¶
type CancelGitHubAppSetupParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CancelTaskParams ¶
type Capability ¶
type CapabilityState ¶
type CapabilityState string
const ( CapabilityStateSupported CapabilityState = "supported" CapabilityStateUnknown CapabilityState = "unknown" CapabilityStateUnsupported CapabilityState = "unsupported" )
func (CapabilityState) Valid ¶
func (e CapabilityState) Valid() bool
type ChangeState ¶
type ChangeState string
const ( ChangeStateBlocked ChangeState = "blocked" ChangeStateClosed ChangeState = "closed" ChangeStateDraft ChangeState = "draft" ChangeStateEligible ChangeState = "eligible" ChangeStateEvaluating ChangeState = "evaluating" ChangeStateMergeRequested ChangeState = "merge_requested" ChangeStateMerged ChangeState = "merged" ChangeStateOpen ChangeState = "open" ChangeStateQueued ChangeState = "queued" ChangeStateReconciling ChangeState = "reconciling" )
func (ChangeState) Valid ¶
func (e ChangeState) Valid() bool
type CompletePrivateGrantJSONRequestBody ¶
type CompletePrivateGrantJSONRequestBody = PrivateCompletion
type CompletePrivateGrantParams ¶
type CompletePrivateGrantParams struct {
XPrivateResultCapability string `json:"X-Private-Result-Capability"`
}
type Connection ¶
type Connection struct {
Capabilities map[string]ConnectionCapability `json:"capabilities"`
CredentialVersion int64 `json:"credential_version"`
Endpoint string `json:"endpoint"`
Id string `json:"id"`
KeyConfirmedAt *time.Time `json:"key_confirmed_at,omitempty"`
Kind string `json:"kind"`
Name string `json:"name"`
OrgId string `json:"org_id"`
PrivateRoute *PrivateRoute `json:"private_route,omitempty"`
Provider string `json:"provider"`
Reason string `json:"reason"`
ServerVersion string `json:"server_version"`
Settings ConnectionSettings `json:"settings"`
State string `json:"state"`
VerifiedAt *time.Time `json:"verified_at"`
Version int64 `json:"version"`
}
type ConnectionCapability ¶
type ConnectionCreate ¶
type ConnectionCreate struct {
Endpoint string `json:"endpoint"`
Kind string `json:"kind"`
Name string `json:"name"`
PrivateRoute *PrivateRoute `json:"private_route,omitempty"`
Provider string `json:"provider"`
Secret *string `json:"secret,omitempty"`
Settings ConnectionSettings `json:"settings"`
}
type ConnectionPage ¶
type ConnectionPage struct {
Complete bool `json:"complete"`
Items []Connection `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type ConnectionSettings ¶
type ConnectionSettings struct {
AllowedModels *[]string `json:"allowed_models,omitempty"`
AppId *string `json:"app_id,omitempty"`
AuthKind string `json:"auth_kind"`
BillingRoute string `json:"billing_route"`
CaPem *string `json:"ca_pem,omitempty"`
InstallationId *string `json:"installation_id,omitempty"`
Managed *ConnectionSettingsManaged `json:"managed,omitempty"`
Model *string `json:"model,omitempty"`
Namespace *string `json:"namespace,omitempty"`
Profile *string `json:"profile,omitempty"`
RuntimeVersion *string `json:"runtime_version,omitempty"`
WebhookPending *bool `json:"webhook_pending,omitempty"`
}
type ConnectionSettingsManaged ¶
type ConnectionSettingsManaged string
const ( GithubHosted ConnectionSettingsManaged = "github_hosted" GithubManifest ConnectionSettingsManaged = "github_manifest" )
func (ConnectionSettingsManaged) Valid ¶
func (e ConnectionSettingsManaged) Valid() bool
type ConnectionUpdate ¶
type ContinueGitOpsPromotionParams ¶
type ContinueGitOpsPromotionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateAgentsConnectionJSONRequestBody ¶
type CreateAgentsConnectionJSONRequestBody = ConnectionCreate
type CreateAgentsConnectionParams ¶
type CreateAgentsConnectionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateCampaignJSONRequestBody ¶
type CreateCampaignJSONRequestBody = CampaignCreateInput
type CreateCampaignParams ¶
type CreateCampaignParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateConnectionJSONRequestBody ¶
type CreateConnectionJSONRequestBody = ConnectionCreate
type CreateConnectionParams ¶
type CreateConnectionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateCustomProfileJSONRequestBody ¶
type CreateCustomProfileJSONRequestBody = CustomProfileInput
type CreateDeliveryConnectionJSONRequestBody ¶
type CreateDeliveryConnectionJSONRequestBody = ConnectionCreate
type CreateDeliveryConnectionParams ¶
type CreateDeliveryConnectionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateForgesConnectionJSONRequestBody ¶
type CreateForgesConnectionJSONRequestBody = ConnectionCreate
type CreateForgesConnectionParams ¶
type CreateForgesConnectionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateModelsConnectionJSONRequestBody ¶
type CreateModelsConnectionJSONRequestBody = ConnectionCreate
type CreateModelsConnectionParams ¶
type CreateModelsConnectionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateOrgOIDCInvitationJSONRequestBody ¶
type CreateOrgOIDCInvitationJSONRequestBody = OrgOIDCInvitationInput
type CreatePolicyVersionJSONRequestBody ¶
type CreatePolicyVersionJSONRequestBody = PolicyVersionCreate
type CreatePolicyVersionParams ¶
type CreatePolicyVersionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateRunnerEnrollmentParams ¶
type CreateRunnerEnrollmentParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreateRunnerPoolJSONRequestBody ¶
type CreateRunnerPoolJSONRequestBody = RunnerPoolInput
type CreateRunnerPoolParams ¶
type CreateRunnerPoolParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type CreatedOrgOIDCInvitationRole ¶
type CreatedOrgOIDCInvitationRole string
const ( CreatedOrgOIDCInvitationRoleAdmin CreatedOrgOIDCInvitationRole = "admin" CreatedOrgOIDCInvitationRoleMaintainer CreatedOrgOIDCInvitationRole = "maintainer" CreatedOrgOIDCInvitationRoleOwner CreatedOrgOIDCInvitationRole = "owner" CreatedOrgOIDCInvitationRoleReviewer CreatedOrgOIDCInvitationRole = "reviewer" CreatedOrgOIDCInvitationRoleViewer CreatedOrgOIDCInvitationRole = "viewer" )
func (CreatedOrgOIDCInvitationRole) Valid ¶
func (e CreatedOrgOIDCInvitationRole) Valid() bool
type CredentialRotation ¶
type CredentialRotation struct {
Secret *string `json:"secret,omitempty"`
}
type CustomProfile ¶
type CustomProfile struct {
ApprovalEvidence string `json:"approval_evidence"`
ApprovedAt *string `json:"approved_at,omitempty"`
ApprovedBy *string `json:"approved_by,omitempty"`
Argv []string `json:"argv"`
Concurrency int `json:"concurrency"`
CreatedAt string `json:"created_at"`
Executable string `json:"executable"`
Id string `json:"id"`
ImageDigest string `json:"image_digest"`
MaxOutputBytes int `json:"max_output_bytes"`
MaxTurns int `json:"max_turns"`
MaxWallSeconds int `json:"max_wall_seconds"`
Name string `json:"name"`
ProtocolVersion int `json:"protocol_version"`
RevokedAt *string `json:"revoked_at,omitempty"`
Version int `json:"version"`
}
type CustomProfileApproval ¶
type CustomProfileApproval struct {
Evidence string `json:"evidence"`
}
type CustomProfileInput ¶
type CustomProfileInput struct {
Argv []string `json:"argv"`
Concurrency int `json:"concurrency"`
Executable string `json:"executable"`
ImageDigest string `json:"image_digest"`
MaxOutputBytes int `json:"max_output_bytes"`
MaxTurns int `json:"max_turns"`
MaxWallSeconds int `json:"max_wall_seconds"`
Name string `json:"name"`
ProtocolVersion int `json:"protocol_version"`
}
type CustomProfilePage ¶
type CustomProfilePage struct {
Complete bool `json:"complete"`
Items []CustomProfile `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type Decision ¶
type Decision struct {
Blockers []string `json:"blockers"`
Outcome DecisionOutcome `json:"outcome"`
PolicyHash string `json:"policy_hash"`
RequiredActions []string `json:"required_actions"`
Rules []string `json:"rules"`
}
type DecisionOutcome ¶
type DecisionOutcome string
const ( DecisionOutcomeAllow DecisionOutcome = "allow" DecisionOutcomeDeny DecisionOutcome = "deny" DecisionOutcomeUnknown DecisionOutcome = "unknown" )
func (DecisionOutcome) Valid ¶
func (e DecisionOutcome) Valid() bool
type DeleteConnectionParams ¶
type DeleteMembershipParams ¶
type DeleteTeamParams ¶
type DeliveryPipelineRequest ¶
type DeliveryPipelineRequest struct {
ArtifactDigest string `json:"artifact_digest"`
ConfigSha256 string `json:"config_sha256"`
CorrelationId string `json:"correlation_id"`
Environment string `json:"environment"`
Inputs map[string]string `json:"inputs"`
ObserveOnly bool `json:"observe_only"`
Ref string `json:"ref"`
Repository ForgeRepoRef `json:"repository"`
RequestedAt time.Time `json:"requested_at"`
RulesHash string `json:"rules_hash"`
RunId string `json:"run_id"`
SourceSha string `json:"source_sha"`
WorkflowId string `json:"workflow_id"`
WorkflowPath string `json:"workflow_path"`
WorkflowSha string `json:"workflow_sha"`
}
type DeliveryQualification ¶
type DeliveryQualification struct {
ConnectionVersion int64 `json:"connection_version"`
EnvironmentSerialization bool `json:"environment_serialization"`
EvidenceReference string `json:"evidence_reference"`
EvidenceSha256 string `json:"evidence_sha256"`
ExpiresAt time.Time `json:"expires_at"`
NativeEnforcement bool `json:"native_enforcement"`
NoBypass bool `json:"no_bypass"`
PinnedInputs bool `json:"pinned_inputs"`
Provider string `json:"provider"`
ServerVersion string `json:"server_version"`
VerifiedAt time.Time `json:"verified_at"`
}
type DeliveryWorkflow ¶
type DeploymentConfiguration ¶
type DeploymentConfiguration struct {
DeadlineSeconds int64 `json:"deadline_seconds"`
Enabled bool `json:"enabled"`
Environment string `json:"environment"`
HealthChecks []string `json:"health_checks"`
HealthPublicKey string `json:"health_public_key"`
MaxEvidenceAgeSeconds int64 `json:"max_evidence_age_seconds"`
Mode DeploymentConfigurationMode `json:"mode"`
NativeEnvironment string `json:"native_environment"`
ObservationSeconds int64 `json:"observation_seconds"`
ProvenancePublicKey string `json:"provenance_public_key"`
Qualification DeliveryQualification `json:"qualification"`
RecoveryWorkflow *DeliveryWorkflow `json:"recovery_workflow,omitempty"`
RepositoryId string `json:"repository_id"`
Version int64 `json:"version"`
Workflow DeliveryWorkflow `json:"workflow"`
}
type DeploymentConfigurationMode ¶
type DeploymentConfigurationMode string
const ( DeploymentConfigurationModeObserve DeploymentConfigurationMode = "observe" DeploymentConfigurationModePipeline DeploymentConfigurationMode = "pipeline" )
func (DeploymentConfigurationMode) Valid ¶
func (e DeploymentConfigurationMode) Valid() bool
type DeploymentConfigurationPage ¶
type DeploymentConfigurationPage struct {
Items []DeploymentConfiguration `json:"items"`
}
type DeploymentDetail ¶
type DeploymentDetail struct {
Gate DeploymentGate `json:"gate"`
Health *DeploymentHealth `json:"health,omitempty"`
Operation DeploymentOperation `json:"operation"`
}
type DeploymentGate ¶
type DeploymentGate struct {
Binding PolicyEvidenceBinding `json:"binding"`
Blockers []string `json:"blockers"`
ConfigurationVersion int64 `json:"configuration_version"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
Decision PolicyResult `json:"decision"`
Environment string `json:"environment"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
Native NativeDeploymentGates `json:"native"`
Pipeline DeliveryPipelineRequest `json:"pipeline"`
RepositoryId string `json:"repository_id"`
Request DeploymentPreviewInput `json:"request"`
}
type DeploymentHealth ¶
type DeploymentHealth struct {
ArtifactDigest string `json:"artifact_digest"`
Checks map[string]bool `json:"checks"`
ConfigurationVersion int64 `json:"configuration_version"`
DeploymentId string `json:"deployment_id"`
Environment string `json:"environment"`
Healthy bool `json:"healthy"`
Nonce string `json:"nonce"`
ObservedAt time.Time `json:"observed_at"`
OrgId string `json:"org_id"`
Revision string `json:"revision"`
RunAttempt int64 `json:"run_attempt"`
RunId string `json:"run_id"`
SourceSha string `json:"source_sha"`
}
type DeploymentOperation ¶
type DeploymentOperation struct {
CancelRequested bool `json:"cancel_requested"`
CancelState DeploymentOperationCancelState `json:"cancel_state"`
CreatedAt time.Time `json:"created_at"`
Environment string `json:"environment"`
FinishedAt *time.Time `json:"finished_at,omitempty"`
GateId string `json:"gate_id"`
Id string `json:"id"`
Native *NativeDeploymentStatus `json:"native,omitempty"`
Reason string `json:"reason"`
RecoveryOf *string `json:"recovery_of,omitempty"`
RepositoryId string `json:"repository_id"`
RequestedBy string `json:"requested_by"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type DeploymentOperationCancelState ¶
type DeploymentOperationCancelState string
const ( DeploymentOperationCancelStateConfirmed DeploymentOperationCancelState = "confirmed" DeploymentOperationCancelStateDispatching DeploymentOperationCancelState = "dispatching" DeploymentOperationCancelStateEmpty DeploymentOperationCancelState = "" DeploymentOperationCancelStatePending DeploymentOperationCancelState = "pending" DeploymentOperationCancelStateUncertain DeploymentOperationCancelState = "uncertain" )
func (DeploymentOperationCancelState) Valid ¶
func (e DeploymentOperationCancelState) Valid() bool
type DeploymentOperationPage ¶
type DeploymentOperationPage struct {
Complete bool `json:"complete"`
Items []DeploymentOperation `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type DeploymentPreviewInput ¶
type DeploymentPreviewInput struct {
ArtifactDigest string `json:"artifact_digest"`
ChangeId string `json:"change_id"`
Provenance SignedArtifactProvenance `json:"provenance"`
RecoveryOf *string `json:"recovery_of,omitempty"`
RestoreDeploymentId *string `json:"restore_deployment_id,omitempty"`
SourceSha string `json:"source_sha"`
}
type DeploymentRequestInput ¶
type DeploymentState ¶
type DeploymentState string
const ( DeploymentStateAwaitingGates DeploymentState = "awaiting_gates" DeploymentStateBlocked DeploymentState = "blocked" DeploymentStateCancelled DeploymentState = "cancelled" DeploymentStateCompletedUnverified DeploymentState = "completed_unverified" DeploymentStateEligible DeploymentState = "eligible" DeploymentStateFailed DeploymentState = "failed" DeploymentStateHealthy DeploymentState = "healthy" DeploymentStatePlanned DeploymentState = "planned" DeploymentStateReconciling DeploymentState = "reconciling" DeploymentStateRecovered DeploymentState = "recovered" DeploymentStateRecovering DeploymentState = "recovering" DeploymentStateRecoveryFailed DeploymentState = "recovery_failed" DeploymentStateRecoveryRequested DeploymentState = "recovery_requested" DeploymentStateRequested DeploymentState = "requested" DeploymentStateRunning DeploymentState = "running" DeploymentStateVerifying DeploymentState = "verifying" )
func (DeploymentState) Valid ¶
func (e DeploymentState) Valid() bool
type DeploymentTrackInput ¶
type DeploymentTrackInput struct {
ArtifactDigest string `json:"artifact_digest"`
ChangeId string `json:"change_id"`
IdempotencyKey string `json:"idempotency_key"`
Provenance SignedArtifactProvenance `json:"provenance"`
RecoveryOf *string `json:"recovery_of,omitempty"`
RestoreDeploymentId *string `json:"restore_deployment_id,omitempty"`
RunId string `json:"run_id"`
SourceSha string `json:"source_sha"`
}
type DisableOrgOIDCParams ¶
type DiscoveryScan ¶
type DiscoveryScanState ¶
type DiscoveryScanState string
const ( DiscoveryScanStateComplete DiscoveryScanState = "complete" DiscoveryScanStateFailed DiscoveryScanState = "failed" DiscoveryScanStateNotStarted DiscoveryScanState = "not_started" DiscoveryScanStateQueued DiscoveryScanState = "queued" DiscoveryScanStateRunning DiscoveryScanState = "running" DiscoveryScanStateStale DiscoveryScanState = "stale" )
func (DiscoveryScanState) Valid ¶
func (e DiscoveryScanState) Valid() bool
type EnqueueRepairJSONRequestBody ¶
type EnqueueRepairJSONRequestBody = RepairInput
type EnqueueRepairParams ¶
type EnqueueRepairParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type EnqueueTaskJSONRequestBody ¶
type EnqueueTaskJSONRequestBody = TaskCreate
type EnqueueTaskParams ¶
type EnqueueTaskParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type EnrollRunnerJSONBody ¶
type EnrollRunnerJSONBody struct {
Name string `json:"name"`
}
type EnrollRunnerJSONRequestBody ¶
type EnrollRunnerJSONRequestBody EnrollRunnerJSONBody
type EnrollmentToken ¶
type Event ¶
type Event struct {
AggregateId string `json:"aggregate_id"`
AggregateType string `json:"aggregate_type"`
AggregateVersion int64 `json:"aggregate_version"`
Data map[string]interface{} `json:"data"`
DataVersion int `json:"data_version"`
Id int64 `json:"id"`
OccurredAt time.Time `json:"occurred_at"`
OrgId string `json:"org_id"`
RepositoryId *string `json:"repository_id,omitempty"`
RequestId string `json:"request_id"`
Type string `json:"type"`
}
type ExportAuditPageParams ¶
type ExportAuditPageParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
ActorId *string `form:"actor_id,omitempty" json:"actor_id,omitempty"`
Action *string `form:"action,omitempty" json:"action,omitempty"`
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
type Finding ¶
type Finding struct {
AssignedTo *string `json:"assigned_to,omitempty"`
Category string `json:"category"`
Evidence MaintenanceEvidence `json:"evidence"`
EvidenceDigest string `json:"evidence_digest"`
Fingerprint string `json:"fingerprint"`
FirstSeen time.Time `json:"first_seen"`
Id string `json:"id"`
LastSeen time.Time `json:"last_seen"`
OrgId string `json:"org_id"`
Reason string `json:"reason"`
RepositoryId string `json:"repository_id"`
Severity FindingSeverity `json:"severity"`
SnoozeUntil *time.Time `json:"snooze_until,omitempty"`
Source string `json:"source"`
SourceId string `json:"source_id"`
State FindingState `json:"state"`
SupersededBy *string `json:"superseded_by,omitempty"`
Title string `json:"title"`
Version int64 `json:"version"`
}
type FindingPage ¶
type FindingSeverity ¶
type FindingSeverity string
const ( Critical FindingSeverity = "critical" High FindingSeverity = "high" Info FindingSeverity = "info" Low FindingSeverity = "low" Medium FindingSeverity = "medium" )
func (FindingSeverity) Valid ¶
func (e FindingSeverity) Valid() bool
type FindingState ¶
type FindingState string
const ( FindingStateDismissed FindingState = "dismissed" FindingStateOpen FindingState = "open" FindingStateResolved FindingState = "resolved" FindingStateSnoozed FindingState = "snoozed" FindingStateSuperseded FindingState = "superseded" )
func (FindingState) Valid ¶
func (e FindingState) Valid() bool
type FindingUpdate ¶
type FindingUpdate struct {
Action FindingUpdateAction `json:"action"`
AssignedTo *string `json:"assigned_to,omitempty"`
Reason *string `json:"reason,omitempty"`
SnoozeUntil *time.Time `json:"snooze_until,omitempty"`
}
type FindingUpdateAction ¶
type FindingUpdateAction string
const ( Assign FindingUpdateAction = "assign" Dismiss FindingUpdateAction = "dismiss" Reopen FindingUpdateAction = "reopen" Snooze FindingUpdateAction = "snooze" )
func (FindingUpdateAction) Valid ¶
func (e FindingUpdateAction) Valid() bool
type ForgeApproval ¶
type ForgeChange ¶
type ForgeChange struct {
AuthorId string `json:"author_id"`
AuthorLogin string `json:"author_login"`
AuthorType string `json:"author_type"`
Body string `json:"body"`
Draft bool `json:"draft"`
HeadBranch string `json:"head_branch"`
HeadRepository ForgeRepoRef `json:"head_repository"`
HeadSha string `json:"head_sha"`
Id string `json:"id"`
MergeSha string `json:"merge_sha"`
MergeStatus string `json:"merge_status"`
OperationId string `json:"operation_id"`
Repository ForgeRepoRef `json:"repository"`
State string `json:"state"`
TargetBranch string `json:"target_branch"`
TargetRepository ForgeRepoRef `json:"target_repository"`
TargetSha string `json:"target_sha"`
Title string `json:"title"`
Url string `json:"url"`
}
type ForgeCheck ¶
type ForgeCheckRule ¶
type ForgeMergeCapabilities ¶
type ForgeMergeCapabilities struct {
Features map[string]Capability `json:"features"`
Provider string `json:"provider"`
ServerVersion string `json:"server_version"`
}
type ForgeMergeResult ¶
type ForgeNativeEligibility ¶
type ForgeQueueState ¶
type ForgeRepoRef ¶
type ForgeRepository ¶
type ForgeRepository struct {
Archived bool `json:"archived"`
CloneUrl string `json:"clone_url"`
DefaultBranch string `json:"default_branch"`
FullName string `json:"full_name"`
NativeId string `json:"native_id"`
Permissions *[]string `json:"permissions"`
Private bool `json:"private"`
Url string `json:"url"`
}
type ForgeRules ¶
type ForgeRules struct {
ActorCanBypass bool `json:"actor_can_bypass"`
AllowedMergeMethods []string `json:"allowed_merge_methods"`
CodeOwnersEnforced string `json:"code_owners_enforced"`
DismissStaleReviews bool `json:"dismiss_stale_reviews"`
Hash string `json:"hash"`
ObservedAt time.Time `json:"observed_at"`
Reason string `json:"reason"`
RequireCodeOwners bool `json:"require_code_owners"`
RequireQueue bool `json:"require_queue"`
RequireStrictTarget bool `json:"require_strict_target"`
RequiredApprovals int64 `json:"required_approvals"`
RequiredChecks []ForgeCheckRule `json:"required_checks"`
State string `json:"state"`
StrictTargetEnforced string `json:"strict_target_enforced"`
}
type GetBudgetRouteParams ¶
type GetEffectivePolicyParams ¶
type GetEffectivePolicyParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
}
type GitHubAppPending ¶
type GitHubAppPendingPhase ¶
type GitHubAppPendingPhase string
const ( Authorizing GitHubAppPendingPhase = "authorizing" AwaitingInstall GitHubAppPendingPhase = "awaiting_install" Completing GitHubAppPendingPhase = "completing" Converting GitHubAppPendingPhase = "converting" Created GitHubAppPendingPhase = "created" HandedOff GitHubAppPendingPhase = "handed_off" )
func (GitHubAppPendingPhase) Valid ¶
func (e GitHubAppPendingPhase) Valid() bool
type GitHubAppSetup ¶
type GitHubAppSetupCreate ¶
type GitHubAppStatus ¶
type GitHubAppStatus struct {
Mode GitHubAppStatusMode `json:"mode"`
Pending *GitHubAppPending `json:"pending,omitempty"`
Reason *string `json:"reason,omitempty"`
}
type GitHubAppStatusMode ¶
type GitHubAppStatusMode string
const ( GitHubAppStatusModeHosted GitHubAppStatusMode = "hosted" GitHubAppStatusModeManifest GitHubAppStatusMode = "manifest" )
func (GitHubAppStatusMode) Valid ¶
func (e GitHubAppStatusMode) Valid() bool
type GitOpsConfiguration ¶
type GitOpsConfiguration struct {
DeadlineSeconds int64 `json:"deadline_seconds"`
DeliveryRepositoryId string `json:"delivery_repository_id"`
Enabled bool `json:"enabled"`
Environment string `json:"environment"`
HealthChecks []string `json:"health_checks"`
HealthPublicKey string `json:"health_public_key"`
ImageRepository string `json:"image_repository"`
ManifestPath string `json:"manifest_path"`
MaxEvidenceAgeSeconds int64 `json:"max_evidence_age_seconds"`
ObservationSeconds int64 `json:"observation_seconds"`
Pointer string `json:"pointer"`
PromoteFrom *string `json:"promote_from,omitempty"`
ProvenancePublicKey string `json:"provenance_public_key"`
RecoveryAllowed bool `json:"recovery_allowed"`
SourceRepositoryId string `json:"source_repository_id"`
TargetBranch string `json:"target_branch"`
Version int64 `json:"version"`
}
type GitOpsConfigurationPage ¶
type GitOpsConfigurationPage struct {
Items []GitOpsConfiguration `json:"items"`
}
type GitOpsDetail ¶
type GitOpsDetail struct {
Gate GitOpsGate `json:"gate"`
Health *GitOpsHealth `json:"health,omitempty"`
Promotion GitOpsPromotion `json:"promotion"`
}
type GitOpsGate ¶
type GitOpsGate struct {
After string `json:"after"`
Before string `json:"before"`
Blockers []string `json:"blockers"`
Configuration GitOpsConfiguration `json:"configuration"`
Decision PolicyResult `json:"decision"`
Delivery struct {
FullName string `json:"full_name"`
NativeId string `json:"native_id"`
} `json:"delivery"`
DeliveryConnectionId string `json:"delivery_connection_id"`
DeliveryConnectionVersion int64 `json:"delivery_connection_version"`
DeliveryPolicyHash string `json:"delivery_policy_hash"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
ManifestSha256 string `json:"manifest_sha256"`
OperationId string `json:"operation_id"`
PatchedManifest []byte `json:"patched_manifest"`
Request GitOpsPreviewInput `json:"request"`
Source struct {
FullName string `json:"full_name"`
NativeId string `json:"native_id"`
} `json:"source"`
SourceConnectionId string `json:"source_connection_id"`
SourceConnectionVersion int64 `json:"source_connection_version"`
SourcePolicyHash string `json:"source_policy_hash"`
TargetSha string `json:"target_sha"`
}
type GitOpsHealth ¶
type GitOpsHealth struct {
ArtifactDigest string `json:"artifact_digest"`
Checks map[string]bool `json:"checks"`
ConfigurationVersion int64 `json:"configuration_version"`
DeliveryRevision string `json:"delivery_revision"`
Environment string `json:"environment"`
Healthy bool `json:"healthy"`
Nonce string `json:"nonce"`
ObservedAt time.Time `json:"observed_at"`
OrgId string `json:"org_id"`
PromotionId string `json:"promotion_id"`
SourceSha string `json:"source_sha"`
}
type GitOpsPreviewInput ¶
type GitOpsPreviewInput struct {
ArtifactDigest string `json:"artifact_digest"`
ChangeId string `json:"change_id"`
Provenance SignedArtifactProvenance `json:"provenance"`
RecoveryOf *string `json:"recovery_of,omitempty"`
RestorePromotionId *string `json:"restore_promotion_id,omitempty"`
SourceSha string `json:"source_sha"`
}
type GitOpsPromotion ¶
type GitOpsPromotion struct {
Branch string `json:"branch"`
CancelRequested bool `json:"cancel_requested"`
CandidateSha string `json:"candidate_sha"`
Change *ForgeChange `json:"change,omitempty"`
CreatedAt time.Time `json:"created_at"`
DeliveryRepositoryId string `json:"delivery_repository_id"`
Environment string `json:"environment"`
FinishedAt *time.Time `json:"finished_at,omitempty"`
GateId string `json:"gate_id"`
Id string `json:"id"`
MergeSha string `json:"merge_sha"`
Reason string `json:"reason"`
RecoveryOf *string `json:"recovery_of,omitempty"`
RequestedBy string `json:"requested_by"`
SourceRepositoryId string `json:"source_repository_id"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type GitOpsPromotionPage ¶
type GitOpsPromotionPage struct {
Complete bool `json:"complete"`
Items []GitOpsPromotion `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type GithubAppWebhookJSONBody ¶
type GithubAppWebhookJSONBody = map[string]interface{}
type GithubAppWebhookJSONRequestBody ¶
type GithubAppWebhookJSONRequestBody = GithubAppWebhookJSONBody
type GithubAppWebhookParams ¶
type ImportAdvisoryJSONRequestBody ¶
type ImportAdvisoryJSONRequestBody = AdvisoryInput
type ImportInventoryCandidatesJSONRequestBody ¶
type ImportInventoryCandidatesJSONRequestBody = InventoryImportInput
type InventoryCandidatePage ¶
type InventoryCandidatePage struct {
Complete bool `json:"complete"`
Items []ForgeRepository `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type InventoryChangePage ¶
type InventoryChangePage struct {
Complete bool `json:"complete"`
ConnectionVersion int64 `json:"connection_version"`
Items []ForgeChange `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
ObservedAt *time.Time `json:"observed_at,omitempty"`
SnapshotState string `json:"snapshot_state"`
}
type InventoryImportInput ¶
type InventoryJob ¶
type InventoryJob struct {
AvailableAt time.Time `json:"available_at"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
CreatedAt time.Time `json:"created_at"`
Failures int64 `json:"failures"`
Id string `json:"id"`
Kind InventoryJobKind `json:"kind"`
Namespace string `json:"namespace"`
OrgId string `json:"org_id"`
Pages int64 `json:"pages"`
ParentId *string `json:"parent_id,omitempty"`
Processed int64 `json:"processed"`
Reason *string `json:"reason,omitempty"`
RepositoryId *string `json:"repository_id,omitempty"`
State InventoryJobState `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type InventoryJobKind ¶
type InventoryJobKind string
const ( InventoryJobKindImport InventoryJobKind = "import" InventoryJobKindRefresh InventoryJobKind = "refresh" InventoryJobKindScan InventoryJobKind = "scan" )
func (InventoryJobKind) Valid ¶
func (e InventoryJobKind) Valid() bool
type InventoryJobPage ¶
type InventoryJobPage struct {
Complete bool `json:"complete"`
Items []InventoryJob `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type InventoryJobState ¶
type InventoryJobState string
const ( InventoryJobStateCancelled InventoryJobState = "cancelled" InventoryJobStateComplete InventoryJobState = "complete" InventoryJobStateFailed InventoryJobState = "failed" InventoryJobStateQueued InventoryJobState = "queued" InventoryJobStateRunning InventoryJobState = "running" InventoryJobStateStale InventoryJobState = "stale" )
func (InventoryJobState) Valid ¶
func (e InventoryJobState) Valid() bool
type InventorySyncInput ¶
type InventoryWebhook ¶
type InvitationAuthorization ¶
type InvitationAuthorization struct {
AuthorizationUrl string `json:"authorization_url"`
}
type InvokeRunnerOperationJSONRequestBody ¶
type InvokeRunnerOperationJSONRequestBody InvokeRunnerOperationJSONBody
type IssuedInventoryWebhook ¶
type ListAuditEventsParams ¶
type ListAuditEventsParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
ActorId *string `form:"actor_id,omitempty" json:"actor_id,omitempty"`
Action *string `form:"action,omitempty" json:"action,omitempty"`
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
type ListBotRevalidationsParams ¶
type ListBotRevalidationsParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type ListCampaignsParams ¶
type ListConnectionsParams ¶
type ListDeploymentsParams ¶
type ListDeploymentsParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
type ListFindingsParams ¶
type ListFindingsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Q *string `form:"q,omitempty" json:"q,omitempty"`
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
Category *string `form:"category,omitempty" json:"category,omitempty"`
Severity *string `form:"severity,omitempty" json:"severity,omitempty"`
}
type ListInventoryJobsParams ¶
type ListMembershipsParams ¶
type ListMergeOperationsParams ¶
type ListMergeOperationsParams struct {
RepositoryId string `form:"repository_id" json:"repository_id"`
ChangeId *string `form:"change_id,omitempty" json:"change_id,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
type ListModelCatalogJSONRequestBody ¶
type ListModelCatalogJSONRequestBody = ModelCatalogRequest
type ListModelCatalogParams ¶
type ListModelCatalogParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type ListRunnerPoolsParams ¶
type ListRunnerPoolsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Q *string `form:"q,omitempty" json:"q,omitempty"`
State *ListRunnerPoolsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
type ListRunnerPoolsParamsState ¶
type ListRunnerPoolsParamsState string
const ( ListRunnerPoolsParamsStateActive ListRunnerPoolsParamsState = "active" ListRunnerPoolsParamsStateDraining ListRunnerPoolsParamsState = "draining" ListRunnerPoolsParamsStateRevoked ListRunnerPoolsParamsState = "revoked" )
func (ListRunnerPoolsParamsState) Valid ¶
func (e ListRunnerPoolsParamsState) Valid() bool
type ListRunnersParams ¶
type ListTasksParams ¶
type ListTeamsParams ¶
type ListUsageParams ¶
type ListUsageParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`
Recipe *string `form:"recipe,omitempty" json:"recipe,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *string `form:"connection_id,omitempty" json:"connection_id,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
type LogoutParams ¶
type LogoutParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type MaintenanceBotConfig ¶
type MaintenanceBotConfig struct {
Dependabot MaintenanceBotStatus `json:"dependabot"`
Renovate MaintenanceBotStatus `json:"renovate"`
}
type MaintenanceBotIdentity ¶
type MaintenanceBotIdentity struct {
ActorId string `json:"actor_id"`
Kind MaintenanceBotIdentityKind `json:"kind"`
}
type MaintenanceBotIdentityKind ¶
type MaintenanceBotIdentityKind string
const ( Dependabot MaintenanceBotIdentityKind = "dependabot" Renovate MaintenanceBotIdentityKind = "renovate" )
func (MaintenanceBotIdentityKind) Valid ¶
func (e MaintenanceBotIdentityKind) Valid() bool
type MaintenanceBotStatus ¶
type MaintenanceBotStatus struct {
Automerge MaintenanceBotStatusAutomerge `json:"automerge"`
Present bool `json:"present"`
}
type MaintenanceBotStatusAutomerge ¶
type MaintenanceBotStatusAutomerge string
const ( MaintenanceBotStatusAutomergeDisabled MaintenanceBotStatusAutomerge = "disabled" MaintenanceBotStatusAutomergeEnabled MaintenanceBotStatusAutomerge = "enabled" MaintenanceBotStatusAutomergeUnknown MaintenanceBotStatusAutomerge = "unknown" )
func (MaintenanceBotStatusAutomerge) Valid ¶
func (e MaintenanceBotStatusAutomerge) Valid() bool
type MaintenanceConfig ¶
type MaintenanceConfig struct {
MergeAuthority MaintenanceConfigMergeAuthority `json:"merge_authority"`
RepositoryId string `json:"repository_id"`
TrustedBots []MaintenanceBotIdentity `json:"trusted_bots"`
Version int64 `json:"version"`
}
type MaintenanceConfigMergeAuthority ¶
type MaintenanceConfigMergeAuthority string
const ( MaintenanceConfigMergeAuthorityBot MaintenanceConfigMergeAuthority = "bot" MaintenanceConfigMergeAuthorityObserve MaintenanceConfigMergeAuthority = "observe" MaintenanceConfigMergeAuthorityReforge MaintenanceConfigMergeAuthority = "reforge" )
func (MaintenanceConfigMergeAuthority) Valid ¶
func (e MaintenanceConfigMergeAuthority) Valid() bool
type MaintenanceDependency ¶
type MaintenanceEvidence ¶
type MaintenanceEvidence struct {
ActionLabel *string `json:"action_label,omitempty"`
ActionUrl *string `json:"action_url,omitempty"`
AdvisoryId *string `json:"advisory_id,omitempty"`
Blockers []string `json:"blockers"`
Bot *string `json:"bot,omitempty"`
BotConfig *MaintenanceBotConfig `json:"bot_config,omitempty"`
Change *ForgeChange `json:"change,omitempty"`
Checks []struct {
Conclusion string `json:"conclusion"`
HeadSha string `json:"head_sha"`
Id string `json:"id"`
Name string `json:"name"`
PublisherId string `json:"publisher_id"`
Status string `json:"status"`
Url string `json:"url"`
} `json:"checks"`
Complete bool `json:"complete"`
ConfigVersion int64 `json:"config_version"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
Dependencies []MaintenanceDependency `json:"dependencies"`
HeadOwnership *string `json:"head_ownership,omitempty"`
HeadSha string `json:"head_sha"`
MergeBlockers *[]string `json:"merge_blockers,omitempty"`
Ownership string `json:"ownership"`
Provenance string `json:"provenance"`
ReferenceUrl *string `json:"reference_url,omitempty"`
Review *struct {
Confidence *string `json:"confidence,omitempty"`
Detail *string `json:"detail,omitempty"`
Line *int `json:"line,omitempty"`
Objective *string `json:"objective,omitempty"`
Path *string `json:"path,omitempty"`
} `json:"review,omitempty"`
TargetBranch string `json:"target_branch"`
TargetSha string `json:"target_sha"`
TrackedFiles *[]struct {
Mode string `json:"mode"`
Path string `json:"path"`
Sha string `json:"sha"`
Size *int64 `json:"size,omitempty"`
Type string `json:"type"`
} `json:"tracked_files,omitempty"`
}
type Membership ¶
type MembershipInput ¶
type MembershipPage ¶
type MembershipPage struct {
Complete bool `json:"complete"`
Items []Membership `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type MergeCompanion ¶
type MergeConfiguration ¶
type MergeConfiguration struct {
CheckPublishers map[string]string `json:"check_publishers"`
CooperationReference string `json:"cooperation_reference"`
Enabled bool `json:"enabled"`
InspectorConnectionId *string `json:"inspector_connection_id,omitempty"`
Qualification MergeQualification `json:"qualification"`
RepositoryId string `json:"repository_id"`
Version int64 `json:"version"`
}
type MergeGate ¶
type MergeGate struct {
Binding PolicyEvidenceBinding `json:"binding"`
ChangedLines int64 `json:"changed_lines"`
Companions []MergeCompanion `json:"companions"`
ConfigurationVersion int64 `json:"configuration_version"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
Decision PolicyResult `json:"decision"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
Method string `json:"method"`
Paths []string `json:"paths"`
Phase *string `json:"phase,omitempty"`
RepositoryId string `json:"repository_id"`
Snapshot MergeSnapshot `json:"snapshot"`
}
type MergeOperation ¶
type MergeOperation struct {
CancelRequested bool `json:"cancel_requested"`
ChangeId string `json:"change_id"`
CreatedAt time.Time `json:"created_at"`
GateId string `json:"gate_id"`
Id string `json:"id"`
NativeQueueId *string `json:"native_queue_id,omitempty"`
NativeResult *ForgeMergeResult `json:"native_result,omitempty"`
Reason string `json:"reason"`
RepositoryId string `json:"repository_id"`
RequestedGateId string `json:"requested_gate_id"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type MergeOperationPage ¶
type MergeOperationPage struct {
Complete bool `json:"complete"`
Items []MergeOperation `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type MergePreviewRequest ¶
type MergePreviewRequest struct {
Method string `json:"method"`
}
type MergeQualification ¶
type MergeQualification struct {
CiConfigSha256 *string `json:"ci_config_sha256,omitempty"`
ConnectionVersion int64 `json:"connection_version"`
EvidenceReference string `json:"evidence_reference"`
EvidenceSha256 string `json:"evidence_sha256"`
ExactHead bool `json:"exact_head"`
ExpiresAt time.Time `json:"expires_at"`
InspectorVersion int64 `json:"inspector_version"`
Provider string `json:"provider"`
QueueExecutionGate bool `json:"queue_execution_gate"`
ServerVersion string `json:"server_version"`
StrictTarget bool `json:"strict_target"`
VerifiedAt time.Time `json:"verified_at"`
}
type MergeRequestInput ¶
type MergeSnapshot ¶
type MergeSnapshot struct {
Approvals []ForgeApproval `json:"approvals"`
Capabilities ForgeMergeCapabilities `json:"capabilities"`
Change ForgeChange `json:"change"`
Checks []ForgeCheck `json:"checks"`
ExecutionCheck *struct {
Name string `json:"name"`
PublisherId string `json:"publisher_id"`
} `json:"execution_check,omitempty"`
Native ForgeNativeEligibility `json:"native"`
ObservedAt time.Time `json:"observed_at"`
Queue ForgeQueueState `json:"queue"`
Rules ForgeRules `json:"rules"`
TrainGate *map[string]interface{} `json:"train_gate,omitempty"`
}
type MetaEdition ¶
type MetaEdition string
const ( MetaEditionHosted MetaEdition = "hosted" MetaEditionSelfHosted MetaEdition = "self-hosted" )
func (MetaEdition) Valid ¶
func (e MetaEdition) Valid() bool
type ModelCatalog ¶
type ModelCatalog struct {
Items []ModelCatalogItem `json:"items"`
}
type ModelCatalogItem ¶
type ModelCatalogRequest ¶
type ModelCatalogRequest struct {
Endpoint string `json:"endpoint"`
Provider ModelCatalogRequestProvider `json:"provider"`
Secret *string `json:"secret,omitempty"`
Settings ModelCatalogSettings `json:"settings"`
}
type ModelCatalogRequestProvider ¶
type ModelCatalogRequestProvider string
const ( Anthropic ModelCatalogRequestProvider = "anthropic" Compatible ModelCatalogRequestProvider = "compatible" Google ModelCatalogRequestProvider = "google" Openai ModelCatalogRequestProvider = "openai" )
func (ModelCatalogRequestProvider) Valid ¶
func (e ModelCatalogRequestProvider) Valid() bool
type ModelCatalogSettings ¶
type ModelCatalogSettings struct {
AuthKind ModelCatalogSettingsAuthKind `json:"auth_kind"`
BillingRoute ModelCatalogSettingsBillingRoute `json:"billing_route"`
CaPem *string `json:"ca_pem,omitempty"`
Model *string `json:"model,omitempty"`
Profile *string `json:"profile,omitempty"`
}
type ModelCatalogSettingsAuthKind ¶
type ModelCatalogSettingsAuthKind string
const (
ApiKey ModelCatalogSettingsAuthKind = "api_key"
)
func (ModelCatalogSettingsAuthKind) Valid ¶
func (e ModelCatalogSettingsAuthKind) Valid() bool
type ModelCatalogSettingsBillingRoute ¶
type ModelCatalogSettingsBillingRoute string
const (
DirectApi ModelCatalogSettingsBillingRoute = "direct_api"
)
func (ModelCatalogSettingsBillingRoute) Valid ¶
func (e ModelCatalogSettingsBillingRoute) Valid() bool
type ModelMessage ¶
type ModelMessage struct {
Role string `json:"role"`
Text string `json:"text"`
ToolCallId *string `json:"tool_call_id,omitempty"`
ToolCalls *[]ModelToolCall `json:"tool_calls,omitempty"`
}
type ModelToolCall ¶
type ModelTurn ¶
type ModelTurn struct {
Continuation interface{} `json:"continuation,omitempty"`
MaxOutputTokens int64 `json:"max_output_tokens"`
Messages *[]ModelMessage `json:"messages"`
Model string `json:"model"`
OperationId string `json:"operation_id"`
System string `json:"system"`
TimeoutMs int64 `json:"timeout_ms"`
Tools *[]ModelTool `json:"tools"`
}
type ModelTurnResult ¶
type ModelTurnResult struct {
Continuation interface{} `json:"continuation,omitempty"`
FinishReason string `json:"finish_reason"`
ProviderId string `json:"provider_id"`
Text string `json:"text"`
ToolCalls *[]ModelToolCall `json:"tool_calls"`
Usage ModelUsage `json:"usage"`
}
type ModelUsage ¶
type NativeDeliveryWorkflow ¶
type NativeDeploymentGates ¶
type NativeDeploymentStatus ¶
type NativeDeploymentStatus struct {
ArtifactDigest string `json:"artifact_digest"`
CorrelationId string `json:"correlation_id"`
CreatedAt time.Time `json:"created_at"`
Environment string `json:"environment"`
Event string `json:"event"`
Health string `json:"health"`
Id string `json:"id"`
ObservedAt time.Time `json:"observed_at"`
Ref string `json:"ref"`
RunAttempt int64 `json:"run_attempt"`
SourceSha string `json:"source_sha"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Url string `json:"url"`
WorkflowId string `json:"workflow_id"`
WorkflowPath string `json:"workflow_path"`
WorkflowSha string `json:"workflow_sha"`
}
type ObserveDeploymentParams ¶
type ObserveDeploymentParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type ObserveGitOpsPromotionParams ¶
type ObserveGitOpsPromotionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type OidcCallbackParams ¶
type OrgOIDCInput ¶
type OrgOIDCInvitation ¶
type OrgOIDCInvitationInput ¶
type OrgOIDCInvitationInput struct {
Email string `json:"email"`
ExpiresAt time.Time `json:"expires_at"`
Role OrgOIDCInvitationInputRole `json:"role"`
}
type OrgOIDCInvitationInputRole ¶
type OrgOIDCInvitationInputRole string
const ( OrgOIDCInvitationInputRoleAdmin OrgOIDCInvitationInputRole = "admin" OrgOIDCInvitationInputRoleMaintainer OrgOIDCInvitationInputRole = "maintainer" OrgOIDCInvitationInputRoleOwner OrgOIDCInvitationInputRole = "owner" OrgOIDCInvitationInputRoleReviewer OrgOIDCInvitationInputRole = "reviewer" OrgOIDCInvitationInputRoleViewer OrgOIDCInvitationInputRole = "viewer" )
func (OrgOIDCInvitationInputRole) Valid ¶
func (e OrgOIDCInvitationInputRole) Valid() bool
type OrgOIDCInvitationPage ¶
type OrgOIDCInvitationPage struct {
Complete bool `json:"complete"`
Items []OrgOIDCInvitation `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type OrgOIDCInvitationRole ¶
type OrgOIDCInvitationRole string
const ( OrgOIDCInvitationRoleAdmin OrgOIDCInvitationRole = "admin" OrgOIDCInvitationRoleMaintainer OrgOIDCInvitationRole = "maintainer" OrgOIDCInvitationRoleOwner OrgOIDCInvitationRole = "owner" OrgOIDCInvitationRoleReviewer OrgOIDCInvitationRole = "reviewer" OrgOIDCInvitationRoleViewer OrgOIDCInvitationRole = "viewer" )
func (OrgOIDCInvitationRole) Valid ¶
func (e OrgOIDCInvitationRole) Valid() bool
type OrgOIDCSettings ¶
type OrgOIDCSettings struct {
ActivationAvailable bool `json:"activation_available"`
ActivationBlocked *string `json:"activation_blocked,omitempty"`
ClientId *string `json:"client_id,omitempty"`
Configured bool `json:"configured"`
Issuer *string `json:"issuer,omitempty"`
SecretPresent bool `json:"secret_present"`
Status OrgOIDCSettingsStatus `json:"status"`
Verified bool `json:"verified"`
VerifiedAt *time.Time `json:"verified_at,omitempty"`
Version int64 `json:"version"`
}
type OrgOIDCSettingsStatus ¶
type OrgOIDCSettingsStatus string
const ( OrgOIDCSettingsStatusActive OrgOIDCSettingsStatus = "active" OrgOIDCSettingsStatusDisabled OrgOIDCSettingsStatus = "disabled" OrgOIDCSettingsStatusDraft OrgOIDCSettingsStatus = "draft" OrgOIDCSettingsStatusProbeVerified OrgOIDCSettingsStatus = "probe_verified" OrgOIDCSettingsStatusUnconfigured OrgOIDCSettingsStatus = "unconfigured" )
func (OrgOIDCSettingsStatus) Valid ¶
func (e OrgOIDCSettingsStatus) Valid() bool
type Organisation ¶
type Overview ¶
type Overview struct {
Attention []OverviewAttention `json:"attention"`
Capacity OverviewCapacity `json:"capacity"`
Counts OverviewCounts `json:"counts"`
Portfolio []OverviewPortfolioRow `json:"portfolio"`
Severity []OverviewSeverity `json:"severity"`
Trend []OverviewDay `json:"trend"`
}
type OverviewAttention ¶
type OverviewAttention struct {
AgeSeconds int `json:"age_seconds"`
AssignedTo *string `json:"assigned_to,omitempty"`
Id string `json:"id"`
RepositoryId string `json:"repository_id"`
RepositoryName string `json:"repository_name"`
Severity string `json:"severity"`
State string `json:"state"`
Title string `json:"title"`
}
type OverviewCapacity ¶
type OverviewCounts ¶
type OverviewCounts struct {
AccessibleRepositories int `json:"accessible_repositories"`
Blocked int `json:"blocked"`
NeedsDecision int `json:"needs_decision"`
QueuedJobs int `json:"queued_jobs"`
ReadyForReview int `json:"ready_for_review"`
Running int `json:"running"`
StaleRepositories int `json:"stale_repositories"`
VerifiedDeployments int `json:"verified_deployments"`
}
type OverviewDay ¶
type OverviewPortfolioRow ¶
type OverviewPortfolioRow struct {
Accessible bool `json:"accessible"`
Blocked int `json:"blocked"`
Blocker *string `json:"blocker,omitempty"`
LastSyncedAt string `json:"last_synced_at"`
OpenChanges int `json:"open_changes"`
OpenFindings int `json:"open_findings"`
Provider string `json:"provider"`
RepositoryId string `json:"repository_id"`
RepositoryName string `json:"repository_name"`
}
type OverviewSeverity ¶
type PauseCampaignJSONRequestBody ¶
type PauseCampaignJSONRequestBody = CampaignControlInput
type PauseCampaignParams ¶
type PauseInput ¶
type PauseInput struct {
Paused bool `json:"paused"`
}
type PinnedSnapshot ¶
type PinnedSnapshot struct {
CommitSha string `json:"commit_sha"`
Complete bool `json:"complete"`
Files *[]SourceFile `json:"files"`
ManifestSha256 string `json:"manifest_sha256"`
}
type PolicyActivateRequest ¶
type PolicyBindingVersion ¶
type PolicyBindingVersion struct {
Version int64 `json:"version"`
}
type PolicyDefaults ¶
type PolicyDocument ¶
type PolicyDocument struct {
Allow *PolicyLists `json:"allow,omitempty"`
Defaults *PolicyDefaults `json:"defaults,omitempty"`
Deny *[]string `json:"deny,omitempty"`
ForbiddenPaths *[]string `json:"forbidden_paths,omitempty"`
Limits *PolicyLimits `json:"limits,omitempty"`
MaxEvidenceAgeSeconds *int64 `json:"max_evidence_age_seconds,omitempty"`
Paused *bool `json:"paused,omitempty"`
Required *[]PolicyRequirement `json:"required,omitempty"`
ReviewProofs *[]PolicyDocumentReviewProofs `json:"review_proofs,omitempty"`
Schema PolicyDocumentSchema `json:"schema"`
}
type PolicyDocumentReviewProofs ¶
type PolicyDocumentReviewProofs string
const ( Structural PolicyDocumentReviewProofs = "structural" Tests PolicyDocumentReviewProofs = "tests" )
func (PolicyDocumentReviewProofs) Valid ¶
func (e PolicyDocumentReviewProofs) Valid() bool
type PolicyDocumentSchema ¶
type PolicyDocumentSchema string
const (
Maintenancev1 PolicyDocumentSchema = "maintenance/v1"
)
func (PolicyDocumentSchema) Valid ¶
func (e PolicyDocumentSchema) Valid() bool
type PolicyEvidence ¶
type PolicyEvidenceBinding ¶
type PolicyEvidenceBinding struct {
Artifact *string `json:"artifact,omitempty"`
CapabilityVersion *string `json:"capability_version,omitempty"`
Head *string `json:"head,omitempty"`
PolicyHash *string `json:"policy_hash,omitempty"`
ProviderRules *string `json:"provider_rules,omitempty"`
SourceSha *string `json:"source_sha,omitempty"`
Target *string `json:"target,omitempty"`
Tested *string `json:"tested,omitempty"`
}
type PolicyInput ¶
type PolicyInput struct {
Action string `json:"action"`
Current *PolicyEvidenceBinding `json:"current,omitempty"`
Environment *string `json:"environment,omitempty"`
Evidence *[]PolicyEvidence `json:"evidence,omitempty"`
MergeMethod *string `json:"merge_method,omitempty"`
Model *string `json:"model,omitempty"`
Now *time.Time `json:"now,omitempty"`
Paths *[]string `json:"paths,omitempty"`
PausedScopes *[]string `json:"paused_scopes,omitempty"`
Recipe *string `json:"recipe,omitempty"`
Route *string `json:"route,omitempty"`
Stage *PolicyInputStage `json:"stage,omitempty"`
StartingPolicyHash *string `json:"starting_policy_hash,omitempty"`
Usage *PolicyLimits `json:"usage,omitempty"`
Workflow *string `json:"workflow,omitempty"`
}
type PolicyInputStage ¶
type PolicyInputStage string
const ( PolicyInputStageDeploymentAdmission PolicyInputStage = "deployment_admission" PolicyInputStageEmpty PolicyInputStage = "" )
func (PolicyInputStage) Valid ¶
func (e PolicyInputStage) Valid() bool
type PolicyLayer ¶
type PolicyLayer struct {
BindingVersion int64 `json:"binding_version"`
Policy PolicyDocument `json:"policy"`
Scope PolicyScope `json:"scope"`
VersionId string `json:"version_id"`
}
type PolicyLimits ¶
type PolicyLimits struct {
Attempts *int64 `json:"attempts,omitempty"`
Budget *int64 `json:"budget,omitempty"`
ChangedFiles *int64 `json:"changed_files,omitempty"`
ChangedLines *int64 `json:"changed_lines,omitempty"`
Concurrency *int64 `json:"concurrency,omitempty"`
OpenChanges *int64 `json:"open_changes,omitempty"`
}
type PolicyLists ¶
type PolicyLists struct {
Environments *[]string `json:"environments,omitempty"`
MergeMethods *[]string `json:"merge_methods,omitempty"`
Models *[]string `json:"models,omitempty"`
Recipes *[]string `json:"recipes,omitempty"`
Routes *[]string `json:"routes,omitempty"`
Workflows *[]string `json:"workflows,omitempty"`
}
type PolicyRequirement ¶
type PolicyResult ¶
type PolicyResult struct {
Bindings []PolicyLayer `json:"bindings"`
Blockers []string `json:"blockers"`
EvidenceReferences []string `json:"evidence_references"`
Outcome PolicyResultOutcome `json:"outcome"`
PolicyHash string `json:"policy_hash"`
RequiredActions []string `json:"required_actions"`
Rules []string `json:"rules"`
StartingPolicyHash string `json:"starting_policy_hash"`
}
type PolicyResultOutcome ¶
type PolicyResultOutcome string
const ( PolicyResultOutcomeAllow PolicyResultOutcome = "allow" PolicyResultOutcomeDeny PolicyResultOutcome = "deny" PolicyResultOutcomeUnknown PolicyResultOutcome = "unknown" )
func (PolicyResultOutcome) Valid ¶
func (e PolicyResultOutcome) Valid() bool
type PolicyScope ¶
type PolicyScope struct {
Id string `json:"id"`
Kind PolicyScopeKind `json:"kind"`
}
type PolicyScopeKind ¶
type PolicyScopeKind string
const ( PolicyScopeKindOrganisation PolicyScopeKind = "organisation" PolicyScopeKindRepository PolicyScopeKind = "repository" PolicyScopeKindTeam PolicyScopeKind = "team" )
func (PolicyScopeKind) Valid ¶
func (e PolicyScopeKind) Valid() bool
type PolicySimulateRequest ¶
type PolicySimulateRequest struct {
Input PolicyInput `json:"input"`
PrimaryTeamId *string `json:"primary_team_id,omitempty"`
RepositoryId *string `json:"repository_id,omitempty"`
}
type PolicySimulation ¶
type PolicySimulation struct {
Decision PolicyResult `json:"decision"`
Hash string `json:"hash"`
Resolved ResolvedPolicy `json:"resolved"`
}
type PolicyVersion ¶
type PolicyVersion struct {
ActorId string `json:"actor_id"`
CreatedAt time.Time `json:"created_at"`
Hash string `json:"hash"`
Id string `json:"id"`
Policy PolicyDocument `json:"policy"`
Reason string `json:"reason"`
Scope PolicyScope `json:"scope"`
}
type PolicyVersionCreate ¶
type PolicyVersionCreate struct {
Policy PolicyDocument `json:"policy"`
Reason string `json:"reason"`
Scope PolicyScope `json:"scope"`
}
type PolicyVersionPage ¶
type PolicyVersionPage struct {
Complete bool `json:"complete"`
Items []PolicyVersion `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type PollPrivateGrantJSONBody ¶
type PollPrivateGrantJSONBody = map[string]interface{}
type PollPrivateGrantJSONRequestBody ¶
type PollPrivateGrantJSONRequestBody = PollPrivateGrantJSONBody
type PreviewCampaignJSONRequestBody ¶
type PreviewCampaignJSONRequestBody = CampaignInput
type PreviewCampaignParams ¶
type PreviewCampaignParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PreviewDeploymentJSONRequestBody ¶
type PreviewDeploymentJSONRequestBody = DeploymentPreviewInput
type PreviewDeploymentParams ¶
type PreviewDeploymentParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PreviewGitOpsMergeJSONRequestBody ¶
type PreviewGitOpsMergeJSONRequestBody = MergePreviewRequest
type PreviewGitOpsMergeParams ¶
type PreviewGitOpsMergeParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PreviewGitOpsPromotionJSONRequestBody ¶
type PreviewGitOpsPromotionJSONRequestBody = GitOpsPreviewInput
type PreviewGitOpsPromotionParams ¶
type PreviewGitOpsPromotionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PreviewProtectedMergeJSONRequestBody ¶
type PreviewProtectedMergeJSONRequestBody = MergePreviewRequest
type PreviewProtectedMergeParams ¶
type PreviewProtectedMergeParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PreviewRepairJSONRequestBody ¶
type PreviewRepairJSONRequestBody = RepairInput
type PreviewRepairParams ¶
type PreviewRepairParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type PrivateCompletion ¶
type PrivateGrant ¶
type PrivateGrant struct {
AuthorityId string `json:"authority_id"`
Connection map[string]interface{} `json:"connection"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
Operation PrivateOperation `json:"operation"`
ResultCapability string `json:"result_capability"`
RunnerVersion *int64 `json:"runner_version,omitempty"`
Secret string `json:"secret"`
Target struct {
OrgId string `json:"org_id"`
RunnerId string `json:"runner_id"`
} `json:"target"`
TimeoutMs int `json:"timeout_ms"`
}
type PrivateOperation ¶
type PrivateOperation struct {
Change *map[string]interface{} `json:"change,omitempty"`
Changes *map[string]interface{} `json:"changes,omitempty"`
Checks *map[string]interface{} `json:"checks,omitempty"`
File *map[string]interface{} `json:"file,omitempty"`
Id string `json:"id"`
Inventory *map[string]interface{} `json:"inventory,omitempty"`
Kind PrivateOperationKind `json:"kind"`
Ref *map[string]interface{} `json:"ref,omitempty"`
Repository *map[string]interface{} `json:"repository,omitempty"`
Source *map[string]interface{} `json:"source,omitempty"`
}
type PrivateOperationKind ¶
type PrivateOperationKind string
const ( PrivateOperationKindForgeApprovals PrivateOperationKind = "forge.approvals" PrivateOperationKindForgeChecks PrivateOperationKind = "forge.checks" PrivateOperationKindForgeInventory PrivateOperationKind = "forge.inventory" PrivateOperationKindForgeProbe PrivateOperationKind = "forge.probe" PrivateOperationKindForgeReadChange PrivateOperationKind = "forge.read_change" PrivateOperationKindForgeReadFile PrivateOperationKind = "forge.read_file" PrivateOperationKindForgeReconcileChanges PrivateOperationKind = "forge.reconcile_changes" PrivateOperationKindForgeRepository PrivateOperationKind = "forge.repository" PrivateOperationKindForgeResolveRef PrivateOperationKind = "forge.resolve_ref" PrivateOperationKindForgeSourceManifest PrivateOperationKind = "forge.source_manifest" PrivateOperationKindModelList PrivateOperationKind = "model.list" PrivateOperationKindModelProbe PrivateOperationKind = "model.probe" )
func (PrivateOperationKind) Valid ¶
func (e PrivateOperationKind) Valid() bool
type PrivateRoute ¶
type PrivateRouteChange ¶
type PrivateRouteChange struct {
Route PrivateRoute `json:"route"`
}
type ProbeOrgOIDCParams ¶
type PutAgentQualificationJSONRequestBody ¶
type PutAgentQualificationJSONRequestBody = AgentQualificationInput
type PutBudgetJSONRequestBody ¶
type PutBudgetJSONRequestBody = BudgetLimitInput
type PutBudgetParams ¶
type PutBudgetRouteJSONRequestBody ¶
type PutBudgetRouteJSONRequestBody = BudgetRouteInput
type PutBudgetRouteParams ¶
type PutDeploymentConfigurationJSONRequestBody ¶
type PutDeploymentConfigurationJSONRequestBody = DeploymentConfiguration
type PutGitOpsConfigurationJSONRequestBody ¶
type PutGitOpsConfigurationJSONRequestBody = GitOpsConfiguration
type PutMaintenanceConfigJSONRequestBody ¶
type PutMaintenanceConfigJSONRequestBody = MaintenanceConfig
type PutMaintenanceConfigParams ¶
type PutMaintenanceConfigParams struct {
IfMatch string `json:"If-Match"`
}
type PutMembershipJSONRequestBody ¶
type PutMembershipJSONRequestBody = MembershipInput
type PutMembershipParams ¶
type PutMergeConfigurationJSONRequestBody ¶
type PutMergeConfigurationJSONRequestBody = MergeConfiguration
type PutOrgOIDCJSONRequestBody ¶
type PutOrgOIDCJSONRequestBody = OrgOIDCInput
type PutOrgOIDCParams ¶
type PutTeamJSONRequestBody ¶
type PutTeamJSONRequestBody = TeamInput
type PutTeamParams ¶
type ReceiveForgeWebhookJSONBody ¶
type ReceiveForgeWebhookJSONBody map[string]interface{}
type ReceiveForgeWebhookJSONRequestBody ¶
type ReceiveForgeWebhookJSONRequestBody ReceiveForgeWebhookJSONBody
type ReconcileRepairParams ¶
type RedeemOrgOIDCInvitationFormdataBody ¶
type RedeemOrgOIDCInvitationFormdataBody struct {
Token string `form:"token" json:"token"`
}
type RedeemOrgOIDCInvitationFormdataRequestBody ¶
type RedeemOrgOIDCInvitationFormdataRequestBody RedeemOrgOIDCInvitationFormdataBody
type RedeemOrgOIDCInvitationParams ¶
type RedeemOrgOIDCInvitationParams struct {
Origin string `json:"Origin"`
}
type RepairCheck ¶
type RepairCommand ¶
type RepairExecution ¶
type RepairExecution struct {
BaselineRepository ForgeRepoRef `json:"baseline_repository"`
ConnectionId string `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
Finding Finding `json:"finding"`
MaxAttempts int64 `json:"max_attempts"`
MaxOutputTokens int64 `json:"max_output_tokens"`
Model string `json:"model"`
NativeHeadSha *string `json:"native_head_sha,omitempty"`
Plan RepairPlan `json:"plan"`
PolicyHash string `json:"policy_hash"`
Repository ForgeRepoRef `json:"repository"`
Request RepairInput `json:"request"`
TurnTimeoutMs int64 `json:"turn_timeout_ms"`
}
type RepairInput ¶
type RepairInput struct {
CustomProfileId *string `json:"custom_profile_id,omitempty"`
CustomProfileVersion *int64 `json:"custom_profile_version,omitempty"`
FindingId string `json:"finding_id"`
FindingVersion int64 `json:"finding_version"`
IdempotencyKey *string `json:"idempotency_key,omitempty"`
Instructions *string `json:"instructions,omitempty"`
ModelConnectionId string `json:"model_connection_id"`
ModelRoute string `json:"model_route"`
Owner *bool `json:"owner,omitempty"`
PlanDigest *string `json:"plan_digest,omitempty"`
Recipe *string `json:"recipe,omitempty"`
RunnerPoolId string `json:"runner_pool_id"`
}
type RepairPatch ¶
type RepairPlan ¶
type RepairPlan struct {
AuthorityHash *string `json:"authority_hash,omitempty"`
BaselineSha string `json:"baseline_sha"`
Digest string `json:"digest"`
ForbiddenPaths *[]string `json:"forbidden_paths"`
Image string `json:"image"`
MaxChangedLines int64 `json:"max_changed_lines"`
ProtectedHashes map[string]string `json:"protected_hashes"`
Recipe RepairRecipe `json:"recipe"`
TargetSha string `json:"target_sha"`
Version int64 `json:"version"`
}
type RepairPreview ¶
type RepairPreview struct {
Blockers *[]string `json:"blockers"`
Context RepairExecution `json:"context"`
ExpiresAt time.Time `json:"expires_at"`
}
type RepairPublication ¶
type RepairPublication struct {
ArtifactIds *[]string `json:"artifact_ids"`
Checks *[]RepairCheck `json:"checks"`
HeadSha string `json:"head_sha"`
PlanDigest string `json:"plan_digest"`
}
type RepairRecipe ¶
type RepairRecipe struct {
Commands *[]RepairCommand `json:"commands"`
ManifestPaths *[]string `json:"manifest_paths"`
MaxFiles int64 `json:"max_files"`
MaxPatchBytes int64 `json:"max_patch_bytes"`
MaxTurns int64 `json:"max_turns"`
MinimumTests int64 `json:"minimum_tests"`
Name string `json:"name"`
ProtectedPaths *[]string `json:"protected_paths"`
TimeoutSeconds int64 `json:"timeout_seconds"`
Version string `json:"version"`
}
type RepairReport ¶
type RepairReport struct {
Artifacts *[]string `json:"artifacts"`
Baseline *[]RepairCheck `json:"baseline"`
Candidate *[]RepairCheck `json:"candidate"`
Diff *string `json:"diff,omitempty"`
Patches *[]RepairPatch `json:"patches"`
PlanDigest string `json:"plan_digest"`
Reason string `json:"reason"`
State string `json:"state"`
Target *[]RepairCheck `json:"target"`
Turns int64 `json:"turns"`
}
type RepairRun ¶
type RepairRun struct {
Branch string `json:"branch"`
CandidateArtifacts *[]string `json:"candidate_artifacts"`
CandidateChecks *[]RepairCheck `json:"candidate_checks"`
CandidateSha string `json:"candidate_sha"`
Change *ForgeChange `json:"change,omitempty"`
Context RepairExecution `json:"context"`
Report *RepairReport `json:"report,omitempty"`
State string `json:"state"`
Task Task `json:"task"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type ReplayEventsParams ¶
type ReplayEventsParams struct {
After *int64 `form:"after,omitempty" json:"after,omitempty"`
}
type RepositoriesParams ¶
type RepositoriesParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Q *string `form:"q,omitempty" json:"q,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`
Status *string `form:"status,omitempty" json:"status,omitempty"`
}
type Repository ¶
type Repository struct {
Accessible bool `json:"accessible"`
Archived bool `json:"archived"`
ChangesObservedAt *time.Time `json:"changes_observed_at,omitempty"`
ConnectionId string `json:"connection_id"`
ConnectionVersion *int64 `json:"connection_version,omitempty"`
DefaultBranch string `json:"default_branch"`
Id string `json:"id"`
LastSyncedAt *time.Time `json:"last_synced_at"`
Name string `json:"name"`
NativeId string `json:"native_id"`
OrgId string `json:"org_id"`
Paused bool `json:"paused"`
Provider RepositoryProvider `json:"provider"`
SyncReason *string `json:"sync_reason,omitempty"`
SyncState *string `json:"sync_state,omitempty"`
TeamIds []string `json:"team_ids"`
Url string `json:"url"`
Version int64 `json:"version"`
}
type RepositoryPage ¶
type RepositoryPage struct {
Complete bool `json:"complete"`
Items []Repository `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type RepositoryProvider ¶
type RepositoryProvider string
const ( Gitea RepositoryProvider = "gitea" Github RepositoryProvider = "github" Gitlab RepositoryProvider = "gitlab" )
func (RepositoryProvider) Valid ¶
func (e RepositoryProvider) Valid() bool
type RequestDeploymentJSONRequestBody ¶
type RequestDeploymentJSONRequestBody = DeploymentRequestInput
type RequestDeploymentParams ¶
type RequestDeploymentParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type RequestGitOpsMergeJSONRequestBody ¶
type RequestGitOpsMergeJSONRequestBody = MergeRequestInput
type RequestGitOpsMergeParams ¶
type RequestGitOpsMergeParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type RequestGitOpsPromotionJSONRequestBody ¶
type RequestGitOpsPromotionJSONRequestBody = DeploymentRequestInput
type RequestGitOpsPromotionParams ¶
type RequestGitOpsPromotionParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type RequestProtectedMergeJSONRequestBody ¶
type RequestProtectedMergeJSONRequestBody = MergeRequestInput
type RequestProtectedMergeParams ¶
type RequestProtectedMergeParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type ResolvedPolicy ¶
type ResolvedPolicy struct {
Hash string `json:"hash"`
Layers []PolicyLayer `json:"layers"`
MissingDefaults []string `json:"missing_defaults"`
Paused bool `json:"paused"`
Policy PolicyDocument `json:"policy"`
PrimaryTeamId *string `json:"primary_team_id,omitempty"`
Problems []string `json:"problems"`
RepositoryId string `json:"repository_id"`
ScopePaused bool `json:"scope_paused"`
}
type ResumeCampaignJSONRequestBody ¶
type ResumeCampaignJSONRequestBody = CampaignControlInput
type ResumeCampaignParams ¶
type ResumeTaskParams ¶
type RevokeConnectionParams ¶
type RevokeCustomProfileParams ¶
type RevokeCustomProfileParams struct {
IfMatch string `json:"If-Match"`
}
type RevokeRunnerParams ¶
type RevokeSessionsParams ¶
type RevokeSessionsParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type RewrapCredentialParams ¶
type RotateCredentialJSONRequestBody ¶
type RotateCredentialJSONRequestBody = CredentialRotation
type RotateCredentialParams ¶
type RunRepositoryParams ¶
type RunRepositoryParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type Runner ¶
type Runner struct {
BusySlots int `json:"busy_slots"`
CredentialExpiresAt time.Time `json:"credential_expires_at"`
EnrolledAt time.Time `json:"enrolled_at"`
Id string `json:"id"`
LastSeenAt time.Time `json:"last_seen_at"`
Name string `json:"name"`
OrgId string `json:"org_id"`
PoolId string `json:"pool_id"`
PoolName string `json:"pool_name"`
PoolState string `json:"pool_state"`
RouteCount int `json:"route_count"`
State string `json:"state"`
Version int64 `json:"version"`
}
type RunnerAssignment ¶
type RunnerAssignment struct {
ExpiresAt time.Time `json:"expires_at"`
Lease WorkflowLease `json:"lease"`
Task Task `json:"task"`
Token string `json:"token"`
}
type RunnerCompletion ¶
type RunnerCompletion struct {
Outcome RunnerCompletionOutcome `json:"outcome"`
Reason *string `json:"reason,omitempty"`
Retryable *bool `json:"retryable,omitempty"`
}
type RunnerCompletionOutcome ¶
type RunnerCompletionOutcome string
const ( RunnerCompletionOutcomeCancelled RunnerCompletionOutcome = "cancelled" RunnerCompletionOutcomeCompleted RunnerCompletionOutcome = "completed" RunnerCompletionOutcomeFailed RunnerCompletionOutcome = "failed" RunnerCompletionOutcomeUncertain RunnerCompletionOutcome = "uncertain" )
func (RunnerCompletionOutcome) Valid ¶
func (e RunnerCompletionOutcome) Valid() bool
type RunnerCredential ¶
type RunnerHeartbeat ¶
type RunnerHeartbeat struct {
Lease WorkflowLease `json:"lease"`
Reason *string `json:"reason,omitempty"`
Stop bool `json:"stop"`
}
type RunnerModelTurnJSONRequestBody ¶
type RunnerModelTurnJSONRequestBody = ModelTurn
type RunnerPage ¶
type RunnerPool ¶
type RunnerPool struct {
Builtin *bool `json:"builtin,omitempty"`
BusySlots *int `json:"busy_slots,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
OrgId string `json:"org_id"`
RepositoryIds []string `json:"repository_ids"`
RunnerCount *int `json:"runner_count,omitempty"`
State RunnerPoolState `json:"state"`
Version int64 `json:"version"`
}
type RunnerPoolInput ¶
type RunnerPoolInput struct {
Name string `json:"name"`
RepositoryIds []string `json:"repository_ids"`
State *RunnerPoolInputState `json:"state,omitempty"`
}
type RunnerPoolInputState ¶
type RunnerPoolInputState string
const ( RunnerPoolInputStateActive RunnerPoolInputState = "active" RunnerPoolInputStateDraining RunnerPoolInputState = "draining" RunnerPoolInputStateRevoked RunnerPoolInputState = "revoked" )
func (RunnerPoolInputState) Valid ¶
func (e RunnerPoolInputState) Valid() bool
type RunnerPoolPage ¶
type RunnerPoolPage struct {
Complete bool `json:"complete"`
Items []RunnerPool `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type RunnerPoolState ¶
type RunnerPoolState string
const ( RunnerPoolStateActive RunnerPoolState = "active" RunnerPoolStateDraining RunnerPoolState = "draining" RunnerPoolStateRevoked RunnerPoolState = "revoked" )
func (RunnerPoolState) Valid ¶
func (e RunnerPoolState) Valid() bool
type RunnerProgressJSONBody ¶
type RunnerProgressJSONBody struct {
State TaskState `json:"state"`
}
type RunnerProgressJSONRequestBody ¶
type RunnerProgressJSONRequestBody RunnerProgressJSONBody
type RunnerRecordNativeChecksJSONRequestBody ¶
type RunnerRecordNativeChecksJSONRequestBody = RepairPublication
type RunnerRepairPublishJSONRequestBody ¶
type RunnerRepairPublishJSONRequestBody = RepairPublication
type RunnerRepairReportJSONRequestBody ¶
type RunnerRepairReportJSONRequestBody = RepairReport
type RunnerResultJSONRequestBody ¶
type RunnerResultJSONRequestBody = RunnerCompletion
type SeriesUsageParams ¶
type SeriesUsageParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`
Recipe *string `form:"recipe,omitempty" json:"recipe,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *string `form:"connection_id,omitempty" json:"connection_id,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
}
type Session ¶
type Session struct {
CsrfToken string `json:"csrf_token"`
Memberships []Membership `json:"memberships"`
Organisations []Organisation `json:"organisations"`
User struct {
Email string `json:"email"`
Id string `json:"id"`
Name string `json:"name"`
} `json:"user"`
}
type SetPauseJSONRequestBody ¶
type SetPauseJSONRequestBody = PauseInput
type SetPauseParams ¶
type SetPrivateRouteJSONRequestBody ¶
type SetPrivateRouteJSONRequestBody = PrivateRouteChange
type SetPrivateRouteParams ¶
type SetupStep ¶
type SetupStep struct {
ConnectionId *string `json:"connection_id,omitempty"`
Done bool `json:"done"`
Id SetupStepId `json:"id"`
Reason *string `json:"reason,omitempty"`
RepositoryId *string `json:"repository_id,omitempty"`
}
type SetupStepId ¶
type SetupStepId string
const ( SetupStepIdAssignment SetupStepId = "assignment" SetupStepIdBudget SetupStepId = "budget" SetupStepIdForge SetupStepId = "forge" SetupStepIdModel SetupStepId = "model" SetupStepIdPolicy SetupStepId = "policy" SetupStepIdPricing SetupStepId = "pricing" SetupStepIdRepository SetupStepId = "repository" SetupStepIdRunner SetupStepId = "runner" SetupStepIdScan SetupStepId = "scan" SetupStepIdServer SetupStepId = "server" )
func (SetupStepId) Valid ¶
func (e SetupStepId) Valid() bool
type SignedArtifactProvenance ¶
type SignedArtifactProvenance struct {
Document ArtifactProvenance `json:"document"`
Signature string `json:"signature"`
}
type SimulatePolicyJSONRequestBody ¶
type SimulatePolicyJSONRequestBody = PolicySimulateRequest
type SimulatePolicyParams ¶
type SimulatePolicyParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type SourceFile ¶
type StartCampaignJSONRequestBody ¶
type StartCampaignJSONRequestBody = CampaignControlInput
type StartCampaignParams ¶
type StartGitHubAppSetupJSONRequestBody ¶
type StartGitHubAppSetupJSONRequestBody = GitHubAppSetupCreate
type StartGitHubAppSetupParams ¶
type StartGitHubAppSetupParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type StartInventorySyncJSONRequestBody ¶
type StartInventorySyncJSONRequestBody = InventorySyncInput
type StartInventorySyncParams ¶
type StartInventorySyncParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type StreamEventsParams ¶
type SubmitDeploymentHealthJSONRequestBody ¶
type SubmitDeploymentHealthJSONRequestBody = DeploymentHealth
type SubmitDeploymentHealthParams ¶
type SubmitDeploymentHealthParams struct {
XReforgeSignature string `json:"X-Reforge-Signature"`
}
type SubmitGitOpsHealthJSONRequestBody ¶
type SubmitGitOpsHealthJSONRequestBody = GitOpsHealth
type SubmitGitOpsHealthParams ¶
type SubmitGitOpsHealthParams struct {
XReforgeSignature string `json:"X-Reforge-Signature"`
}
type SummarizeUsageParams ¶
type SummarizeUsageParams struct {
RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`
Recipe *string `form:"recipe,omitempty" json:"recipe,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *string `form:"connection_id,omitempty" json:"connection_id,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
}
type Task ¶
type Task struct {
CampaignId *string `json:"campaign_id,omitempty"`
CancelVersion int64 `json:"cancel_version"`
CancellationRequested bool `json:"cancellation_requested"`
CreatedAt time.Time `json:"created_at"`
Id string `json:"id"`
MaxAttempts int64 `json:"max_attempts"`
ModelConnectionId *string `json:"model_connection_id,omitempty"`
ModelRoute string `json:"model_route"`
OperationId string `json:"operation_id"`
OrgId string `json:"org_id"`
PolicyHash string `json:"policy_hash"`
Reason string `json:"reason"`
Recipe string `json:"recipe"`
RecipeVersion string `json:"recipe_version"`
RepositoryId string `json:"repository_id"`
RunnerPoolId *string `json:"runner_pool_id,omitempty"`
StartingPolicyHash string `json:"starting_policy_hash"`
State TaskState `json:"state"`
TargetBranch string `json:"target_branch"`
Version int64 `json:"version"`
}
type TaskCreate ¶
type TaskCreate struct {
CampaignId *string `json:"campaign_id,omitempty"`
IdempotencyKey string `json:"idempotency_key"`
MaxAttempts *int64 `json:"max_attempts,omitempty"`
ModelConnectionId *string `json:"model_connection_id,omitempty"`
ModelRoute *string `json:"model_route,omitempty"`
PolicyHash *string `json:"policy_hash,omitempty"`
Priority *int64 `json:"priority,omitempty"`
Recipe string `json:"recipe"`
RecipeVersion string `json:"recipe_version"`
RepositoryId string `json:"repository_id"`
RunnerPoolId *string `json:"runner_pool_id,omitempty"`
TargetBranch string `json:"target_branch"`
}
type TaskState ¶
type TaskState string
const ( TaskStateBlocked TaskState = "blocked" TaskStateCancelled TaskState = "cancelled" TaskStateCancelling TaskState = "cancelling" TaskStateCompleted TaskState = "completed" TaskStateFailed TaskState = "failed" TaskStatePlanning TaskState = "planning" TaskStatePublishing TaskState = "publishing" TaskStateQueued TaskState = "queued" TaskStateReconciling TaskState = "reconciling" TaskStateRepairing TaskState = "repairing" TaskStateReproducing TaskState = "reproducing" TaskStateValidating TaskState = "validating" )
type TestConnectionParams ¶
type TrackDeploymentJSONRequestBody ¶
type TrackDeploymentJSONRequestBody = DeploymentTrackInput
type TrackDeploymentParams ¶
type TrackDeploymentParams struct {
XCSRFToken string `json:"X-CSRF-Token"`
}
type UpdateAutopilotJSONRequestBody ¶
type UpdateAutopilotJSONRequestBody = AutopilotUpdate
type UpdateAutopilotParams ¶
type UpdateConnectionJSONRequestBody ¶
type UpdateConnectionJSONRequestBody = ConnectionUpdate
type UpdateConnectionParams ¶
type UpdateFindingJSONRequestBody ¶
type UpdateFindingJSONRequestBody = FindingUpdate
type UpdateFindingParams ¶
type UpdateFindingParams struct {
IfMatch string `json:"If-Match"`
}
type UpdateRunnerPoolJSONRequestBody ¶
type UpdateRunnerPoolJSONRequestBody = RunnerPoolInput
type UpdateRunnerPoolParams ¶
type UploadRunnerArtifactJSONBody ¶
type UploadRunnerArtifactJSONBody = []byte
type UploadRunnerArtifactJSONRequestBody ¶
type UploadRunnerArtifactJSONRequestBody = UploadRunnerArtifactJSONBody
type UploadRunnerArtifactParams ¶
type UploadRunnerArtifactParams struct {
XArtifactName string `json:"X-Artifact-Name"`
}
type UploadRunnerArtifactTextBody ¶
type UploadRunnerArtifactTextBody = []byte
type UploadRunnerArtifactTextRequestBody ¶
type UploadRunnerArtifactTextRequestBody = UploadRunnerArtifactTextBody
type UsageEntry ¶
type UsageEntry struct {
Provider string `json:"provider"`
Recipe string `json:"recipe"`
RepositoryName string `json:"repository_name"`
Reservation BudgetReservation `json:"reservation"`
}
type UsagePage ¶
type UsagePage struct {
Complete bool `json:"complete"`
Items []UsageEntry `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
type UsageProvider ¶
type UsageSeries ¶
type UsageSeries struct {
Days []UsageDay `json:"days"`
Providers []UsageProvider `json:"providers"`
}
type UsageSummary ¶
type UsageSummary struct {
Cancelled int64 `json:"cancelled"`
Dispatched int64 `json:"dispatched"`
EstimatedCostMicroUsd int64 `json:"estimated_cost_micro_usd"`
Held BudgetAmount `json:"held"`
KnownTokens int64 `json:"known_tokens"`
Records int64 `json:"records"`
Reserved int64 `json:"reserved"`
Settled int64 `json:"settled"`
Unknown int64 `json:"unknown"`
UnknownMaximum BudgetAmount `json:"unknown_maximum"`
}
type WorkflowLease ¶
type WorkflowLease struct {
AttemptId string `json:"attempt_id"`
ExpiresAt time.Time `json:"expires_at"`
Fence int64 `json:"fence"`
JobId string `json:"job_id"`
OperationId string `json:"operation_id"`
OrgId string `json:"org_id"`
PolicyHash string `json:"policy_hash"`
RepositoryId string `json:"repository_id"`
TaskId string `json:"task_id"`
WorkerId string `json:"worker_id"`
}
Click to show internal directories.
Click to hide internal directories.