model

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDevelopmentEnvironmentSlug slug.Slug = "dev"
	DefaultStagingEnvironmentSlug     slug.Slug = "stg"
	DefaultProductionEnvironmentSlug  slug.Slug = "prod"
)
View Source
const (
	ListOrderAsc  = "asc"
	ListOrderDesc = "desc"

	ListDirectionNext = "next"
	ListDirectionPrev = "prev"

	ListSortCreatedAt   = "created_at"
	ListSortUpdatedAt   = "updated_at"
	ListSortName        = "name"
	ListSortEmail       = "email"
	ListSortOrder       = "sort_order"
	ListSortExecutedAt  = "executed_at"
	ListSortOccurredAt  = "occurred_at"
	ListSortExpiresAt   = "expires_at"
	ListSortScheduledAt = "scheduled_at"
	ListSortLastSeenAt  = "last_seen_at"
)
View Source
const (
	RuntimeVariableValueTypeUnknown     = pipelinemodel.RuntimeVariableValueTypeUnknown
	RuntimeVariableValueTypeText        = pipelinemodel.RuntimeVariableValueTypeText
	RuntimeVariableValueTypeInteger     = pipelinemodel.RuntimeVariableValueTypeInteger
	RuntimeVariableValueTypeBoolean     = pipelinemodel.RuntimeVariableValueTypeBoolean
	RuntimeVariableValueTypeDate        = pipelinemodel.RuntimeVariableValueTypeDate
	RuntimeVariableValueTypeUUID        = pipelinemodel.RuntimeVariableValueTypeUUID
	ContractRootShapeUnknown            = pipelinemodel.ContractRootShapeUnknown
	ContractRootShapeObject             = pipelinemodel.ContractRootShapeObject
	ContractRootShapeArray              = pipelinemodel.ContractRootShapeArray
	SinkBackendUnknown                  = pipelinemodel.SinkBackendUnknown
	SinkBackendFTP                      = pipelinemodel.SinkBackendFTP
	SinkBackendDB                       = pipelinemodel.SinkBackendDB
	SinkBackendHTTP                     = pipelinemodel.SinkBackendHTTP
	SinkBackendMongo                    = pipelinemodel.SinkBackendMongo
	SinkBackendGit                      = pipelinemodel.SinkBackendGit
	SinkBackendGithub                   = pipelinemodel.SinkBackendGithub
	SinkBackendGitlab                   = pipelinemodel.SinkBackendGitlab
	SinkBackendS3                       = pipelinemodel.SinkBackendS3
	IncrementalCheckpointKindUnknown    = pipelinemodel.IncrementalCheckpointKindUnknown
	IncrementalCheckpointKindWatermark  = pipelinemodel.IncrementalCheckpointKindWatermark
	IncrementalCheckpointKindCursor     = pipelinemodel.IncrementalCheckpointKindCursor
	ParameterDataTypeUnknown            = pipelinemodel.ParameterDataTypeUnknown
	ParameterDataTypeText               = pipelinemodel.ParameterDataTypeText
	ParameterDataTypeInteger            = pipelinemodel.ParameterDataTypeInteger
	ParameterDataTypeBoolean            = pipelinemodel.ParameterDataTypeBoolean
	ParameterDataTypeDate               = pipelinemodel.ParameterDataTypeDate
	ParameterDataTypeUUID               = pipelinemodel.ParameterDataTypeUUID
	DataSourceTypeUnknown               = pipelinemodel.DataSourceTypeUnknown
	DataSourceTypePostgres              = pipelinemodel.DataSourceTypePostgres
	DataSourceTypeMySQL                 = pipelinemodel.DataSourceTypeMySQL
	DataSourceTypeBigQuery              = pipelinemodel.DataSourceTypeBigQuery
	DataSourceTypeGoogleWorkspace       = pipelinemodel.DataSourceTypeGoogleWorkspace
	DataSourceTypeHTTP                  = pipelinemodel.DataSourceTypeHTTP
	DataSourceTypeMongoDB               = pipelinemodel.DataSourceTypeMongoDB
	DataSourceTypeHubSpot               = pipelinemodel.DataSourceTypeHubSpot
	DataSourceTypeFTP                   = pipelinemodel.DataSourceTypeFTP
	DataSourceTypeGit                   = pipelinemodel.DataSourceTypeGit
	DataSourceTypeGithub                = pipelinemodel.DataSourceTypeGithub
	DataSourceTypeGitlab                = pipelinemodel.DataSourceTypeGitlab
	DataSourceTypeS3                    = pipelinemodel.DataSourceTypeS3
	DataSourceTypeSnowflake             = pipelinemodel.DataSourceTypeSnowflake
	ContractFieldTypeUnknown            = pipelinemodel.ContractFieldTypeUnknown
	ContractFieldTypeValueString        = pipelinemodel.ContractFieldTypeValueString
	ContractFieldTypeValueInteger       = pipelinemodel.ContractFieldTypeValueInteger
	ContractFieldTypeValueNumber        = pipelinemodel.ContractFieldTypeValueNumber
	ContractFieldTypeValueDecimal       = pipelinemodel.ContractFieldTypeValueDecimal
	ContractFieldTypeValueBoolean       = pipelinemodel.ContractFieldTypeValueBoolean
	ContractFieldTypeValueObject        = pipelinemodel.ContractFieldTypeValueObject
	ContractFieldTypeValueArray         = pipelinemodel.ContractFieldTypeValueArray
	ContractFieldTypeValueDatetime      = pipelinemodel.ContractFieldTypeValueDatetime
	PipelineFormatUnknown               = pipelinemodel.PipelineFormatUnknown
	PipelineFormatYAML                  = pipelinemodel.PipelineFormatYAML
	PipelineFormatJSON                  = pipelinemodel.PipelineFormatJSON
	TransformOutputKindUnknown          = pipelinemodel.TransformOutputKindUnknown
	TransformOutputKindRows             = pipelinemodel.TransformOutputKindRows
	TransformOutputKindJSON             = pipelinemodel.TransformOutputKindJSON
	TransformOutputKindCSV              = pipelinemodel.TransformOutputKindCSV
	ContractRepresentationUnknown       = pipelinemodel.ContractRepresentationUnknown
	ContractRepresentationRows          = pipelinemodel.ContractRepresentationRows
	ContractRepresentationJSON          = pipelinemodel.ContractRepresentationJSON
	ContractRepresentationCSV           = pipelinemodel.ContractRepresentationCSV
	ContractRepresentationFile          = pipelinemodel.ContractRepresentationFile
	ContractRepresentationMultipartForm = pipelinemodel.ContractRepresentationMultipartForm
)
View Source
const (
	PipelineProposalModeRepositoryCredential = "repository_credential"
	PipelineProposalModeDelegatedUser        = "delegated_user"
	PipelineProposalModeOrganizationService  = "organization_service"
)
View Source
const (
	WishlistWorkflowToTestFirstMaxLength                    = 500
	WishlistCommunicationRequestVersionPreAlphaInvitationV1 = "pre_alpha_invitation_v1"
	WishlistCommunicationRequestVersionPreAlphaInvitationV2 = "pre_alpha_invitation_v2"
	WishlistCommunicationRequestVersion                     = WishlistCommunicationRequestVersionPreAlphaInvitationV2
	WishlistCommunicationRequestText                        = "By joining, you ask Braidplane to email you one pre-alpha access invitation if selected."
)
View Source
const CurrentEventSchemaVersion = 1
View Source
const PipelineRepositoryTemplateVersion = "v1"
View Source
const ProofReceiptSchemaVersion = 1

Variables

This section is empty.

Functions

func ActionStrings

func ActionStrings() []string

ActionStrings returns a slice of all String values of the enum

func AlertDeliveryAttemptStatusStrings

func AlertDeliveryAttemptStatusStrings() []string

AlertDeliveryAttemptStatusStrings returns a slice of all String values of the enum

func AlertDestinationTypeStrings

func AlertDestinationTypeStrings() []string

AlertDestinationTypeStrings returns a slice of all String values of the enum

func AlertPolicyScopeStrings

func AlertPolicyScopeStrings() []string

AlertPolicyScopeStrings returns a slice of all String values of the enum

func AlertPolicySupportsEventSource

func AlertPolicySupportsEventSource(sourceKind EventEntityType, sourceAction *EventAction) bool

AlertPolicySupportsEventSource reports whether a source entity/action pair is exposed to alert policies.

func BuildBoundaryCursors

func BuildBoundaryCursors[T any](
	items []T,
	normalized ListRequest,
	hasMore bool,
	cursorParts func(item T, sortBy string) (value, slug string),
) (*string, *string)

func ContractFieldTypeStrings

func ContractFieldTypeStrings() []string

func ContractRepresentationStrings

func ContractRepresentationStrings() []string

func ContractRootShapeStrings

func ContractRootShapeStrings() []string

func DataSourceRefCapabilityStrings

func DataSourceRefCapabilityStrings() []string

DataSourceRefCapabilityStrings returns a slice of all String values of the enum

func DataSourceSchemaImportStatusStrings

func DataSourceSchemaImportStatusStrings() []string

DataSourceSchemaImportStatusStrings returns a slice of all String values of the enum

func DataSourceTypeStrings

func DataSourceTypeStrings() []string

func EncodeCursor

func EncodeCursor(value, slug string) *string

func EnvironmentColorStrings

func EnvironmentColorStrings() []string

EnvironmentColorStrings returns a slice of all String values of the enum

func EventActionStrings

func EventActionStrings() []string

EventActionStrings returns a slice of all String values of the enum

func EventActorTypeStrings

func EventActorTypeStrings() []string

EventActorTypeStrings returns a slice of all String values of the enum

func EventClassStrings

func EventClassStrings() []string

EventClassStrings returns a slice of all String values of the enum

func EventEntityTypeStrings

func EventEntityTypeStrings() []string

EventEntityTypeStrings returns a slice of all String values of the enum

func FinalizePage

func FinalizePage[T any](items []T, normalized ListRequest) ([]T, bool)

func GitConfigurationHash

func GitConfigurationHash(config []byte) string

GitConfigurationHash identifies the persisted non-secret connection configuration.

func IncrementalCheckpointKindStrings

func IncrementalCheckpointKindStrings() []string

func MemberInvitationStatusStrings

func MemberInvitationStatusStrings() []string

MemberInvitationStatusStrings returns a slice of all String values of the enum

func NotificationDispatchStatusStrings

func NotificationDispatchStatusStrings() []string

NotificationDispatchStatusStrings returns a slice of all String values of the enum

func NotificationLifecycleStateStrings

func NotificationLifecycleStateStrings() []string

NotificationLifecycleStateStrings returns a slice of all String values of the enum

func NotificationSeverityStrings

func NotificationSeverityStrings() []string

NotificationSeverityStrings returns a slice of all String values of the enum

func NotificationTypeStrings

func NotificationTypeStrings() []string

NotificationTypeStrings returns a slice of all String values of the enum

func ParameterDataTypeStrings

func ParameterDataTypeStrings() []string

func PipelineCompletionConditionStrings

func PipelineCompletionConditionStrings() []string

PipelineCompletionConditionStrings returns a slice of all String values of the enum

func PipelineFormatStrings

func PipelineFormatStrings() []string

func PipelineRunSourceEntrypointStrings

func PipelineRunSourceEntrypointStrings() []string

PipelineRunSourceEntrypointStrings returns a slice of all String values of the enum

func PipelineRunSourceTypeStrings

func PipelineRunSourceTypeStrings() []string

PipelineRunSourceTypeStrings returns a slice of all String values of the enum

func PipelineScheduleFireStatusStrings

func PipelineScheduleFireStatusStrings() []string

PipelineScheduleFireStatusStrings returns a slice of all String values of the enum

func PipelineTriggerBackoffStrategyStrings

func PipelineTriggerBackoffStrategyStrings() []string

PipelineTriggerBackoffStrategyStrings returns a slice of all String values of the enum

func PipelineTriggerRetryAttemptStatusStrings

func PipelineTriggerRetryAttemptStatusStrings() []string

PipelineTriggerRetryAttemptStatusStrings returns a slice of all String values of the enum

func PipelineTriggerRetryFailureKindStrings

func PipelineTriggerRetryFailureKindStrings() []string

PipelineTriggerRetryFailureKindStrings returns a slice of all String values of the enum

func PipelineTriggerScheduleMisfirePolicyStrings

func PipelineTriggerScheduleMisfirePolicyStrings() []string

PipelineTriggerScheduleMisfirePolicyStrings returns a slice of all String values of the enum

func PipelineTriggerScheduleMisfireResultStrings

func PipelineTriggerScheduleMisfireResultStrings() []string

PipelineTriggerScheduleMisfireResultStrings returns a slice of all String values of the enum

func PipelineTriggerTypeStrings

func PipelineTriggerTypeStrings() []string

PipelineTriggerTypeStrings returns a slice of all String values of the enum

func PipelineTriggerVersionPolicyModeStrings

func PipelineTriggerVersionPolicyModeStrings() []string

PipelineTriggerVersionPolicyModeStrings returns a slice of all String values of the enum

func PrepareListQuery

func PrepareListQuery(req ListRequest, defaultSort string) (ListRequest, ListRequest)

func ProjectRepositorySetupStatusStrings

func ProjectRepositorySetupStatusStrings() []string

ProjectRepositorySetupStatusStrings returns a slice of all String values of the enum

func ProofClaimFamilyStrings

func ProofClaimFamilyStrings() []string

ProofClaimFamilyStrings returns a slice of all String values of the enum

func ProofControlOutcomeStrings

func ProofControlOutcomeStrings() []string

ProofControlOutcomeStrings returns a slice of all String values of the enum

func ProofEvidenceLevelSatisfies

func ProofEvidenceLevelSatisfies(actual, required ProofEvidenceLevel) bool

ProofEvidenceLevelSatisfies keeps operational results outside the no-write evidence ladder; an ordinary run cannot satisfy bounded_execution.

func ProofEvidenceLevelStrings

func ProofEvidenceLevelStrings() []string

ProofEvidenceLevelStrings returns a slice of all String values of the enum

func ProofEvidenceReferenceKindStrings

func ProofEvidenceReferenceKindStrings() []string

ProofEvidenceReferenceKindStrings returns a slice of all String values of the enum

func ProofLifecycleLinkKindStrings

func ProofLifecycleLinkKindStrings() []string

ProofLifecycleLinkKindStrings returns a slice of all String values of the enum

func ProofOperationalEvidenceStatusStrings

func ProofOperationalEvidenceStatusStrings() []string

ProofOperationalEvidenceStatusStrings returns a slice of all String values of the enum

func ProofVerdictStrings

func ProofVerdictStrings() []string

ProofVerdictStrings returns a slice of all String values of the enum

func ResourceStrings

func ResourceStrings() []string

ResourceStrings returns a slice of all String values of the enum

func ReverseInPlace

func ReverseInPlace[T any](items []T)

func ReverseOrder

func ReverseOrder(order string) string

func RoleStrings

func RoleStrings() []string

RoleStrings returns a slice of all String values of the enum

func RunRecencyOutcomeStrings

func RunRecencyOutcomeStrings() []string

RunRecencyOutcomeStrings returns a slice of all String values of the enum

func RuntimeVariableValueTypeStrings

func RuntimeVariableValueTypeStrings() []string

func SetProjectPipelineBackendModeStrings

func SetProjectPipelineBackendModeStrings() []string

SetProjectPipelineBackendModeStrings returns a slice of all String values of the enum

func SinkBackendStrings

func SinkBackendStrings() []string

func TransformOutputKindStrings

func TransformOutputKindStrings() []string

func WishlistFocusStrings

