Help us shape the future of Go! Take the 2026 Go Developer Survey

generated

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Code      string                  `json:"code"`
	Details   *map[string]interface{} `json:"details,omitempty"`
	Message   string                  `json:"message"`
	RequestId string                  `json:"request_id"`
	Retryable bool                    `json:"retryable"`
}

type ActivateOrgOIDCParams

type ActivateOrgOIDCParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

type ActivatePolicyJSONRequestBody

type ActivatePolicyJSONRequestBody = PolicyActivateRequest

type ActivatePolicyParams

type ActivatePolicyParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

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 BootstrapRequest struct {
	Name  string `json:"name"`
	Token string `json:"token"`
}

type BotRevalidation

type BotRevalidation struct {
	ChangeId    string               `json:"change_id"`
	CompanionId string               `json:"companion_id"`
	Gate        *MergeGate           `json:"gate,omitempty"`
	ObservedAt  *time.Time           `json:"observed_at"`
	Reason      string               `json:"reason"`
	State       BotRevalidationState `json:"state"`
	TaskId      string               `json:"task_id"`
}

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 BudgetAmount struct {
	Concurrency  int64 `json:"concurrency"`
	MicroUsd     int64 `json:"micro_usd"`
	Milliseconds int64 `json:"milliseconds"`
	Requests     int64 `json:"requests"`
	Tokens       int64 `json:"tokens"`
}

type BudgetCaps

type BudgetCaps struct {
	Concurrency  *int64 `json:"concurrency,omitempty"`
	MicroUsd     *int64 `json:"micro_usd,omitempty"`
	Milliseconds *int64 `json:"milliseconds,omitempty"`
	Requests     *int64 `json:"requests,omitempty"`
	Tokens       *int64 `json:"tokens,omitempty"`
}

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 BudgetScope struct {
	Id   string `json:"id"`
	Kind string `json:"kind"`
}

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

type CampaignCounts

type CampaignCounts struct {
	Excluded  int `json:"excluded"`
	Failed    int `json:"failed"`
	Pending   int `json:"pending"`
	Running   int `json:"running"`
	Succeeded int `json:"succeeded"`
	Total     int `json:"total"`
	Unknown   int `json:"unknown"`
}

type CampaignCreateInput

type CampaignCreateInput struct {
	IdempotencyKey string `json:"idempotency_key"`
	PreviewId      string `json:"preview_id"`
}

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 CampaignPage struct {
	Complete   bool       `json:"complete"`
	Items      []Campaign `json:"items"`
	NextCursor *string    `json:"next_cursor,omitempty"`
}

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 CampaignWindow struct {
	EndMinute   int   `json:"end_minute"`
	StartMinute int   `json:"start_minute"`
	Weekdays    []int `json:"weekdays"`
}

type CancelCampaignJSONRequestBody

type CancelCampaignJSONRequestBody = CampaignControlInput

type CancelCampaignParams

type CancelCampaignParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type CancelDeploymentParams

type CancelDeploymentParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type CancelGitHubAppSetupParams

type CancelGitHubAppSetupParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
}

type CancelGitOpsPromotionParams

type CancelGitOpsPromotionParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type CancelInventoryJobParams

type CancelInventoryJobParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type CancelMergeOperationParams

type CancelMergeOperationParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type CancelTaskParams

type CancelTaskParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type Capability

type Capability struct {
	LastChecked time.Time       `json:"last_checked"`
	Reason      string          `json:"reason"`
	Scope       string          `json:"scope"`
	Source      string          `json:"source"`
	State       CapabilityState `json:"state"`
	Version     string          `json:"version"`
}

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 ConnectionCapability struct {
	LastChecked time.Time `json:"last_checked"`
	Reason      string    `json:"reason"`
	Scope       string    `json:"scope"`
	Source      string    `json:"source"`
	State       string    `json:"state"`
	Version     string    `json:"version"`
}

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 ConnectionUpdate struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

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 CreateOrgOIDCInvitationParams

type CreateOrgOIDCInvitationParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

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 CreatedOrgOIDCInvitation

type CreatedOrgOIDCInvitation struct {
	CreatedAt     time.Time                    `json:"created_at"`
	Email         string                       `json:"email"`
	ExpiresAt     time.Time                    `json:"expires_at"`
	Id            string                       `json:"id"`
	Redeemed      bool                         `json:"redeemed"`
	RedemptionUrl string                       `json:"redemption_url"`
	Role          CreatedOrgOIDCInvitationRole `json:"role"`
}

type CreatedOrgOIDCInvitationRole

type CreatedOrgOIDCInvitationRole string
const (
	CreatedOrgOIDCInvitationRoleAdmin      CreatedOrgOIDCInvitationRole = "admin"
	CreatedOrgOIDCInvitationRoleMaintainer CreatedOrgOIDCInvitationRole = "maintainer"
	CreatedOrgOIDCInvitationRoleOwner      CreatedOrgOIDCInvitationRole = "owner"
	CreatedOrgOIDCInvitationRoleReviewer   CreatedOrgOIDCInvitationRole = "reviewer"
	CreatedOrgOIDCInvitationRoleViewer     CreatedOrgOIDCInvitationRole = "viewer"
)

func (CreatedOrgOIDCInvitationRole) Valid

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 DeleteConnectionParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type DeleteMembershipParams

type DeleteMembershipParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type DeleteTeamParams

type DeleteTeamParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 DeliveryWorkflow struct {
	ConfigSha256 string            `json:"config_sha256"`
	Id           string            `json:"id"`
	Inputs       map[string]string `json:"inputs"`
	Path         string            `json:"path"`
	Ref          string            `json:"ref"`
	Sha          string            `json:"sha"`
}

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

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

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 DeploymentRequestInput struct {
	GateId         string `json:"gate_id"`
	IdempotencyKey string `json:"idempotency_key"`
}

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 DisableOrgOIDCParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

type DiscoveryScan

type DiscoveryScan struct {
	ObservedAt   *time.Time         `json:"observed_at,omitempty"`
	Reason       string             `json:"reason"`
	RepositoryId string             `json:"repository_id"`
	State        DiscoveryScanState `json:"state"`
	Version      int64              `json:"version"`
}

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 EnrollmentToken struct {
	ExpiresAt time.Time `json:"expires_at"`
	Token     string    `json:"token"`
}

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 EventPage

type EventPage struct {
	Complete bool    `json:"complete"`
	Cursor   int64   `json:"cursor"`
	Items    []Event `json:"items"`
}

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 FindingPage struct {
	Complete   bool      `json:"complete"`
	Items      []Finding `json:"items"`
	NextCursor *string   `json:"next_cursor,omitempty"`
}

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 ForgeApproval struct {
	ActorId   string `json:"actor_id"`
	Dismissed bool   `json:"dismissed"`
	HeadSha   string `json:"head_sha"`
	Id        string `json:"id"`
	State     string `json:"state"`
}

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 ForgeCheck 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"`
}

type ForgeCheckRule

type ForgeCheckRule struct {
	Name        string `json:"name"`
	PublisherId string `json:"publisher_id"`
}

type ForgeMergeCapabilities

type ForgeMergeCapabilities struct {
	Features      map[string]Capability `json:"features"`
	Provider      string                `json:"provider"`
	ServerVersion string                `json:"server_version"`
}

type ForgeMergeResult

type ForgeMergeResult struct {
	HeadSha  string `json:"head_sha"`
	MergeSha string `json:"merge_sha"`
	NativeId string `json:"native_id"`
	State    string `json:"state"`
	Url      string `json:"url"`
}

type ForgeNativeEligibility

type ForgeNativeEligibility struct {
	Blockers  []string `json:"blockers"`
	HeadSha   string   `json:"head_sha"`
	State     string   `json:"state"`
	TargetSha string   `json:"target_sha"`
}

type ForgeQueueState

type ForgeQueueState struct {
	HeadSha   string `json:"head_sha"`
	Id        string `json:"id"`
	State     string `json:"state"`
	TargetSha string `json:"target_sha"`
	TestedSha string `json:"tested_sha"`
}

type ForgeRepoRef

type ForgeRepoRef struct {
	FullName string `json:"full_name"`
	NativeId string `json:"native_id"`
}

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 GetBudgetRouteParams struct {
	Model *string `form:"model,omitempty" json:"model,omitempty"`
	Route *string `form:"route,omitempty" json:"route,omitempty"`
}