func WishlistFocusStrings() []string

WishlistFocusStrings returns a slice of all String values of the enum

Types

type APIKey

type APIKey struct {
	Slug              slug.Slug
	Name              string
	Description       *string
	TokenPrefix       string
	Role              slug.Slug
	CanManageAPIKeys  bool
	CreatedByUserSlug *slug.Slug
	ExpiresAt         *time.Time
	RevokedAt         *time.Time
	LastUsedAt        *time.Time
	Timestamps
}

type APIKeyPrincipal

type APIKeyPrincipal struct {
	Slug             slug.Slug
	OrgSlug          slug.Slug
	Role             slug.Slug
	CanManageAPIKeys bool
}

type APIKeyWithToken

type APIKeyWithToken struct {
	APIKey
	Token string
}

type Action

type Action int

Action represents an authorization action type.

const (
	ActionUnknown Action = iota // unknown
	ActionCreate                // create
	ActionDelete                // delete
	ActionRestore               // restore
	ActionPurge                 // purge
	ActionRead                  // read
	ActionUpdate                // update
	ActionExecute               // execute
)
const (
	Unknown Action = ActionUnknown
	Create  Action = ActionCreate
	Delete  Action = ActionDelete
	Restore Action = ActionRestore
	Purge   Action = ActionPurge
	Read    Action = ActionRead
	Update  Action = ActionUpdate
	Execute Action = ActionExecute
)

func ActionString

func ActionString(s string) (Action, error)

ActionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ActionValues

func ActionValues() []Action

ActionValues returns all values of the enum

func (Action) IsAAction

func (i Action) IsAAction() bool

IsAAction returns "true" if the value is listed in the enum definition. "false" otherwise

func (Action) MarshalText

func (i Action) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for Action

func (Action) String

func (i Action) String() string

func (*Action) UnmarshalText

func (i *Action) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for Action

type AlertDeliveryAttempt

type AlertDeliveryAttempt struct {
	Slug                     slug.Slug
	NotificationRecordSlug   slug.Slug
	AlertPolicySlug          *slug.Slug
	DestinationSlug          *slug.Slug
	DestinationName          *string
	DestinationType          AlertDestinationType
	Status                   AlertDeliveryAttemptStatus
	ProviderAttempt          int
	ProviderResponseMetadata map[string]any
	ErrorCategory            *string
	ErrorMessage             *string
	QueuedAt                 time.Time
	SentAt                   *time.Time
	FailedAt                 *time.Time
	CreatedAt                time.Time
	UpdatedAt                time.Time
}

type AlertDeliveryAttemptStatus

type AlertDeliveryAttemptStatus int
const (
	AlertDeliveryAttemptStatusUnknown AlertDeliveryAttemptStatus = iota // unknown
	AlertDeliveryAttemptStatusQueued                                    // queued
	AlertDeliveryAttemptStatusSent                                      // sent
	AlertDeliveryAttemptStatusFailed                                    // failed
)

func AlertDeliveryAttemptStatusString

func AlertDeliveryAttemptStatusString(s string) (AlertDeliveryAttemptStatus, error)

AlertDeliveryAttemptStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func AlertDeliveryAttemptStatusValues

func AlertDeliveryAttemptStatusValues() []AlertDeliveryAttemptStatus

AlertDeliveryAttemptStatusValues returns all values of the enum

func (AlertDeliveryAttemptStatus) IsAAlertDeliveryAttemptStatus

func (i AlertDeliveryAttemptStatus) IsAAlertDeliveryAttemptStatus() bool

IsAAlertDeliveryAttemptStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (AlertDeliveryAttemptStatus) MarshalJSON

func (i AlertDeliveryAttemptStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AlertDeliveryAttemptStatus

func (AlertDeliveryAttemptStatus) MarshalText

func (i AlertDeliveryAttemptStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AlertDeliveryAttemptStatus

func (AlertDeliveryAttemptStatus) String

func (*AlertDeliveryAttemptStatus) UnmarshalJSON

func (i *AlertDeliveryAttemptStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AlertDeliveryAttemptStatus

func (*AlertDeliveryAttemptStatus) UnmarshalText

func (i *AlertDeliveryAttemptStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AlertDeliveryAttemptStatus

type AlertDestination

type AlertDestination struct {
	Slug            slug.Slug
	Name            string
	Type            AlertDestinationType
	NonSecretConfig map[string]any
	Enabled         bool
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

type AlertDestinationType

type AlertDestinationType int
const (
	AlertDestinationTypeUnknown AlertDestinationType = iota // unknown
	AlertDestinationTypeEmail                               // email
	AlertDestinationTypeSlack                               // slack
)

func AlertDestinationTypeString

func AlertDestinationTypeString(s string) (AlertDestinationType, error)

AlertDestinationTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func AlertDestinationTypeValues

func AlertDestinationTypeValues() []AlertDestinationType

AlertDestinationTypeValues returns all values of the enum

func (AlertDestinationType) IsAAlertDestinationType

func (i AlertDestinationType) IsAAlertDestinationType() bool

IsAAlertDestinationType returns "true" if the value is listed in the enum definition. "false" otherwise

func (AlertDestinationType) MarshalJSON

func (i AlertDestinationType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AlertDestinationType

func (AlertDestinationType) MarshalText

func (i AlertDestinationType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AlertDestinationType

func (AlertDestinationType) String

func (i AlertDestinationType) String() string

func (*AlertDestinationType) UnmarshalJSON

func (i *AlertDestinationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AlertDestinationType

func (*AlertDestinationType) UnmarshalText

func (i *AlertDestinationType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AlertDestinationType

type AlertPolicy

type AlertPolicy struct {
	Slug             slug.Slug
	Name             string
	Scope            AlertPolicyScope
	ProjectSlug      *slug.Slug
	EnvironmentSlug  *slug.Slug
	NotificationType *NotificationType
	Severity         *NotificationSeverity
	LifecycleState   *NotificationLifecycleState
	SourceKind       *EventEntityType
	SourceAction     *EventAction
	SourceRef        *slug.Slug
	DestinationSlugs []slug.Slug
	Enabled          bool
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

type AlertPolicyScope

type AlertPolicyScope int
const (
	AlertPolicyScopeUnknown            AlertPolicyScope = iota // unknown
	AlertPolicyScopeOrganization                               // organization
	AlertPolicyScopeProject                                    // project
	AlertPolicyScopeProjectEnvironment                         // project_environment
)

func AlertPolicyScopeString

func AlertPolicyScopeString(s string) (AlertPolicyScope, error)

AlertPolicyScopeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func AlertPolicyScopeValues

func AlertPolicyScopeValues() []AlertPolicyScope

AlertPolicyScopeValues returns all values of the enum

func (AlertPolicyScope) IsAAlertPolicyScope

func (i AlertPolicyScope) IsAAlertPolicyScope() bool

IsAAlertPolicyScope returns "true" if the value is listed in the enum definition. "false" otherwise

func (AlertPolicyScope) MarshalJSON

func (i AlertPolicyScope) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AlertPolicyScope

func (AlertPolicyScope) MarshalText

func (i AlertPolicyScope) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AlertPolicyScope

func (AlertPolicyScope) String

func (i AlertPolicyScope) String() string

func (*AlertPolicyScope) UnmarshalJSON

func (i *AlertPolicyScope) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AlertPolicyScope

func (*AlertPolicyScope) UnmarshalText

func (i *AlertPolicyScope) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AlertPolicyScope

type CompletionAuthoritySnapshot

type CompletionAuthoritySnapshot struct {
	Valid       bool     `json:"valid"`
	Permissions []string `json:"permissions"`
}

CompletionAuthoritySnapshot contains only verified database permission facts.

type ContractFieldType

type ContractFieldType = pipelinemodel.ContractFieldType

Pipeline contracts have one implementation shared with the standalone CLI.

func ContractFieldTypeString

func ContractFieldTypeString(s string) (ContractFieldType, error)

func ContractFieldTypeValues

func ContractFieldTypeValues() []ContractFieldType

type ContractRepresentation

type ContractRepresentation = pipelinemodel.ContractRepresentation

Pipeline contracts have one implementation shared with the standalone CLI.

func ContractRepresentationString

func ContractRepresentationString(s string) (ContractRepresentation, error)

func ContractRepresentationValues

func ContractRepresentationValues() []ContractRepresentation

type ContractRootShape

type ContractRootShape = pipelinemodel.ContractRootShape

Pipeline contracts have one implementation shared with the standalone CLI.

func ContractRootShapeString

func ContractRootShapeString(s string) (ContractRootShape, error)

func ContractRootShapeValues

func ContractRootShapeValues() []ContractRootShape

type CreateProjectRepository

type CreateProjectRepository struct {
	Provider                DataSourceType `json:"provider"`
	Owner                   string         `json:"owner"`
	RepositoryName          string         `json:"repository_name"`
	TrackedBranch           string         `json:"tracked_branch"`
	PipelineDir             string         `json:"pipeline_dir"`
	CreatePrivateRepository bool           `json:"create_private_repository"`
}

type DataSourceBinding

type DataSourceBinding struct {
	PipelineSlug         slug.Slug
	DataSourceRefSlug    slug.Slug
	DataSourceRefName    string
	EnvironmentSlug      slug.Slug
	DataSourceSlug       slug.Slug
	DataSourceName       string
	DataSourceType       DataSourceType
	DataSourceActive     bool
	DataSourceReadOnly   bool
	RequiredCapabilities []DataSourceRefCapability
	BoundAt              time.Time
	UpdatedAt            time.Time
}

type DataSourceRef

type DataSourceRef struct {
	PipelineSlug         slug.Slug
	Slug                 slug.Slug
	Name                 string
	DataSourceType       DataSourceType
	RequiredCapabilities []DataSourceRefCapability
	Timestamps
}

type DataSourceRefCapability

type DataSourceRefCapability int
const (
	DataSourceRefCapabilityUnknown        DataSourceRefCapability = iota // unknown
	DataSourceRefCapabilityPipelineSource                                // pipeline_source
	DataSourceRefCapabilityPipelineSink                                  // pipeline_sink
)

func DataSourceRefCapabilityString

func DataSourceRefCapabilityString(s string) (DataSourceRefCapability, error)

DataSourceRefCapabilityString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func DataSourceRefCapabilityValues

func DataSourceRefCapabilityValues() []DataSourceRefCapability

DataSourceRefCapabilityValues returns all values of the enum

func (DataSourceRefCapability) IsADataSourceRefCapability

func (i DataSourceRefCapability) IsADataSourceRefCapability() bool

IsADataSourceRefCapability returns "true" if the value is listed in the enum definition. "false" otherwise

func (DataSourceRefCapability) MarshalText

func (i DataSourceRefCapability) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for DataSourceRefCapability

func (DataSourceRefCapability) String

func (i DataSourceRefCapability) String() string

func (*DataSourceRefCapability) UnmarshalText

func (i *DataSourceRefCapability) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for DataSourceRefCapability

type DataSourceSchemaImportStatus

type DataSourceSchemaImportStatus int
const (
	DataSourceSchemaImportStatusUnknown     DataSourceSchemaImportStatus = iota // unknown
	DataSourceSchemaImportStatusNotImported                                     // not_imported
	DataSourceSchemaImportStatusImporting                                       // importing
	DataSourceSchemaImportStatusFailed                                          // failed
	DataSourceSchemaImportStatusReady                                           // ready
)

func DataSourceSchemaImportStatusString

func DataSourceSchemaImportStatusString(s string) (DataSourceSchemaImportStatus, error)

DataSourceSchemaImportStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func DataSourceSchemaImportStatusValues

func DataSourceSchemaImportStatusValues() []DataSourceSchemaImportStatus

DataSourceSchemaImportStatusValues returns all values of the enum

func (DataSourceSchemaImportStatus) IsADataSourceSchemaImportStatus

func (i DataSourceSchemaImportStatus) IsADataSourceSchemaImportStatus() bool

IsADataSourceSchemaImportStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (DataSourceSchemaImportStatus) MarshalJSON

func (i DataSourceSchemaImportStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for DataSourceSchemaImportStatus

func (DataSourceSchemaImportStatus) MarshalText

func (i DataSourceSchemaImportStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for DataSourceSchemaImportStatus

func (DataSourceSchemaImportStatus) String

func (*DataSourceSchemaImportStatus) UnmarshalJSON

func (i *DataSourceSchemaImportStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for DataSourceSchemaImportStatus

func (*DataSourceSchemaImportStatus) UnmarshalText

func (i *DataSourceSchemaImportStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for DataSourceSchemaImportStatus

type DataSourceType

type DataSourceType = pipelinemodel.DataSourceType

Pipeline contracts have one implementation shared with the standalone CLI.

func DataSourceTypeString

func DataSourceTypeString(s string) (DataSourceType, error)

func DataSourceTypeValues

func DataSourceTypeValues() []DataSourceType

type DeleteEnvironment

type DeleteEnvironment struct {
	Reason                           *string `validate:"omitempty,max=2000"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type DeleteProjectOptions

type DeleteProjectOptions struct {
	CleanupRemote bool
}

type EnableProjectEnvironment

type EnableProjectEnvironment struct {
	IsDefault                        bool
	ProtectedEnvironmentConfirmation *slug.Slug
}

type Environment

type Environment struct {
	Slug         slug.Slug
	Name         string
	Description  *string
	Protected    bool
	Color        EnvironmentColor
	DeletedAt    *time.Time
	DeleteReason *string
	Timestamps
}

type EnvironmentColor

type EnvironmentColor int

EnvironmentColor is the controlled visual palette for runtime environment identity.

const (
	EnvironmentColorUnknown EnvironmentColor = iota // unknown
	EnvironmentColorBlue                            // blue
	EnvironmentColorAmber                           // amber
	EnvironmentColorRed                             // red
	EnvironmentColorGreen                           // green
	EnvironmentColorPurple                          // purple
	EnvironmentColorGray                            // gray
)

func EnvironmentColorString

func EnvironmentColorString(s string) (EnvironmentColor, error)

EnvironmentColorString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EnvironmentColorValues

func EnvironmentColorValues() []EnvironmentColor

EnvironmentColorValues returns all values of the enum

func (EnvironmentColor) IsAEnvironmentColor

func (i EnvironmentColor) IsAEnvironmentColor() bool

IsAEnvironmentColor returns "true" if the value is listed in the enum definition. "false" otherwise

func (EnvironmentColor) MarshalJSON

func (i EnvironmentColor) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EnvironmentColor

func (EnvironmentColor) MarshalText

func (i EnvironmentColor) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for EnvironmentColor

func (EnvironmentColor) String

func (i EnvironmentColor) String() string

func (*EnvironmentColor) UnmarshalJSON

func (i *EnvironmentColor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EnvironmentColor

func (*EnvironmentColor) UnmarshalText

func (i *EnvironmentColor) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for EnvironmentColor

type EnvironmentSecret

type EnvironmentSecret struct {
	EnvironmentSlug slug.Slug
	Key             string
	Description     *string
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

type Event

type Event struct {
	Slug          slug.Slug
	EventClass    EventClass
	ActorType     EventActorType
	ActorSlug     *slug.Slug
	EntityType    EventEntityType
	EntitySlug    *slug.Slug
	Action        EventAction
	OccurredAt    time.Time
	RequestID     *string
	SchemaVersion int
	Metadata      map[string]any
	CreatedAt     time.Time
}

type EventAction

type EventAction int
const (
	EventActionUnknown        EventAction = iota // unknown
	EventActionCreate                            // create
	EventActionUpdate                            // update
	EventActionDelete                            // delete
	EventActionRestore                           // restore
	EventActionPurge                             // purge
	EventActionExecute                           // execute
	EventActionRefresh                           // refresh
	EventActionTestConnection                    // test_connection
	EventActionRotate                            // rotate
	EventActionRevoke                            // revoke
	EventActionReconcile                         // reconcile
	EventActionDeploy                            // deploy
	EventActionPublish                           // publish
	EventActionEnable                            // enable
	EventActionDisable                           // disable
	EventActionAccept                            // accept
	EventActionDecline                           // decline
	EventActionExpire                            // expire
	EventActionAutoAccept                        // auto_accept
	EventActionAcknowledge                       // acknowledge
	EventActionResolve                           // resolve
	EventActionRead                              // read
	EventActionValidate                          // validate
)

func EventActionString

func EventActionString(s string) (EventAction, error)

EventActionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EventActionValues

func EventActionValues() []EventAction

EventActionValues returns all values of the enum

func (EventAction) IsAEventAction

func (i EventAction) IsAEventAction() bool

IsAEventAction returns "true" if the value is listed in the enum definition. "false" otherwise

func (EventAction) MarshalJSON

func (i EventAction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EventAction

func (EventAction) MarshalText

func (i EventAction) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for EventAction

func (EventAction) String

func (i EventAction) String() string

func (*EventAction) UnmarshalJSON

func (i *EventAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EventAction

func (*EventAction) UnmarshalText

func (i *EventAction) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for EventAction

type EventActor

type EventActor struct {
	Type EventActorType
	Slug *slug.Slug
}

func APIKeyEventActor

func APIKeyEventActor(apiKeySlug slug.Slug) EventActor

func ExternalEventActor

func ExternalEventActor() EventActor

func SystemEventActor

func SystemEventActor() EventActor

func UserEventActor

func UserEventActor(actorSlug slug.Slug) EventActor

func (EventActor) UserSlugValue

func (a EventActor) UserSlugValue() slug.Slug

type EventActorType

type EventActorType int
const (
	EventActorTypeUnknown  EventActorType = iota // unknown
	EventActorTypeUser                           // user
	EventActorTypeAPIKey                         // api_key
	EventActorTypeSystem                         // system
	EventActorTypeExternal                       // external
)

func EventActorTypeString

func EventActorTypeString(s string) (EventActorType, error)

EventActorTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EventActorTypeValues

func EventActorTypeValues() []EventActorType

EventActorTypeValues returns all values of the enum

func (EventActorType) IsAEventActorType

func (i EventActorType) IsAEventActorType() bool

IsAEventActorType returns "true" if the value is listed in the enum definition. "false" otherwise

func (EventActorType) MarshalJSON

func (i EventActorType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EventActorType

func (EventActorType) MarshalText

func (i EventActorType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for EventActorType

func (EventActorType) String

func (i EventActorType) String() string

func (*EventActorType) UnmarshalJSON

func (i *EventActorType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EventActorType

func (*EventActorType) UnmarshalText

func (i *EventActorType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for EventActorType

type EventClass

type EventClass int
const (
	EventClassUnknown       EventClass = iota // unknown
	EventClassActivity                        // activity
	EventClassSecurityAudit                   // security_audit
)

func EventClassString

func EventClassString(s string) (EventClass, error)

EventClassString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EventClassValues

func EventClassValues() []EventClass

EventClassValues returns all values of the enum

func (EventClass) IsAEventClass

func (i EventClass) IsAEventClass() bool

IsAEventClass returns "true" if the value is listed in the enum definition. "false" otherwise

func (EventClass) MarshalJSON

func (i EventClass) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EventClass

func (EventClass) MarshalText

func (i EventClass) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for EventClass

func (EventClass) String

func (i EventClass) String() string

func (*EventClass) UnmarshalJSON

func (i *EventClass) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EventClass

func (*EventClass) UnmarshalText

func (i *EventClass) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for EventClass

type EventEntityType

type EventEntityType int
const (
	EventEntityTypeUnknown            EventEntityType = iota // unknown
	EventEntityTypeOrganization                              // organization
	EventEntityTypeMember                                    // member
	EventEntityTypeMemberInvitation                          // member_invitation
	EventEntityTypeRole                                      // role
	EventEntityTypeAPIKey                                    // api_key
	EventEntityTypeDataSource                                // data_source
	EventEntityTypeDataSourceRef                             // data_source_ref
	EventEntityTypeDataSourceBinding                         // data_source_binding
	EventEntityTypeProject                                   // project
	EventEntityTypeEnvironment                               // environment
	EventEntityTypeProjectEnvironment                        // project_environment
	EventEntityTypeQuery                                     // query
	EventEntityTypeQueryExecution                            // query_execution
	EventEntityTypePipeline                                  // pipeline
	EventEntityTypePipelineDeployment                        // pipeline_deployment
	EventEntityTypePipelineVersion                           // pipeline_version
	EventEntityTypePipelineRun                               // pipeline_run
	EventEntityTypePipelineCheckpoint                        // pipeline_checkpoint
	EventEntityTypePipelineTrigger                           // pipeline_trigger
	EventEntityTypeNotification                              // notification
	EventEntityTypeAlertDestination                          // alert_destination
	EventEntityTypeAlertPolicy                               // alert_policy
)

func EventEntityTypeString

func EventEntityTypeString(s string) (EventEntityType, error)

EventEntityTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EventEntityTypeValues

func EventEntityTypeValues() []EventEntityType

EventEntityTypeValues returns all values of the enum

func (EventEntityType) IsAEventEntityType

func (i EventEntityType) IsAEventEntityType() bool

IsAEventEntityType returns "true" if the value is listed in the enum definition. "false" otherwise

func (EventEntityType) MarshalJSON

func (i EventEntityType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EventEntityType

func (EventEntityType) MarshalText

func (i EventEntityType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for EventEntityType

func (EventEntityType) String

func (i EventEntityType) String() string

func (*EventEntityType) UnmarshalJSON

func (i *EventEntityType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EventEntityType

func (*EventEntityType) UnmarshalText

func (i *EventEntityType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for EventEntityType

type EventSourceMetadata

type EventSourceMetadata struct {
	SourceKind    EventEntityType
	SourceActions []EventAction
}

func AlertPolicyEventSourceMetadata

func AlertPolicyEventSourceMetadata() []EventSourceMetadata

AlertPolicyEventSourceMetadata returns the entity/action pairs alert policies can target.

type EventSourceMetadataResponse

type EventSourceMetadataResponse struct {
	NotificationTypes []NotificationType
	Sources           []EventSourceMetadata
	SourceRefs        []EventSourceRefOption
}

type EventSourceRefOption

type EventSourceRefOption struct {
	Value slug.Slug
	Label string
}

type GitHubRepositoryAuthorization

type GitHubRepositoryAuthorization struct {
	State          string
	Code           string
	InstallationID int64
}

GitHubRepositoryAuthorization is request-only and must never be persisted.

type GitLabRepositoryAuthorization

type GitLabRepositoryAuthorization struct {
	State  string
	Code   string
	Issuer string
}

GitLabRepositoryAuthorization is request-only and must never be persisted.

type IncrementalCheckpointKind

type IncrementalCheckpointKind = pipelinemodel.IncrementalCheckpointKind

Pipeline contracts have one implementation shared with the standalone CLI.

func IncrementalCheckpointKindString

func IncrementalCheckpointKindString(s string) (IncrementalCheckpointKind, error)

func IncrementalCheckpointKindValues

func IncrementalCheckpointKindValues() []IncrementalCheckpointKind

type ListEnvironmentsRequest

type ListEnvironmentsRequest struct {
	ListRequest
	IncludeDeleted bool
}

type ListRequest

type ListRequest struct {
	Limit     int    // Maximum number of items to return
	Cursor    string // Cursor for pagination (optional, for fetching next page)
	SortBy    string // Sort field (endpoint-specific enum values)
	Order     string // Sort order: "asc" or "desc"
	Direction string // Page direction: "next" or "prev"
	Status    string // Optional endpoint-specific status filter
}

ListRequest is a shared pagination request type used by all list operations.

func NormalizeListRequest

func NormalizeListRequest(req ListRequest, defaultSort string) ListRequest

type ListResponse

type ListResponse[T any] struct {
	Items      []T     // Array of items in this page
	HasMore    bool    // Whether there are more results after this page
	NextCursor *string // Cursor for fetching the next page (nil if no more results)
	PrevCursor *string // Cursor for fetching the previous page (nil if not available)
}

ListResponse is a shared paginated response type used by all list operations.

type MFAChallenge

type MFAChallenge struct {
	ChallengeToken string
	ExpiresAt      time.Time
}

type Member

type Member struct {
	UserSlug slug.Slug
	Email    string
	Role     slug.Slug
	Timestamps
}

type MemberInvitation

type MemberInvitation struct {
	Slug              slug.Slug
	OrganizationSlug  slug.Slug
	Email             string
	Role              slug.Slug
	Status            MemberInvitationStatus
	InvitedByUserSlug *slug.Slug
	AcceptedUserSlug  *slug.Slug
	ExpiresAt         time.Time
	LastSentAt        time.Time
	AcceptedAt        *time.Time
	DeclinedAt        *time.Time
	RevokedAt         *time.Time
	ExpiredAt         *time.Time
	Timestamps
}

MemberInvitation represents a pending or historical invitation separately from active membership.

type MemberInvitationAcceptance

type MemberInvitationAcceptance struct {
	Invitation MemberInvitation
	Member     Member
}

MemberInvitationAcceptance represents the accepted invitation and resulting organization member.

type MemberInvitationEmail

type MemberInvitationEmail struct {
	Email            string
	OrganizationName string
	InviterName      string
	InviterEmail     string
	Role             slug.Slug
	ExpiresAt        time.Time
	Locale           string
}

MemberInvitationEmail carries the non-secret context needed to render an invitation email.

type MemberInvitationStatus

type MemberInvitationStatus int

MemberInvitationStatus describes the durable lifecycle state of an organization member invitation.

const (
	MemberInvitationStatusUnknown  MemberInvitationStatus = iota // unknown
	MemberInvitationStatusPending                                // pending
	MemberInvitationStatusAccepted                               // accepted
	MemberInvitationStatusDeclined                               // declined
	MemberInvitationStatusRevoked                                // revoked
	MemberInvitationStatusExpired                                // expired
)

func MemberInvitationStatusString

func MemberInvitationStatusString(s string) (MemberInvitationStatus, error)

MemberInvitationStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func MemberInvitationStatusValues

func MemberInvitationStatusValues() []MemberInvitationStatus

MemberInvitationStatusValues returns all values of the enum

func (MemberInvitationStatus) IsAMemberInvitationStatus

func (i MemberInvitationStatus) IsAMemberInvitationStatus() bool

IsAMemberInvitationStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (MemberInvitationStatus) MarshalJSON

func (i MemberInvitationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for MemberInvitationStatus

func (MemberInvitationStatus) MarshalText

func (i MemberInvitationStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for MemberInvitationStatus

func (MemberInvitationStatus) String

func (i MemberInvitationStatus) String() string

func (*MemberInvitationStatus) UnmarshalJSON

func (i *MemberInvitationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for MemberInvitationStatus

func (*MemberInvitationStatus) UnmarshalText

func (i *MemberInvitationStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for MemberInvitationStatus

type NewAPIKey

type NewAPIKey struct {
	Name             string    `validate:"required"`
	Slug             slug.Slug `validate:"omitempty"`
	Description      *string
	Role             slug.Slug `validate:"required"`
	ExpiresAt        *time.Time
	CanManageAPIKeys bool
}

type NewDataSourceRef

type NewDataSourceRef struct {
	Name                 string `validate:"required,min=1,max=255"`
	Slug                 slug.Slug
	DataSourceType       DataSourceType            `validate:"required"`
	RequiredCapabilities []DataSourceRefCapability `validate:"required,min=1,dive,required"`
}

type NewEnvironment

type NewEnvironment struct {
	Name        string `validate:"required,min=1,max=255"`
	Slug        slug.Slug
	Description *string `validate:"omitempty,max=2000"`
	Protected   bool
	Color       EnvironmentColor `validate:"required,environmentcolor"`
}

func DefaultEnvironmentDefinitions

func DefaultEnvironmentDefinitions() []NewEnvironment

type NewMember

type NewMember struct {
	UserSlug slug.Slug `validate:"required"`
	Role     slug.Slug `validate:"required"`
}

type NewMemberInvitation

type NewMemberInvitation struct {
	Email string    `validate:"required,email"`
	Role  slug.Slug `validate:"required"`
}

NewMemberInvitation describes the admin request to invite an email address into an organization role.

type NewODCSContract

type NewODCSContract struct {
	Slug   slug.Slug
	Name   string `validate:"required,min=1,max=255"`
	ODCSID string `validate:"required,min=1,max=255"`
}

type NewOrganization

type NewOrganization struct {
	Name string `validate:"required,min=1,max=100"`
	Slug slug.Slug
}

type NewPersonalAccessToken

type NewPersonalAccessToken struct {
	Name                          string    `validate:"required"`
	Slug                          slug.Slug `validate:"omitempty"`
	Description                   *string
	ExpiresAt                     *time.Time
	CanManagePersonalAccessTokens bool
}

type NewPipelineTrigger

type NewPipelineTrigger struct {
	Name             string `validate:"required,min=1,max=255"`
	Slug             slug.Slug
	Type             PipelineTriggerType `validate:"required"`
	Enabled          bool
	PipelineSlug     slug.Slug                    `validate:"required"`
	VersionPolicy    PipelineTriggerVersionPolicy `validate:"required"`
	RuntimeInputKeys []string
	RetryPolicy      PipelineTriggerRetryPolicy `validate:"required"`
	ScheduleConfig   *PipelineTriggerScheduleConfig
	CompletionConfig *PipelineTriggerCompletionConfig
	WebhookConfig    *PipelineTriggerWebhookConfig
}

NewPipelineTrigger is the service input for creating a persisted trigger resource.

type NewProject

type NewProject struct {
	Name string `validate:"required,min=1,max=255"`
	Slug slug.Slug
}

type NewRole

type NewRole struct {
	Name      string `validate:"required,min=1,max=100"`
	Slug      slug.Slug
	IsDefault bool
}

type NewUser

type NewUser struct {
	FullName string `validate:"required,min=1,max=100"`
	Email    string `validate:"required,email"`
	Password string `validate:"required,min=8,max=1024"`
	Role     Role   `validate:"required,role"`
	Locale   string
}

type NewWishlistRegistration

type NewWishlistRegistration struct {
	WorkEmail                   string        `validate:"required,email,max=254"`
	CareMostAbout               WishlistFocus `validate:"wishlistfocus"`
	CommunicationRequestVersion string        `validate:"required,wishlistcommunicationrequestversion"`
	WorkflowToTestFirst         string        `validate:"omitempty,max=500"`
}

type NotificationCandidate

type NotificationCandidate struct {
	OrgSlug           slug.Slug `validate:"required"`
	RecordSlug        *slug.Slug
	ProjectSlug       *slug.Slug
	EnvironmentSlug   *slug.Slug
	NotificationType  NotificationType     `validate:"notificationtype"`
	Severity          NotificationSeverity `validate:"notificationseverity"`
	LifecycleState    NotificationLifecycleState
	ObservedAt        time.Time
	DedupeFingerprint string `validate:"required"`
	SourceEventSlug   *slug.Slug
	SourceEntityType  EventEntityType `validate:"evententitytype"`
	SourceAction      EventAction     `validate:"eventaction"`
	SourceRefs        map[string]string
	SafeMetadata      map[string]any
}

NotificationCandidate is safe source evidence, shared by producers and the generic durable candidate worker. It contains no destination or provider data.

type NotificationDispatchStatus

type NotificationDispatchStatus int
const (
	NotificationDispatchStatusUnknown NotificationDispatchStatus = iota // unknown
	NotificationDispatchStatusQueued                                    // queued
)

func NotificationDispatchStatusString

func NotificationDispatchStatusString(s string) (NotificationDispatchStatus, error)

NotificationDispatchStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NotificationDispatchStatusValues

func NotificationDispatchStatusValues() []NotificationDispatchStatus

NotificationDispatchStatusValues returns all values of the enum

func (NotificationDispatchStatus) IsANotificationDispatchStatus

func (i NotificationDispatchStatus) IsANotificationDispatchStatus() bool

IsANotificationDispatchStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (NotificationDispatchStatus) MarshalJSON

func (i NotificationDispatchStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for NotificationDispatchStatus

func (NotificationDispatchStatus) MarshalText

func (i NotificationDispatchStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for NotificationDispatchStatus

func (NotificationDispatchStatus) String

func (*NotificationDispatchStatus) UnmarshalJSON

func (i *NotificationDispatchStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for NotificationDispatchStatus

func (*NotificationDispatchStatus) UnmarshalText

func (i *NotificationDispatchStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for NotificationDispatchStatus

type NotificationDispatchSummary

type NotificationDispatchSummary struct {
	DestinationSlug slug.Slug
	Status          NotificationDispatchStatus
	QueuedAt        *time.Time
}

type NotificationEmail

type NotificationEmail struct {
	OrganizationName      string
	RecordSlug            slug.Slug
	NotificationType      NotificationType
	NotificationTypeLabel string
	Severity              NotificationSeverity
	Summary               string
	SourceEntityType      EventEntityType
	SourceAction          EventAction
	OccurrenceCount       int
}

type NotificationEmailRecipient

type NotificationEmailRecipient struct {
	Email    string
	FullName string
	Locale   string
}

type NotificationLifecycleState

type NotificationLifecycleState int
const (
	NotificationLifecycleStateUnknown      NotificationLifecycleState = iota // unknown
	NotificationLifecycleStateOpen                                           // open
	NotificationLifecycleStateAcknowledged                                   // acknowledged
	NotificationLifecycleStateResolved                                       // resolved
)

func NotificationLifecycleStateString

func NotificationLifecycleStateString(s string) (NotificationLifecycleState, error)

NotificationLifecycleStateString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NotificationLifecycleStateValues

func NotificationLifecycleStateValues() []NotificationLifecycleState

NotificationLifecycleStateValues returns all values of the enum

func (NotificationLifecycleState) IsANotificationLifecycleState

func (i NotificationLifecycleState) IsANotificationLifecycleState() bool

IsANotificationLifecycleState returns "true" if the value is listed in the enum definition. "false" otherwise

func (NotificationLifecycleState) MarshalJSON

func (i NotificationLifecycleState) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for NotificationLifecycleState

func (NotificationLifecycleState) MarshalText

func (i NotificationLifecycleState) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for NotificationLifecycleState

func (NotificationLifecycleState) String

func (*NotificationLifecycleState) UnmarshalJSON

func (i *NotificationLifecycleState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for NotificationLifecycleState

func (*NotificationLifecycleState) UnmarshalText

func (i *NotificationLifecycleState) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for NotificationLifecycleState

type NotificationListItem

type NotificationListItem struct {
	Slug             slug.Slug
	NotificationType NotificationType
	Severity         NotificationSeverity
	LifecycleState   NotificationLifecycleState
	Summary          string
	SourceEventSlug  *slug.Slug
	SourceEntityType EventEntityType
	SourceAction     EventAction
	SourceRefs       map[string]string
	SafeMetadata     map[string]any
	OccurrenceCount  int
	FirstSeenAt      time.Time
	LastSeenAt       time.Time
	LastOccurrenceAt time.Time
	DispatchStatuses []NotificationDispatchSummary
	AcknowledgedAt   *time.Time
	ResolvedAt       *time.Time
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

type NotificationRecord

type NotificationRecord struct {
	Slug              slug.Slug
	ProjectSlug       *slug.Slug
	EnvironmentSlug   *slug.Slug
	NotificationType  NotificationType
	Severity          NotificationSeverity
	LifecycleState    NotificationLifecycleState
	DedupeFingerprint string
	SourceEventSlug   *slug.Slug
	SourceEntityType  EventEntityType
	SourceAction      EventAction
	SourceRefs        map[string]string
	SafeMetadata      map[string]any
	FirstSeenAt       time.Time
	LastSeenAt        time.Time
	OccurrenceCount   int
	LastOccurrenceAt  time.Time
	DispatchSummary   map[string]any
	AcknowledgedAt    *time.Time
	ResolvedAt        *time.Time
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

type NotificationSeverity

type NotificationSeverity int
const (
	NotificationSeverityUnknown  NotificationSeverity = iota // unknown
	NotificationSeverityInfo                                 // info
	NotificationSeverityWarning                              // warning
	NotificationSeverityCritical                             // critical
)

func NotificationSeverityString

func NotificationSeverityString(s string) (NotificationSeverity, error)

NotificationSeverityString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NotificationSeverityValues

func NotificationSeverityValues() []NotificationSeverity

NotificationSeverityValues returns all values of the enum

func (NotificationSeverity) IsANotificationSeverity

func (i NotificationSeverity) IsANotificationSeverity() bool

IsANotificationSeverity returns "true" if the value is listed in the enum definition. "false" otherwise

func (NotificationSeverity) MarshalJSON

func (i NotificationSeverity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for NotificationSeverity

func (NotificationSeverity) MarshalText

func (i NotificationSeverity) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for NotificationSeverity

func (NotificationSeverity) String

func (i NotificationSeverity) String() string

func (*NotificationSeverity) UnmarshalJSON

func (i *NotificationSeverity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for NotificationSeverity

func (*NotificationSeverity) UnmarshalText

func (i *NotificationSeverity) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for NotificationSeverity

type NotificationType

type NotificationType int
const (
	NotificationTypeUnknown                      NotificationType = iota // unknown
	NotificationTypePipelineRunFailed                                    // pipeline.run_failed
	NotificationTypePipelineRetryExhausted                               // pipeline.retry_exhausted
	NotificationTypePipelineScheduledRunDelayed                          // pipeline.scheduled_run_delayed
	NotificationTypePipelineScheduledRunMissing                          // pipeline.scheduled_run_missing
	NotificationTypePipelineFreshnessSLABreached                         // pipeline.freshness_sla_breached
	NotificationTypePipelineContractFailure                              // pipeline.contract_failure
	NotificationTypePipelineRunSucceeded                                 // pipeline.run_succeeded
)

func NotificationTypeString

func NotificationTypeString(s string) (NotificationType, error)

NotificationTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NotificationTypeValues

func NotificationTypeValues() []NotificationType

NotificationTypeValues returns all values of the enum

func ProducerBackedNotificationTypes

func ProducerBackedNotificationTypes() []NotificationType

func (NotificationType) IsANotificationType

func (i NotificationType) IsANotificationType() bool

IsANotificationType returns "true" if the value is listed in the enum definition. "false" otherwise

func (NotificationType) MarshalJSON

func (i NotificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for NotificationType

func (NotificationType) MarshalText

func (i NotificationType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for NotificationType

func (NotificationType) String

func (i NotificationType) String() string

func (*NotificationType) UnmarshalJSON

func (i *NotificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for NotificationType

func (*NotificationType) UnmarshalText

func (i *NotificationType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for NotificationType

type NullableStringUpdate

type NullableStringUpdate struct {
	Present bool
	Value   *string
}

NullableStringUpdate carries both field presence and nullable string value for partial updates.

type NullableTimeUpdate

type NullableTimeUpdate struct {
	Present bool
	Value   *time.Time
}

NullableTimeUpdate carries both field presence and nullable time value for partial updates.

type ODCSArtifact

type ODCSArtifact struct {
	ContractSlug   slug.Slug `json:"contract_slug"`
	RevisionSlug   slug.Slug `json:"revision_slug"`
	Path           string    `json:"path"`
	Format         string    `json:"format"`
	Digest         string    `json:"digest"`
	ArtifactDigest string    `json:"artifact_digest"`
	Original       []byte    `json:"original"`
	SourceRepo     string    `json:"source_repo"`
	Commit         string    `json:"commit"`
}

ODCSArtifact retains original bytes independently of semantic revision identity.

type ODCSArtifactImport

type ODCSArtifactImport struct {
	Commit    string         `json:"commit"`
	Applied   bool           `json:"applied"`
	Artifacts []ODCSArtifact `json:"artifacts"`
}

type ODCSContract

type ODCSContract struct {
	Slug   slug.Slug
	Name   string
	ODCSID string
	Status string
	Timestamps
}

type ODCSDeclarationCoverage

type ODCSDeclarationCoverage struct {
	Path          string `json:"path"`
	State         string `json:"state"`
	Reason        string `json:"reason"`
	Applicability string `json:"applicability"`
	RuntimeScope  string `json:"runtime_scope,omitempty"`
}

Paths identify declarations within the exact immutable document digest. Enforced means compiled into a runtime check, never that a check has passed.

type ODCSRevision

type ODCSRevision struct {
	Slug            slug.Slug
	Digest          string
	ODCSVersion     string
	DocumentVersion string
	DeclaredStatus  string
	Status          string
	SchemaObjects   []ODCSSchemaObject
	Document        json.RawMessage
	CreatedAt       time.Time
}

type ODCSSchemaObject

type ODCSSchemaObject struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type OIDCUserInfo

type OIDCUserInfo struct {
	Provider          string // e.g., "google", "github", etc.
	ProviderID        string // Provider-specific user ID (e.g., Google sub, GitHub ID, etc.)
	Email             string
	Name              string
	Picture           string
	Locale            string
	PreferredUsername string // OIDC preferred_username claim
}

type OrgRole

type OrgRole struct {
	Slug      slug.Slug
	Name      string
	IsDefault bool
	DeletedAt *time.Time
	Timestamps
}

type Organization

type Organization struct {
	Name     string
	Slug     slug.Slug
	Settings []byte
	Timestamps
}

type OrganizationRetentionPolicy

type OrganizationRetentionPolicy struct {
	QueryExecutionRetentionDays   int `json:"query_execution_retention_days"`
	ReplayCheckpointRetentionDays int `json:"replay_checkpoint_retention_days"`
	RunHistoryRetentionDays       int `json:"run_history_retention_days"`
	EventLogRetentionDays         int `json:"event_log_retention_days"`
}

OrganizationRetentionPolicy defines the customer-data windows owned by an organization. Project and pipeline overrides are deliberately unsupported.

func DefaultOrganizationRetentionPolicy

func DefaultOrganizationRetentionPolicy() OrganizationRetentionPolicy

type OrganizationRetentionRun

type OrganizationRetentionRun struct {
	Slug                     slug.Slug
	Attempt                  int
	Status                   OrganizationRetentionRunStatus
	PolicySnapshot           *OrganizationRetentionPolicy
	QueryExecutionsDeleted   int64
	ReplayCheckpointsDeleted int64
	PipelineRunsDeleted      int64
	EventsDeleted            int64
	FailureCode              OrganizationRetentionRunFailureCode
	StartedAt                time.Time
	CompletedAt              time.Time
}

OrganizationRetentionRun is the sanitized tenant-safe record of one terminal maintenance attempt. Worker job identifiers and dependency errors deliberately stay outside this model.

type OrganizationRetentionRunFailureCode

type OrganizationRetentionRunFailureCode string
const (
	OrganizationRetentionRunFailureCodeInvalidPolicy     OrganizationRetentionRunFailureCode = "invalid_policy"
	OrganizationRetentionRunFailureCodeMaintenanceFailed OrganizationRetentionRunFailureCode = "maintenance_failed"
)

type OrganizationRetentionRunStatus

type OrganizationRetentionRunStatus string
const (
	OrganizationRetentionRunStatusSucceeded OrganizationRetentionRunStatus = "succeeded"
	OrganizationRetentionRunStatusFailed    OrganizationRetentionRunStatus = "failed"
)

type OrganizationWithRole

type OrganizationWithRole struct {
	Organization
	MemberRole string
}

type Owner

type Owner struct {
	Slug  slug.Slug
	Email string
	Timestamps
}

type ParameterDataType

type ParameterDataType = pipelinemodel.ParameterDataType

Pipeline contracts have one implementation shared with the standalone CLI.

func ParameterDataTypeString

func ParameterDataTypeString(s string) (ParameterDataType, error)

func ParameterDataTypeValues

func ParameterDataTypeValues() []ParameterDataType

type Permission

type Permission struct {
	Resource string
	Action   string
}

type PersonalAccessToken

type PersonalAccessToken struct {
	Slug                          slug.Slug
	Name                          string
	Description                   *string
	TokenPrefix                   string
	UserSlug                      slug.Slug
	CanManagePersonalAccessTokens bool
	ExpiresAt                     *time.Time
	RevokedAt                     *time.Time
	LastUsedAt                    *time.Time
	Timestamps
}

type PersonalAccessTokenWithToken

type PersonalAccessTokenWithToken struct {
	PersonalAccessToken
	Token string
}

type PinnedODCSPort

type PinnedODCSPort struct {
	StepSlug       slug.Slug                 `json:"step_slug"`
	Port           string                    `json:"port"`
	ContractSlug   slug.Slug                 `json:"contract_slug"`
	RevisionSlug   slug.Slug                 `json:"revision_slug"`
	SchemaObjectID string                    `json:"schema_object_id"`
	Digest         string                    `json:"digest"`
	Shape          *payload.Contract         `json:"shape"`
	CompilerID     string                    `json:"compiler_id,omitempty"`
	Coverage       []ODCSDeclarationCoverage `json:"coverage,omitempty"`
}

PinnedODCSPort retains the executable shape and provenance independently of catalog reads.

type PipelineCompletionAttempt

type PipelineCompletionAttempt struct {
	RunSlug            slug.Slug
	AttemptNumber      int
	Status             string
	VersionHash        string
	DeploymentRevision *int64
}

type PipelineCompletionCondition

type PipelineCompletionCondition int
const (
	PipelineCompletionConditionUnknown      PipelineCompletionCondition = iota // unknown
	PipelineCompletionConditionSuccess                                         // success
	PipelineCompletionConditionFinalFailure                                    // final_failure
)

func PipelineCompletionConditionString

func PipelineCompletionConditionString(s string) (PipelineCompletionCondition, error)

PipelineCompletionConditionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineCompletionConditionValues

func PipelineCompletionConditionValues() []PipelineCompletionCondition

PipelineCompletionConditionValues returns all values of the enum

func (PipelineCompletionCondition) IsAPipelineCompletionCondition

func (i PipelineCompletionCondition) IsAPipelineCompletionCondition() bool

IsAPipelineCompletionCondition returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineCompletionCondition) MarshalJSON

func (i PipelineCompletionCondition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineCompletionCondition

func (PipelineCompletionCondition) MarshalText

func (i PipelineCompletionCondition) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineCompletionCondition

func (PipelineCompletionCondition) String

func (*PipelineCompletionCondition) UnmarshalJSON

func (i *PipelineCompletionCondition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineCompletionCondition

func (*PipelineCompletionCondition) UnmarshalText

func (i *PipelineCompletionCondition) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineCompletionCondition

type PipelineCompletionDecision

type PipelineCompletionDecision struct {
	IsParent                   bool
	TriggerSlug                slug.Slug
	TriggerRevision            int64
	UpstreamPipelineSlug       slug.Slug
	RootRunSlug                slug.Slug
	FinalAttemptRunSlug        slug.Slug
	DownstreamPipelineSlug     slug.Slug
	Condition                  *PipelineCompletionCondition
	State                      string
	DecisionReason             *string
	ChildRunSlug               *slug.Slug
	ChildStatus                *string
	ChildOutcome               *string
	SelectedVersionHash        *string
	SelectedDeploymentRevision *int64
	SelectedResolutionDigest   *string
}

type PipelineCompletionSnapshot

type PipelineCompletionSnapshot struct {
	ID                  int
	VersionID           int64
	DeploymentID        int64
	ChildRunSlug        slug.Slug
	AncestorPipelines   []string
	RetryPolicy         PipelineTriggerRetryPolicy
	TriggerSlug         slug.Slug
	TriggerRevision     int64
	PipelineSlug        slug.Slug
	RootRunSlug         slug.Slug
	FinalAttemptRunSlug slug.Slug
	VersionHash         string
	DeploymentRevision  int64
	ResolutionDigest    string
	Materialization     []byte
	CausalDepth         int
	State               string
	DecisionReason      string
	ClosureAuthority    CompletionAuthoritySnapshot
	CurrentAuthority    CompletionAuthoritySnapshot
}

PipelineCompletionSnapshot is internal execution evidence, never a transport DTO. It carries no credential or runtime input values.

type PipelineFormat

type PipelineFormat = pipelinemodel.PipelineFormat

Pipeline contracts have one implementation shared with the standalone CLI.

func PipelineFormatString

func PipelineFormatString(s string) (PipelineFormat, error)

func PipelineFormatValues

func PipelineFormatValues() []PipelineFormat

type PipelineProposalAuthority

type PipelineProposalAuthority struct {
	ID                        int64  `json:"id"`
	PublicationMode           string `json:"publication_mode"`
	ProviderHost              string `json:"provider_host"`
	ProviderAccountID         string `json:"provider_account_id"`
	ProviderRepositoryID      string `json:"provider_repository_id"`
	ProviderCredentialID      string `json:"provider_credential_id"`
	ExecutingPrincipalID      string `json:"executing_principal_id"`
	ExecutingPrincipalDisplay string `json:"executing_principal_display"`
	AuthoritySource           string `json:"authority_source"`
	GitConfigurationHash      string `json:"git_configuration_hash,omitempty"`
	GitRepository             string `json:"git_repository,omitempty"`
	GitBaseRef                string `json:"git_base_ref,omitempty"`
	GitDataSourceSlug         string `json:"git_data_source_slug,omitempty"`
	GitCredentialSlug         string `json:"git_credential_slug,omitempty"`
	GitCredentialRevision     string `json:"git_credential_revision,omitempty"`
}

PipelineProposalAuthority is the credential-safe provider identity bound to one publish attempt.

func (PipelineProposalAuthority) Payload

func (PipelineProposalAuthority) ValidateForPersistence

func (a PipelineProposalAuthority) ValidateForPersistence() error

ValidateForPersistence rejects incomplete identities and email-address disclosure.

type PipelineProposalAuthorityPayload

type PipelineProposalAuthorityPayload struct {
	ID                        int64  `json:"id"`
	PublicationMode           string `json:"publication_mode"`
	ProviderHost              string `json:"provider_host"`
	ProviderAccountID         string `json:"provider_account_id"`
	ProviderRepositoryID      string `json:"provider_repository_id"`
	ExecutingPrincipalID      string `json:"executing_principal_id"`
	ExecutingPrincipalDisplay string `json:"executing_principal_display"`
	AuthoritySource           string `json:"authority_source"`
	GitConfigurationHash      string `json:"git_configuration_hash,omitempty"`
	GitRepository             string `json:"git_repository,omitempty"`
	GitBaseRef                string `json:"git_base_ref,omitempty"`
	GitDataSourceSlug         string `json:"git_data_source_slug,omitempty"`
	GitCredentialSlug         string `json:"git_credential_slug,omitempty"`
	GitCredentialRevision     string `json:"git_credential_revision,omitempty"`
}

PipelineProposalAuthorityPayload is the credential-free authority identity carried by publish jobs.

func (PipelineProposalAuthorityPayload) ValidateForPersistence

func (a PipelineProposalAuthorityPayload) ValidateForPersistence() error

type PipelineRunCompletion

type PipelineRunCompletion struct {
	PipelineSlug        slug.Slug
	Truncated           bool
	ContextUnavailable  bool
	RootRunSlug         slug.Slug
	Closed              bool
	WaitingForRetry     bool
	Outcome             *string
	FinalAttemptRunSlug *slug.Slug
	DecisionReason      *string
	Attempts            []PipelineCompletionAttempt
	Parent              *PipelineCompletionDecision
	Children            []PipelineCompletionDecision
}

PipelineRunCompletion contains safe historical evidence, without execution authority or materialization.

type PipelineRunConnected

type PipelineRunConnected struct {
	SelectedRunSlug    slug.Slug
	Nodes              []*PipelineRunCompletion
	Truncated          bool
	ContextUnavailable bool
}

PipelineRunConnected is a read-only projection, never a second execution status.

type PipelineRunSourceEntrypoint

type PipelineRunSourceEntrypoint int

PipelineRunSourceEntrypoint identifies the product or API boundary that requested a run.

const (
	PipelineRunSourceEntrypointUnknown   PipelineRunSourceEntrypoint = iota // unknown
	PipelineRunSourceEntrypointUI                                           // ui
	PipelineRunSourceEntrypointAPI                                          // api
	PipelineRunSourceEntrypointScheduler                                    // scheduler
	PipelineRunSourceEntrypointWebhook                                      // webhook
)

func PipelineRunSourceEntrypointString

func PipelineRunSourceEntrypointString(s string) (PipelineRunSourceEntrypoint, error)

PipelineRunSourceEntrypointString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineRunSourceEntrypointValues

func PipelineRunSourceEntrypointValues() []PipelineRunSourceEntrypoint

PipelineRunSourceEntrypointValues returns all values of the enum

func (PipelineRunSourceEntrypoint) IsAPipelineRunSourceEntrypoint

func (i PipelineRunSourceEntrypoint) IsAPipelineRunSourceEntrypoint() bool

IsAPipelineRunSourceEntrypoint returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineRunSourceEntrypoint) MarshalJSON

func (i PipelineRunSourceEntrypoint) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineRunSourceEntrypoint

func (PipelineRunSourceEntrypoint) MarshalText

func (i PipelineRunSourceEntrypoint) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineRunSourceEntrypoint

func (PipelineRunSourceEntrypoint) String

func (*PipelineRunSourceEntrypoint) UnmarshalJSON

func (i *PipelineRunSourceEntrypoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineRunSourceEntrypoint

func (*PipelineRunSourceEntrypoint) UnmarshalText

func (i *PipelineRunSourceEntrypoint) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineRunSourceEntrypoint

type PipelineRunSourceType

type PipelineRunSourceType int

PipelineRunSourceType categorizes launch-supported reasons a pipeline run started.

const (
	PipelineRunSourceTypeUnknown    PipelineRunSourceType = iota // unknown
	PipelineRunSourceTypeManual                                  // manual
	PipelineRunSourceTypeAPI                                     // api
	PipelineRunSourceTypeSchedule                                // schedule
	PipelineRunSourceTypeWebhook                                 // webhook
	PipelineRunSourceTypeCompletion                              // completion
)

func PipelineRunSourceTypeString

func PipelineRunSourceTypeString(s string) (PipelineRunSourceType, error)

PipelineRunSourceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineRunSourceTypeValues

func PipelineRunSourceTypeValues() []PipelineRunSourceType

PipelineRunSourceTypeValues returns all values of the enum

func (PipelineRunSourceType) IsAPipelineRunSourceType

func (i PipelineRunSourceType) IsAPipelineRunSourceType() bool

IsAPipelineRunSourceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineRunSourceType) MarshalJSON

func (i PipelineRunSourceType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineRunSourceType

func (PipelineRunSourceType) MarshalText

func (i PipelineRunSourceType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineRunSourceType

func (PipelineRunSourceType) String

func (i PipelineRunSourceType) String() string

func (*PipelineRunSourceType) UnmarshalJSON

func (i *PipelineRunSourceType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineRunSourceType

func (*PipelineRunSourceType) UnmarshalText

func (i *PipelineRunSourceType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineRunSourceType

type PipelineScheduleFire

type PipelineScheduleFire struct {
	FireSlug        slug.Slug
	TriggerSlug     slug.Slug
	TriggerRevision int64
	PipelineSlug    slug.Slug
	ScheduledFireAt time.Time
	ActualFireAt    time.Time
	Status          PipelineScheduleFireStatus
	MisfireResult   PipelineTriggerScheduleMisfireResult
	RunSlug         *slug.Slug
	SourceEventSlug *slug.Slug
	ErrorSummary    *string
	Timestamps
}

PipelineScheduleFire is an operator-safe diagnostic for one persisted scheduled fire.

type PipelineScheduleFireStatus

type PipelineScheduleFireStatus int

PipelineScheduleFireStatus identifies the persisted state of a scheduled fire.

const (
	PipelineScheduleFireStatusUnknown   PipelineScheduleFireStatus = iota // unknown
	PipelineScheduleFireStatusClaimed                                     // claimed
	PipelineScheduleFireStatusRunning                                     // running
	PipelineScheduleFireStatusSucceeded                                   // succeeded
	PipelineScheduleFireStatusFailed                                      // failed
	PipelineScheduleFireStatusSkipped                                     // skipped
)

func PipelineScheduleFireStatusString

func PipelineScheduleFireStatusString(s string) (PipelineScheduleFireStatus, error)

PipelineScheduleFireStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineScheduleFireStatusValues

func PipelineScheduleFireStatusValues() []PipelineScheduleFireStatus

PipelineScheduleFireStatusValues returns all values of the enum

func (PipelineScheduleFireStatus) IsAPipelineScheduleFireStatus

func (i PipelineScheduleFireStatus) IsAPipelineScheduleFireStatus() bool

IsAPipelineScheduleFireStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineScheduleFireStatus) MarshalJSON

func (i PipelineScheduleFireStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineScheduleFireStatus

func (PipelineScheduleFireStatus) MarshalText

func (i PipelineScheduleFireStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineScheduleFireStatus

func (PipelineScheduleFireStatus) String

func (*PipelineScheduleFireStatus) UnmarshalJSON

func (i *PipelineScheduleFireStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineScheduleFireStatus

func (*PipelineScheduleFireStatus) UnmarshalText

func (i *PipelineScheduleFireStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineScheduleFireStatus

type PipelineTrigger

type PipelineTrigger struct {
	Slug             slug.Slug
	Name             string
	Type             PipelineTriggerType
	Enabled          bool
	Revision         int64
	EnvironmentSlug  slug.Slug
	PipelineSlug     slug.Slug
	VersionPolicy    PipelineTriggerVersionPolicy
	RuntimeInputKeys []string
	RetryPolicy      PipelineTriggerRetryPolicy
	ScheduleConfig   *PipelineTriggerScheduleConfig
	CompletionConfig *PipelineTriggerCompletionConfig
	WebhookConfig    *PipelineTriggerWebhookConfig
	WebhookSecret    *PipelineWebhookSecret
	CreatedBy        EventActor
	UpdatedBy        EventActor
	DisabledAt       *time.Time
	Timestamps
}

PipelineTrigger is the safe resource representation returned from service and API calls.

type PipelineTriggerBackoffStrategy

type PipelineTriggerBackoffStrategy int

PipelineTriggerBackoffStrategy controls automatic retry delay behavior.

const (
	PipelineTriggerBackoffStrategyUnknown     PipelineTriggerBackoffStrategy = iota // unknown
	PipelineTriggerBackoffStrategyNone                                              // none
	PipelineTriggerBackoffStrategyFixed                                             // fixed
	PipelineTriggerBackoffStrategyExponential                                       // exponential
)

func PipelineTriggerBackoffStrategyString

func PipelineTriggerBackoffStrategyString(s string) (PipelineTriggerBackoffStrategy, error)

PipelineTriggerBackoffStrategyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerBackoffStrategyValues

func PipelineTriggerBackoffStrategyValues() []PipelineTriggerBackoffStrategy

PipelineTriggerBackoffStrategyValues returns all values of the enum

func (PipelineTriggerBackoffStrategy) IsAPipelineTriggerBackoffStrategy

func (i PipelineTriggerBackoffStrategy) IsAPipelineTriggerBackoffStrategy() bool

IsAPipelineTriggerBackoffStrategy returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerBackoffStrategy) MarshalJSON

func (i PipelineTriggerBackoffStrategy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerBackoffStrategy

func (PipelineTriggerBackoffStrategy) MarshalText

func (i PipelineTriggerBackoffStrategy) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerBackoffStrategy

func (PipelineTriggerBackoffStrategy) String

func (*PipelineTriggerBackoffStrategy) UnmarshalJSON

func (i *PipelineTriggerBackoffStrategy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerBackoffStrategy

func (*PipelineTriggerBackoffStrategy) UnmarshalText

func (i *PipelineTriggerBackoffStrategy) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerBackoffStrategy

type PipelineTriggerCompletionConfig

type PipelineTriggerCompletionConfig struct {
	UpstreamPipelineSlug  slug.Slug                   `json:"upstream_pipeline_slug" validate:"required"`
	Condition             PipelineCompletionCondition `json:"condition" validate:"required"`
	ExecutionGrantEnabled bool                        `json:"execution_grant_enabled"`
}

type PipelineTriggerRetryAttempt

type PipelineTriggerRetryAttempt struct {
	AttemptSlug     slug.Slug
	Status          PipelineTriggerRetryAttemptStatus
	DecisionReason  *string
	TriggerSlug     slug.Slug
	TriggerRevision int64
	PipelineSlug    slug.Slug
	RootRunSlug     slug.Slug
	RetryOfRunSlug  slug.Slug
	RunSlug         slug.Slug
	AttemptNumber   int
	FailureKind     *PipelineTriggerRetryFailureKind
	SourceEventSlug *slug.Slug
	ScheduledAt     time.Time
	EnqueuedAt      *time.Time
	StartedAt       *time.Time
	CompletedAt     *time.Time
	ErrorSummary    *string
	Timestamps
}

PipelineTriggerRetryAttempt is an operator-safe diagnostic for one trigger retry decision or execution.

type PipelineTriggerRetryAttemptStatus

type PipelineTriggerRetryAttemptStatus int

PipelineTriggerRetryAttemptStatus identifies the persisted retry decision or execution state.

const (
	PipelineTriggerRetryAttemptStatusUnknown   PipelineTriggerRetryAttemptStatus = iota // unknown
	PipelineTriggerRetryAttemptStatusQueued                                             // queued
	PipelineTriggerRetryAttemptStatusSkipped                                            // skipped
	PipelineTriggerRetryAttemptStatusExhausted                                          // exhausted
	PipelineTriggerRetryAttemptStatusRunning                                            // running
	PipelineTriggerRetryAttemptStatusSucceeded                                          // succeeded
	PipelineTriggerRetryAttemptStatusFailed                                             // failed
)

func PipelineTriggerRetryAttemptStatusString

func PipelineTriggerRetryAttemptStatusString(s string) (PipelineTriggerRetryAttemptStatus, error)

PipelineTriggerRetryAttemptStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerRetryAttemptStatusValues

func PipelineTriggerRetryAttemptStatusValues() []PipelineTriggerRetryAttemptStatus

PipelineTriggerRetryAttemptStatusValues returns all values of the enum

func (PipelineTriggerRetryAttemptStatus) IsAPipelineTriggerRetryAttemptStatus

func (i PipelineTriggerRetryAttemptStatus) IsAPipelineTriggerRetryAttemptStatus() bool

IsAPipelineTriggerRetryAttemptStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerRetryAttemptStatus) MarshalJSON

func (i PipelineTriggerRetryAttemptStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerRetryAttemptStatus

func (PipelineTriggerRetryAttemptStatus) MarshalText

func (i PipelineTriggerRetryAttemptStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerRetryAttemptStatus

func (PipelineTriggerRetryAttemptStatus) String

func (*PipelineTriggerRetryAttemptStatus) UnmarshalJSON

func (i *PipelineTriggerRetryAttemptStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerRetryAttemptStatus

func (*PipelineTriggerRetryAttemptStatus) UnmarshalText

func (i *PipelineTriggerRetryAttemptStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerRetryAttemptStatus

type PipelineTriggerRetryFailureKind

type PipelineTriggerRetryFailureKind int

PipelineTriggerRetryFailureKind identifies run failure categories eligible for retry.

const (
	PipelineTriggerRetryFailureKindUnknown    PipelineTriggerRetryFailureKind = iota // unknown
	PipelineTriggerRetryFailureKindDataSource                                        // data_source
	PipelineTriggerRetryFailureKindPlatform                                          // platform
)

func PipelineTriggerRetryFailureKindString

func PipelineTriggerRetryFailureKindString(s string) (PipelineTriggerRetryFailureKind, error)

PipelineTriggerRetryFailureKindString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerRetryFailureKindValues

func PipelineTriggerRetryFailureKindValues() []PipelineTriggerRetryFailureKind

PipelineTriggerRetryFailureKindValues returns all values of the enum

func (PipelineTriggerRetryFailureKind) IsAPipelineTriggerRetryFailureKind

func (i PipelineTriggerRetryFailureKind) IsAPipelineTriggerRetryFailureKind() bool

IsAPipelineTriggerRetryFailureKind returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerRetryFailureKind) MarshalJSON

func (i PipelineTriggerRetryFailureKind) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerRetryFailureKind

func (PipelineTriggerRetryFailureKind) MarshalText

func (i PipelineTriggerRetryFailureKind) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerRetryFailureKind

func (PipelineTriggerRetryFailureKind) String

func (*PipelineTriggerRetryFailureKind) UnmarshalJSON

func (i *PipelineTriggerRetryFailureKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerRetryFailureKind

func (*PipelineTriggerRetryFailureKind) UnmarshalText

func (i *PipelineTriggerRetryFailureKind) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerRetryFailureKind

type PipelineTriggerRetryPolicy

type PipelineTriggerRetryPolicy struct {
	Enabled               bool
	MaxAttempts           int                               `validate:"min=1,max=10"`
	BackoffStrategy       PipelineTriggerBackoffStrategy    `validate:"required"`
	InitialDelaySeconds   int                               `validate:"min=0,max=86400"`
	MaxDelaySeconds       int                               `validate:"min=0,max=604800"`
	RetryableFailureKinds []PipelineTriggerRetryFailureKind `validate:"dive,required"`
	MaxElapsedSeconds     *int                              `validate:"omitempty,min=1,max=2592000"`
}

PipelineTriggerRetryPolicy is the persisted automatic retry policy for a trigger.

type PipelineTriggerScheduleConfig

type PipelineTriggerScheduleConfig struct {
	Cron          string                               `validate:"required,min=1,max=255"`
	Timezone      string                               `validate:"required,min=1,max=64"`
	MisfirePolicy PipelineTriggerScheduleMisfirePolicy `validate:"required"`
}

PipelineTriggerScheduleConfig is the persisted schedule configuration.

type PipelineTriggerScheduleMisfirePolicy

type PipelineTriggerScheduleMisfirePolicy int

PipelineTriggerScheduleMisfirePolicy controls how late scheduled fires will be handled.

const (
	PipelineTriggerScheduleMisfirePolicyUnknown  PipelineTriggerScheduleMisfirePolicy = iota // unknown
	PipelineTriggerScheduleMisfirePolicySkip                                                 // skip
	PipelineTriggerScheduleMisfirePolicyFireOnce                                             // fire_once
)

func PipelineTriggerScheduleMisfirePolicyString

func PipelineTriggerScheduleMisfirePolicyString(s string) (PipelineTriggerScheduleMisfirePolicy, error)

PipelineTriggerScheduleMisfirePolicyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerScheduleMisfirePolicyValues

func PipelineTriggerScheduleMisfirePolicyValues() []PipelineTriggerScheduleMisfirePolicy

PipelineTriggerScheduleMisfirePolicyValues returns all values of the enum

func (PipelineTriggerScheduleMisfirePolicy) IsAPipelineTriggerScheduleMisfirePolicy

func (i PipelineTriggerScheduleMisfirePolicy) IsAPipelineTriggerScheduleMisfirePolicy() bool

IsAPipelineTriggerScheduleMisfirePolicy returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerScheduleMisfirePolicy) MarshalJSON

func (i PipelineTriggerScheduleMisfirePolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerScheduleMisfirePolicy

func (PipelineTriggerScheduleMisfirePolicy) MarshalText

func (i PipelineTriggerScheduleMisfirePolicy) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerScheduleMisfirePolicy

func (PipelineTriggerScheduleMisfirePolicy) String

func (*PipelineTriggerScheduleMisfirePolicy) UnmarshalJSON

func (i *PipelineTriggerScheduleMisfirePolicy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerScheduleMisfirePolicy

func (*PipelineTriggerScheduleMisfirePolicy) UnmarshalText

func (i *PipelineTriggerScheduleMisfirePolicy) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerScheduleMisfirePolicy

type PipelineTriggerScheduleMisfireResult

type PipelineTriggerScheduleMisfireResult int

PipelineTriggerScheduleMisfireResult records how a scheduled fire was handled.

const (
	PipelineTriggerScheduleMisfireResultUnknown  PipelineTriggerScheduleMisfireResult = iota // unknown
	PipelineTriggerScheduleMisfireResultOnTime                                               // on_time
	PipelineTriggerScheduleMisfireResultSkipped                                              // skipped
	PipelineTriggerScheduleMisfireResultFireOnce                                             // fire_once
)

func PipelineTriggerScheduleMisfireResultString

func PipelineTriggerScheduleMisfireResultString(s string) (PipelineTriggerScheduleMisfireResult, error)

PipelineTriggerScheduleMisfireResultString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerScheduleMisfireResultValues

func PipelineTriggerScheduleMisfireResultValues() []PipelineTriggerScheduleMisfireResult

PipelineTriggerScheduleMisfireResultValues returns all values of the enum

func (PipelineTriggerScheduleMisfireResult) IsAPipelineTriggerScheduleMisfireResult

func (i PipelineTriggerScheduleMisfireResult) IsAPipelineTriggerScheduleMisfireResult() bool

IsAPipelineTriggerScheduleMisfireResult returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerScheduleMisfireResult) MarshalJSON

func (i PipelineTriggerScheduleMisfireResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerScheduleMisfireResult

func (PipelineTriggerScheduleMisfireResult) MarshalText

func (i PipelineTriggerScheduleMisfireResult) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerScheduleMisfireResult

func (PipelineTriggerScheduleMisfireResult) String

func (*PipelineTriggerScheduleMisfireResult) UnmarshalJSON

func (i *PipelineTriggerScheduleMisfireResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerScheduleMisfireResult

func (*PipelineTriggerScheduleMisfireResult) UnmarshalText

func (i *PipelineTriggerScheduleMisfireResult) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerScheduleMisfireResult

type PipelineTriggerType

type PipelineTriggerType int

PipelineTriggerType identifies how a persisted trigger requests a pipeline run.

const (
	PipelineTriggerTypeUnknown    PipelineTriggerType = iota // unknown
	PipelineTriggerTypeSchedule                              // schedule
	PipelineTriggerTypeWebhook                               // webhook
	PipelineTriggerTypeCompletion                            // completion
)

func PipelineTriggerTypeString

func PipelineTriggerTypeString(s string) (PipelineTriggerType, error)

PipelineTriggerTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerTypeValues

func PipelineTriggerTypeValues() []PipelineTriggerType

PipelineTriggerTypeValues returns all values of the enum

func (PipelineTriggerType) IsAPipelineTriggerType

func (i PipelineTriggerType) IsAPipelineTriggerType() bool

IsAPipelineTriggerType returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerType) MarshalJSON

func (i PipelineTriggerType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerType

func (PipelineTriggerType) MarshalText

func (i PipelineTriggerType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerType

func (PipelineTriggerType) String

func (i PipelineTriggerType) String() string

func (*PipelineTriggerType) UnmarshalJSON

func (i *PipelineTriggerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerType

func (*PipelineTriggerType) UnmarshalText

func (i *PipelineTriggerType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerType

type PipelineTriggerVersionPolicy

type PipelineTriggerVersionPolicy struct {
	Mode              PipelineTriggerVersionPolicyMode `validate:"required"`
	PinnedVersionHash *string
}

PipelineTriggerVersionPolicy is the pipeline version selector stored on a trigger.

type PipelineTriggerVersionPolicyMode

type PipelineTriggerVersionPolicyMode int

PipelineTriggerVersionPolicyMode controls which deployed version a trigger uses.

const (
	PipelineTriggerVersionPolicyModeUnknown        PipelineTriggerVersionPolicyMode = iota // unknown
	PipelineTriggerVersionPolicyModeLatestDeployed                                         // latest_deployed
	PipelineTriggerVersionPolicyModePinned                                                 // pinned
)

func PipelineTriggerVersionPolicyModeString

func PipelineTriggerVersionPolicyModeString(s string) (PipelineTriggerVersionPolicyMode, error)

PipelineTriggerVersionPolicyModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PipelineTriggerVersionPolicyModeValues

func PipelineTriggerVersionPolicyModeValues() []PipelineTriggerVersionPolicyMode

PipelineTriggerVersionPolicyModeValues returns all values of the enum

func (PipelineTriggerVersionPolicyMode) IsAPipelineTriggerVersionPolicyMode

func (i PipelineTriggerVersionPolicyMode) IsAPipelineTriggerVersionPolicyMode() bool

IsAPipelineTriggerVersionPolicyMode returns "true" if the value is listed in the enum definition. "false" otherwise

func (PipelineTriggerVersionPolicyMode) MarshalJSON

func (i PipelineTriggerVersionPolicyMode) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PipelineTriggerVersionPolicyMode

func (PipelineTriggerVersionPolicyMode) MarshalText

func (i PipelineTriggerVersionPolicyMode) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PipelineTriggerVersionPolicyMode

func (PipelineTriggerVersionPolicyMode) String

func (*PipelineTriggerVersionPolicyMode) UnmarshalJSON

func (i *PipelineTriggerVersionPolicyMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PipelineTriggerVersionPolicyMode

func (*PipelineTriggerVersionPolicyMode) UnmarshalText

func (i *PipelineTriggerVersionPolicyMode) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PipelineTriggerVersionPolicyMode

type PipelineTriggerWebhookConfig

type PipelineTriggerWebhookConfig struct {
	ReceiverID           string
	VerificationStrategy string
	InputMappings        []PipelineWebhookInputMapping `validate:"max=100,dive"`
	EnabledKeyVersions   []int
	SecretConfigured     bool
}

type PipelineWebhookInputMapping

type PipelineWebhookInputMapping struct {
	JSONPointer     string `json:"json_pointer" validate:"max=500"`
	RuntimeInputKey string `json:"runtime_input_key" validate:"required,max=100"`
}

type PipelineWebhookSecret

type PipelineWebhookSecret struct {
	KeyVersion int
	Value      string
}

type Project

type Project struct {
	Slug            slug.Slug
	Name            string
	PipelineBackend *ProjectPipelineBackend
	Timestamps
}

type ProjectEnvironment

type ProjectEnvironment struct {
	Environment Environment
	IsDefault   bool
	EnabledAt   time.Time
	UpdatedAt   time.Time
}

type ProjectEnvironmentProtection

type ProjectEnvironmentProtection struct {
	EnvironmentSlug slug.Slug
	Protected       bool
}

type ProjectPipelineBackend

type ProjectPipelineBackend struct {
	DataSourceSlug slug.Slug
	// Repo is normalized external git identity. The credential owner is the data
	// source FK; the repo itself is not a local database resource.
	Repo           string
	TrackedBranch  string
	PipelineDir    string
	FirstCommitSHA *string
}

type ProjectRepositorySetup

type ProjectRepositorySetup struct {
	AuthorizationURL string
	Slug             slug.Slug
	ProjectSlug      slug.Slug
	Request          CreateProjectRepository
	Status           ProjectRepositorySetupStatus
	DataSourceSlug   slug.Slug
	RepositoryID     string
	RepositoryURL    string
	FirstCommitSHA   string
	FailureCode      string
	AbandonedAt      *time.Time
}

type ProjectRepositorySetupStatus

type ProjectRepositorySetupStatus int
const (
	ProjectRepositorySetupStatusUnknown           ProjectRepositorySetupStatus = iota // unknown
	ProjectRepositorySetupStatusPending                                               // pending
	ProjectRepositorySetupStatusRepositoryCreated                                     // repository_created
	ProjectRepositorySetupStatusSourceCreated                                         // source_created
	ProjectRepositorySetupStatusAttached                                              // attached
)

func ProjectRepositorySetupStatusString

func ProjectRepositorySetupStatusString(s string) (ProjectRepositorySetupStatus, error)

ProjectRepositorySetupStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProjectRepositorySetupStatusValues

func ProjectRepositorySetupStatusValues() []ProjectRepositorySetupStatus

ProjectRepositorySetupStatusValues returns all values of the enum

func (ProjectRepositorySetupStatus) IsAProjectRepositorySetupStatus

func (i ProjectRepositorySetupStatus) IsAProjectRepositorySetupStatus() bool

IsAProjectRepositorySetupStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProjectRepositorySetupStatus) MarshalJSON

func (i ProjectRepositorySetupStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProjectRepositorySetupStatus

func (ProjectRepositorySetupStatus) MarshalText

func (i ProjectRepositorySetupStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProjectRepositorySetupStatus

func (ProjectRepositorySetupStatus) String

func (*ProjectRepositorySetupStatus) UnmarshalJSON

func (i *ProjectRepositorySetupStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProjectRepositorySetupStatus

func (*ProjectRepositorySetupStatus) UnmarshalText

func (i *ProjectRepositorySetupStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProjectRepositorySetupStatus

type ProofCandidateIdentity

type ProofCandidateIdentity struct {
	OrganizationSlug       slug.Slug `json:"organization_slug"`
	ProjectSlug            slug.Slug `json:"project_slug"`
	EnvironmentSlug        slug.Slug `json:"environment_slug"`
	ProviderConnectionSlug slug.Slug `json:"provider_connection_slug"`
	RepositoryID           string    `json:"repository_id"`
	ChangeRequestID        string    `json:"change_request_id"`
	HeadSHA                string    `json:"head_sha"`
	TargetRef              string    `json:"target_ref"`
	PipelinePath           string    `json:"pipeline_path"`
	SpecHash               string    `json:"spec_hash"`
	BindingFingerprint     string    `json:"binding_fingerprint"`
	CapabilityFingerprint  string    `json:"capability_fingerprint"`
	CompilerVersion        string    `json:"compiler_version"`
	PolicyVersion          string    `json:"policy_version"`
}

ProofCandidateIdentity binds a receipt to one tenant, target, Git candidate, and compiler input.

func (ProofCandidateIdentity) Validate

func (c ProofCandidateIdentity) Validate() error

Validate rejects an incomplete or non-canonical Proof candidate identity.

type ProofClaim

type ProofClaim struct {
	Identity              ProofClaimIdentity       `json:"identity"`
	Description           string                   `json:"description"`
	RequiredEvidenceLevel ProofEvidenceLevel       `json:"required_evidence_level"`
	ActualEvidenceLevel   *ProofEvidenceLevel      `json:"actual_evidence_level"`
	ObservedAt            *time.Time               `json:"observed_at"`
	ExpiresAt             *time.Time               `json:"expires_at"`
	Verdict               ProofVerdict             `json:"verdict"`
	Evidence              []ProofEvidenceReference `json:"evidence"`
	Diagnostics           []ProofDiagnostic        `json:"diagnostics"`
}

ProofClaim records one clause-level result without raw evidence payloads.

type ProofClaimFamily

type ProofClaimFamily int

ProofClaimFamily is the bounded vocabulary of promises Braidplane can evaluate.

const (
	ProofClaimFamilyUnknown             ProofClaimFamily = iota // unknown
	ProofClaimFamilySourceIdentity                              // source_identity
	ProofClaimFamilyDestinationIdentity                         // destination_identity
	ProofClaimFamilyAccessCapability                            // access_capability
	ProofClaimFamilyFieldsTypes                                 // fields_types
	ProofClaimFamilyCursorCheckpoint                            // cursor_checkpoint
	ProofClaimFamilyDeleteBehavior                              // delete_behavior
	ProofClaimFamilyWriteMode                                   // write_mode
	ProofClaimFamilyCoercion                                    // coercion
	ProofClaimFamilyIdempotency                                 // idempotency
	ProofClaimFamilyReplay                                      // replay
	ProofClaimFamilyDriftImpact                                 // drift_impact
)

func ProofClaimFamilyString

func ProofClaimFamilyString(s string) (ProofClaimFamily, error)

ProofClaimFamilyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofClaimFamilyValues

func ProofClaimFamilyValues() []ProofClaimFamily

ProofClaimFamilyValues returns all values of the enum

func (ProofClaimFamily) IsAProofClaimFamily

func (i ProofClaimFamily) IsAProofClaimFamily() bool

IsAProofClaimFamily returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofClaimFamily) MarshalJSON

func (i ProofClaimFamily) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofClaimFamily

func (ProofClaimFamily) MarshalText

func (i ProofClaimFamily) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofClaimFamily

func (ProofClaimFamily) String

func (i ProofClaimFamily) String() string

func (*ProofClaimFamily) UnmarshalJSON

func (i *ProofClaimFamily) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofClaimFamily

func (*ProofClaimFamily) UnmarshalText

func (i *ProofClaimFamily) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofClaimFamily

type ProofClaimIdentity

type ProofClaimIdentity struct {
	Family              ProofClaimFamily `json:"family"`
	PipelineVersionHash string           `json:"pipeline_version_hash"`
	SemanticPath        string           `json:"semantic_path"`
}

ProofClaimIdentity is stable within an immutable pipeline version.

type ProofControlOutcome

type ProofControlOutcome int
const (
	ProofControlOutcomeUnknown          ProofControlOutcome = iota // unknown
	ProofControlOutcomeAccepted                                    // accepted
	ProofControlOutcomeDenied                                      // denied
	ProofControlOutcomeLimited                                     // limited
	ProofControlOutcomeAuditUnavailable                            // audit_unavailable
	ProofControlOutcomeError                                       // error
)

func ProofControlOutcomeString

func ProofControlOutcomeString(s string) (ProofControlOutcome, error)

ProofControlOutcomeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofControlOutcomeValues

func ProofControlOutcomeValues() []ProofControlOutcome

ProofControlOutcomeValues returns all values of the enum

func (ProofControlOutcome) IsAProofControlOutcome

func (i ProofControlOutcome) IsAProofControlOutcome() bool

IsAProofControlOutcome returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofControlOutcome) MarshalJSON

func (i ProofControlOutcome) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofControlOutcome

func (ProofControlOutcome) MarshalText

func (i ProofControlOutcome) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofControlOutcome

func (ProofControlOutcome) String

func (i ProofControlOutcome) String() string

func (*ProofControlOutcome) UnmarshalJSON

func (i *ProofControlOutcome) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofControlOutcome

func (*ProofControlOutcome) UnmarshalText

func (i *ProofControlOutcome) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofControlOutcome

type ProofDiagnostic

type ProofDiagnostic struct {
	Code        string `json:"code"`
	Summary     string `json:"summary"`
	Remediation string `json:"remediation"`
	Retryable   bool   `json:"retryable"`
}

ProofDiagnostic contains only sanitized operator-facing text.

type ProofEvidenceLevel

type ProofEvidenceLevel int

ProofEvidenceLevel states how directly a claim was evaluated.

const (
	ProofEvidenceLevelUnknown          ProofEvidenceLevel = iota // unknown
	ProofEvidenceLevelStatic                                     // static
	ProofEvidenceLevelCachedObserved                             // cached_observed
	ProofEvidenceLevelLiveReadOnly                               // live_read_only
	ProofEvidenceLevelBoundedExecution                           // bounded_execution
	ProofEvidenceLevelOperational                                // operational
)

func ProofEvidenceLevelString

func ProofEvidenceLevelString(s string) (ProofEvidenceLevel, error)

ProofEvidenceLevelString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofEvidenceLevelValues

func ProofEvidenceLevelValues() []ProofEvidenceLevel

ProofEvidenceLevelValues returns all values of the enum

func (ProofEvidenceLevel) IsAProofEvidenceLevel

func (i ProofEvidenceLevel) IsAProofEvidenceLevel() bool

IsAProofEvidenceLevel returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofEvidenceLevel) MarshalJSON

func (i ProofEvidenceLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofEvidenceLevel

func (ProofEvidenceLevel) MarshalText

func (i ProofEvidenceLevel) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofEvidenceLevel

func (ProofEvidenceLevel) String

func (i ProofEvidenceLevel) String() string

func (*ProofEvidenceLevel) UnmarshalJSON

func (i *ProofEvidenceLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofEvidenceLevel

func (*ProofEvidenceLevel) UnmarshalText

func (i *ProofEvidenceLevel) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofEvidenceLevel

type ProofEvidenceReference

type ProofEvidenceReference struct {
	Kind   ProofEvidenceReferenceKind `json:"kind"`
	Digest string                     `json:"digest"`
}

ProofEvidenceReference points to sanitized, access-controlled evidence by digest.

type ProofEvidenceReferenceKind

type ProofEvidenceReferenceKind int

ProofEvidenceReferenceKind identifies sanitized evidence without storing provider payloads.

const (
	ProofEvidenceReferenceKindUnknown       ProofEvidenceReferenceKind = iota // unknown
	ProofEvidenceReferenceKindValidation                                      // validation
	ProofEvidenceReferenceKindIntrospection                                   // introspection
	ProofEvidenceReferenceKindExecution                                       // execution
)

func ProofEvidenceReferenceKindString

func ProofEvidenceReferenceKindString(s string) (ProofEvidenceReferenceKind, error)

ProofEvidenceReferenceKindString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofEvidenceReferenceKindValues

func ProofEvidenceReferenceKindValues() []ProofEvidenceReferenceKind

ProofEvidenceReferenceKindValues returns all values of the enum

func (ProofEvidenceReferenceKind) IsAProofEvidenceReferenceKind

func (i ProofEvidenceReferenceKind) IsAProofEvidenceReferenceKind() bool

IsAProofEvidenceReferenceKind returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofEvidenceReferenceKind) MarshalJSON

func (i ProofEvidenceReferenceKind) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofEvidenceReferenceKind

func (ProofEvidenceReferenceKind) MarshalText

func (i ProofEvidenceReferenceKind) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofEvidenceReferenceKind

func (ProofEvidenceReferenceKind) String

func (*ProofEvidenceReferenceKind) UnmarshalJSON

func (i *ProofEvidenceReferenceKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofEvidenceReferenceKind

func (*ProofEvidenceReferenceKind) UnmarshalText

func (i *ProofEvidenceReferenceKind) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofEvidenceReferenceKind

type ProofLifecycleLink struct {
	Kind       ProofLifecycleLinkKind `json:"kind"`
	ReceiptID  slug.Slug              `json:"receipt_id"`
	Identifier string                 `json:"identifier"`
	LinkedAt   time.Time              `json:"linked_at"`
}

ProofLifecycleLink points forward from a receipt without changing earlier evidence.

type ProofLifecycleLinkKind

type ProofLifecycleLinkKind int

ProofLifecycleLinkKind links later immutable deployment and run evidence.

const (
	ProofLifecycleLinkKindUnknown    ProofLifecycleLinkKind = iota // unknown
	ProofLifecycleLinkKindDeployment                               // deployment
	ProofLifecycleLinkKindRun                                      // run
)

func ProofLifecycleLinkKindString

func ProofLifecycleLinkKindString(s string) (ProofLifecycleLinkKind, error)

ProofLifecycleLinkKindString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofLifecycleLinkKindValues

func ProofLifecycleLinkKindValues() []ProofLifecycleLinkKind

ProofLifecycleLinkKindValues returns all values of the enum

func (ProofLifecycleLinkKind) IsAProofLifecycleLinkKind

func (i ProofLifecycleLinkKind) IsAProofLifecycleLinkKind() bool

IsAProofLifecycleLinkKind returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofLifecycleLinkKind) MarshalJSON

func (i ProofLifecycleLinkKind) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofLifecycleLinkKind

func (ProofLifecycleLinkKind) MarshalText

func (i ProofLifecycleLinkKind) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofLifecycleLinkKind

func (ProofLifecycleLinkKind) String

func (i ProofLifecycleLinkKind) String() string

func (*ProofLifecycleLinkKind) UnmarshalJSON

func (i *ProofLifecycleLinkKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofLifecycleLinkKind

func (*ProofLifecycleLinkKind) UnmarshalText

func (i *ProofLifecycleLinkKind) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofLifecycleLinkKind

type ProofMaintenanceHealth

type ProofMaintenanceHealth struct {
	LastSuccessTimestamp float64
	RecentFailures       int64
	CancellationDue      int64
	ExpiryDue            int64
	EvidenceDue          int64
	MetadataDue          int64
}

ProofMaintenanceHealth is a deployment aggregate, never a tenant job inventory.

type ProofOperationalCapture

type ProofOperationalCapture struct {
	SourceReceiptID slug.Slug                 `json:"source_receipt_id"`
	PolicyVersion   string                    `json:"policy_version"`
	Selection       ProofOperationalSelection `json:"selection"`
	RecordDigest    string                    `json:"record_digest"`
	ExpiresAt       time.Time                 `json:"expires_at"`
}

ProofOperationalCapture links a new receipt to retained evidence without copying run payloads or extending the source record's retention.

type ProofOperationalEvidenceStatus

type ProofOperationalEvidenceStatus int

ProofOperationalEvidenceStatus describes current support for a historical capture.

const (
	ProofOperationalEvidenceStatusUnknown   ProofOperationalEvidenceStatus = iota // unknown
	ProofOperationalEvidenceStatusAvailable                                       // available
	ProofOperationalEvidenceStatusMissing                                         // missing
	ProofOperationalEvidenceStatusExpired                                         // expired
	ProofOperationalEvidenceStatusChanged                                         // changed
)

func ProofOperationalEvidenceStatusString

func ProofOperationalEvidenceStatusString(s string) (ProofOperationalEvidenceStatus, error)

ProofOperationalEvidenceStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofOperationalEvidenceStatusValues

func ProofOperationalEvidenceStatusValues() []ProofOperationalEvidenceStatus

ProofOperationalEvidenceStatusValues returns all values of the enum

func (ProofOperationalEvidenceStatus) IsAProofOperationalEvidenceStatus

func (i ProofOperationalEvidenceStatus) IsAProofOperationalEvidenceStatus() bool

IsAProofOperationalEvidenceStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofOperationalEvidenceStatus) MarshalJSON

func (i ProofOperationalEvidenceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofOperationalEvidenceStatus

func (ProofOperationalEvidenceStatus) MarshalText

func (i ProofOperationalEvidenceStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofOperationalEvidenceStatus

func (ProofOperationalEvidenceStatus) String

func (*ProofOperationalEvidenceStatus) UnmarshalJSON

func (i *ProofOperationalEvidenceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofOperationalEvidenceStatus

func (*ProofOperationalEvidenceStatus) UnmarshalText

func (i *ProofOperationalEvidenceStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofOperationalEvidenceStatus

type ProofOperationalSelection

type ProofOperationalSelection struct {
	CandidateSlug              slug.Slug              `json:"candidate_slug"`
	Candidate                  ProofCandidateIdentity `json:"candidate"`
	Pipeline                   slug.Slug              `json:"pipeline"`
	VersionCommit              string                 `json:"version_commit"`
	CompiledPlanDigest         string                 `json:"compiled_plan_digest"`
	DeploymentResolutionDigest string                 `json:"deployment_resolution_digest"`
	Run                        slug.Slug              `json:"run"`
	Attempt                    int                    `json:"attempt"`
	CheckID                    string                 `json:"check_id"`
	Step                       slug.Slug              `json:"step"`
	Input                      string                 `json:"input"`
	Origin                     string                 `json:"origin"`
	Phase                      string                 `json:"phase"`
	Declaration                string                 `json:"declaration"`
	ProjectionDigest           string                 `json:"projection_digest"`
	Target                     slug.Slug              `json:"target"`
	Window                     StructuralCheckWindow  `json:"window"`
	Evaluator                  string                 `json:"evaluator"`
	EvaluatorPolicy            string                 `json:"evaluator_policy"`
	StartedAt                  *time.Time             `json:"started_at"`
	CompletedAt                *time.Time             `json:"completed_at"`
	EvidenceDigest             string                 `json:"evidence_digest"`
}

OperationalSelection identifies an exact retained check. A spec hash alone cannot authorize substituting another compilation, deployment or attempt.

func (ProofOperationalSelection) Validate

func (selection ProofOperationalSelection) Validate() error

type ProofReceipt

type ProofReceipt struct {
	Operational         *ProofOperationalCapture `json:"operational,omitempty"`
	SchemaVersion       int                      `json:"schema_version"`
	ID                  slug.Slug                `json:"id"`
	Candidate           ProofCandidateIdentity   `json:"candidate"`
	Claims              []ProofClaim             `json:"claims"`
	AggregateVerdict    ProofVerdict             `json:"aggregate_verdict"`
	SupersedesReceiptID *slug.Slug               `json:"supersedes_receipt_id"`
	CreatedAt           time.Time                `json:"created_at"`
	RetainUntil         time.Time                `json:"retain_until"`
}

ProofReceipt is the immutable, tenant-scoped product receipt contract.

func NewProofReceipt

func NewProofReceipt(draft ProofReceipt, redact func(string) string) (ProofReceipt, error)

NewProofReceipt redacts every string before validating a persistence-ready receipt.

func (ProofReceipt) GitSummary

func (r ProofReceipt) GitSummary() string

GitSummary returns fixed annotation text without tenant, target, evidence, or diagnostic content.

func (ProofReceipt) Validate

func (r ProofReceipt) Validate() error

Validate rejects incomplete identities, invalid evidence, and hidden aggregate gaps.

type ProofVerdict

type ProofVerdict int

ProofVerdict is a clause or aggregate result; superseded is a derived read state.

const (
	ProofVerdictUnknown      ProofVerdict = iota // unknown
	ProofVerdictPassed                           // passed
	ProofVerdictFailed                           // failed
	ProofVerdictUnverified                       // unverified
	ProofVerdictInconclusive                     // inconclusive
	ProofVerdictStale                            // stale
	ProofVerdictSuperseded                       // superseded
)

func AggregateProofVerdict

func AggregateProofVerdict(claims []ProofClaim) ProofVerdict

AggregateProofVerdict deterministically preserves the most actionable clause-level gap.

func ProofVerdictString

func ProofVerdictString(s string) (ProofVerdict, error)

ProofVerdictString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProofVerdictValues

func ProofVerdictValues() []ProofVerdict

ProofVerdictValues returns all values of the enum

func (ProofVerdict) IsAProofVerdict

func (i ProofVerdict) IsAProofVerdict() bool

IsAProofVerdict returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProofVerdict) MarshalJSON

func (i ProofVerdict) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ProofVerdict

func (ProofVerdict) MarshalText

func (i ProofVerdict) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProofVerdict

func (ProofVerdict) String

func (i ProofVerdict) String() string

func (*ProofVerdict) UnmarshalJSON

func (i *ProofVerdict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ProofVerdict

func (*ProofVerdict) UnmarshalText

func (i *ProofVerdict) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProofVerdict

type ResolvedPipelineDataSourceRef

type ResolvedPipelineDataSourceRef struct {
	BindingRevision string `json:"-"` // Deployment provenance must not change historical Proof fingerprints.
	PipelineSlug    slug.Slug
	RefSlug         slug.Slug
	DataSourceSlug  slug.Slug
	DataSourceType  DataSourceType
}

type Resource

type Resource int

Resource represents an authorization resource type.

const (
	ResourceUnknown Resource = iota // unknown

	// Global resources (system-level)
	ResourceOrganizations // organizations
	ResourceProfile       // profile
	ResourceUsers         // users

	// Organization-scoped resources
	ResourceMembers           // members
	ResourceRoles             // roles
	ResourceAPIKeys           // api_keys
	ResourceProjects          // projects
	ResourceEnvironments      // environments
	ResourceDataSources       // datasources
	ResourceQueries           // queries
	ResourcePipelines         // pipelines
	ResourcePipelineTriggers  // pipeline_triggers
	ResourceEvents            // events
	ResourceNotifications     // notifications
	ResourceAlertPolicies     // alert_policies
	ResourceAlertDestinations // alert_destinations
)

func ResourceString

func ResourceString(s string) (Resource, error)

ResourceString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ResourceValues

func ResourceValues() []Resource

ResourceValues returns all values of the enum

func (Resource) IsAResource

func (i Resource) IsAResource() bool

IsAResource returns "true" if the value is listed in the enum definition. "false" otherwise

func (Resource) MarshalText

func (i Resource) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for Resource

func (Resource) String

func (i Resource) String() string

func (*Resource) UnmarshalText

func (i *Resource) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for Resource

type Role

type Role int
const (
	RoleUnknown    Role = iota // unknown role, should not be used
	RoleUser                   // user
	RoleSuperAdmin             // super_admin
)

func RoleString

func RoleString(s string) (Role, error)

RoleString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func RoleValues

func RoleValues() []Role

RoleValues returns all values of the enum

func (Role) IsARole

func (i Role) IsARole() bool

IsARole returns "true" if the value is listed in the enum definition. "false" otherwise

func (Role) MarshalText

func (i Role) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for Role

func (Role) String

func (i Role) String() string

func (*Role) UnmarshalText

func (i *Role) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for Role

type RolePermission

type RolePermission struct {
	Resource string
	Action   string
}

type RunRecencyOutcome

type RunRecencyOutcome int
const (
	RunRecencyOutcomeUnknown     RunRecencyOutcome = iota // unknown
	RunRecencyOutcomeGrace                                // grace
	RunRecencyOutcomeHealthy                              // healthy
	RunRecencyOutcomeBreached                             // breached
	RunRecencyOutcomeUnavailable                          // unavailable
)

func RunRecencyOutcomeString

func RunRecencyOutcomeString(s string) (RunRecencyOutcome, error)

RunRecencyOutcomeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func RunRecencyOutcomeValues

func RunRecencyOutcomeValues() []RunRecencyOutcome

RunRecencyOutcomeValues returns all values of the enum

func (RunRecencyOutcome) IsARunRecencyOutcome

func (i RunRecencyOutcome) IsARunRecencyOutcome() bool

IsARunRecencyOutcome returns "true" if the value is listed in the enum definition. "false" otherwise

func (RunRecencyOutcome) MarshalJSON

func (i RunRecencyOutcome) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for RunRecencyOutcome

func (RunRecencyOutcome) MarshalText

func (i RunRecencyOutcome) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for RunRecencyOutcome

func (RunRecencyOutcome) String

func (i RunRecencyOutcome) String() string

func (*RunRecencyOutcome) UnmarshalJSON

func (i *RunRecencyOutcome) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for RunRecencyOutcome

func (*RunRecencyOutcome) UnmarshalText

func (i *RunRecencyOutcome) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for RunRecencyOutcome

type RuntimeSecretValue

type RuntimeSecretValue = pipelinemodel.RuntimeSecretValue

Pipeline contracts have one implementation shared with the standalone CLI.

type RuntimeVariable

type RuntimeVariable = pipelinemodel.RuntimeVariable

Pipeline contracts have one implementation shared with the standalone CLI.

type RuntimeVariableValueType

type RuntimeVariableValueType = pipelinemodel.RuntimeVariableValueType

Pipeline contracts have one implementation shared with the standalone CLI.

func RuntimeVariableValueTypeString

func RuntimeVariableValueTypeString(s string) (RuntimeVariableValueType, error)

func RuntimeVariableValueTypeValues

func RuntimeVariableValueTypeValues() []RuntimeVariableValueType

type SessionLoginResult

type SessionLoginResult struct {
	User         *User
	MFARequired  bool
	MFAChallenge *MFAChallenge
}

type SetProjectPipelineBackend

type SetProjectPipelineBackend struct {
	// Setup must not replace a backend configured while provider creation was in flight.
	RequireUnconfigured bool
	ExpectedRepository  string
	DataSourceSlug      slug.Slug `validate:"required"`
	TrackedBranch       string    `validate:"required"`
	PipelineDir         string    `validate:"required"`
	ProviderOwner       string
	RepositoryName      string
	Mode                SetProjectPipelineBackendMode
}

type SetProjectPipelineBackendMode

type SetProjectPipelineBackendMode int
const (
	SetProjectPipelineBackendModeUnknown SetProjectPipelineBackendMode = iota // unknown
	// AdoptExisting switches the project to the target backend, then imports the
	// pipeline files already present there.
	SetProjectPipelineBackendModeAdoptExisting // adopt_existing
	// CreateFromTemplate creates a private provider repository, then imports its
	// exact first commit through the same adoption path.
	SetProjectPipelineBackendModeCreateFromTemplate // create_from_template
)

func SetProjectPipelineBackendModeString

func SetProjectPipelineBackendModeString(s string) (SetProjectPipelineBackendMode, error)

SetProjectPipelineBackendModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func SetProjectPipelineBackendModeValues

func SetProjectPipelineBackendModeValues() []SetProjectPipelineBackendMode

SetProjectPipelineBackendModeValues returns all values of the enum

func (SetProjectPipelineBackendMode) IsASetProjectPipelineBackendMode

func (i SetProjectPipelineBackendMode) IsASetProjectPipelineBackendMode() bool

IsASetProjectPipelineBackendMode returns "true" if the value is listed in the enum definition. "false" otherwise

func (SetProjectPipelineBackendMode) MarshalJSON

func (i SetProjectPipelineBackendMode) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for SetProjectPipelineBackendMode

func (SetProjectPipelineBackendMode) MarshalText

func (i SetProjectPipelineBackendMode) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for SetProjectPipelineBackendMode

func (SetProjectPipelineBackendMode) String

func (*SetProjectPipelineBackendMode) UnmarshalJSON

func (i *SetProjectPipelineBackendMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for SetProjectPipelineBackendMode

func (*SetProjectPipelineBackendMode) UnmarshalText

func (i *SetProjectPipelineBackendMode) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for SetProjectPipelineBackendMode

type SinkBackend

type SinkBackend = pipelinemodel.SinkBackend

Pipeline contracts have one implementation shared with the standalone CLI.

func SinkBackendString

func SinkBackendString(s string) (SinkBackend, error)

func SinkBackendValues

func SinkBackendValues() []SinkBackend

type StructuralCheckWindow

type StructuralCheckWindow struct {
	SourceSteps        []slug.Slug `json:"source_steps"`
	Kind               string      `json:"kind"`
	HasLowerBound      bool        `json:"has_lower_bound"`
	HasUpperBound      bool        `json:"has_upper_bound"`
	BackfillSeriesSlug string      `json:"backfill_series_slug,omitempty"`
	BackfillChunkIndex int         `json:"backfill_chunk_index,omitempty"`
}

CheckWindow links the attempt's source window without copying cursor values.

type Timestamps

type Timestamps struct {
	CreatedAt time.Time
	UpdatedAt time.Time
}

type TransformOutputKind

type TransformOutputKind = pipelinemodel.TransformOutputKind

Pipeline contracts have one implementation shared with the standalone CLI.

func TransformOutputKindString

func TransformOutputKindString(s string) (TransformOutputKind, error)

func TransformOutputKindValues

func TransformOutputKindValues() []TransformOutputKind

type UpdateAPIKey

type UpdateAPIKey struct {
	Name             string `validate:"required"`
	Description      *string
	ExpiresAt        *time.Time
	CanManageAPIKeys *bool
}

type UpdateDataSourceRef

type UpdateDataSourceRef struct {
	Name                             string                    `validate:"required,min=1,max=255"`
	DataSourceType                   DataSourceType            `validate:"required"`
	RequiredCapabilities             []DataSourceRefCapability `validate:"required,min=1,dive,required"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type UpdateEnvironment

type UpdateEnvironment struct {
	Name                             string  `validate:"required,min=1,max=255"`
	Description                      *string `validate:"omitempty,max=2000"`
	Protected                        bool
	Color                            EnvironmentColor `validate:"required,environmentcolor"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type UpdateMember

type UpdateMember struct {
	Role slug.Slug `validate:"required"`
}

type UpdateODCSContract

type UpdateODCSContract struct {
	Name   string `validate:"required,min=1,max=255"`
	Status string `validate:"oneof=active archived"`
}

type UpdateOrganization

type UpdateOrganization struct {
	Name string `validate:"required,min=1,max=100"`
}

type UpdatePersonalAccessToken

type UpdatePersonalAccessToken struct {
	Name                          string `validate:"required"`
	Description                   NullableStringUpdate
	ExpiresAt                     NullableTimeUpdate
	CanManagePersonalAccessTokens *bool
}

type UpdatePipelineTrigger

type UpdatePipelineTrigger struct {
	Name             string              `validate:"required,min=1,max=255"`
	Type             PipelineTriggerType `validate:"required"`
	Enabled          bool
	PipelineSlug     slug.Slug                    `validate:"required"`
	VersionPolicy    PipelineTriggerVersionPolicy `validate:"required"`
	RuntimeInputKeys []string
	RetryPolicy      PipelineTriggerRetryPolicy `validate:"required"`
	ScheduleConfig   *PipelineTriggerScheduleConfig
	CompletionConfig *PipelineTriggerCompletionConfig
	WebhookConfig    *PipelineTriggerWebhookConfig
}

UpdatePipelineTrigger is the full service input for replacing a trigger resource.

type UpdateProject

type UpdateProject struct {
	Name string `validate:"required,min=1,max=255"`
}

type UpdateRole

type UpdateRole struct {
	Name string `validate:"required,min=1,max=100"`
}

type UpdateUserProfile

type UpdateUserProfile struct {
	FullName        *string `validate:"omitempty,min=1,max=100"`
	Locale          *string `validate:"omitempty,bcp47_language_tag"`
	AvatarURL       *string `validate:"omitempty,max=2048"`
	PhoneNumber     *string `validate:"omitempty,max=32"`
	JobTitle        *string `validate:"omitempty,max=120"`
	Timezone        *string `validate:"omitempty,max=64"`
	MFAEmailEnabled *bool
}

type UpsertDataSourceBinding

type UpsertDataSourceBinding struct {
	DataSourceSlug                   slug.Slug `validate:"required"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type UpsertEnvironmentSecret

type UpsertEnvironmentSecret struct {
	Key                              string  `validate:"required,min=1,max=100"`
	Value                            string  `validate:"required,max=20000"`
	Description                      *string `validate:"omitempty,max=2000"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type UpsertRuntimeVariable

type UpsertRuntimeVariable struct {
	Key                              string                   `validate:"required,min=1,max=100"`
	ValueType                        RuntimeVariableValueType `validate:"required"`
	Value                            string                   `validate:"required,max=4000"`
	Description                      *string                  `validate:"omitempty,max=2000"`
	ProtectedEnvironmentConfirmation *slug.Slug
}

type User

type User struct {
	AuthenticationVersion int64
	Slug                  slug.Slug
	Email                 string
	FullName              string
	Role                  Role
	Locale                string
	AvatarURL             string
	PhoneNumber           string
	JobTitle              string
	Timezone              string
	MFAEmailEnabled       bool
	HasLocalPassword      bool
	VerifiedAt            time.Time
	Timestamps
}

type UserLogin

type UserLogin struct {
	Email    string `validate:"required,email"`
	Password string `validate:"required,min=8,max=1024"`
}

type UserPrincipal

type UserPrincipal struct {
	UserSlug                      slug.Slug
	PersonalAccessTokenSlug       slug.Slug
	CanManagePersonalAccessTokens bool
}

type UserWithPassword

type UserWithPassword struct {
	User
	Password string
}

UserWithPassword is a user with a password. Separate type has been created to make it harder to leak password hashes by accident.

type WishlistFocus

type WishlistFocus int
const (
	WishlistFocusUnknown                       WishlistFocus = iota // unknown
	WishlistFocusCLIFirstETLRuns                                    // cli_first_etl_runs
	WishlistFocusGuidedETLDemoWalkthrough                           // guided_etl_demo_walkthrough
	WishlistFocusGitIntegration                                     // git_integration
	WishlistFocusContractsAndValidation                             // contracts_and_validation
	WishlistFocusScheduledReproducibleRuns                          // scheduled_reproducible_runs
	WishlistFocusSourceCheckpointsIncrementals                      // source_checkpoints_incrementals
)

func WishlistFocusString

func WishlistFocusString(s string) (WishlistFocus, error)

WishlistFocusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func WishlistFocusValues

func WishlistFocusValues() []WishlistFocus

WishlistFocusValues returns all values of the enum

func (WishlistFocus) IsAWishlistFocus

func (i WishlistFocus) IsAWishlistFocus() bool

IsAWishlistFocus returns "true" if the value is listed in the enum definition. "false" otherwise

func (WishlistFocus) MarshalJSON

func (i WishlistFocus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for WishlistFocus

func (WishlistFocus) MarshalText

func (i WishlistFocus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for WishlistFocus

func (WishlistFocus) String

func (i WishlistFocus) String() string

func (*WishlistFocus) UnmarshalJSON

func (i *WishlistFocus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for WishlistFocus

func (*WishlistFocus) UnmarshalText

func (i *WishlistFocus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for WishlistFocus

type WishlistRegistration

type WishlistRegistration struct {
	WorkEmail                   string
	CareMostAbout               WishlistFocus
	CommunicationRequestVersion string
	WorkflowToTestFirst         string
	Timestamps
}

Source Files

Jump to

Keyboard shortcuts

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