type GetEffectivePolicyParams

type GetEffectivePolicyParams struct {
	RepositoryId *string `form:"repository_id,omitempty" json:"repository_id,omitempty"`
}

type GitHubAppPending

type GitHubAppPending struct {
	AppSlug   *string               `json:"app_slug,omitempty"`
	ExpiresAt time.Time             `json:"expires_at"`
	Id        string                `json:"id"`
	Phase     GitHubAppPendingPhase `json:"phase"`
	ResumeUrl *string               `json:"resume_url,omitempty"`
}

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 GitHubAppSetup struct {
	HandoffUrl string `json:"handoff_url"`
	Id         string `json:"id"`
}

type GitHubAppSetupCreate

type GitHubAppSetupCreate struct {
	GithubOrg *string `json:"github_org,omitempty"`
	Name      string  `json:"name"`
}

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"
	GitHubAppStatusModeUnavailable GitHubAppStatusMode = "unavailable"
)

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 GithubAppWebhookParams struct {
	XHubSignature256 string `json:"X-Hub-Signature-256"`
	XGitHubEvent     string `json:"X-GitHub-Event"`
}

type GithubInstallCallbackParams

type GithubInstallCallbackParams struct {
	InstallationId *string `form:"installation_id,omitempty" json:"installation_id,omitempty"`
	SetupAction    *string `form:"setup_action,omitempty" json:"setup_action,omitempty"`
	State          *string `form:"state,omitempty" json:"state,omitempty"`
}

type GithubManifestCallbackParams

type GithubManifestCallbackParams struct {
	Code  *string `form:"code,omitempty" json:"code,omitempty"`
	State *string `form:"state,omitempty" json:"state,omitempty"`
}

type GithubOAuthCallbackParams

type GithubOAuthCallbackParams struct {
	Code  *string `form:"code,omitempty" json:"code,omitempty"`
	State *string `form:"state,omitempty" json:"state,omitempty"`
	Error *string `form:"error,omitempty" json:"error,omitempty"`
}

type Health

type Health struct {
	Status string `json:"status"`
}

type ImportAdvisoryJSONRequestBody

type ImportAdvisoryJSONRequestBody = AdvisoryInput

type ImportInventoryCandidatesJSONRequestBody

type ImportInventoryCandidatesJSONRequestBody = InventoryImportInput

type ImportInventoryCandidatesParams

type ImportInventoryCandidatesParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 InventoryImportInput struct {
	All       *bool     `json:"all,omitempty"`
	NativeIds *[]string `json:"native_ids,omitempty"`
	TeamIds   *[]string `json:"team_ids,omitempty"`
}

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 InventorySyncInput struct {
	ConnectionId string  `json:"connection_id"`
	Namespace    *string `json:"namespace,omitempty"`
}

type InventoryWebhook

type InventoryWebhook struct {
	ConnectionId string `json:"connection_id"`
	Id           string `json:"id"`
	Path         string `json:"path"`
	Revoked      bool   `json:"revoked"`
	Version      int64  `json:"version"`
}

type InvitationAuthorization

type InvitationAuthorization struct {
	AuthorizationUrl string `json:"authorization_url"`
}

type InvokeRunnerOperationJSONBody

type InvokeRunnerOperationJSONBody struct {
	ConnectionId string                 `json:"connection_id"`
	Input        map[string]interface{} `json:"input"`
}

type InvokeRunnerOperationJSONRequestBody

type InvokeRunnerOperationJSONRequestBody InvokeRunnerOperationJSONBody

type IssuedInventoryWebhook

type IssuedInventoryWebhook struct {
	ConnectionId string `json:"connection_id"`
	Id           string `json:"id"`
	Path         string `json:"path"`
	Revoked      bool   `json:"revoked"`
	Secret       string `json:"secret"`
	Version      int64  `json:"version"`
}

type ListAgentsConnectionsParams

type ListAgentsConnectionsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

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 ListCampaignMembersParams

type ListCampaignMembersParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListCampaignsParams

type ListCampaignsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	State  *string `form:"state,omitempty" json:"state,omitempty"`
}

type ListConnectionsParams

type ListConnectionsParams struct {
	Kind   *string `form:"kind,omitempty" json:"kind,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListCustomProfilesParams

type ListCustomProfilesParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListDeliveryConnectionsParams

type ListDeliveryConnectionsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

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 ListForgesConnectionsParams

type ListForgesConnectionsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListGitOpsPromotionsParams

type ListGitOpsPromotionsParams struct {
	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 ListInventoryCandidatesParams

type ListInventoryCandidatesParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListInventoryChangesParams

type ListInventoryChangesParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListInventoryJobsParams

type ListInventoryJobsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListMembershipsParams

type ListMembershipsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

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 ListModelsConnectionsParams

type ListModelsConnectionsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

type ListOrgOIDCInvitationsParams

type ListOrgOIDCInvitationsParams struct {
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

type ListPolicyVersionsParams

type ListPolicyVersionsParams struct {
	ScopeKind *string `form:"scope_kind,omitempty" json:"scope_kind,omitempty"`
	ScopeId   *string `form:"scope_id,omitempty" json:"scope_id,omitempty"`
	Cursor    *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

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 ListRunnersParams struct {
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

type ListTasksParams

type ListTasksParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int64  `form:"limit,omitempty" json:"limit,omitempty"`
	State  *string `form:"state,omitempty" json:"state,omitempty"`
}

type ListTeamsParams

type ListTeamsParams struct {
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

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

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

type MaintenanceDependency

type MaintenanceDependency struct {
	Ecosystem string `json:"ecosystem"`
	From      string `json:"from"`
	Manifest  string `json:"manifest"`
	Name      string `json:"name"`
	To        string `json:"to"`
}

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 Membership struct {
	AllRepositories bool     `json:"all_repositories"`
	OrgId           string   `json:"org_id"`
	RepositoryIds   []string `json:"repository_ids"`
	Role            Role     `json:"role"`
	TeamIds         []string `json:"team_ids"`
	UserId          *string  `json:"user_id,omitempty"`
	Version         *int64   `json:"version,omitempty"`
}

type MembershipInput

type MembershipInput struct {
	AllRepositories bool     `json:"all_repositories"`
	RepositoryIds   []string `json:"repository_ids"`
	Role            Role     `json:"role"`
	TeamIds         []string `json:"team_ids"`
}

type MembershipPage

type MembershipPage struct {
	Complete   bool         `json:"complete"`
	Items      []Membership `json:"items"`
	NextCursor *string      `json:"next_cursor,omitempty"`
}

type MergeCompanion

type MergeCompanion struct {
	ChangeId string `json:"change_id"`
	HeadSha  string `json:"head_sha"`
	MergeSha string `json:"merge_sha"`
	State    string `json:"state"`
	TaskId   string `json:"task_id"`
}

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 MergeRequestInput struct {
	GateId         string `json:"gate_id"`
	IdempotencyKey string `json:"idempotency_key"`
}

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 Meta

type Meta struct {
	BootstrapRequired *bool       `json:"bootstrap_required,omitempty"`
	Development       bool        `json:"development"`
	DocsUrl           *string     `json:"docs_url,omitempty"`
	Edition           MetaEdition `json:"edition"`
	FixtureAuth       bool        `json:"fixture_auth"`
	Name              string      `json:"name"`
	Version           string      `json:"version"`
}

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 ModelCatalogItem struct {
	Disabled *bool   `json:"disabled,omitempty"`
	Id       string  `json:"id"`
	Name     string  `json:"name"`
	Reason   *string `json:"reason,omitempty"`
}

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

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

type ModelCatalogSettingsBillingRoute

type ModelCatalogSettingsBillingRoute string
const (
	DirectApi ModelCatalogSettingsBillingRoute = "direct_api"
)

func (ModelCatalogSettingsBillingRoute) Valid

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 ModelTool

type ModelTool struct {
	Description string      `json:"description"`
	Name        string      `json:"name"`
	Schema      interface{} `json:"schema"`
}

type ModelToolCall

type ModelToolCall struct {
	Arguments interface{} `json:"arguments"`
	Id        string      `json:"id"`
	Name      string      `json:"name"`
}

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 ModelUsage struct {
	CacheCreationTokens int64  `json:"cache_creation_tokens"`
	CacheTokens         int64  `json:"cache_tokens"`
	InputTokens         int64  `json:"input_tokens"`
	Known               bool   `json:"known"`
	OutputTokens        int64  `json:"output_tokens"`
	Source              string `json:"source"`
}

type NativeDeliveryWorkflow

type NativeDeliveryWorkflow struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Path string `json:"path"`
	Ref  string `json:"ref"`
	Url  string `json:"url"`
}

type NativeDeploymentGates

type NativeDeploymentGates struct {
	ApprovalUrl    string   `json:"approval_url"`
	Blockers       []string `json:"blockers"`
	Environment    string   `json:"environment"`
	NativeEnforced string   `json:"native_enforced"`
	RulesHash      string   `json:"rules_hash"`
	State          string   `json:"state"`
}

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 OidcCallbackParams struct {
	State string `form:"state" json:"state"`
	Code  string `form:"code" json:"code"`
}

type OrgOIDCInput

type OrgOIDCInput struct {
	ClientId     string  `json:"client_id"`
	ClientSecret *string `json:"client_secret,omitempty"`
	Issuer       string  `json:"issuer"`
}

type OrgOIDCInvitation

type OrgOIDCInvitation struct {
	CreatedAt time.Time             `json:"created_at"`
	Email     string                `json:"email"`
	ExpiresAt time.Time             `json:"expires_at"`
	Id        string                `json:"id"`
	Redeemed  bool                  `json:"redeemed"`
	Role      OrgOIDCInvitationRole `json:"role"`
}

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 Organisation struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Paused  bool   `json:"paused"`
	Version int64  `json:"version"`
}

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 OverviewCapacity struct {
	ActivePools      int `json:"active_pools"`
	ActiveRunners    int `json:"active_runners"`
	QueuedJobs       int `json:"queued_jobs"`
	ReservedMicroUsd int `json:"reserved_micro_usd"`
	RunningJobs      int `json:"running_jobs"`
}

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 OverviewDay struct {
	Day         string `json:"day"`
	Deployments int    `json:"deployments"`
	Findings    int    `json:"findings"`
	Merges      int    `json:"merges"`
	Runs        int    `json:"runs"`
}

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 OverviewSeverity struct {
	Count    int    `json:"count"`
	Severity string `json:"severity"`
}

type Pause

type Pause struct {
	Id      string `json:"id"`
	Kind    string `json:"kind"`
	Paused  bool   `json:"paused"`
	Version int64  `json:"version"`
}

type PauseCampaignJSONRequestBody

type PauseCampaignJSONRequestBody = CampaignControlInput

type PauseCampaignParams

type PauseCampaignParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 PolicyActivateRequest struct {
	PrimaryTeamId  *string `json:"primary_team_id,omitempty"`
	Reason         string  `json:"reason"`
	RepositoryId   *string `json:"repository_id,omitempty"`
	SimulationHash string  `json:"simulation_hash"`
}

type PolicyBindingVersion

type PolicyBindingVersion struct {
	Version int64 `json:"version"`
}

type PolicyDefaults

type PolicyDefaults struct {
	BranchPrefix *string `json:"branch_prefix,omitempty"`
	Model        *string `json:"model,omitempty"`
	Route        *string `json:"route,omitempty"`
}

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 PolicyEvidence struct {
	Approvals  *int                  `json:"approvals,omitempty"`
	Binding    PolicyEvidenceBinding `json:"binding"`
	Id         string                `json:"id"`
	Identity   *string               `json:"identity,omitempty"`
	ObservedAt time.Time             `json:"observed_at"`
	Reference  string                `json:"reference"`
	State      string                `json:"state"`
}

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 PolicyRequirement struct {
	Actions   []string `json:"actions"`
	Approvals *int     `json:"approvals,omitempty"`
	Id        string   `json:"id"`
	Identity  *string  `json:"identity,omitempty"`
}

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 PrivateCompletion struct {
	GrantId string                 `json:"grant_id"`
	Result  map[string]interface{} `json:"result"`
}

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 PrivateRoute struct {
	ApprovedAt *time.Time `json:"approved_at,omitempty"`
	Cidrs      []string   `json:"cidrs"`
	Host       string     `json:"host"`
	RevokedAt  *time.Time `json:"revoked_at,omitempty"`
	RunnerId   string     `json:"runner_id"`
}

type PrivateRouteChange

type PrivateRouteChange struct {
	Route PrivateRoute `json:"route"`
}

type ProbeOrgOIDCParams

type ProbeOrgOIDCParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

type PutAgentQualificationJSONRequestBody

type PutAgentQualificationJSONRequestBody = AgentQualificationInput

type PutBudgetJSONRequestBody

type PutBudgetJSONRequestBody = BudgetLimitInput

type PutBudgetParams

type PutBudgetParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type PutBudgetRouteJSONRequestBody

type PutBudgetRouteJSONRequestBody = BudgetRouteInput

type PutBudgetRouteParams

type PutBudgetRouteParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type PutDeploymentConfigurationJSONRequestBody

type PutDeploymentConfigurationJSONRequestBody = DeploymentConfiguration

type PutDeploymentConfigurationParams

type PutDeploymentConfigurationParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type PutGitOpsConfigurationJSONRequestBody

type PutGitOpsConfigurationJSONRequestBody = GitOpsConfiguration

type PutGitOpsConfigurationParams

type PutGitOpsConfigurationParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type PutMaintenanceConfigJSONRequestBody

type PutMaintenanceConfigJSONRequestBody = MaintenanceConfig

type PutMaintenanceConfigParams

type PutMaintenanceConfigParams struct {
	IfMatch string `json:"If-Match"`
}

type PutMembershipJSONRequestBody

type PutMembershipJSONRequestBody = MembershipInput

type PutMembershipParams

type PutMembershipParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type PutMergeConfigurationJSONRequestBody

type PutMergeConfigurationJSONRequestBody = MergeConfiguration

type PutMergeConfigurationParams

type PutMergeConfigurationParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type PutOrgOIDCJSONRequestBody

type PutOrgOIDCJSONRequestBody = OrgOIDCInput

type PutOrgOIDCParams

type PutOrgOIDCParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

type PutTeamJSONRequestBody

type PutTeamJSONRequestBody = TeamInput

type PutTeamParams

type PutTeamParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type ReceiveForgeWebhookJSONBody

type ReceiveForgeWebhookJSONBody map[string]interface{}

type ReceiveForgeWebhookJSONRequestBody

type ReceiveForgeWebhookJSONRequestBody ReceiveForgeWebhookJSONBody

type ReconcileMergeOperationParams

type ReconcileMergeOperationParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type ReconcileRepairParams

type ReconcileRepairParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 RepairCheck struct {
	Cases        map[string]string `json:"cases"`
	CommandId    string            `json:"command_id"`
	Complete     bool              `json:"complete"`
	Excerpt      *string           `json:"excerpt,omitempty"`
	ExitCode     int64             `json:"exit_code"`
	OutputSha256 string            `json:"output_sha256"`
	Reason       string            `json:"reason"`
}

type RepairCommand

type RepairCommand struct {
	Args           *[]string `json:"args"`
	Directory      string    `json:"directory"`
	Id             string    `json:"id"`
	ReportFormat   string    `json:"report_format"`
	TimeoutSeconds int64     `json:"timeout_seconds"`
}

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 RepairPatch struct {
	Content []byte `json:"content"`
	Delete  *bool  `json:"delete,omitempty"`
	Path    string `json:"path"`
}

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 ResumeCampaignParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type ResumeTaskParams

type ResumeTaskParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type RevokeConnectionParams

type RevokeConnectionParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type RevokeCustomProfileParams

type RevokeCustomProfileParams struct {
	IfMatch string `json:"If-Match"`
}

type RevokeInventoryWebhookParams

type RevokeInventoryWebhookParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type RevokeOrgOIDCInvitationParams

type RevokeOrgOIDCInvitationParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	Origin     string `json:"Origin"`
}

type RevokeRunnerParams

type RevokeRunnerParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type RevokeSessionsParams

type RevokeSessionsParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
}

type RewrapCredentialParams

type RewrapCredentialParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type Role

type Role string
const (
	RoleAdmin      Role = "admin"
	RoleMaintainer Role = "maintainer"
	RoleOwner      Role = "owner"
	RoleReviewer   Role = "reviewer"
	RoleViewer     Role = "viewer"
)

func (Role) Valid

func (e Role) Valid() bool

type RotateCredentialJSONRequestBody

type RotateCredentialJSONRequestBody = CredentialRotation

type RotateCredentialParams

type RotateCredentialParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type RotateInventoryWebhookParams

type RotateInventoryWebhookParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 RunnerCredential struct {
	ExpiresAt time.Time `json:"expires_at"`
	Runner    Runner    `json:"runner"`
	Token     string    `json:"token"`
}

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 RunnerPage struct {
	Complete   bool     `json:"complete"`
	Items      []Runner `json:"items"`
	NextCursor *string  `json:"next_cursor,omitempty"`
}

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 SetPauseParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

type SetPrivateRouteJSONRequestBody

type SetPrivateRouteJSONRequestBody = PrivateRouteChange

type SetPrivateRouteParams

type SetPrivateRouteParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type Setup

type Setup struct {
	Steps []SetupStep `json:"steps"`
}

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 SourceFile struct {
	Content    []byte `json:"content"`
	Delete     *bool  `json:"delete,omitempty"`
	Executable *bool  `json:"executable,omitempty"`
	Path       string `json:"path"`
}

type StartCampaignJSONRequestBody

type StartCampaignJSONRequestBody = CampaignControlInput

type StartCampaignParams

type StartCampaignParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
	IfMatch    string `json:"If-Match"`
}

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 StreamEventsParams struct {
	After       *int64  `form:"after,omitempty" json:"after,omitempty"`
	LastEventID *string `json:"Last-Event-ID,omitempty"`
}

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 TaskPage

type TaskPage struct {
	Complete   bool    `json:"complete"`
	Items      []Task  `json:"items"`
	NextCursor *string `json:"next_cursor,omitempty"`
}

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

func (TaskState) Valid

func (e TaskState) Valid() bool

type Team

type Team struct {
	Id            string   `json:"id"`
	Name          string   `json:"name"`
	RepositoryIds []string `json:"repository_ids"`
	Version       int64    `json:"version"`
}

type TeamInput

type TeamInput struct {
	Name          string   `json:"name"`
	RepositoryIds []string `json:"repository_ids"`
}

type TeamPage

type TeamPage struct {
	Complete   bool    `json:"complete"`
	Items      []Team  `json:"items"`
	NextCursor *string `json:"next_cursor,omitempty"`
}

type TestConnectionParams

type TestConnectionParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type TrackDeploymentJSONRequestBody

type TrackDeploymentJSONRequestBody = DeploymentTrackInput

type TrackDeploymentParams

type TrackDeploymentParams struct {
	XCSRFToken string `json:"X-CSRF-Token"`
}

type UpdateAutopilotJSONRequestBody

type UpdateAutopilotJSONRequestBody = AutopilotUpdate

type UpdateAutopilotParams

type UpdateAutopilotParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type UpdateConnectionJSONRequestBody

type UpdateConnectionJSONRequestBody = ConnectionUpdate

type UpdateConnectionParams

type UpdateConnectionParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

type UpdateFindingJSONRequestBody

type UpdateFindingJSONRequestBody = FindingUpdate

type UpdateFindingParams

type UpdateFindingParams struct {
	IfMatch string `json:"If-Match"`
}

type UpdateRunnerPoolJSONRequestBody

type UpdateRunnerPoolJSONRequestBody = RunnerPoolInput

type UpdateRunnerPoolParams

type UpdateRunnerPoolParams struct {
	IfMatch    string `json:"If-Match"`
	XCSRFToken string `json:"X-CSRF-Token"`
}

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 UsageDay

type UsageDay struct {
	Day      string `json:"day"`
	MicroUsd int64  `json:"micro_usd"`
	Records  int64  `json:"records"`
	Tokens   int64  `json:"tokens"`
}

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 UsageProvider struct {
	MicroUsd int64  `json:"micro_usd"`
	Provider string `json:"provider"`
	Records  int64  `json:"records"`
	Tokens   int64  `json:"tokens"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL