gen

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v0.3.0

type Account struct {
	ID                int64              `json:"id"`
	SourceKind        string             `json:"source_kind"`
	SourceName        string             `json:"source_name"`
	ExternalID        string             `json:"external_id"`
	Email             string             `json:"email"`
	DisplayName       string             `json:"display_name"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	LastLoginAt       pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp       string             `json:"last_login_ip"`
	LastLoginRegion   string             `json:"last_login_region"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	Status            string             `json:"status"`
	AccountKind       string             `json:"account_kind"`
	EntityCategory    string             `json:"entity_category"`
}

type AppAsset added in v0.3.0

type AppAsset struct {
	ID                     int64              `json:"id"`
	SourceKind             string             `json:"source_kind"`
	SourceName             string             `json:"source_name"`
	AssetKind              string             `json:"asset_kind"`
	ExternalID             string             `json:"external_id"`
	ParentExternalID       string             `json:"parent_external_id"`
	DisplayName            string             `json:"display_name"`
	Status                 string             `json:"status"`
	CreatedAtSource        pgtype.Timestamptz `json:"created_at_source"`
	UpdatedAtSource        pgtype.Timestamptz `json:"updated_at_source"`
	RawJson                []byte             `json:"raw_json"`
	SeenInRunID            pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                 pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID      pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt         pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt              pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID           pgtype.Int8        `json:"expired_run_id"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
	OwnerCount             int64              `json:"owner_count"`
	GrantCount             int64              `json:"grant_count"`
	ActorCount             int64              `json:"actor_count"`
	DiscoverySourceCount   int64              `json:"discovery_source_count"`
	DiscoveryEventCount30d int64              `json:"discovery_event_count_30d"`
	EvidenceLastSeenAt     pgtype.Timestamptz `json:"evidence_last_seen_at"`
	ProjectionRefreshedAt  pgtype.Timestamptz `json:"projection_refreshed_at"`
}

type AppAssetOwner added in v0.3.0

type AppAssetOwner struct {
	ID                int64              `json:"id"`
	AppAssetID        int64              `json:"app_asset_id"`
	OwnerKind         string             `json:"owner_kind"`
	OwnerExternalID   string             `json:"owner_external_id"`
	OwnerDisplayName  string             `json:"owner_display_name"`
	OwnerEmail        string             `json:"owner_email"`
	RawJson           []byte             `json:"raw_json"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type AuthUser added in v0.2.0

type AuthUser struct {
	ID           int64              `json:"id"`
	Email        string             `json:"email"`
	PasswordHash string             `json:"password_hash"`
	Role         string             `json:"role"`
	IsActive     bool               `json:"is_active"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt    pgtype.Timestamptz `json:"updated_at"`
	LastLoginAt  pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp  string             `json:"last_login_ip"`
}

type BulkAutoLinkByEmailParams

type BulkAutoLinkByEmailParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type ClaimNextSyncJobByLaneParams added in v0.4.8

type ClaimNextSyncJobByLaneParams struct {
	ClaimedBy    pgtype.Text `json:"claimed_by"`
	LeaseSeconds int64       `json:"lease_seconds"`
	Lane         string      `json:"lane"`
}

type CompleteManualSyncJobFailureParams added in v0.4.8

type CompleteManualSyncJobFailureParams struct {
	LastError pgtype.Text `json:"last_error"`
	ID        pgtype.UUID `json:"id"`
	ClaimedBy pgtype.Text `json:"claimed_by"`
}

type CompleteManualSyncJobSuccessParams added in v0.4.8

type CompleteManualSyncJobSuccessParams struct {
	ID        pgtype.UUID `json:"id"`
	ClaimedBy pgtype.Text `json:"claimed_by"`
}

type CompleteScheduledSyncJobFailureParams added in v0.4.8

type CompleteScheduledSyncJobFailureParams struct {
	AvailableAt pgtype.Timestamptz `json:"available_at"`
	LastError   pgtype.Text        `json:"last_error"`
	ID          pgtype.UUID        `json:"id"`
	ClaimedBy   pgtype.Text        `json:"claimed_by"`
}

type CompleteScheduledSyncJobSuccessParams added in v0.4.8

type CompleteScheduledSyncJobSuccessParams struct {
	ID        pgtype.UUID `json:"id"`
	ClaimedBy pgtype.Text `json:"claimed_by"`
}

type ConnectedAppReadModelsV added in v0.4.11

type ConnectedAppReadModelsV struct {
	ID                           int64              `json:"id"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	AssetKind                    string             `json:"asset_kind"`
	ExternalID                   string             `json:"external_id"`
	ParentExternalID             string             `json:"parent_external_id"`
	DisplayName                  string             `json:"display_name"`
	Status                       string             `json:"status"`
	CreatedAtSource              pgtype.Timestamptz `json:"created_at_source"`
	UpdatedAtSource              pgtype.Timestamptz `json:"updated_at_source"`
	RawJson                      []byte             `json:"raw_json"`
	SeenInRunID                  pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                       pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID            pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt               pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt                    pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID                 pgtype.Int8        `json:"expired_run_id"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	GovernanceState              string             `json:"governance_state"`
	TicketRef                    string             `json:"ticket_ref"`
	Notes                        string             `json:"notes"`
	GovernanceOwnerIdentityID    int64              `json:"governance_owner_identity_id"`
	GovernanceOwnerDisplayName   string             `json:"governance_owner_display_name"`
	GovernanceOwnerPrimaryEmail  string             `json:"governance_owner_primary_email"`
	GovernanceOwnerKind          string             `json:"governance_owner_kind"`
	OwnerCount                   int64              `json:"owner_count"`
	GrantCount                   int64              `json:"grant_count"`
	ActorCount                   int64              `json:"actor_count"`
	DiscoverySourceCount         int64              `json:"discovery_source_count"`
	DiscoveryEventCount30d       int64              `json:"discovery_event_count_30d"`
	EvidenceLastSeenAt           pgtype.Timestamptz `json:"evidence_last_seen_at"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	EffectiveBusinessCriticality string             `json:"effective_business_criticality"`
	EffectiveDataClassification  string             `json:"effective_data_classification"`
	EvidenceSignalCount          int32              `json:"evidence_signal_count"`
	EvidenceFreshness            string             `json:"evidence_freshness"`
	EvidenceConfidence           string             `json:"evidence_confidence"`
	EvidenceConfidenceReason     string             `json:"evidence_confidence_reason"`
}

type ConnectorConfig

type ConnectorConfig struct {
	Kind      string             `json:"kind"`
	Enabled   bool               `json:"enabled"`
	Config    []byte             `json:"config"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}

type ConnectorSecret added in v0.4.10

type ConnectorSecret struct {
	Kind       string             `json:"kind"`
	SecretName string             `json:"secret_name"`
	Ciphertext []byte             `json:"ciphertext"`
	Nonce      []byte             `json:"nonce"`
	Version    int16              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
}

type ConnectorSourceState added in v0.4.11

type ConnectorSourceState struct {
	SourceKind       string             `json:"source_kind"`
	SourceName       string             `json:"source_name"`
	Enabled          bool               `json:"enabled"`
	Configured       bool               `json:"configured"`
	DiscoveryEnabled bool               `json:"discovery_enabled"`
	LastSuccessAt    pgtype.Timestamptz `json:"last_success_at"`
	FreshUntilAt     pgtype.Timestamptz `json:"fresh_until_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
}

type CountAppAssetGovernanceBySourceAndQueryAndStateParams added in v0.4.10

type CountAppAssetGovernanceBySourceAndQueryAndStateParams struct {
	SourceKind      string `json:"source_kind"`
	SourceName      string `json:"source_name"`
	AssetKind       string `json:"asset_kind"`
	GovernanceState string `json:"governance_state"`
	Query           string `json:"query"`
}

type CountAppAssetGovernanceGroupedByStateParams added in v0.4.10

type CountAppAssetGovernanceGroupedByStateParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	AssetKind  string `json:"asset_kind"`
	Query      string `json:"query"`
}

type CountAppAssetGovernanceGroupedByStateRow added in v0.4.10

type CountAppAssetGovernanceGroupedByStateRow struct {
	GovernanceState string `json:"governance_state"`
	AppCount        int64  `json:"app_count"`
}

type CountAppAssetsBySourceAndQueryAndKindParams added in v0.3.0

type CountAppAssetsBySourceAndQueryAndKindParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	AssetKind  string `json:"asset_kind"`
	Query      string `json:"query"`
}

type CountAppAssetsBySourcesAndQueryAndKindParams added in v0.4.9

type CountAppAssetsBySourcesAndQueryAndKindParams struct {
	AssetKind             string   `json:"asset_kind"`
	Query                 string   `json:"query"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
}

type CountConfiguredNonHumanHighRiskCredentialAttributionRow added in v0.4.11

type CountConfiguredNonHumanHighRiskCredentialAttributionRow struct {
	HighRiskCredentialCount      int64 `json:"high_risk_credential_count"`
	HighRiskWithAttributionCount int64 `json:"high_risk_with_attribution_count"`
}

type CountConfiguredNonHumanPrincipalOwnerCoverageRow added in v0.4.11

type CountConfiguredNonHumanPrincipalOwnerCoverageRow struct {
	PrincipalCount int64 `json:"principal_count"`
	WithOwnerCount int64 `json:"with_owner_count"`
}

type CountCredentialArtifactsBySourceAndQueryAndFiltersParams added in v0.3.0

type CountCredentialArtifactsBySourceAndQueryAndFiltersParams struct {
	RiskLevel      string             `json:"risk_level"`
	ExpiryState    string             `json:"expiry_state"`
	EvaluatedAt    pgtype.Timestamptz `json:"evaluated_at"`
	ExpiresInDays  int32              `json:"expires_in_days"`
	Query          string             `json:"query"`
	SourceKind     string             `json:"source_kind"`
	SourceName     string             `json:"source_name"`
	CredentialKind string             `json:"credential_kind"`
	Status         string             `json:"status"`
}

type CountCredentialArtifactsBySourcesAndQueryAndFiltersParams added in v0.4.9

type CountCredentialArtifactsBySourcesAndQueryAndFiltersParams struct {
	RiskLevel             string             `json:"risk_level"`
	ExpiryState           string             `json:"expiry_state"`
	EvaluatedAt           pgtype.Timestamptz `json:"evaluated_at"`
	ExpiresInDays         int32              `json:"expires_in_days"`
	Query                 string             `json:"query"`
	ConfiguredSourceKinds []string           `json:"configured_source_kinds"`
	ConfiguredSourceNames []string           `json:"configured_source_names"`
	CredentialKind        string             `json:"credential_kind"`
	Status                string             `json:"status"`
}

type CountGitHubUsersBySourceAndQueryParams added in v0.4.9

type CountGitHubUsersBySourceAndQueryParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Query      string `json:"query"`
}

type CountGoogleWorkspaceGroupsBySourceAndQueryParams added in v0.4.7

type CountGoogleWorkspaceGroupsBySourceAndQueryParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Query      string `json:"query"`
}

type CountIdentitiesInventoryByFiltersParams added in v0.4.7

type CountIdentitiesInventoryByFiltersParams struct {
	ManagedState          string   `json:"managed_state"`
	PrivilegedOnly        bool     `json:"privileged_only"`
	Status                string   `json:"status"`
	ActivityState         string   `json:"activity_state"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
	SourceKind            string   `json:"source_kind"`
	SourceName            string   `json:"source_name"`
	Query                 string   `json:"query"`
	IdentityType          string   `json:"identity_type"`
}

type CountLinkedSourceAccountsBySourceParams added in v0.4.9

type CountLinkedSourceAccountsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type CountNonHumanPrincipalsByFiltersParams added in v0.4.11

type CountNonHumanPrincipalsByFiltersParams struct {
	Query                 string   `json:"query"`
	SourceKind            string   `json:"source_kind"`
	SourceName            string   `json:"source_name"`
	PrincipalType         string   `json:"principal_type"`
	OwnerPresence         string   `json:"owner_presence"`
	GovernanceState       string   `json:"governance_state"`
	RiskLevel             string   `json:"risk_level"`
	ActivityState         string   `json:"activity_state"`
	FreshnessState        string   `json:"freshness_state"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
}

type CountOktaAccountsByQueryAndStateParams added in v0.4.9

type CountOktaAccountsByQueryAndStateParams struct {
	Query string `json:"query"`
	State string `json:"state"`
}

type CountOktaAppAssignedAccountsByQueryParams added in v0.4.9

type CountOktaAppAssignedAccountsByQueryParams struct {
	OktaAppID int64  `json:"okta_app_id"`
	State     string `json:"state"`
	Query     string `json:"query"`
}

type CountOktaAppsFilteredParams added in v0.4.11

type CountOktaAppsFilteredParams struct {
	Query             string `json:"query"`
	StatusFilter      string `json:"status_filter"`
	IntegrationFilter string `json:"integration_filter"`
}

type CountSaaSAppsByFiltersParams added in v0.4.0

type CountSaaSAppsByFiltersParams struct {
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
	Query        string `json:"query"`
	ManagedState string `json:"managed_state"`
	RiskLevel    string `json:"risk_level"`
}

type CountSaaSAppsGroupedByManagedStateRow added in v0.4.0

type CountSaaSAppsGroupedByManagedStateRow struct {
	ManagedState string `json:"managed_state"`
	AppCount     int64  `json:"app_count"`
}

type CountSaaSAppsGroupedByRiskLevelRow added in v0.4.0

type CountSaaSAppsGroupedByRiskLevelRow struct {
	RiskLevel string `json:"risk_level"`
	AppCount  int64  `json:"app_count"`
}

type CountSourceAccountsBySourceAndQueryAndStateParams added in v0.4.9

type CountSourceAccountsBySourceAndQueryAndStateParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
	State          string `json:"state"`
}

type CountSourceAccountsBySourceAndQueryParams added in v0.4.9

type CountSourceAccountsBySourceAndQueryParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
}

type CountSourceAccountsBySourceParams added in v0.4.9

type CountSourceAccountsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type CountUnlinkedSourceAccountsBySourceAndQueryParams added in v0.4.9

type CountUnlinkedSourceAccountsBySourceAndQueryParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
}

type CountUnlinkedSourceAccountsBySourceParams added in v0.4.9

type CountUnlinkedSourceAccountsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type CreateAuthUserParams added in v0.2.0

type CreateAuthUserParams struct {
	Email        string `json:"email"`
	PasswordHash string `json:"password_hash"`
	Role         string `json:"role"`
	IsActive     bool   `json:"is_active"`
}

type CreateIdentityParams added in v0.3.0

type CreateIdentityParams struct {
	Kind         string `json:"kind"`
	DisplayName  string `json:"display_name"`
	PrimaryEmail string `json:"primary_email"`
}

type CreateSyncJobParams added in v0.4.8

type CreateSyncJobParams struct {
	ID             pgtype.UUID        `json:"id"`
	Lane           string             `json:"lane"`
	ConnectorKind  pgtype.Text        `json:"connector_kind"`
	SourceName     pgtype.Text        `json:"source_name"`
	TriggerKind    string             `json:"trigger_kind"`
	Status         string             `json:"status"`
	AttemptCount   int32              `json:"attempt_count"`
	AvailableAt    pgtype.Timestamptz `json:"available_at"`
	RerunRequested bool               `json:"rerun_requested"`
}

type CreateSyncRunParams

type CreateSyncRunParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type CredentialArtifact added in v0.3.0

type CredentialArtifact struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	AssetRefKind          string             `json:"asset_ref_kind"`
	AssetRefExternalID    string             `json:"asset_ref_external_id"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Fingerprint           string             `json:"fingerprint"`
	ScopeJson             []byte             `json:"scope_json"`
	Status                string             `json:"status"`
	CreatedAtSource       pgtype.Timestamptz `json:"created_at_source"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByKind         string             `json:"created_by_kind"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	ApprovedByKind        string             `json:"approved_by_kind"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	RawJson               []byte             `json:"raw_json"`
	SeenInRunID           pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID     pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt        pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt             pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID          pgtype.Int8        `json:"expired_run_id"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
}

type CredentialAuditEvent added in v0.3.0

type CredentialAuditEvent struct {
	ID                   int64              `json:"id"`
	SourceKind           string             `json:"source_kind"`
	SourceName           string             `json:"source_name"`
	EventExternalID      string             `json:"event_external_id"`
	EventType            string             `json:"event_type"`
	EventTime            pgtype.Timestamptz `json:"event_time"`
	ActorKind            string             `json:"actor_kind"`
	ActorExternalID      string             `json:"actor_external_id"`
	ActorDisplayName     string             `json:"actor_display_name"`
	TargetKind           string             `json:"target_kind"`
	TargetExternalID     string             `json:"target_external_id"`
	TargetDisplayName    string             `json:"target_display_name"`
	CredentialKind       string             `json:"credential_kind"`
	CredentialExternalID string             `json:"credential_external_id"`
	RawJson              []byte             `json:"raw_json"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeactivateRulesNotInKeysParams

type DeactivateRulesNotInKeysParams struct {
	RulesetID int64    `json:"ruleset_id"`
	RuleKeys  []string `json:"rule_keys"`
}

type DiscoveryAppReadModelsV added in v0.4.11

type DiscoveryAppReadModelsV struct {
	ID                           int64              `json:"id"`
	CanonicalKey                 string             `json:"canonical_key"`
	DisplayName                  string             `json:"display_name"`
	PrimaryDomain                string             `json:"primary_domain"`
	VendorName                   string             `json:"vendor_name"`
	FirstSeenAt                  pgtype.Timestamptz `json:"first_seen_at"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	OwnerIdentityID              int64              `json:"owner_identity_id"`
	OwnerDisplayName             string             `json:"owner_display_name"`
	OwnerPrimaryEmail            string             `json:"owner_primary_email"`
	ReviewOwnerIdentityID        int64              `json:"review_owner_identity_id"`
	ReviewOwnerDisplayName       string             `json:"review_owner_display_name"`
	ReviewOwnerPrimaryEmail      string             `json:"review_owner_primary_email"`
	Actors30d                    int64              `json:"actors_30d"`
	HasPrivilegedScope           bool               `json:"has_privileged_scope"`
	HasConfidentialScope         bool               `json:"has_confidential_scope"`
	BoundConnectorKind           string             `json:"bound_connector_kind"`
	BoundConnectorSourceName     string             `json:"bound_connector_source_name"`
	ConnectorEnabled             bool               `json:"connector_enabled"`
	ConnectorConfigured          bool               `json:"connector_configured"`
	LastSuccessAt                pgtype.Timestamptz `json:"last_success_at"`
	FreshUntilAt                 pgtype.Timestamptz `json:"fresh_until_at"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	EffectiveBusinessCriticality interface{}        `json:"effective_business_criticality"`
	EffectiveDataClassification  interface{}        `json:"effective_data_classification"`
	GovernanceState              string             `json:"governance_state"`
	ReviewDisposition            string             `json:"review_disposition"`
	TicketRef                    string             `json:"ticket_ref"`
	Notes                        string             `json:"notes"`
	FollowUpDueDate              pgtype.Date        `json:"follow_up_due_date"`
	IsFollowUpOverdue            bool               `json:"is_follow_up_overdue"`
	ReplacementSaasAppID         int64              `json:"replacement_saas_app_id"`
	ReplacementDisplayName       string             `json:"replacement_display_name"`
	ReplacementPrimaryDomain     string             `json:"replacement_primary_domain"`
	ManagedState                 string             `json:"managed_state"`
	ManagedReason                string             `json:"managed_reason"`
	RiskScore                    int32              `json:"risk_score"`
	RiskLevel                    string             `json:"risk_level"`
}

type Entitlement

type Entitlement struct {
	ID                int64              `json:"id"`
	AppUserID         int64              `json:"app_user_id"`
	Kind              string             `json:"kind"`
	Resource          string             `json:"resource"`
	Permission        string             `json:"permission"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type ExpireAppAssetOwnersNotSeenInRunBySourceParams added in v0.3.0

type ExpireAppAssetOwnersNotSeenInRunBySourceParams struct {
	ExpiredRunID int64  `json:"expired_run_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type ExpireAppAssetsNotSeenInRunBySourceParams added in v0.3.0

type ExpireAppAssetsNotSeenInRunBySourceParams struct {
	ExpiredRunID int64  `json:"expired_run_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type ExpireCredentialArtifactsNotSeenInRunBySourceParams added in v0.3.0

type ExpireCredentialArtifactsNotSeenInRunBySourceParams struct {
	ExpiredRunID int64  `json:"expired_run_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type ExpireEntitlementsNotSeenInRunBySourceParams

type ExpireEntitlementsNotSeenInRunBySourceParams struct {
	ExpiredRunID pgtype.Int8 `json:"expired_run_id"`
	SourceKind   string      `json:"source_kind"`
	SourceName   string      `json:"source_name"`
}

type ExpireSaaSAppEventsNotSeenInRunBySourceParams added in v0.4.0

type ExpireSaaSAppEventsNotSeenInRunBySourceParams struct {
	ExpiredRunID int64  `json:"expired_run_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type ExpireSaaSAppSourcesNotSeenInRunBySourceParams added in v0.4.0

type ExpireSaaSAppSourcesNotSeenInRunBySourceParams struct {
	ExpiredRunID int64  `json:"expired_run_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type ExpireSourceAccountsNotSeenInRunParams added in v0.4.9

type ExpireSourceAccountsNotSeenInRunParams struct {
	ExpiredRunID pgtype.Int8 `json:"expired_run_id"`
	SourceKind   string      `json:"source_kind"`
	SourceName   string      `json:"source_name"`
}

type FailSyncRunParams

type FailSyncRunParams struct {
	ID        int64  `json:"id"`
	Status    string `json:"status"`
	Message   string `json:"message"`
	ErrorKind string `json:"error_kind"`
}

type GetActiveSyncJobByScopeParams added in v0.4.8

type GetActiveSyncJobByScopeParams struct {
	Lane          string      `json:"lane"`
	ConnectorKind pgtype.Text `json:"connector_kind"`
	SourceName    pgtype.Text `json:"source_name"`
}

type GetAppAssetBySourceAndKindAndExternalIDParams added in v0.3.0

type GetAppAssetBySourceAndKindAndExternalIDParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	AssetKind  string `json:"asset_kind"`
	ExternalID string `json:"external_id"`
}

type GetAppAssetPostureByIDRow added in v0.4.10

type GetAppAssetPostureByIDRow struct {
	ID                           int64              `json:"id"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	AssetKind                    string             `json:"asset_kind"`
	ExternalID                   string             `json:"external_id"`
	ParentExternalID             string             `json:"parent_external_id"`
	DisplayName                  string             `json:"display_name"`
	Status                       string             `json:"status"`
	CreatedAtSource              pgtype.Timestamptz `json:"created_at_source"`
	UpdatedAtSource              pgtype.Timestamptz `json:"updated_at_source"`
	RawJson                      []byte             `json:"raw_json"`
	SeenInRunID                  int64              `json:"seen_in_run_id"`
	SeenAt                       pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID            int64              `json:"last_observed_run_id"`
	LastObservedAt               pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt                    pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID                 int64              `json:"expired_run_id"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	GovernanceState              string             `json:"governance_state"`
	TicketRef                    string             `json:"ticket_ref"`
	Notes                        string             `json:"notes"`
	GovernanceOwnerIdentityID    int64              `json:"governance_owner_identity_id"`
	GovernanceOwnerDisplayName   string             `json:"governance_owner_display_name"`
	GovernanceOwnerPrimaryEmail  string             `json:"governance_owner_primary_email"`
	GovernanceOwnerKind          string             `json:"governance_owner_kind"`
	OwnerCount                   int64              `json:"owner_count"`
	GrantCount                   int64              `json:"grant_count"`
	ActorCount                   int64              `json:"actor_count"`
	DiscoverySourceCount         int64              `json:"discovery_source_count"`
	DiscoveryEventCount30d       int64              `json:"discovery_event_count_30d"`
	EvidenceLastSeenAt           pgtype.Timestamptz `json:"evidence_last_seen_at"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	EffectiveBusinessCriticality string             `json:"effective_business_criticality"`
	EffectiveDataClassification  string             `json:"effective_data_classification"`
	EvidenceFreshness            string             `json:"evidence_freshness"`
	EvidenceConfidence           string             `json:"evidence_confidence"`
	EvidenceConfidenceReason     string             `json:"evidence_confidence_reason"`
}

type GetCredentialArtifactByIDParams added in v0.4.10

type GetCredentialArtifactByIDParams struct {
	EvaluatedAt pgtype.Timestamptz `json:"evaluated_at"`
	ID          int64              `json:"id"`
}

type GetCredentialArtifactByIDRow added in v0.4.10

type GetCredentialArtifactByIDRow struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	AssetRefKind          string             `json:"asset_ref_kind"`
	AssetRefExternalID    string             `json:"asset_ref_external_id"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Fingerprint           string             `json:"fingerprint"`
	ScopeJson             []byte             `json:"scope_json"`
	Status                string             `json:"status"`
	CreatedAtSource       pgtype.Timestamptz `json:"created_at_source"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByKind         string             `json:"created_by_kind"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	ApprovedByKind        string             `json:"approved_by_kind"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	RawJson               []byte             `json:"raw_json"`
	SeenInRunID           pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID     pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt        pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt             pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID          pgtype.Int8        `json:"expired_run_id"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	RiskLevel             string             `json:"risk_level"`
}

type GetIdentityBySourceAndExternalIDParams added in v0.3.0

type GetIdentityBySourceAndExternalIDParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	ExternalID string `json:"external_id"`
}

type GetIdentitySummaryByIDRow added in v0.3.0

type GetIdentitySummaryByIDRow struct {
	ID             int64              `json:"id"`
	Kind           string             `json:"kind"`
	DisplayName    string             `json:"display_name"`
	PrimaryEmail   string             `json:"primary_email"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	Managed        bool               `json:"managed"`
	LinkedAccounts int64              `json:"linked_accounts"`
}

type GetLatestSaaSDiscoveryObservedAtBySourceParams added in v0.4.0

type GetLatestSaaSDiscoveryObservedAtBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetOktaAppAssignmentForOktaAccountByOktaAppExternalIDParams added in v0.4.9

type GetOktaAppAssignmentForOktaAccountByOktaAppExternalIDParams struct {
	OktaAccountID     int64  `json:"okta_account_id"`
	OktaAppExternalID string `json:"okta_app_external_id"`
}

type GetOktaAppAssignmentForOktaAccountByOktaAppExternalIDRow added in v0.4.9

type GetOktaAppAssignmentForOktaAccountByOktaAppExternalIDRow struct {
	OktaAccountID     int64  `json:"okta_account_id"`
	OktaAppID         int64  `json:"okta_app_id"`
	Scope             string `json:"scope"`
	ProfileJson       []byte `json:"profile_json"`
	AssignmentRawJson []byte `json:"assignment_raw_json"`
	OktaAppExternalID string `json:"okta_app_external_id"`
	AppLabel          string `json:"app_label"`
	AppName           string `json:"app_name"`
	AppStatus         string `json:"app_status"`
	AppSignOnMode     string `json:"app_sign_on_mode"`
	IntegrationKind   string `json:"integration_kind"`
}

type GetOktaAppByExternalIDWithIntegrationRow

type GetOktaAppByExternalIDWithIntegrationRow struct {
	ID              int64              `json:"id"`
	ExternalID      string             `json:"external_id"`
	Label           string             `json:"label"`
	Name            string             `json:"name"`
	Status          string             `json:"status"`
	SignOnMode      string             `json:"sign_on_mode"`
	RawJson         []byte             `json:"raw_json"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	IntegrationKind string             `json:"integration_kind"`
}

type GetRuleAttestationParams

type GetRuleAttestationParams struct {
	RuleID     int64  `json:"rule_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetRuleOverrideParams

type GetRuleOverrideParams struct {
	RuleID     int64  `json:"rule_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetRuleWithCurrentResultByRulesetKeyAndRuleKeyParams

type GetRuleWithCurrentResultByRulesetKeyAndRuleKeyParams struct {
	Key        string `json:"key"`
	Key_2      string `json:"key_2"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetRuleWithCurrentResultByRulesetKeyAndRuleKeyRow

type GetRuleWithCurrentResultByRulesetKeyAndRuleKeyRow struct {
	ID                     int64              `json:"id"`
	RulesetID              int64              `json:"ruleset_id"`
	Key                    string             `json:"key"`
	Title                  string             `json:"title"`
	Summary                string             `json:"summary"`
	Category               string             `json:"category"`
	Severity               string             `json:"severity"`
	MonitoringStatus       string             `json:"monitoring_status"`
	MonitoringReason       string             `json:"monitoring_reason"`
	RequiredData           []byte             `json:"required_data"`
	ExpectedParams         []byte             `json:"expected_params"`
	RuleVersion            string             `json:"rule_version"`
	IsActive               bool               `json:"is_active"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
	DefinitionJson         []byte             `json:"definition_json"`
	CurrentStatus          string             `json:"current_status"`
	CurrentEvaluatedAt     pgtype.Timestamptz `json:"current_evaluated_at"`
	CurrentSyncRunID       pgtype.Int8        `json:"current_sync_run_id"`
	CurrentEvidenceSummary string             `json:"current_evidence_summary"`
	CurrentEvidenceJson    []byte             `json:"current_evidence_json"`
	CurrentErrorKind       string             `json:"current_error_kind"`
}

type GetRulesetOverrideParams

type GetRulesetOverrideParams struct {
	RulesetID  int64  `json:"ruleset_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetRulesetPostureCountsParams added in v0.2.1

type GetRulesetPostureCountsParams struct {
	RulesetID  int64  `json:"ruleset_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type GetRulesetPostureCountsRow added in v0.2.1

type GetRulesetPostureCountsRow struct {
	TotalRules     int64 `json:"total_rules"`
	PassedRules    int64 `json:"passed_rules"`
	EvaluatedRules int64 `json:"evaluated_rules"`
}

type GetSaaSAppByIDRow added in v0.4.9

type GetSaaSAppByIDRow struct {
	ID                           int64              `json:"id"`
	CanonicalKey                 string             `json:"canonical_key"`
	DisplayName                  string             `json:"display_name"`
	PrimaryDomain                string             `json:"primary_domain"`
	VendorName                   string             `json:"vendor_name"`
	ManagedState                 string             `json:"managed_state"`
	ManagedReason                string             `json:"managed_reason"`
	BoundConnectorKind           string             `json:"bound_connector_kind"`
	BoundConnectorSourceName     string             `json:"bound_connector_source_name"`
	RiskScore                    int32              `json:"risk_score"`
	RiskLevel                    string             `json:"risk_level"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	FirstSeenAt                  pgtype.Timestamptz `json:"first_seen_at"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	OwnerIdentityID              int64              `json:"owner_identity_id"`
	OwnerDisplayName             string             `json:"owner_display_name"`
	OwnerPrimaryEmail            string             `json:"owner_primary_email"`
	ReviewOwnerIdentityID        int64              `json:"review_owner_identity_id"`
	ReviewOwnerDisplayName       string             `json:"review_owner_display_name"`
	ReviewOwnerPrimaryEmail      string             `json:"review_owner_primary_email"`
	ReviewDisposition            string             `json:"review_disposition"`
	TicketRef                    string             `json:"ticket_ref"`
	Notes                        string             `json:"notes"`
	FollowUpDueDate              pgtype.Date        `json:"follow_up_due_date"`
	IsFollowUpOverdue            bool               `json:"is_follow_up_overdue"`
	ReplacementSaasAppID         int64              `json:"replacement_saas_app_id"`
	ReplacementDisplayName       string             `json:"replacement_display_name"`
	ReplacementPrimaryDomain     string             `json:"replacement_primary_domain"`
}

type GetSaaSAppReplacementCandidateByIDRow added in v0.4.11

type GetSaaSAppReplacementCandidateByIDRow struct {
	ID            int64  `json:"id"`
	DisplayName   string `json:"display_name"`
	PrimaryDomain string `json:"primary_domain"`
	VendorName    string `json:"vendor_name"`
	ManagedState  string `json:"managed_state"`
	RiskLevel     string `json:"risk_level"`
}

type GetSyncRunRollupsForSourcesParams added in v0.2.1

type GetSyncRunRollupsForSourcesParams struct {
	SourceKinds []string `json:"source_kinds"`
	SourceNames []string `json:"source_names"`
}

type GetSyncRunRollupsForSourcesRow added in v0.2.1

type GetSyncRunRollupsForSourcesRow struct {
	SourceKind             string             `json:"source_kind"`
	SourceName             string             `json:"source_name"`
	LastRunID              pgtype.Int8        `json:"last_run_id"`
	LastRunStatus          pgtype.Text        `json:"last_run_status"`
	LastRunStartedAt       pgtype.Timestamptz `json:"last_run_started_at"`
	LastRunFinishedAt      pgtype.Timestamptz `json:"last_run_finished_at"`
	LastRunErrorKind       pgtype.Text        `json:"last_run_error_kind"`
	LastSuccessAt          pgtype.Timestamptz `json:"last_success_at"`
	RunningCount           int64              `json:"running_count"`
	OldestRunningStartedAt pgtype.Timestamptz `json:"oldest_running_started_at"`
	FinishedCount7d        int64              `json:"finished_count_7d"`
	SuccessCount7d         int64              `json:"success_count_7d"`
	AvgSuccessDurationMs7d pgtype.Float8      `json:"avg_success_duration_ms_7d"`
}

type GovernanceSubjectOverride added in v0.4.10

type GovernanceSubjectOverride struct {
	SubjectKind           string             `json:"subject_kind"`
	SubjectID             int64              `json:"subject_id"`
	GovernanceState       string             `json:"governance_state"`
	OwnerIdentityID       pgtype.Int8        `json:"owner_identity_id"`
	BusinessCriticality   string             `json:"business_criticality"`
	DataClassification    string             `json:"data_classification"`
	TicketRef             string             `json:"ticket_ref"`
	Notes                 string             `json:"notes"`
	UpdatedByAuthUserID   pgtype.Int8        `json:"updated_by_auth_user_id"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	ReviewDisposition     string             `json:"review_disposition"`
	ReviewOwnerIdentityID pgtype.Int8        `json:"review_owner_identity_id"`
	FollowUpDueDate       pgtype.Date        `json:"follow_up_due_date"`
	ReplacementSaasAppID  pgtype.Int8        `json:"replacement_saas_app_id"`
}

type Identity added in v0.3.0

type Identity struct {
	ID           int64              `json:"id"`
	Kind         string             `json:"kind"`
	DisplayName  string             `json:"display_name"`
	PrimaryEmail string             `json:"primary_email"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt    pgtype.Timestamptz `json:"updated_at"`
}

type IdentityAccount added in v0.3.0

type IdentityAccount struct {
	ID         int64              `json:"id"`
	IdentityID int64              `json:"identity_id"`
	AccountID  int64              `json:"account_id"`
	LinkReason string             `json:"link_reason"`
	Confidence float32            `json:"confidence"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
}

type IdentitySourceSetting added in v0.3.0

type IdentitySourceSetting struct {
	SourceKind      string             `json:"source_kind"`
	SourceName      string             `json:"source_name"`
	IsAuthoritative bool               `json:"is_authoritative"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
}

type InsertNonHumanAccessEventParams added in v0.4.11

type InsertNonHumanAccessEventParams struct {
	AuthUserID      int64              `json:"auth_user_id"`
	AuthUserRole    string             `json:"auth_user_role"`
	EventKind       string             `json:"event_kind"`
	PrincipalRef    string             `json:"principal_ref"`
	TargetKind      string             `json:"target_kind"`
	TargetRef       string             `json:"target_ref"`
	FilterSignature string             `json:"filter_signature"`
	OccurredAt      pgtype.Timestamptz `json:"occurred_at"`
}

type InsertRuleEvaluationParams

type InsertRuleEvaluationParams struct {
	RuleID              int64              `json:"rule_id"`
	ScopeKind           string             `json:"scope_kind"`
	SourceKind          string             `json:"source_kind"`
	SourceName          string             `json:"source_name"`
	Status              string             `json:"status"`
	SyncRunID           pgtype.Int8        `json:"sync_run_id"`
	EvaluatedAt         pgtype.Timestamptz `json:"evaluated_at"`
	EvidenceSummary     string             `json:"evidence_summary"`
	EvidenceJson        []byte             `json:"evidence_json"`
	AffectedResourceIds []string           `json:"affected_resource_ids"`
	ErrorKind           string             `json:"error_kind"`
}

type InsertSaaSAppReviewDecisionParams added in v0.4.11

type InsertSaaSAppReviewDecisionParams struct {
	SaasAppID             int64       `json:"saas_app_id"`
	OwnerIdentityID       pgtype.Int8 `json:"owner_identity_id"`
	ReviewOwnerIdentityID pgtype.Int8 `json:"review_owner_identity_id"`
	ReviewDisposition     string      `json:"review_disposition"`
	TicketRef             string      `json:"ticket_ref"`
	Notes                 string      `json:"notes"`
	FollowUpDueDate       pgtype.Date `json:"follow_up_due_date"`
	ReplacementSaasAppID  pgtype.Int8 `json:"replacement_saas_app_id"`
	ChangedByAuthUserID   pgtype.Int8 `json:"changed_by_auth_user_id"`
}

type IntegrationOktaAppMap

type IntegrationOktaAppMap struct {
	IntegrationKind   string             `json:"integration_kind"`
	OktaAppExternalID string             `json:"okta_app_external_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type ListActiveRulesWithCurrentResultsByRulesetKeyParams

type ListActiveRulesWithCurrentResultsByRulesetKeyParams struct {
	Key        string `json:"key"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type ListActiveRulesWithCurrentResultsByRulesetKeyRow

type ListActiveRulesWithCurrentResultsByRulesetKeyRow struct {
	ID                     int64              `json:"id"`
	RulesetID              int64              `json:"ruleset_id"`
	Key                    string             `json:"key"`
	Title                  string             `json:"title"`
	Summary                string             `json:"summary"`
	Category               string             `json:"category"`
	Severity               string             `json:"severity"`
	MonitoringStatus       string             `json:"monitoring_status"`
	MonitoringReason       string             `json:"monitoring_reason"`
	RequiredData           []byte             `json:"required_data"`
	ExpectedParams         []byte             `json:"expected_params"`
	RuleVersion            string             `json:"rule_version"`
	IsActive               bool               `json:"is_active"`
	DefinitionJson         []byte             `json:"definition_json"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
	CurrentStatus          string             `json:"current_status"`
	CurrentEvaluatedAt     pgtype.Timestamptz `json:"current_evaluated_at"`
	CurrentSyncRunID       pgtype.Int8        `json:"current_sync_run_id"`
	CurrentEvidenceSummary string             `json:"current_evidence_summary"`
	CurrentErrorKind       string             `json:"current_error_kind"`
}

type ListAppAssetDiscoveryEventsBySourceAppIDParams added in v0.4.10

type ListAppAssetDiscoveryEventsBySourceAppIDParams struct {
	SourceKind  string `json:"source_kind"`
	SourceName  string `json:"source_name"`
	SourceAppID string `json:"source_app_id"`
	LimitRows   int32  `json:"limit_rows"`
}

type ListAppAssetDiscoverySourcesBySourceAppIDParams added in v0.4.10

type ListAppAssetDiscoverySourcesBySourceAppIDParams struct {
	SourceKind  string `json:"source_kind"`
	SourceName  string `json:"source_name"`
	SourceAppID string `json:"source_app_id"`
}

type ListAppAssetDiscoverySourcesBySourceAppIDRow added in v0.4.10

type ListAppAssetDiscoverySourcesBySourceAppIDRow struct {
	ID                     int64              `json:"id"`
	SaasAppID              int64              `json:"saas_app_id"`
	SourceKind             string             `json:"source_kind"`
	SourceName             string             `json:"source_name"`
	SourceAppID            string             `json:"source_app_id"`
	SourceAppName          string             `json:"source_app_name"`
	SourceAppDomain        string             `json:"source_app_domain"`
	SeenInRunID            pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                 pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID      pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt         pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt              pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID           pgtype.Int8        `json:"expired_run_id"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
	CanonicalKey           string             `json:"canonical_key"`
	DiscoveryDisplayName   string             `json:"discovery_display_name"`
	DiscoveryPrimaryDomain string             `json:"discovery_primary_domain"`
	DiscoveryVendorName    string             `json:"discovery_vendor_name"`
	DiscoveryManagedState  string             `json:"discovery_managed_state"`
	DiscoveryRiskLevel     string             `json:"discovery_risk_level"`
}

type ListAppAssetGovernancePageBySourceAndQueryAndStateParams added in v0.4.10

type ListAppAssetGovernancePageBySourceAndQueryAndStateParams struct {
	SourceKind      string `json:"source_kind"`
	SourceName      string `json:"source_name"`
	AssetKind       string `json:"asset_kind"`
	GovernanceState string `json:"governance_state"`
	Query           string `json:"query"`
	PageOffset      int32  `json:"page_offset"`
	PageLimit       int32  `json:"page_limit"`
}

type ListAppAssetGovernancePageBySourceAndQueryAndStateRow added in v0.4.10

type ListAppAssetGovernancePageBySourceAndQueryAndStateRow struct {
	ID                           int64              `json:"id"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	AssetKind                    string             `json:"asset_kind"`
	ExternalID                   string             `json:"external_id"`
	ParentExternalID             string             `json:"parent_external_id"`
	DisplayName                  string             `json:"display_name"`
	Status                       string             `json:"status"`
	CreatedAtSource              pgtype.Timestamptz `json:"created_at_source"`
	UpdatedAtSource              pgtype.Timestamptz `json:"updated_at_source"`
	RawJson                      []byte             `json:"raw_json"`
	SeenInRunID                  int64              `json:"seen_in_run_id"`
	SeenAt                       pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID            int64              `json:"last_observed_run_id"`
	LastObservedAt               pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt                    pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID                 int64              `json:"expired_run_id"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	GovernanceState              string             `json:"governance_state"`
	TicketRef                    string             `json:"ticket_ref"`
	Notes                        string             `json:"notes"`
	GovernanceOwnerIdentityID    int64              `json:"governance_owner_identity_id"`
	GovernanceOwnerDisplayName   string             `json:"governance_owner_display_name"`
	GovernanceOwnerPrimaryEmail  string             `json:"governance_owner_primary_email"`
	GovernanceOwnerKind          string             `json:"governance_owner_kind"`
	OwnerCount                   int64              `json:"owner_count"`
	GrantCount                   int64              `json:"grant_count"`
	ActorCount                   int64              `json:"actor_count"`
	DiscoverySourceCount         int64              `json:"discovery_source_count"`
	DiscoveryEventCount30d       int64              `json:"discovery_event_count_30d"`
	EvidenceLastSeenAt           pgtype.Timestamptz `json:"evidence_last_seen_at"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	EffectiveBusinessCriticality string             `json:"effective_business_criticality"`
	EffectiveDataClassification  string             `json:"effective_data_classification"`
	EvidenceFreshness            string             `json:"evidence_freshness"`
	EvidenceConfidence           string             `json:"evidence_confidence"`
	EvidenceConfidenceReason     string             `json:"evidence_confidence_reason"`
}

type ListAppAssetsPageBySourceAndQueryAndKindParams added in v0.3.0

type ListAppAssetsPageBySourceAndQueryAndKindParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	AssetKind  string `json:"asset_kind"`
	Query      string `json:"query"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListAppAssetsPageBySourcesAndQueryAndKindParams added in v0.4.9

type ListAppAssetsPageBySourcesAndQueryAndKindParams struct {
	AssetKind             string   `json:"asset_kind"`
	Query                 string   `json:"query"`
	PageOffset            int32    `json:"page_offset"`
	PageLimit             int32    `json:"page_limit"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
}

type ListCredentialArtifactCountsByAssetRefParams added in v0.3.0

type ListCredentialArtifactCountsByAssetRefParams struct {
	SourceKind          string   `json:"source_kind"`
	SourceName          string   `json:"source_name"`
	AssetRefKinds       []string `json:"asset_ref_kinds"`
	AssetRefExternalIds []string `json:"asset_ref_external_ids"`
}

type ListCredentialArtifactCountsByAssetRefRow added in v0.3.0

type ListCredentialArtifactCountsByAssetRefRow struct {
	AssetRefKind       string `json:"asset_ref_kind"`
	AssetRefExternalID string `json:"asset_ref_external_id"`
	CredentialCount    int64  `json:"credential_count"`
}

type ListCredentialArtifactsForAssetRefParams added in v0.3.0

type ListCredentialArtifactsForAssetRefParams struct {
	EvaluatedAt        pgtype.Timestamptz `json:"evaluated_at"`
	SourceKind         string             `json:"source_kind"`
	SourceName         string             `json:"source_name"`
	AssetRefKind       string             `json:"asset_ref_kind"`
	AssetRefExternalID string             `json:"asset_ref_external_id"`
}

type ListCredentialArtifactsForAssetRefRow added in v0.4.10

type ListCredentialArtifactsForAssetRefRow struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	AssetRefKind          string             `json:"asset_ref_kind"`
	AssetRefExternalID    string             `json:"asset_ref_external_id"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Fingerprint           string             `json:"fingerprint"`
	ScopeJson             []byte             `json:"scope_json"`
	Status                string             `json:"status"`
	CreatedAtSource       pgtype.Timestamptz `json:"created_at_source"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByKind         string             `json:"created_by_kind"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	ApprovedByKind        string             `json:"approved_by_kind"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	RawJson               []byte             `json:"raw_json"`
	SeenInRunID           pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID     pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt        pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt             pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID          pgtype.Int8        `json:"expired_run_id"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	RiskLevel             string             `json:"risk_level"`
}

type ListCredentialArtifactsPageBySourceAndQueryAndFiltersParams added in v0.3.0

type ListCredentialArtifactsPageBySourceAndQueryAndFiltersParams struct {
	RiskLevel      string             `json:"risk_level"`
	ExpiryState    string             `json:"expiry_state"`
	EvaluatedAt    pgtype.Timestamptz `json:"evaluated_at"`
	ExpiresInDays  int32              `json:"expires_in_days"`
	Query          string             `json:"query"`
	PageOffset     int32              `json:"page_offset"`
	PageLimit      int32              `json:"page_limit"`
	SourceKind     string             `json:"source_kind"`
	SourceName     string             `json:"source_name"`
	CredentialKind string             `json:"credential_kind"`
	Status         string             `json:"status"`
}

type ListCredentialArtifactsPageBySourceAndQueryAndFiltersRow added in v0.4.10

type ListCredentialArtifactsPageBySourceAndQueryAndFiltersRow struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	AssetRefKind          string             `json:"asset_ref_kind"`
	AssetRefExternalID    string             `json:"asset_ref_external_id"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Fingerprint           string             `json:"fingerprint"`
	ScopeJson             []byte             `json:"scope_json"`
	Status                string             `json:"status"`
	CreatedAtSource       pgtype.Timestamptz `json:"created_at_source"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByKind         string             `json:"created_by_kind"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	ApprovedByKind        string             `json:"approved_by_kind"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	RawJson               []byte             `json:"raw_json"`
	SeenInRunID           pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID     pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt        pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt             pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID          pgtype.Int8        `json:"expired_run_id"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	RiskLevel             string             `json:"risk_level"`
}

type ListCredentialArtifactsPageBySourcesAndQueryAndFiltersParams added in v0.4.9

type ListCredentialArtifactsPageBySourcesAndQueryAndFiltersParams struct {
	RiskLevel             string             `json:"risk_level"`
	ExpiryState           string             `json:"expiry_state"`
	EvaluatedAt           pgtype.Timestamptz `json:"evaluated_at"`
	ExpiresInDays         int32              `json:"expires_in_days"`
	Query                 string             `json:"query"`
	PageOffset            int32              `json:"page_offset"`
	PageLimit             int32              `json:"page_limit"`
	ConfiguredSourceKinds []string           `json:"configured_source_kinds"`
	ConfiguredSourceNames []string           `json:"configured_source_names"`
	CredentialKind        string             `json:"credential_kind"`
	Status                string             `json:"status"`
}

type ListCredentialArtifactsPageBySourcesAndQueryAndFiltersRow added in v0.4.10

type ListCredentialArtifactsPageBySourcesAndQueryAndFiltersRow struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	AssetRefKind          string             `json:"asset_ref_kind"`
	AssetRefExternalID    string             `json:"asset_ref_external_id"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Fingerprint           string             `json:"fingerprint"`
	ScopeJson             []byte             `json:"scope_json"`
	Status                string             `json:"status"`
	CreatedAtSource       pgtype.Timestamptz `json:"created_at_source"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByKind         string             `json:"created_by_kind"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	ApprovedByKind        string             `json:"approved_by_kind"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	RawJson               []byte             `json:"raw_json"`
	SeenInRunID           pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID     pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt        pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt             pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID          pgtype.Int8        `json:"expired_run_id"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	RiskLevel             string             `json:"risk_level"`
}

type ListCredentialAuditEventsForCredentialParams added in v0.3.0

type ListCredentialAuditEventsForCredentialParams struct {
	SourceKind           string `json:"source_kind"`
	SourceName           string `json:"source_name"`
	CredentialKind       string `json:"credential_kind"`
	CredentialExternalID string `json:"credential_external_id"`
	LimitRows            int32  `json:"limit_rows"`
}

type ListCredentialAuditEventsForTargetParams added in v0.3.0

type ListCredentialAuditEventsForTargetParams struct {
	SourceKind       string `json:"source_kind"`
	SourceName       string `json:"source_name"`
	TargetKind       string `json:"target_kind"`
	TargetExternalID string `json:"target_external_id"`
	LimitRows        int32  `json:"limit_rows"`
}

type ListDashboardPrivilegedAccessBucketsParams added in v0.5.0

type ListDashboardPrivilegedAccessBucketsParams struct {
	BucketLimit           int32    `json:"bucket_limit"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
}

type ListDashboardPrivilegedAccessBucketsRow added in v0.5.0

type ListDashboardPrivilegedAccessBucketsRow struct {
	SourceKind       string `json:"source_kind"`
	SourceName       string `json:"source_name"`
	BucketKey        string `json:"bucket_key"`
	BucketLabel      string `json:"bucket_label"`
	Severity         string `json:"severity"`
	AffectedCount    int64  `json:"affected_count"`
	EntitlementCount int64  `json:"entitlement_count"`
}

type ListDashboardSourceAccountSummariesParams added in v0.5.0

type ListDashboardSourceAccountSummariesParams struct {
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
}

type ListDashboardSourceAccountSummariesRow added in v0.5.0

type ListDashboardSourceAccountSummariesRow struct {
	SourceKind            string `json:"source_kind"`
	SourceName            string `json:"source_name"`
	IdentityCount         int64  `json:"identity_count"`
	AccountCount          int64  `json:"account_count"`
	ManagedAccountCount   int64  `json:"managed_account_count"`
	UnmanagedAccountCount int64  `json:"unmanaged_account_count"`
}

type ListEntitlementAccessBySourceAndResourceRefParams

type ListEntitlementAccessBySourceAndResourceRefParams struct {
	SourceKind  string `json:"source_kind"`
	SourceName  string `json:"source_name"`
	ResourceRef string `json:"resource_ref"`
}

type ListEntitlementAccessBySourceAndResourceRefRow

type ListEntitlementAccessBySourceAndResourceRefRow struct {
	EntitlementID         int64              `json:"entitlement_id"`
	EntitlementKind       string             `json:"entitlement_kind"`
	EntitlementResource   string             `json:"entitlement_resource"`
	EntitlementPermission string             `json:"entitlement_permission"`
	EntitlementRawJson    []byte             `json:"entitlement_raw_json"`
	EntitlementCreatedAt  pgtype.Timestamptz `json:"entitlement_created_at"`
	EntitlementUpdatedAt  pgtype.Timestamptz `json:"entitlement_updated_at"`
	AccountID             int64              `json:"account_id"`
	AccountSourceKind     string             `json:"account_source_kind"`
	AccountSourceName     string             `json:"account_source_name"`
	AccountExternalID     string             `json:"account_external_id"`
	AccountEmail          string             `json:"account_email"`
	AccountDisplayName    string             `json:"account_display_name"`
	AccountRawJson        []byte             `json:"account_raw_json"`
	LinkReason            pgtype.Text        `json:"link_reason"`
	IdentityID            pgtype.Int8        `json:"identity_id"`
	IdentityEmail         pgtype.Text        `json:"identity_email"`
	IdentityDisplayName   pgtype.Text        `json:"identity_display_name"`
	IdentityStatus        pgtype.Text        `json:"identity_status"`
}

type ListEntitlementsForAccountIDsRow added in v0.4.9

type ListEntitlementsForAccountIDsRow struct {
	ID                int64              `json:"id"`
	AccountID         int64              `json:"account_id"`
	Kind              string             `json:"kind"`
	Resource          string             `json:"resource"`
	Permission        string             `json:"permission"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type ListEntitlementsForAccountRow added in v0.4.9

type ListEntitlementsForAccountRow struct {
	ID                int64              `json:"id"`
	AccountID         int64              `json:"account_id"`
	Kind              string             `json:"kind"`
	Resource          string             `json:"resource"`
	Permission        string             `json:"permission"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type ListGitHubUsersPageBySourceAndQueryParams added in v0.4.9

type ListGitHubUsersPageBySourceAndQueryParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Query      string `json:"query"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListGitHubUsersPageBySourceAndQueryRow added in v0.4.9

type ListGitHubUsersPageBySourceAndQueryRow struct {
	ID                int64              `json:"id"`
	SourceKind        string             `json:"source_kind"`
	SourceName        string             `json:"source_name"`
	ExternalID        string             `json:"external_id"`
	Email             string             `json:"email"`
	DisplayName       string             `json:"display_name"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	LastLoginAt       pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp       string             `json:"last_login_ip"`
	LastLoginRegion   string             `json:"last_login_region"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	Status            string             `json:"status"`
	AccountKind       string             `json:"account_kind"`
	EntityCategory    string             `json:"entity_category"`
	IdentityID        int64              `json:"identity_id"`
}

type ListGoogleWorkspaceGroupMemberCountsByGroupExternalIDsRow added in v0.4.7

type ListGoogleWorkspaceGroupMemberCountsByGroupExternalIDsRow struct {
	GroupExternalID string `json:"group_external_id"`
	MemberCount     int64  `json:"member_count"`
	OwnerCount      int64  `json:"owner_count"`
	ManagerCount    int64  `json:"manager_count"`
}

type ListGoogleWorkspaceGroupsPageBySourceAndQueryParams added in v0.4.7

type ListGoogleWorkspaceGroupsPageBySourceAndQueryParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Query      string `json:"query"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListIdentitiesInventoryPageByFiltersParams added in v0.4.7

type ListIdentitiesInventoryPageByFiltersParams struct {
	ManagedState          string   `json:"managed_state"`
	PrivilegedOnly        bool     `json:"privileged_only"`
	Status                string   `json:"status"`
	ActivityState         string   `json:"activity_state"`
	SortBy                string   `json:"sort_by"`
	SortDir               string   `json:"sort_dir"`
	PageOffset            int32    `json:"page_offset"`
	PageLimit             int32    `json:"page_limit"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
	SourceKind            string   `json:"source_kind"`
	SourceName            string   `json:"source_name"`
	Query                 string   `json:"query"`
	IdentityType          string   `json:"identity_type"`
}

type ListIdentitiesInventoryPageByFiltersRow added in v0.4.7

type ListIdentitiesInventoryPageByFiltersRow struct {
	ID               int64              `json:"id"`
	DisplayName      string             `json:"display_name"`
	PrimaryEmail     string             `json:"primary_email"`
	IdentityType     string             `json:"identity_type"`
	Managed          bool               `json:"managed"`
	SourceKind       string             `json:"source_kind"`
	SourceName       string             `json:"source_name"`
	IntegrationCount int64              `json:"integration_count"`
	PrivilegedRoles  int64              `json:"privileged_roles"`
	LastSeenAt       pgtype.Timestamptz `json:"last_seen_at"`
	FirstSeenAt      pgtype.Timestamptz `json:"first_seen_at"`
	Status           string             `json:"status"`
	ActivityState    string             `json:"activity_state"`
	RowState         string             `json:"row_state"`
	TotalCount       int64              `json:"total_count"`
}

type ListIdentityAccountAttributesRow added in v0.3.0

type ListIdentityAccountAttributesRow struct {
	IdentityID   int64  `json:"identity_id"`
	IdentityKind string `json:"identity_kind"`
	AccountID    int64  `json:"account_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
	ExternalID   string `json:"external_id"`
	AccountKind  string `json:"account_kind"`
	Email        string `json:"email"`
	DisplayName  string `json:"display_name"`
}

type ListIdentitySourceSummariesRow added in v0.5.0

type ListIdentitySourceSummariesRow struct {
	SourceKind       string `json:"source_kind"`
	SourceName       string `json:"source_name"`
	AccountCount     int64  `json:"account_count"`
	HasAuthoritative bool   `json:"has_authoritative"`
}

type ListLatestSuccessfulSyncRunsBySourceRow added in v0.4.11

type ListLatestSuccessfulSyncRunsBySourceRow struct {
	SourceKind    string             `json:"source_kind"`
	SourceName    string             `json:"source_name"`
	LastSuccessAt pgtype.Timestamptz `json:"last_success_at"`
}

type ListMappedOktaDiscoveryAppsBySourceRow added in v0.4.0

type ListMappedOktaDiscoveryAppsBySourceRow struct {
	SaasAppID       int64  `json:"saas_app_id"`
	IntegrationKind string `json:"integration_kind"`
}

type ListNonHumanPrincipalAssetsByRefRow added in v0.4.11

type ListNonHumanPrincipalAssetsByRefRow struct {
	ID                          int64              `json:"id"`
	SourceKind                  string             `json:"source_kind"`
	SourceName                  string             `json:"source_name"`
	AssetKind                   string             `json:"asset_kind"`
	ExternalID                  string             `json:"external_id"`
	ParentExternalID            string             `json:"parent_external_id"`
	DisplayName                 string             `json:"display_name"`
	Status                      string             `json:"status"`
	GovernanceState             string             `json:"governance_state"`
	GovernanceOwnerIdentityID   int64              `json:"governance_owner_identity_id"`
	GovernanceOwnerDisplayName  string             `json:"governance_owner_display_name"`
	GovernanceOwnerPrimaryEmail string             `json:"governance_owner_primary_email"`
	GrantCount                  int64              `json:"grant_count"`
	EvidenceLastSeenAt          pgtype.Timestamptz `json:"evidence_last_seen_at"`
	EvidenceFreshness           string             `json:"evidence_freshness"`
	EvidenceConfidence          string             `json:"evidence_confidence"`
	EvidenceConfidenceReason    string             `json:"evidence_confidence_reason"`
}

type ListNonHumanPrincipalCredentialsByRefRow added in v0.4.11

type ListNonHumanPrincipalCredentialsByRefRow struct {
	ID                    int64              `json:"id"`
	SourceKind            string             `json:"source_kind"`
	SourceName            string             `json:"source_name"`
	CredentialKind        string             `json:"credential_kind"`
	ExternalID            string             `json:"external_id"`
	DisplayName           string             `json:"display_name"`
	Status                string             `json:"status"`
	RiskLevel             string             `json:"risk_level"`
	ExpiresAtSource       pgtype.Timestamptz `json:"expires_at_source"`
	LastUsedAtSource      pgtype.Timestamptz `json:"last_used_at_source"`
	CreatedByDisplayName  string             `json:"created_by_display_name"`
	CreatedByExternalID   string             `json:"created_by_external_id"`
	ApprovedByDisplayName string             `json:"approved_by_display_name"`
	ApprovedByExternalID  string             `json:"approved_by_external_id"`
	AppAssetID            int64              `json:"app_asset_id"`
	AppAssetDisplayName   string             `json:"app_asset_display_name"`
}

type ListNonHumanPrincipalsPageByFiltersParams added in v0.4.11

type ListNonHumanPrincipalsPageByFiltersParams struct {
	SortBy                string   `json:"sort_by"`
	SortDir               string   `json:"sort_dir"`
	PageOffset            int32    `json:"page_offset"`
	PageLimit             int32    `json:"page_limit"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
	Query                 string   `json:"query"`
	SourceKind            string   `json:"source_kind"`
	SourceName            string   `json:"source_name"`
	PrincipalType         string   `json:"principal_type"`
	OwnerPresence         string   `json:"owner_presence"`
	GovernanceState       string   `json:"governance_state"`
	RiskLevel             string   `json:"risk_level"`
	ActivityState         string   `json:"activity_state"`
	FreshnessState        string   `json:"freshness_state"`
}

type ListNonHumanPrincipalsPageByFiltersRow added in v0.4.11

type ListNonHumanPrincipalsPageByFiltersRow struct {
	PrincipalRef                 string             `json:"principal_ref"`
	IdentityID                   int64              `json:"identity_id"`
	AppAssetID                   int64              `json:"app_asset_id"`
	PrincipalType                string             `json:"principal_type"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	DisplayName                  string             `json:"display_name"`
	SecondaryName                string             `json:"secondary_name"`
	LinkedAssetsCount            int64              `json:"linked_assets_count"`
	LinkedCredentialsCount       int64              `json:"linked_credentials_count"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	ActivityState                string             `json:"activity_state"`
	FreshnessState               string             `json:"freshness_state"`
	GovernanceState              string             `json:"governance_state"`
	AccountableOwnerIdentityID   int64              `json:"accountable_owner_identity_id"`
	AccountableOwnerDisplayName  string             `json:"accountable_owner_display_name"`
	AccountableOwnerPrimaryEmail string             `json:"accountable_owner_primary_email"`
	OwnerPresence                string             `json:"owner_presence"`
	HasCriticalCredential        bool               `json:"has_critical_credential"`
	HasHighRiskCredential        bool               `json:"has_high_risk_credential"`
	HasExpiredCredential         bool               `json:"has_expired_credential"`
	HasExpiringCredential        bool               `json:"has_expiring_credential"`
	HasUnusedCredential          bool               `json:"has_unused_credential"`
	HasStaleEvidence             bool               `json:"has_stale_evidence"`
	RiskReasonCount              int32              `json:"risk_reason_count"`
	RiskLevel                    string             `json:"risk_level"`
}

type ListNormalizedEntitlementAssignmentsV1Row added in v0.3.0

type ListNormalizedEntitlementAssignmentsV1Row struct {
	EntitlementID         int64  `json:"entitlement_id"`
	IdentityID            int64  `json:"identity_id"`
	IdentityEmail         string `json:"identity_email"`
	IdentityDisplayName   string `json:"identity_display_name"`
	IdentityStatus        string `json:"identity_status"`
	AccountSourceKind     string `json:"account_source_kind"`
	AccountSourceName     string `json:"account_source_name"`
	AccountExternalID     string `json:"account_external_id"`
	EntitlementKind       string `json:"entitlement_kind"`
	EntitlementResource   string `json:"entitlement_resource"`
	EntitlementPermission string `json:"entitlement_permission"`
}

type ListNormalizedEntitlementAssignmentsV2Row added in v0.3.0

type ListNormalizedEntitlementAssignmentsV2Row struct {
	EntitlementID         int64  `json:"entitlement_id"`
	IdentityID            int64  `json:"identity_id"`
	IdentityKind          string `json:"identity_kind"`
	IdentityEmail         string `json:"identity_email"`
	IdentityDisplayName   string `json:"identity_display_name"`
	IdentityManaged       bool   `json:"identity_managed"`
	AccountSourceKind     string `json:"account_source_kind"`
	AccountSourceName     string `json:"account_source_name"`
	AccountExternalID     string `json:"account_external_id"`
	EntitlementKind       string `json:"entitlement_kind"`
	EntitlementResource   string `json:"entitlement_resource"`
	EntitlementPermission string `json:"entitlement_permission"`
}

type ListNormalizedIdentitiesV1Row added in v0.3.0

type ListNormalizedIdentitiesV1Row struct {
	IdentityID          int64  `json:"identity_id"`
	IdentityExternalID  string `json:"identity_external_id"`
	IdentityEmail       string `json:"identity_email"`
	IdentityDisplayName string `json:"identity_display_name"`
	IdentityStatus      string `json:"identity_status"`
}

type ListNormalizedIdentitiesV2Row added in v0.3.0

type ListNormalizedIdentitiesV2Row struct {
	IdentityID              int64  `json:"identity_id"`
	IdentityKind            string `json:"identity_kind"`
	IdentityEmail           string `json:"identity_email"`
	IdentityDisplayName     string `json:"identity_display_name"`
	IdentityManaged         bool   `json:"identity_managed"`
	AuthoritativeSourceKind string `json:"authoritative_source_kind"`
	AuthoritativeSourceName string `json:"authoritative_source_name"`
	AuthoritativeExternalID string `json:"authoritative_external_id"`
}

type ListOktaAccountsForCommandRow added in v0.4.9

type ListOktaAccountsForCommandRow struct {
	ID          int64  `json:"id"`
	Email       string `json:"email"`
	DisplayName string `json:"display_name"`
	Status      string `json:"status"`
}

type ListOktaAccountsPageByQueryAndStateParams added in v0.4.9

type ListOktaAccountsPageByQueryAndStateParams struct {
	Query      string `json:"query"`
	State      string `json:"state"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListOktaAppAssignedAccountsPageByQueryParams added in v0.4.9

type ListOktaAppAssignedAccountsPageByQueryParams struct {
	OktaAppID  int64  `json:"okta_app_id"`
	State      string `json:"state"`
	Query      string `json:"query"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListOktaAppAssignedAccountsPageByQueryRow added in v0.4.9

type ListOktaAppAssignedAccountsPageByQueryRow struct {
	OktaAccountID          int64  `json:"okta_account_id"`
	OktaAccountExternalID  string `json:"okta_account_external_id"`
	OktaAccountEmail       string `json:"okta_account_email"`
	OktaAccountDisplayName string `json:"okta_account_display_name"`
	OktaAccountStatus      string `json:"okta_account_status"`
	Scope                  string `json:"scope"`
	ProfileJson            []byte `json:"profile_json"`
}

type ListOktaAppAssignmentsForOktaAccountRow added in v0.4.9

type ListOktaAppAssignmentsForOktaAccountRow struct {
	OktaAccountID     int64  `json:"okta_account_id"`
	OktaAppID         int64  `json:"okta_app_id"`
	Scope             string `json:"scope"`
	ProfileJson       []byte `json:"profile_json"`
	AssignmentRawJson []byte `json:"assignment_raw_json"`
	OktaAppExternalID string `json:"okta_app_external_id"`
	AppLabel          string `json:"app_label"`
	AppName           string `json:"app_name"`
	AppStatus         string `json:"app_status"`
	AppSignOnMode     string `json:"app_sign_on_mode"`
	IntegrationKind   string `json:"integration_kind"`
}

type ListOktaAppGrantingGroupsForOktaAccountByOktaAppExternalIDParams added in v0.4.9

type ListOktaAppGrantingGroupsForOktaAccountByOktaAppExternalIDParams struct {
	OktaAccountID     int64  `json:"okta_account_id"`
	OktaAppExternalID string `json:"okta_app_external_id"`
}

type ListOktaAppGrantingGroupsForOktaAccountByOktaAppExternalIDRow added in v0.4.9

type ListOktaAppGrantingGroupsForOktaAccountByOktaAppExternalIDRow struct {
	OktaGroupName       string `json:"okta_group_name"`
	OktaGroupExternalID string `json:"okta_group_external_id"`
}

type ListOktaAppGrantingGroupsForOktaAccountsParams added in v0.4.9

type ListOktaAppGrantingGroupsForOktaAccountsParams struct {
	OktaAppID      int64   `json:"okta_app_id"`
	OktaAccountIds []int64 `json:"okta_account_ids"`
}

type ListOktaAppGrantingGroupsForOktaAccountsRow added in v0.4.9

type ListOktaAppGrantingGroupsForOktaAccountsRow struct {
	OktaAccountID       int64  `json:"okta_account_id"`
	OktaGroupName       string `json:"okta_group_name"`
	OktaGroupExternalID string `json:"okta_group_external_id"`
}

type ListOktaAppGroupAssignmentsByAppIDsRow

type ListOktaAppGroupAssignmentsByAppIDsRow struct {
	OktaAppID           int64       `json:"okta_app_id"`
	OktaGroupID         int64       `json:"okta_group_id"`
	OktaGroupName       pgtype.Text `json:"okta_group_name"`
	OktaGroupExternalID pgtype.Text `json:"okta_group_external_id"`
}

type ListOktaAppsForCommandRow

type ListOktaAppsForCommandRow struct {
	ExternalID      string `json:"external_id"`
	Label           string `json:"label"`
	Name            string `json:"name"`
	Status          string `json:"status"`
	SignOnMode      string `json:"sign_on_mode"`
	IntegrationKind string `json:"integration_kind"`
}

type ListOktaAppsPageByQueryParams

type ListOktaAppsPageByQueryParams struct {
	Query      string `json:"query"`
	PageOffset int32  `json:"page_offset"`
	PageLimit  int32  `json:"page_limit"`
}

type ListOktaAppsPageByQueryRow

type ListOktaAppsPageByQueryRow struct {
	ExternalID      string `json:"external_id"`
	Label           string `json:"label"`
	Name            string `json:"name"`
	Status          string `json:"status"`
	SignOnMode      string `json:"sign_on_mode"`
	IntegrationKind string `json:"integration_kind"`
}

type ListOktaAppsPageFilteredParams added in v0.4.11

type ListOktaAppsPageFilteredParams struct {
	Query             string `json:"query"`
	StatusFilter      string `json:"status_filter"`
	IntegrationFilter string `json:"integration_filter"`
	PageOffset        int32  `json:"page_offset"`
	PageLimit         int32  `json:"page_limit"`
}

type ListOktaAppsPageFilteredRow added in v0.4.11

type ListOktaAppsPageFilteredRow struct {
	ExternalID      string `json:"external_id"`
	Label           string `json:"label"`
	Name            string `json:"name"`
	Status          string `json:"status"`
	SignOnMode      string `json:"sign_on_mode"`
	IntegrationKind string `json:"integration_kind"`
}

type ListOktaAppsPageParams

type ListOktaAppsPageParams struct {
	PageOffset int32 `json:"page_offset"`
	PageLimit  int32 `json:"page_limit"`
}

type ListOktaAppsPageRow

type ListOktaAppsPageRow struct {
	ExternalID      string `json:"external_id"`
	Label           string `json:"label"`
	Name            string `json:"name"`
	Status          string `json:"status"`
	SignOnMode      string `json:"sign_on_mode"`
	IntegrationKind string `json:"integration_kind"`
}

type ListRecentFinishedSyncRunsBySourceParams added in v0.2.0

type ListRecentFinishedSyncRunsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Limit      int32  `json:"limit"`
}

type ListRecentFinishedSyncRunsBySourceRow added in v0.2.0

type ListRecentFinishedSyncRunsBySourceRow struct {
	ID         int64              `json:"id"`
	Status     string             `json:"status"`
	FinishedAt pgtype.Timestamptz `json:"finished_at"`
	ErrorKind  string             `json:"error_kind"`
}

type ListRecentFinishedSyncRunsForSourcesParams added in v0.2.0

type ListRecentFinishedSyncRunsForSourcesParams struct {
	LimitRows   int32    `json:"limit_rows"`
	SourceKinds []string `json:"source_kinds"`
	SourceNames []string `json:"source_names"`
}

type ListRecentFinishedSyncRunsForSourcesRow added in v0.2.0

type ListRecentFinishedSyncRunsForSourcesRow struct {
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	ID         int64              `json:"id"`
	Status     string             `json:"status"`
	FinishedAt pgtype.Timestamptz `json:"finished_at"`
	ErrorKind  string             `json:"error_kind"`
}

type ListRecentNonSuccessSyncRunsBySourceParams added in v0.4.2

type ListRecentNonSuccessSyncRunsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Limit      int32  `json:"limit"`
}

type ListRecentNonSuccessSyncRunsBySourceRow added in v0.4.2

type ListRecentNonSuccessSyncRunsBySourceRow struct {
	ID         int64              `json:"id"`
	Status     string             `json:"status"`
	FinishedAt pgtype.Timestamptz `json:"finished_at"`
	ErrorKind  string             `json:"error_kind"`
	Message    string             `json:"message"`
}

type ListSaaSAppEventsBySaaSAppIDParams added in v0.4.0

type ListSaaSAppEventsBySaaSAppIDParams struct {
	SaasAppID int64 `json:"saas_app_id"`
	LimitRows int32 `json:"limit_rows"`
}

type ListSaaSAppHotspotsParams added in v0.4.0

type ListSaaSAppHotspotsParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	LimitRows  int32  `json:"limit_rows"`
}

type ListSaaSAppHotspotsRow added in v0.4.0

type ListSaaSAppHotspotsRow struct {
	ID                           int64              `json:"id"`
	CanonicalKey                 string             `json:"canonical_key"`
	DisplayName                  string             `json:"display_name"`
	PrimaryDomain                string             `json:"primary_domain"`
	VendorName                   string             `json:"vendor_name"`
	ManagedState                 string             `json:"managed_state"`
	ManagedReason                string             `json:"managed_reason"`
	BoundConnectorKind           string             `json:"bound_connector_kind"`
	BoundConnectorSourceName     string             `json:"bound_connector_source_name"`
	RiskScore                    int32              `json:"risk_score"`
	RiskLevel                    string             `json:"risk_level"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	FirstSeenAt                  pgtype.Timestamptz `json:"first_seen_at"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	OwnerDisplayName             string             `json:"owner_display_name"`
	OwnerPrimaryEmail            string             `json:"owner_primary_email"`
	ReviewOwnerDisplayName       string             `json:"review_owner_display_name"`
	ReviewOwnerPrimaryEmail      string             `json:"review_owner_primary_email"`
	ReviewDisposition            string             `json:"review_disposition"`
	FollowUpDueDate              pgtype.Date        `json:"follow_up_due_date"`
	IsFollowUpOverdue            bool               `json:"is_follow_up_overdue"`
	ReplacementSaasAppID         int64              `json:"replacement_saas_app_id"`
	ReplacementDisplayName       string             `json:"replacement_display_name"`
	TicketRef                    string             `json:"ticket_ref"`
	Actors30d                    int64              `json:"actors_30d"`
}

type ListSaaSAppIDsFromSourcesSeenInRunBySourceParams added in v0.4.0

type ListSaaSAppIDsFromSourcesSeenInRunBySourceParams struct {
	SourceKind  string `json:"source_kind"`
	SourceName  string `json:"source_name"`
	SeenInRunID int64  `json:"seen_in_run_id"`
}

type ListSaaSAppReviewDecisionsBySaaSAppIDParams added in v0.4.11

type ListSaaSAppReviewDecisionsBySaaSAppIDParams struct {
	SaasAppID int64 `json:"saas_app_id"`
	LimitRows int32 `json:"limit_rows"`
}

type ListSaaSAppReviewDecisionsBySaaSAppIDRow added in v0.4.11

type ListSaaSAppReviewDecisionsBySaaSAppIDRow struct {
	ID                       int64              `json:"id"`
	ChangedAt                pgtype.Timestamptz `json:"changed_at"`
	ChangedByAuthUserEmail   string             `json:"changed_by_auth_user_email"`
	OwnerDisplayName         string             `json:"owner_display_name"`
	OwnerPrimaryEmail        string             `json:"owner_primary_email"`
	ReviewOwnerDisplayName   string             `json:"review_owner_display_name"`
	ReviewOwnerPrimaryEmail  string             `json:"review_owner_primary_email"`
	ReviewDisposition        string             `json:"review_disposition"`
	TicketRef                string             `json:"ticket_ref"`
	Notes                    string             `json:"notes"`
	FollowUpDueDate          pgtype.Date        `json:"follow_up_due_date"`
	ReplacementSaasAppID     int64              `json:"replacement_saas_app_id"`
	ReplacementDisplayName   string             `json:"replacement_display_name"`
	ReplacementPrimaryDomain string             `json:"replacement_primary_domain"`
}

type ListSaaSAppsPageByFiltersParams added in v0.4.0

type ListSaaSAppsPageByFiltersParams struct {
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
	Query        string `json:"query"`
	ManagedState string `json:"managed_state"`
	RiskLevel    string `json:"risk_level"`
	PageOffset   int32  `json:"page_offset"`
	PageLimit    int32  `json:"page_limit"`
}

type ListSaaSAppsPageByFiltersRow added in v0.4.0

type ListSaaSAppsPageByFiltersRow struct {
	ID                           int64              `json:"id"`
	CanonicalKey                 string             `json:"canonical_key"`
	DisplayName                  string             `json:"display_name"`
	PrimaryDomain                string             `json:"primary_domain"`
	VendorName                   string             `json:"vendor_name"`
	ManagedState                 string             `json:"managed_state"`
	ManagedReason                string             `json:"managed_reason"`
	BoundConnectorKind           string             `json:"bound_connector_kind"`
	BoundConnectorSourceName     string             `json:"bound_connector_source_name"`
	RiskScore                    int32              `json:"risk_score"`
	RiskLevel                    string             `json:"risk_level"`
	SuggestedBusinessCriticality string             `json:"suggested_business_criticality"`
	SuggestedDataClassification  string             `json:"suggested_data_classification"`
	FirstSeenAt                  pgtype.Timestamptz `json:"first_seen_at"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	OwnerDisplayName             string             `json:"owner_display_name"`
	OwnerPrimaryEmail            string             `json:"owner_primary_email"`
	ReviewOwnerDisplayName       string             `json:"review_owner_display_name"`
	ReviewOwnerPrimaryEmail      string             `json:"review_owner_primary_email"`
	ReviewDisposition            string             `json:"review_disposition"`
	FollowUpDueDate              pgtype.Date        `json:"follow_up_due_date"`
	IsFollowUpOverdue            bool               `json:"is_follow_up_overdue"`
	ReplacementSaasAppID         int64              `json:"replacement_saas_app_id"`
	ReplacementDisplayName       string             `json:"replacement_display_name"`
	TicketRef                    string             `json:"ticket_ref"`
	Actors30d                    int64              `json:"actors_30d"`
}

type ListSourceAccountsPageBySourceAndQueryAndStateParams added in v0.4.9

type ListSourceAccountsPageBySourceAndQueryAndStateParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
	State          string `json:"state"`
	PageOffset     int32  `json:"page_offset"`
	PageLimit      int32  `json:"page_limit"`
}

type ListSourceAccountsPageBySourceAndQueryParams added in v0.4.9

type ListSourceAccountsPageBySourceAndQueryParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
	PageOffset     int32  `json:"page_offset"`
	PageLimit      int32  `json:"page_limit"`
}

type ListSourceAccountsPageBySourceAndQueryRow added in v0.4.9

type ListSourceAccountsPageBySourceAndQueryRow struct {
	ID                int64              `json:"id"`
	SourceKind        string             `json:"source_kind"`
	SourceName        string             `json:"source_name"`
	ExternalID        string             `json:"external_id"`
	Email             string             `json:"email"`
	DisplayName       string             `json:"display_name"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	LastLoginAt       pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp       string             `json:"last_login_ip"`
	LastLoginRegion   string             `json:"last_login_region"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	Status            string             `json:"status"`
	AccountKind       string             `json:"account_kind"`
	EntityCategory    string             `json:"entity_category"`
	IdentityID        int64              `json:"identity_id"`
}

type ListSourceAccountsPageBySourceAndQueryWithEntitlementCountsParams added in v0.4.9

type ListSourceAccountsPageBySourceAndQueryWithEntitlementCountsParams struct {
	SourceKind            string `json:"source_kind"`
	SourceName            string `json:"source_name"`
	EntityCategory        string `json:"entity_category"`
	Query                 string `json:"query"`
	PageOffset            int32  `json:"page_offset"`
	PageLimit             int32  `json:"page_limit"`
	DistinctResourceKind1 string `json:"distinct_resource_kind_1"`
	DistinctResourceKind2 string `json:"distinct_resource_kind_2"`
	EntitlementKind1      string `json:"entitlement_kind_1"`
}

type ListSourceAccountsPageBySourceAndQueryWithEntitlementCountsRow added in v0.4.9

type ListSourceAccountsPageBySourceAndQueryWithEntitlementCountsRow struct {
	ID                     int64              `json:"id"`
	SourceKind             string             `json:"source_kind"`
	SourceName             string             `json:"source_name"`
	ExternalID             string             `json:"external_id"`
	Email                  string             `json:"email"`
	DisplayName            string             `json:"display_name"`
	RawJson                []byte             `json:"raw_json"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
	LastLoginAt            pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp            string             `json:"last_login_ip"`
	LastLoginRegion        string             `json:"last_login_region"`
	SeenInRunID            pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt                 pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID      pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt         pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt              pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID           pgtype.Int8        `json:"expired_run_id"`
	Status                 string             `json:"status"`
	AccountKind            string             `json:"account_kind"`
	EntityCategory         string             `json:"entity_category"`
	IdentityID             int64              `json:"identity_id"`
	DistinctResourceCount1 int64              `json:"distinct_resource_count_1"`
	DistinctResourceCount2 int64              `json:"distinct_resource_count_2"`
	EntitlementCount1      int64              `json:"entitlement_count_1"`
}

type ListTopActorsForSaaSAppByIDParams added in v0.4.0

type ListTopActorsForSaaSAppByIDParams struct {
	LimitRows int32 `json:"limit_rows"`
	SaasAppID int64 `json:"saas_app_id"`
}

type ListTopActorsForSaaSAppByIDRow added in v0.4.0

type ListTopActorsForSaaSAppByIDRow struct {
	ActorLabel      string             `json:"actor_label"`
	ActorEmail      string             `json:"actor_email"`
	ActorExternalID string             `json:"actor_external_id"`
	EventCount      int64              `json:"event_count"`
	LastObservedAt  pgtype.Timestamptz `json:"last_observed_at"`
}

type ListUnlinkedAccountsPageParams added in v0.3.0

type ListUnlinkedAccountsPageParams struct {
	PageOffset int32 `json:"page_offset"`
	PageLimit  int32 `json:"page_limit"`
}

type ListUnlinkedSourceAccountsPageBySourceAndQueryParams added in v0.4.9

type ListUnlinkedSourceAccountsPageBySourceAndQueryParams struct {
	SourceKind     string `json:"source_kind"`
	SourceName     string `json:"source_name"`
	EntityCategory string `json:"entity_category"`
	Query          string `json:"query"`
	PageOffset     int32  `json:"page_offset"`
	PageLimit      int32  `json:"page_limit"`
}

type MarkSyncJobRunningParams added in v0.4.8

type MarkSyncJobRunningParams struct {
	ID        pgtype.UUID `json:"id"`
	ClaimedBy pgtype.Text `json:"claimed_by"`
}

type MarkSyncRunSuccessParams

type MarkSyncRunSuccessParams struct {
	ID    int64  `json:"id"`
	Stats []byte `json:"stats"`
}

type NonHumanAccessEvent added in v0.4.11

type NonHumanAccessEvent struct {
	ID              int64              `json:"id"`
	AuthUserID      pgtype.Int8        `json:"auth_user_id"`
	AuthUserRole    string             `json:"auth_user_role"`
	EventKind       string             `json:"event_kind"`
	PrincipalRef    string             `json:"principal_ref"`
	TargetKind      string             `json:"target_kind"`
	TargetRef       string             `json:"target_ref"`
	FilterSignature string             `json:"filter_signature"`
	OccurredAt      pgtype.Timestamptz `json:"occurred_at"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
}

type NonHumanAppAssetCredentialRefsV added in v0.4.11

type NonHumanAppAssetCredentialRefsV struct {
	AppAssetID         int64  `json:"app_asset_id"`
	SourceKind         string `json:"source_kind"`
	SourceName         string `json:"source_name"`
	AssetRefKind       string `json:"asset_ref_kind"`
	AssetRefExternalID string `json:"asset_ref_external_id"`
}

type NonHumanPrincipal added in v0.4.11

type NonHumanPrincipal struct {
	PrincipalRef                 string             `json:"principal_ref"`
	IdentityID                   int64              `json:"identity_id"`
	AppAssetID                   int64              `json:"app_asset_id"`
	PrincipalType                string             `json:"principal_type"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	DisplayName                  string             `json:"display_name"`
	SecondaryName                string             `json:"secondary_name"`
	LinkedAssetsCount            int64              `json:"linked_assets_count"`
	LinkedCredentialsCount       int64              `json:"linked_credentials_count"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	ActivityState                string             `json:"activity_state"`
	FreshnessState               string             `json:"freshness_state"`
	GovernanceState              string             `json:"governance_state"`
	AccountableOwnerIdentityID   int64              `json:"accountable_owner_identity_id"`
	AccountableOwnerDisplayName  string             `json:"accountable_owner_display_name"`
	AccountableOwnerPrimaryEmail string             `json:"accountable_owner_primary_email"`
	OwnerPresence                string             `json:"owner_presence"`
	HasCriticalCredential        bool               `json:"has_critical_credential"`
	HasHighRiskCredential        bool               `json:"has_high_risk_credential"`
	HasExpiredCredential         bool               `json:"has_expired_credential"`
	HasExpiringCredential        bool               `json:"has_expiring_credential"`
	HasUnusedCredential          bool               `json:"has_unused_credential"`
	HasStaleEvidence             bool               `json:"has_stale_evidence"`
	RiskReasonCount              int32              `json:"risk_reason_count"`
	RiskLevel                    string             `json:"risk_level"`
	ProjectionRefreshedAt        pgtype.Timestamptz `json:"projection_refreshed_at"`
}

type NonHumanPrincipalAssetLinksV added in v0.4.11

type NonHumanPrincipalAssetLinksV struct {
	PrincipalRef string `json:"principal_ref"`
	IdentityID   int64  `json:"identity_id"`
	AppAssetID   int64  `json:"app_asset_id"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
}

type NonHumanPrincipalProjectionV added in v0.4.11

type NonHumanPrincipalProjectionV struct {
	PrincipalRef                 string             `json:"principal_ref"`
	IdentityID                   int64              `json:"identity_id"`
	AppAssetID                   int64              `json:"app_asset_id"`
	PrincipalType                string             `json:"principal_type"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	DisplayName                  string             `json:"display_name"`
	SecondaryName                string             `json:"secondary_name"`
	LinkedAssetsCount            int64              `json:"linked_assets_count"`
	LinkedCredentialsCount       int64              `json:"linked_credentials_count"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	ActivityState                string             `json:"activity_state"`
	FreshnessState               string             `json:"freshness_state"`
	GovernanceState              string             `json:"governance_state"`
	AccountableOwnerIdentityID   int64              `json:"accountable_owner_identity_id"`
	AccountableOwnerDisplayName  string             `json:"accountable_owner_display_name"`
	AccountableOwnerPrimaryEmail string             `json:"accountable_owner_primary_email"`
	OwnerPresence                string             `json:"owner_presence"`
	HasCriticalCredential        bool               `json:"has_critical_credential"`
	HasHighRiskCredential        bool               `json:"has_high_risk_credential"`
	HasExpiredCredential         bool               `json:"has_expired_credential"`
	HasExpiringCredential        bool               `json:"has_expiring_credential"`
	HasUnusedCredential          bool               `json:"has_unused_credential"`
	HasStaleEvidence             bool               `json:"has_stale_evidence"`
	RiskReasonCount              int32              `json:"risk_reason_count"`
	RiskLevel                    string             `json:"risk_level"`
}

type NonHumanPrincipalReadModelsV added in v0.4.11

type NonHumanPrincipalReadModelsV struct {
	PrincipalRef                 string             `json:"principal_ref"`
	IdentityID                   int64              `json:"identity_id"`
	AppAssetID                   int64              `json:"app_asset_id"`
	PrincipalType                string             `json:"principal_type"`
	SourceKind                   string             `json:"source_kind"`
	SourceName                   string             `json:"source_name"`
	DisplayName                  string             `json:"display_name"`
	SecondaryName                string             `json:"secondary_name"`
	LinkedAssetsCount            int64              `json:"linked_assets_count"`
	LinkedCredentialsCount       int64              `json:"linked_credentials_count"`
	LastSeenAt                   pgtype.Timestamptz `json:"last_seen_at"`
	ActivityState                string             `json:"activity_state"`
	FreshnessState               string             `json:"freshness_state"`
	GovernanceState              string             `json:"governance_state"`
	AccountableOwnerIdentityID   int64              `json:"accountable_owner_identity_id"`
	AccountableOwnerDisplayName  string             `json:"accountable_owner_display_name"`
	AccountableOwnerPrimaryEmail string             `json:"accountable_owner_primary_email"`
	OwnerPresence                string             `json:"owner_presence"`
	HasCriticalCredential        bool               `json:"has_critical_credential"`
	HasHighRiskCredential        bool               `json:"has_high_risk_credential"`
	HasExpiredCredential         bool               `json:"has_expired_credential"`
	HasExpiringCredential        bool               `json:"has_expiring_credential"`
	HasUnusedCredential          bool               `json:"has_unused_credential"`
	HasStaleEvidence             bool               `json:"has_stale_evidence"`
	RiskReasonCount              int32              `json:"risk_reason_count"`
	RiskLevel                    string             `json:"risk_level"`
}

type OktaApp

type OktaApp struct {
	ID                int64              `json:"id"`
	ExternalID        string             `json:"external_id"`
	Label             string             `json:"label"`
	Name              string             `json:"name"`
	Status            string             `json:"status"`
	SignOnMode        string             `json:"sign_on_mode"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
}

type OktaAppGroupAssignment

type OktaAppGroupAssignment struct {
	ID                int64              `json:"id"`
	OktaAppID         int64              `json:"okta_app_id"`
	OktaGroupID       int64              `json:"okta_group_id"`
	Priority          int32              `json:"priority"`
	ProfileJson       []byte             `json:"profile_json"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
}

type OktaGroup

type OktaGroup struct {
	ID                int64              `json:"id"`
	ExternalID        string             `json:"external_id"`
	Name              string             `json:"name"`
	Type              string             `json:"type"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
}

type OktaUserAppAssignment

type OktaUserAppAssignment struct {
	ID                int64              `json:"id"`
	OktaAppID         int64              `json:"okta_app_id"`
	Scope             string             `json:"scope"`
	ProfileJson       []byte             `json:"profile_json"`
	RawJson           []byte             `json:"raw_json"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	OktaUserAccountID int64              `json:"okta_user_account_id"`
}

type OktaUserGroup

type OktaUserGroup struct {
	ID                int64              `json:"id"`
	OktaGroupID       int64              `json:"okta_group_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	OktaUserAccountID int64              `json:"okta_user_account_id"`
}

type PromoteAppAssetOwnersSeenInRunBySourceParams added in v0.3.0

type PromoteAppAssetOwnersSeenInRunBySourceParams struct {
	LastObservedRunID int64  `json:"last_observed_run_id"`
	SourceKind        string `json:"source_kind"`
	SourceName        string `json:"source_name"`
}

type PromoteAppAssetsSeenInRunBySourceParams added in v0.3.0

type PromoteAppAssetsSeenInRunBySourceParams struct {
	LastObservedRunID int64  `json:"last_observed_run_id"`
	SourceKind        string `json:"source_kind"`
	SourceName        string `json:"source_name"`
}

type PromoteCredentialArtifactsSeenInRunBySourceParams added in v0.3.0

type PromoteCredentialArtifactsSeenInRunBySourceParams struct {
	LastObservedRunID int64  `json:"last_observed_run_id"`
	SourceKind        string `json:"source_kind"`
	SourceName        string `json:"source_name"`
}

type PromoteEntitlementsSeenInRunBySourceParams

type PromoteEntitlementsSeenInRunBySourceParams struct {
	LastObservedRunID pgtype.Int8 `json:"last_observed_run_id"`
	SourceKind        string      `json:"source_kind"`
	SourceName        string      `json:"source_name"`
}

type PromoteSaaSAppEventsSeenInRunBySourceParams added in v0.4.0

type PromoteSaaSAppEventsSeenInRunBySourceParams struct {
	LastObservedRunID int64  `json:"last_observed_run_id"`
	SourceKind        string `json:"source_kind"`
	SourceName        string `json:"source_name"`
}

type PromoteSaaSAppSourcesSeenInRunBySourceParams added in v0.4.0

type PromoteSaaSAppSourcesSeenInRunBySourceParams struct {
	LastObservedRunID int64  `json:"last_observed_run_id"`
	SourceKind        string `json:"source_kind"`
	SourceName        string `json:"source_name"`
}

type PromoteSourceAccountsSeenInRunParams added in v0.4.9

type PromoteSourceAccountsSeenInRunParams struct {
	LastObservedRunID pgtype.Int8 `json:"last_observed_run_id"`
	SourceKind        string      `json:"source_kind"`
	SourceName        string      `json:"source_name"`
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AcquireAdvisoryLock

func (q *Queries) AcquireAdvisoryLock(ctx context.Context, dollar_1 int64) error

func (*Queries) BulkAutoLinkByEmail

func (q *Queries) BulkAutoLinkByEmail(ctx context.Context, arg BulkAutoLinkByEmailParams) (int64, error)

func (*Queries) ClaimNextSyncJobByLane added in v0.4.8

func (q *Queries) ClaimNextSyncJobByLane(ctx context.Context, arg ClaimNextSyncJobByLaneParams) (SyncJob, error)

func (*Queries) CompleteManualSyncJobFailure added in v0.4.8

func (q *Queries) CompleteManualSyncJobFailure(ctx context.Context, arg CompleteManualSyncJobFailureParams) (int64, error)

func (*Queries) CompleteManualSyncJobSuccess added in v0.4.8

func (q *Queries) CompleteManualSyncJobSuccess(ctx context.Context, arg CompleteManualSyncJobSuccessParams) (int64, error)

func (*Queries) CompleteScheduledSyncJobFailure added in v0.4.8

func (q *Queries) CompleteScheduledSyncJobFailure(ctx context.Context, arg CompleteScheduledSyncJobFailureParams) (int64, error)

func (*Queries) CompleteScheduledSyncJobSuccess added in v0.4.8

func (q *Queries) CompleteScheduledSyncJobSuccess(ctx context.Context, arg CompleteScheduledSyncJobSuccessParams) (int64, error)

func (*Queries) CountAppAssetGovernanceBySourceAndQueryAndState added in v0.4.10

func (q *Queries) CountAppAssetGovernanceBySourceAndQueryAndState(ctx context.Context, arg CountAppAssetGovernanceBySourceAndQueryAndStateParams) (int64, error)

func (*Queries) CountAppAssetGovernanceGroupedByState added in v0.4.10

func (*Queries) CountAppAssetsBySourceAndQueryAndKind added in v0.3.0

func (q *Queries) CountAppAssetsBySourceAndQueryAndKind(ctx context.Context, arg CountAppAssetsBySourceAndQueryAndKindParams) (int64, error)

func (*Queries) CountAppAssetsBySourcesAndQueryAndKind added in v0.4.9

func (q *Queries) CountAppAssetsBySourcesAndQueryAndKind(ctx context.Context, arg CountAppAssetsBySourcesAndQueryAndKindParams) (int64, error)

func (*Queries) CountAuthAdmins added in v0.2.0

func (q *Queries) CountAuthAdmins(ctx context.Context) (int64, error)

func (*Queries) CountAuthUsers added in v0.2.0

func (q *Queries) CountAuthUsers(ctx context.Context) (int64, error)

func (*Queries) CountConfiguredNonHumanHighRiskCredentialAttribution added in v0.4.11

func (q *Queries) CountConfiguredNonHumanHighRiskCredentialAttribution(ctx context.Context) (CountConfiguredNonHumanHighRiskCredentialAttributionRow, error)

func (*Queries) CountConfiguredNonHumanPrincipalOwnerCoverage added in v0.4.11

func (q *Queries) CountConfiguredNonHumanPrincipalOwnerCoverage(ctx context.Context) (CountConfiguredNonHumanPrincipalOwnerCoverageRow, error)

func (*Queries) CountConnectedOktaApps added in v0.2.1

func (q *Queries) CountConnectedOktaApps(ctx context.Context) (int64, error)

func (*Queries) CountCredentialArtifactsBySourceAndQueryAndFilters added in v0.3.0

func (q *Queries) CountCredentialArtifactsBySourceAndQueryAndFilters(ctx context.Context, arg CountCredentialArtifactsBySourceAndQueryAndFiltersParams) (int64, error)

func (*Queries) CountCredentialArtifactsBySourcesAndQueryAndFilters added in v0.4.9

func (q *Queries) CountCredentialArtifactsBySourcesAndQueryAndFilters(ctx context.Context, arg CountCredentialArtifactsBySourcesAndQueryAndFiltersParams) (int64, error)

func (*Queries) CountGitHubUsersBySourceAndQuery added in v0.4.9

func (q *Queries) CountGitHubUsersBySourceAndQuery(ctx context.Context, arg CountGitHubUsersBySourceAndQueryParams) (int64, error)

func (*Queries) CountGoogleWorkspaceGroupsBySourceAndQuery added in v0.4.7

func (q *Queries) CountGoogleWorkspaceGroupsBySourceAndQuery(ctx context.Context, arg CountGoogleWorkspaceGroupsBySourceAndQueryParams) (int64, error)

func (*Queries) CountIdentitiesInventoryByFilters added in v0.4.7

func (q *Queries) CountIdentitiesInventoryByFilters(ctx context.Context, arg CountIdentitiesInventoryByFiltersParams) (int64, error)

func (*Queries) CountLinkedSourceAccountsBySource added in v0.4.9

func (q *Queries) CountLinkedSourceAccountsBySource(ctx context.Context, arg CountLinkedSourceAccountsBySourceParams) (int64, error)

func (*Queries) CountNonHumanAccessWeeklyAdminReviewSessions added in v0.4.11

func (q *Queries) CountNonHumanAccessWeeklyAdminReviewSessions(ctx context.Context, since pgtype.Timestamptz) (int64, error)

func (*Queries) CountNonHumanPrincipalsByFilters added in v0.4.11

func (q *Queries) CountNonHumanPrincipalsByFilters(ctx context.Context, arg CountNonHumanPrincipalsByFiltersParams) (int64, error)

func (*Queries) CountOktaAccounts added in v0.4.9

func (q *Queries) CountOktaAccounts(ctx context.Context) (int64, error)

func (*Queries) CountOktaAccountsByQueryAndState added in v0.4.9

func (q *Queries) CountOktaAccountsByQueryAndState(ctx context.Context, arg CountOktaAccountsByQueryAndStateParams) (int64, error)

func (*Queries) CountOktaAppAssignedAccountsByQuery added in v0.4.9

func (q *Queries) CountOktaAppAssignedAccountsByQuery(ctx context.Context, arg CountOktaAppAssignedAccountsByQueryParams) (int64, error)

func (*Queries) CountOktaApps

func (q *Queries) CountOktaApps(ctx context.Context) (int64, error)

func (*Queries) CountOktaAppsByQuery

func (q *Queries) CountOktaAppsByQuery(ctx context.Context, query string) (int64, error)

func (*Queries) CountOktaAppsFiltered added in v0.4.11

func (q *Queries) CountOktaAppsFiltered(ctx context.Context, arg CountOktaAppsFilteredParams) (int64, error)

func (*Queries) CountSaaSAppsByFilters added in v0.4.0

func (q *Queries) CountSaaSAppsByFilters(ctx context.Context, arg CountSaaSAppsByFiltersParams) (int64, error)

func (*Queries) CountSaaSAppsGroupedByManagedState added in v0.4.0

func (q *Queries) CountSaaSAppsGroupedByManagedState(ctx context.Context) ([]CountSaaSAppsGroupedByManagedStateRow, error)

func (*Queries) CountSaaSAppsGroupedByRiskLevel added in v0.4.0

func (q *Queries) CountSaaSAppsGroupedByRiskLevel(ctx context.Context) ([]CountSaaSAppsGroupedByRiskLevelRow, error)

func (*Queries) CountSourceAccountsBySource added in v0.4.9

func (q *Queries) CountSourceAccountsBySource(ctx context.Context, arg CountSourceAccountsBySourceParams) (int64, error)

func (*Queries) CountSourceAccountsBySourceAndQuery added in v0.4.9

func (q *Queries) CountSourceAccountsBySourceAndQuery(ctx context.Context, arg CountSourceAccountsBySourceAndQueryParams) (int64, error)

func (*Queries) CountSourceAccountsBySourceAndQueryAndState added in v0.4.9

func (q *Queries) CountSourceAccountsBySourceAndQueryAndState(ctx context.Context, arg CountSourceAccountsBySourceAndQueryAndStateParams) (int64, error)

func (*Queries) CountUnlinkedAccounts added in v0.3.0

func (q *Queries) CountUnlinkedAccounts(ctx context.Context) (int64, error)

func (*Queries) CountUnlinkedSourceAccountsBySource added in v0.4.9

func (q *Queries) CountUnlinkedSourceAccountsBySource(ctx context.Context, arg CountUnlinkedSourceAccountsBySourceParams) (int64, error)

func (*Queries) CountUnlinkedSourceAccountsBySourceAndQuery added in v0.4.9

func (q *Queries) CountUnlinkedSourceAccountsBySourceAndQuery(ctx context.Context, arg CountUnlinkedSourceAccountsBySourceAndQueryParams) (int64, error)

func (*Queries) CreateAuthUser added in v0.2.0

func (q *Queries) CreateAuthUser(ctx context.Context, arg CreateAuthUserParams) (AuthUser, error)

func (*Queries) CreateIdentity added in v0.3.0

func (q *Queries) CreateIdentity(ctx context.Context, arg CreateIdentityParams) (Identity, error)

func (*Queries) CreateSyncJob added in v0.4.8

func (q *Queries) CreateSyncJob(ctx context.Context, arg CreateSyncJobParams) (SyncJob, error)

func (*Queries) CreateSyncRun

func (q *Queries) CreateSyncRun(ctx context.Context, arg CreateSyncRunParams) (int64, error)

func (*Queries) DeactivateRulesNotInKeys

func (q *Queries) DeactivateRulesNotInKeys(ctx context.Context, arg DeactivateRulesNotInKeysParams) error

func (*Queries) DeleteAuthUser added in v0.2.1

func (q *Queries) DeleteAuthUser(ctx context.Context, id int64) error

func (*Queries) DeleteConnectorSecretsByKind added in v0.4.10

func (q *Queries) DeleteConnectorSecretsByKind(ctx context.Context, kind string) (int64, error)

func (*Queries) DeleteConnectorSourceStateAll added in v0.4.11

func (q *Queries) DeleteConnectorSourceStateAll(ctx context.Context) error

func (*Queries) DeleteIntegrationOktaAppMap

func (q *Queries) DeleteIntegrationOktaAppMap(ctx context.Context, integrationKind string) error

func (*Queries) ExpireAppAssetOwnersNotSeenInRunBySource added in v0.3.0

func (q *Queries) ExpireAppAssetOwnersNotSeenInRunBySource(ctx context.Context, arg ExpireAppAssetOwnersNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireAppAssetsNotSeenInRunBySource added in v0.3.0

func (q *Queries) ExpireAppAssetsNotSeenInRunBySource(ctx context.Context, arg ExpireAppAssetsNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireCredentialArtifactsNotSeenInRunBySource added in v0.3.0

func (q *Queries) ExpireCredentialArtifactsNotSeenInRunBySource(ctx context.Context, arg ExpireCredentialArtifactsNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireEntitlementsNotSeenInRunBySource

func (q *Queries) ExpireEntitlementsNotSeenInRunBySource(ctx context.Context, arg ExpireEntitlementsNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireOktaAccountsNotSeenInRun added in v0.4.9

func (q *Queries) ExpireOktaAccountsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireOktaAppAssignmentsNotSeenInRun added in v0.4.9

func (q *Queries) ExpireOktaAppAssignmentsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireOktaAppGroupAssignmentsNotSeenInRun

func (q *Queries) ExpireOktaAppGroupAssignmentsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireOktaAppsNotSeenInRun

func (q *Queries) ExpireOktaAppsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireOktaGroupMembershipsNotSeenInRun added in v0.4.9

func (q *Queries) ExpireOktaGroupMembershipsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireOktaGroupsNotSeenInRun

func (q *Queries) ExpireOktaGroupsNotSeenInRun(ctx context.Context, expiredRunID pgtype.Int8) (int64, error)

func (*Queries) ExpireSaaSAppEventsNotSeenInRunBySource added in v0.4.0

func (q *Queries) ExpireSaaSAppEventsNotSeenInRunBySource(ctx context.Context, arg ExpireSaaSAppEventsNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireSaaSAppSourcesNotSeenInRunBySource added in v0.4.0

func (q *Queries) ExpireSaaSAppSourcesNotSeenInRunBySource(ctx context.Context, arg ExpireSaaSAppSourcesNotSeenInRunBySourceParams) (int64, error)

func (*Queries) ExpireSourceAccountsNotSeenInRun added in v0.4.9

func (q *Queries) ExpireSourceAccountsNotSeenInRun(ctx context.Context, arg ExpireSourceAccountsNotSeenInRunParams) (int64, error)

func (*Queries) FailSyncRun

func (q *Queries) FailSyncRun(ctx context.Context, arg FailSyncRunParams) error

func (*Queries) GetActiveSyncJobByScope added in v0.4.8

func (q *Queries) GetActiveSyncJobByScope(ctx context.Context, arg GetActiveSyncJobByScopeParams) (SyncJob, error)

func (*Queries) GetAppAssetByID added in v0.3.0

func (q *Queries) GetAppAssetByID(ctx context.Context, id int64) (AppAsset, error)

func (*Queries) GetAppAssetBySourceAndKindAndExternalID added in v0.3.0

func (q *Queries) GetAppAssetBySourceAndKindAndExternalID(ctx context.Context, arg GetAppAssetBySourceAndKindAndExternalIDParams) (AppAsset, error)

func (*Queries) GetAppAssetPostureByID added in v0.4.10

func (q *Queries) GetAppAssetPostureByID(ctx context.Context, id int64) (GetAppAssetPostureByIDRow, error)

func (*Queries) GetAuthUser added in v0.2.0

func (q *Queries) GetAuthUser(ctx context.Context, id int64) (AuthUser, error)

func (*Queries) GetAuthUserByEmail added in v0.2.0

func (q *Queries) GetAuthUserByEmail(ctx context.Context, btrim string) (AuthUser, error)

func (*Queries) GetAuthUserForUpdate added in v0.2.1

func (q *Queries) GetAuthUserForUpdate(ctx context.Context, id int64) (AuthUser, error)

func (*Queries) GetConnectorConfig

func (q *Queries) GetConnectorConfig(ctx context.Context, kind string) (ConnectorConfig, error)

func (*Queries) GetCredentialArtifactByID added in v0.3.0

func (*Queries) GetIdentityAccountLinkByAccountID added in v0.3.0

func (q *Queries) GetIdentityAccountLinkByAccountID(ctx context.Context, accountID int64) (IdentityAccount, error)

func (*Queries) GetIdentityBySourceAndExternalID added in v0.3.0

func (q *Queries) GetIdentityBySourceAndExternalID(ctx context.Context, arg GetIdentityBySourceAndExternalIDParams) (Identity, error)

func (*Queries) GetIdentitySummaryByID added in v0.3.0

func (q *Queries) GetIdentitySummaryByID(ctx context.Context, id int64) (GetIdentitySummaryByIDRow, error)

func (*Queries) GetLatestSaaSDiscoveryObservedAtBySource added in v0.4.0

func (q *Queries) GetLatestSaaSDiscoveryObservedAtBySource(ctx context.Context, arg GetLatestSaaSDiscoveryObservedAtBySourceParams) (pgtype.Timestamptz, error)

func (*Queries) GetNonHumanPrincipalByRef added in v0.4.11

func (q *Queries) GetNonHumanPrincipalByRef(ctx context.Context, principalRef string) (NonHumanPrincipalReadModelsV, error)

func (*Queries) GetOktaAccount added in v0.4.9

func (q *Queries) GetOktaAccount(ctx context.Context, id int64) (Account, error)

Okta account query names on top of accounts.

func (*Queries) GetOktaAppByExternalIDWithIntegration

func (q *Queries) GetOktaAppByExternalIDWithIntegration(ctx context.Context, externalID string) (GetOktaAppByExternalIDWithIntegrationRow, error)

func (*Queries) GetPreferredIdentityByPrimaryEmail added in v0.3.0

func (q *Queries) GetPreferredIdentityByPrimaryEmail(ctx context.Context, primaryEmail string) (Identity, error)

func (*Queries) GetRuleAttestation

func (q *Queries) GetRuleAttestation(ctx context.Context, arg GetRuleAttestationParams) (RuleAttestation, error)

func (*Queries) GetRuleOverride

func (q *Queries) GetRuleOverride(ctx context.Context, arg GetRuleOverrideParams) (RuleOverride, error)

func (*Queries) GetRulesetByKey

func (q *Queries) GetRulesetByKey(ctx context.Context, key string) (Ruleset, error)

func (*Queries) GetRulesetOverride

func (q *Queries) GetRulesetOverride(ctx context.Context, arg GetRulesetOverrideParams) (RulesetOverride, error)

func (*Queries) GetRulesetPostureCounts added in v0.2.1

func (q *Queries) GetRulesetPostureCounts(ctx context.Context, arg GetRulesetPostureCountsParams) (GetRulesetPostureCountsRow, error)

func (*Queries) GetSaaSAppByID added in v0.4.0

func (q *Queries) GetSaaSAppByID(ctx context.Context, id int64) (GetSaaSAppByIDRow, error)

func (*Queries) GetSaaSAppReplacementCandidateByID added in v0.4.11

func (q *Queries) GetSaaSAppReplacementCandidateByID(ctx context.Context, id int64) (GetSaaSAppReplacementCandidateByIDRow, error)

func (*Queries) GetSourceAccount added in v0.4.9

func (q *Queries) GetSourceAccount(ctx context.Context, id int64) (Account, error)

func (*Queries) GetSyncRunRollupsForSources added in v0.2.1

func (q *Queries) GetSyncRunRollupsForSources(ctx context.Context, arg GetSyncRunRollupsForSourcesParams) ([]GetSyncRunRollupsForSourcesRow, error)

func (*Queries) InsertNonHumanAccessEvent added in v0.4.11

func (q *Queries) InsertNonHumanAccessEvent(ctx context.Context, arg InsertNonHumanAccessEventParams) error

func (*Queries) InsertRuleEvaluation

func (q *Queries) InsertRuleEvaluation(ctx context.Context, arg InsertRuleEvaluationParams) (RuleEvaluation, error)

func (*Queries) InsertSaaSAppReviewDecision added in v0.4.11

func (q *Queries) InsertSaaSAppReviewDecision(ctx context.Context, arg InsertSaaSAppReviewDecisionParams) error

func (*Queries) ListActiveAuthAdminsForUpdate added in v0.2.1

func (q *Queries) ListActiveAuthAdminsForUpdate(ctx context.Context) ([]int64, error)

func (*Queries) ListActiveRulesByRulesetID

func (q *Queries) ListActiveRulesByRulesetID(ctx context.Context, rulesetID int64) ([]Rule, error)

func (*Queries) ListAppAssetDiscoveryEventsBySourceAppID added in v0.4.10

func (q *Queries) ListAppAssetDiscoveryEventsBySourceAppID(ctx context.Context, arg ListAppAssetDiscoveryEventsBySourceAppIDParams) ([]SaasAppEvent, error)

func (*Queries) ListAppAssetDiscoverySourcesBySourceAppID added in v0.4.10

func (*Queries) ListAppAssetOwnersByAssetID added in v0.3.0

func (q *Queries) ListAppAssetOwnersByAssetID(ctx context.Context, appAssetID int64) ([]AppAssetOwner, error)

func (*Queries) ListAppAssetOwnersByAssetIDs added in v0.3.0

func (q *Queries) ListAppAssetOwnersByAssetIDs(ctx context.Context, assetIds []int64) ([]AppAssetOwner, error)

func (*Queries) ListAppAssetsPageBySourceAndQueryAndKind added in v0.3.0

func (q *Queries) ListAppAssetsPageBySourceAndQueryAndKind(ctx context.Context, arg ListAppAssetsPageBySourceAndQueryAndKindParams) ([]AppAsset, error)

func (*Queries) ListAppAssetsPageBySourcesAndQueryAndKind added in v0.4.9

func (q *Queries) ListAppAssetsPageBySourcesAndQueryAndKind(ctx context.Context, arg ListAppAssetsPageBySourcesAndQueryAndKindParams) ([]AppAsset, error)

func (*Queries) ListAuthUsers added in v0.2.1

func (q *Queries) ListAuthUsers(ctx context.Context) ([]AuthUser, error)

func (*Queries) ListAuthoritativeSources added in v0.3.0

func (q *Queries) ListAuthoritativeSources(ctx context.Context) ([]IdentitySourceSetting, error)

func (*Queries) ListConnectorConfigs

func (q *Queries) ListConnectorConfigs(ctx context.Context) ([]ConnectorConfig, error)

func (*Queries) ListConnectorConfigsForUpdate added in v0.4.10

func (q *Queries) ListConnectorConfigsForUpdate(ctx context.Context) ([]ConnectorConfig, error)

func (*Queries) ListConnectorSecrets added in v0.4.10

func (q *Queries) ListConnectorSecrets(ctx context.Context) ([]ConnectorSecret, error)

func (*Queries) ListConnectorSecretsByKind added in v0.4.10

func (q *Queries) ListConnectorSecretsByKind(ctx context.Context, kind string) ([]ConnectorSecret, error)

func (*Queries) ListCredentialArtifactCountsByAssetRef added in v0.3.0

func (*Queries) ListCredentialArtifactsForAssetRef added in v0.3.0

func (*Queries) ListCredentialAuditEventsForCredential added in v0.3.0

func (q *Queries) ListCredentialAuditEventsForCredential(ctx context.Context, arg ListCredentialAuditEventsForCredentialParams) ([]CredentialAuditEvent, error)

func (*Queries) ListCredentialAuditEventsForTarget added in v0.3.0

func (q *Queries) ListCredentialAuditEventsForTarget(ctx context.Context, arg ListCredentialAuditEventsForTargetParams) ([]CredentialAuditEvent, error)

func (*Queries) ListDashboardPrivilegedAccessBuckets added in v0.5.0

func (*Queries) ListDashboardSourceAccountSummaries added in v0.5.0

func (*Queries) ListDistinctOktaAppStatuses added in v0.4.11

func (q *Queries) ListDistinctOktaAppStatuses(ctx context.Context) ([]string, error)

func (*Queries) ListEntitlementsForAccount added in v0.4.9

func (q *Queries) ListEntitlementsForAccount(ctx context.Context, appUserID int64) ([]ListEntitlementsForAccountRow, error)

func (*Queries) ListEntitlementsForAccountIDs added in v0.4.9

func (q *Queries) ListEntitlementsForAccountIDs(ctx context.Context, accountIds []int64) ([]ListEntitlementsForAccountIDsRow, error)

func (*Queries) ListEntraDiscoveryAppIDsWithManagedAssetsBySource added in v0.4.0

func (q *Queries) ListEntraDiscoveryAppIDsWithManagedAssetsBySource(ctx context.Context, sourceName string) ([]int64, error)

func (*Queries) ListGitHubUsersPageBySourceAndQuery added in v0.4.9

func (*Queries) ListGoogleWorkspaceGroupMemberCountsByGroupExternalIDs added in v0.4.7

func (q *Queries) ListGoogleWorkspaceGroupMemberCountsByGroupExternalIDs(ctx context.Context, groupExternalIds []string) ([]ListGoogleWorkspaceGroupMemberCountsByGroupExternalIDsRow, error)

func (*Queries) ListGoogleWorkspaceGroupsPageBySourceAndQuery added in v0.4.7

func (q *Queries) ListGoogleWorkspaceGroupsPageBySourceAndQuery(ctx context.Context, arg ListGoogleWorkspaceGroupsPageBySourceAndQueryParams) ([]Account, error)

func (*Queries) ListIdentitiesInventoryPageByFilters added in v0.4.7

func (*Queries) ListIdentityAccountAttributes added in v0.3.0

func (q *Queries) ListIdentityAccountAttributes(ctx context.Context) ([]ListIdentityAccountAttributesRow, error)

func (*Queries) ListIdentitySourceSettings added in v0.3.0

func (q *Queries) ListIdentitySourceSettings(ctx context.Context) ([]IdentitySourceSetting, error)

func (*Queries) ListIdentitySourceSummaries added in v0.5.0

func (q *Queries) ListIdentitySourceSummaries(ctx context.Context, identityID int64) ([]ListIdentitySourceSummariesRow, error)

func (*Queries) ListLatestSuccessfulSyncRunsBySource added in v0.4.11

func (q *Queries) ListLatestSuccessfulSyncRunsBySource(ctx context.Context) ([]ListLatestSuccessfulSyncRunsBySourceRow, error)

func (*Queries) ListLinkedAccountsForIdentity added in v0.3.0

func (q *Queries) ListLinkedAccountsForIdentity(ctx context.Context, identityID int64) ([]Account, error)

func (*Queries) ListMappedOktaDiscoveryAppsBySource added in v0.4.0

func (q *Queries) ListMappedOktaDiscoveryAppsBySource(ctx context.Context, sourceName string) ([]ListMappedOktaDiscoveryAppsBySourceRow, error)

func (*Queries) ListNonHumanPrincipalAssetsByRef added in v0.4.11

func (q *Queries) ListNonHumanPrincipalAssetsByRef(ctx context.Context, principalRef string) ([]ListNonHumanPrincipalAssetsByRefRow, error)

func (*Queries) ListNonHumanPrincipalCredentialsByRef added in v0.4.11

func (q *Queries) ListNonHumanPrincipalCredentialsByRef(ctx context.Context, principalRef string) ([]ListNonHumanPrincipalCredentialsByRefRow, error)

func (*Queries) ListNonHumanPrincipalsPageByFilters added in v0.4.11

func (*Queries) ListNormalizedEntitlementAssignmentsV1 added in v0.3.0

func (q *Queries) ListNormalizedEntitlementAssignmentsV1(ctx context.Context) ([]ListNormalizedEntitlementAssignmentsV1Row, error)

func (*Queries) ListNormalizedEntitlementAssignmentsV2 added in v0.3.0

func (q *Queries) ListNormalizedEntitlementAssignmentsV2(ctx context.Context) ([]ListNormalizedEntitlementAssignmentsV2Row, error)

func (*Queries) ListNormalizedIdentitiesV1 added in v0.3.0

func (q *Queries) ListNormalizedIdentitiesV1(ctx context.Context) ([]ListNormalizedIdentitiesV1Row, error)

func (*Queries) ListNormalizedIdentitiesV2 added in v0.3.0

func (q *Queries) ListNormalizedIdentitiesV2(ctx context.Context) ([]ListNormalizedIdentitiesV2Row, error)

func (*Queries) ListOktaAccountsForCommand added in v0.4.9

func (q *Queries) ListOktaAccountsForCommand(ctx context.Context) ([]ListOktaAccountsForCommandRow, error)

func (*Queries) ListOktaAccountsPageByQueryAndState added in v0.4.9

func (q *Queries) ListOktaAccountsPageByQueryAndState(ctx context.Context, arg ListOktaAccountsPageByQueryAndStateParams) ([]Account, error)

func (*Queries) ListOktaAppAssignedAccountsPageByQuery added in v0.4.9

func (*Queries) ListOktaAppAssignmentsForOktaAccount added in v0.4.9

func (q *Queries) ListOktaAppAssignmentsForOktaAccount(ctx context.Context, oktaUserAccountID int64) ([]ListOktaAppAssignmentsForOktaAccountRow, error)

func (*Queries) ListOktaAppGrantingGroupsForOktaAccounts added in v0.4.9

func (*Queries) ListOktaAppGroupAssignmentsByAppIDs

func (q *Queries) ListOktaAppGroupAssignmentsByAppIDs(ctx context.Context, dollar_1 []int64) ([]ListOktaAppGroupAssignmentsByAppIDsRow, error)

func (*Queries) ListOktaAppsForCommand

func (q *Queries) ListOktaAppsForCommand(ctx context.Context) ([]ListOktaAppsForCommandRow, error)

func (*Queries) ListOktaAppsPage

func (q *Queries) ListOktaAppsPage(ctx context.Context, arg ListOktaAppsPageParams) ([]ListOktaAppsPageRow, error)

func (*Queries) ListOktaAppsPageByQuery

func (q *Queries) ListOktaAppsPageByQuery(ctx context.Context, arg ListOktaAppsPageByQueryParams) ([]ListOktaAppsPageByQueryRow, error)

func (*Queries) ListOktaAppsPageFiltered added in v0.4.11

func (q *Queries) ListOktaAppsPageFiltered(ctx context.Context, arg ListOktaAppsPageFilteredParams) ([]ListOktaAppsPageFilteredRow, error)

func (*Queries) ListOktaGroupsForOktaAccount added in v0.4.9

func (q *Queries) ListOktaGroupsForOktaAccount(ctx context.Context, oktaUserAccountID int64) ([]OktaGroup, error)

func (*Queries) ListRecentFinishedSyncRunsBySource added in v0.2.0

func (*Queries) ListRecentFinishedSyncRunsForSources added in v0.2.0

func (*Queries) ListRecentNonSuccessSyncRunsBySource added in v0.4.2

func (*Queries) ListRulesets

func (q *Queries) ListRulesets(ctx context.Context) ([]Ruleset, error)

func (*Queries) ListSaaSAppEventsBySaaSAppID added in v0.4.0

func (q *Queries) ListSaaSAppEventsBySaaSAppID(ctx context.Context, arg ListSaaSAppEventsBySaaSAppIDParams) ([]SaasAppEvent, error)

func (*Queries) ListSaaSAppHotspots added in v0.4.0

func (q *Queries) ListSaaSAppHotspots(ctx context.Context, arg ListSaaSAppHotspotsParams) ([]ListSaaSAppHotspotsRow, error)

func (*Queries) ListSaaSAppIDsFromSourcesSeenInRunBySource added in v0.4.0

func (q *Queries) ListSaaSAppIDsFromSourcesSeenInRunBySource(ctx context.Context, arg ListSaaSAppIDsFromSourcesSeenInRunBySourceParams) ([]int64, error)

func (*Queries) ListSaaSAppReviewDecisionsBySaaSAppID added in v0.4.11

func (*Queries) ListSaaSAppSourcesBySaaSAppID added in v0.4.0

func (q *Queries) ListSaaSAppSourcesBySaaSAppID(ctx context.Context, saasAppID int64) ([]SaasAppSource, error)

func (*Queries) ListSaaSAppsPageByFilters added in v0.4.0

func (q *Queries) ListSaaSAppsPageByFilters(ctx context.Context, arg ListSaaSAppsPageByFiltersParams) ([]ListSaaSAppsPageByFiltersRow, error)

func (*Queries) ListSourceAccountsPageBySourceAndQuery added in v0.4.9

func (*Queries) ListSourceAccountsPageBySourceAndQueryAndState added in v0.4.9

func (q *Queries) ListSourceAccountsPageBySourceAndQueryAndState(ctx context.Context, arg ListSourceAccountsPageBySourceAndQueryAndStateParams) ([]Account, error)

func (*Queries) ListTopActorsForSaaSAppByID added in v0.4.0

func (q *Queries) ListTopActorsForSaaSAppByID(ctx context.Context, arg ListTopActorsForSaaSAppByIDParams) ([]ListTopActorsForSaaSAppByIDRow, error)

func (*Queries) ListUnlinkedAccountsPage added in v0.3.0

func (q *Queries) ListUnlinkedAccountsPage(ctx context.Context, arg ListUnlinkedAccountsPageParams) ([]Account, error)

func (*Queries) ListUnlinkedSourceAccountsPageBySourceAndQuery added in v0.4.9

func (q *Queries) ListUnlinkedSourceAccountsPageBySourceAndQuery(ctx context.Context, arg ListUnlinkedSourceAccountsPageBySourceAndQueryParams) ([]Account, error)

func (*Queries) MarkSyncJobRunning added in v0.4.8

func (q *Queries) MarkSyncJobRunning(ctx context.Context, arg MarkSyncJobRunningParams) (SyncJob, error)

func (*Queries) MarkSyncRunSuccess

func (q *Queries) MarkSyncRunSuccess(ctx context.Context, arg MarkSyncRunSuccessParams) error

func (*Queries) PromoteAppAssetOwnersSeenInRunBySource added in v0.3.0

func (q *Queries) PromoteAppAssetOwnersSeenInRunBySource(ctx context.Context, arg PromoteAppAssetOwnersSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteAppAssetsSeenInRunBySource added in v0.3.0

func (q *Queries) PromoteAppAssetsSeenInRunBySource(ctx context.Context, arg PromoteAppAssetsSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteCredentialArtifactsSeenInRunBySource added in v0.3.0

func (q *Queries) PromoteCredentialArtifactsSeenInRunBySource(ctx context.Context, arg PromoteCredentialArtifactsSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteEntitlementsSeenInRunBySource

func (q *Queries) PromoteEntitlementsSeenInRunBySource(ctx context.Context, arg PromoteEntitlementsSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteOktaAccountsSeenInRun added in v0.4.9

func (q *Queries) PromoteOktaAccountsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteOktaAppAssignmentsSeenInRun added in v0.4.9

func (q *Queries) PromoteOktaAppAssignmentsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteOktaAppGroupAssignmentsSeenInRun

func (q *Queries) PromoteOktaAppGroupAssignmentsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteOktaAppsSeenInRun

func (q *Queries) PromoteOktaAppsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteOktaGroupMembershipsSeenInRun added in v0.4.9

func (q *Queries) PromoteOktaGroupMembershipsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteOktaGroupsSeenInRun

func (q *Queries) PromoteOktaGroupsSeenInRun(ctx context.Context, lastObservedRunID pgtype.Int8) (int64, error)

func (*Queries) PromoteSaaSAppEventsSeenInRunBySource added in v0.4.0

func (q *Queries) PromoteSaaSAppEventsSeenInRunBySource(ctx context.Context, arg PromoteSaaSAppEventsSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteSaaSAppSourcesSeenInRunBySource added in v0.4.0

func (q *Queries) PromoteSaaSAppSourcesSeenInRunBySource(ctx context.Context, arg PromoteSaaSAppSourcesSeenInRunBySourceParams) (int64, error)

func (*Queries) PromoteSourceAccountsSeenInRun added in v0.4.9

func (q *Queries) PromoteSourceAccountsSeenInRun(ctx context.Context, arg PromoteSourceAccountsSeenInRunParams) (int64, error)

func (*Queries) PromoteSyncJobForManualRequest added in v0.4.8

func (q *Queries) PromoteSyncJobForManualRequest(ctx context.Context, id pgtype.UUID) (SyncJob, error)

func (*Queries) ReclaimRunningSyncRunsBySource added in v0.4.9

func (q *Queries) ReclaimRunningSyncRunsBySource(ctx context.Context, arg ReclaimRunningSyncRunsBySourceParams) (int64, error)

func (*Queries) RecomputePrimarySaaSAppBindingsForAll added in v0.4.0

func (q *Queries) RecomputePrimarySaaSAppBindingsForAll(ctx context.Context) (int64, error)

func (*Queries) RefreshAllAppAssetReadModels added in v0.4.11

func (q *Queries) RefreshAllAppAssetReadModels(ctx context.Context) (int64, error)

func (*Queries) RefreshAllNonHumanPrincipalReadModels added in v0.4.11

func (q *Queries) RefreshAllNonHumanPrincipalReadModels(ctx context.Context) (int64, error)

func (*Queries) RefreshAllNonHumanPrincipalReadModelsSafely added in v0.4.11

func (q *Queries) RefreshAllNonHumanPrincipalReadModelsSafely(ctx context.Context) (int64, error)

func (*Queries) RefreshAllSaaSAppReadModels added in v0.4.11

func (q *Queries) RefreshAllSaaSAppReadModels(ctx context.Context) (int64, error)

func (*Queries) RefreshAppAssetReadModelsBySource added in v0.4.11

func (q *Queries) RefreshAppAssetReadModelsBySource(ctx context.Context, arg RefreshAppAssetReadModelsBySourceParams) (int64, error)

func (*Queries) RefreshNonHumanPrincipalReadModelsBySource added in v0.4.11

func (q *Queries) RefreshNonHumanPrincipalReadModelsBySource(ctx context.Context, arg RefreshNonHumanPrincipalReadModelsBySourceParams) (int64, error)

func (*Queries) RefreshNonHumanPrincipalReadModelsBySourceSafely added in v0.4.11

func (q *Queries) RefreshNonHumanPrincipalReadModelsBySourceSafely(ctx context.Context, arg RefreshNonHumanPrincipalReadModelsBySourceParams) (int64, error)

func (*Queries) RefreshSaaSAppReadModelsBySource added in v0.4.11

func (q *Queries) RefreshSaaSAppReadModelsBySource(ctx context.Context, arg RefreshSaaSAppReadModelsBySourceParams) (int64, error)

func (*Queries) ReleaseAdvisoryLock

func (q *Queries) ReleaseAdvisoryLock(ctx context.Context, dollar_1 int64) error

func (*Queries) ReleaseSyncLockLease added in v0.2.2

func (q *Queries) ReleaseSyncLockLease(ctx context.Context, arg ReleaseSyncLockLeaseParams) error

func (*Queries) RenewSyncJobLease added in v0.4.8

func (q *Queries) RenewSyncJobLease(ctx context.Context, arg RenewSyncJobLeaseParams) (pgtype.Timestamptz, error)

func (*Queries) RenewSyncLockLease added in v0.2.2

func (q *Queries) RenewSyncLockLease(ctx context.Context, arg RenewSyncLockLeaseParams) (pgtype.Timestamptz, error)

func (*Queries) RequeueStaleSyncJobsByLane added in v0.4.8

func (q *Queries) RequeueStaleSyncJobsByLane(ctx context.Context, lane string) (int64, error)

func (*Queries) SearchAppAssetsForCommand added in v0.4.9

func (q *Queries) SearchAppAssetsForCommand(ctx context.Context, arg SearchAppAssetsForCommandParams) ([]SearchAppAssetsForCommandRow, error)

func (*Queries) SearchDiscoveryAppsForCommand added in v0.4.9

func (q *Queries) SearchDiscoveryAppsForCommand(ctx context.Context, arg SearchDiscoveryAppsForCommandParams) ([]SearchDiscoveryAppsForCommandRow, error)

func (*Queries) SearchIdentitiesForCommand added in v0.4.9

func (q *Queries) SearchIdentitiesForCommand(ctx context.Context, arg SearchIdentitiesForCommandParams) ([]SearchIdentitiesForCommandRow, error)

func (*Queries) SearchManagedReplacementSaaSApps added in v0.4.11

func (*Queries) SearchOktaAppsForCommand added in v0.4.9

func (q *Queries) SearchOktaAppsForCommand(ctx context.Context, arg SearchOktaAppsForCommandParams) ([]SearchOktaAppsForCommandRow, error)

func (*Queries) StoredReadModelsNeedRebuild added in v0.4.11

func (q *Queries) StoredReadModelsNeedRebuild(ctx context.Context) (bool, error)

func (*Queries) SummarizeIdentitiesInventoryByFilters added in v0.4.12

Returns bucketed counts for the identity inventory, scoped to the user-applied source, search, and identity_type filters but ignoring segment-like filters (managed_state, privileged, status, activity_state). The result is used to drive the operator stat strip and segment chips on the identities list: it tells the user the shape of the population they are currently looking at, independent of any segment they have already applied. Buckets are counts, not exclusive categories (an identity can be both privileged and unmanaged).

func (*Queries) TryAcquireAdvisoryLock added in v0.2.0

func (q *Queries) TryAcquireAdvisoryLock(ctx context.Context, dollar_1 int64) (bool, error)

func (*Queries) TryAcquireSyncLockLease added in v0.2.2

func (q *Queries) TryAcquireSyncLockLease(ctx context.Context, arg TryAcquireSyncLockLeaseParams) (SyncLock, error)

Lease-based sync locks (no session-pinned connections).

func (*Queries) UpdateAuthUserLoginMeta added in v0.2.0

func (q *Queries) UpdateAuthUserLoginMeta(ctx context.Context, arg UpdateAuthUserLoginMetaParams) error

func (*Queries) UpdateAuthUserPasswordHash added in v0.2.1

func (q *Queries) UpdateAuthUserPasswordHash(ctx context.Context, arg UpdateAuthUserPasswordHashParams) error

func (*Queries) UpdateAuthUserRole added in v0.2.1

func (q *Queries) UpdateAuthUserRole(ctx context.Context, arg UpdateAuthUserRoleParams) error

func (*Queries) UpdateConnectorConfig

func (q *Queries) UpdateConnectorConfig(ctx context.Context, arg UpdateConnectorConfigParams) (ConnectorConfig, error)

func (*Queries) UpdateConnectorConfigEnabled

func (q *Queries) UpdateConnectorConfigEnabled(ctx context.Context, arg UpdateConnectorConfigEnabledParams) (ConnectorConfig, error)

func (*Queries) UpdateIdentityAttributes added in v0.3.0

func (q *Queries) UpdateIdentityAttributes(ctx context.Context, arg UpdateIdentityAttributesParams) error

func (*Queries) UpsertAppAssetGovernance added in v0.4.10

func (q *Queries) UpsertAppAssetGovernance(ctx context.Context, arg UpsertAppAssetGovernanceParams) (GovernanceSubjectOverride, error)

func (*Queries) UpsertAppAssetOwnersBulkBySource added in v0.3.0

func (q *Queries) UpsertAppAssetOwnersBulkBySource(ctx context.Context, arg UpsertAppAssetOwnersBulkBySourceParams) (int64, error)

func (*Queries) UpsertAppAssetsBulkBySource added in v0.3.0

func (q *Queries) UpsertAppAssetsBulkBySource(ctx context.Context, arg UpsertAppAssetsBulkBySourceParams) (int64, error)

func (*Queries) UpsertConnectorSecret added in v0.4.10

func (q *Queries) UpsertConnectorSecret(ctx context.Context, arg UpsertConnectorSecretParams) (ConnectorSecret, error)

func (*Queries) UpsertConnectorSourceState added in v0.4.11

func (q *Queries) UpsertConnectorSourceState(ctx context.Context, arg UpsertConnectorSourceStateParams) error

func (*Queries) UpsertCredentialArtifactsBulkBySource added in v0.3.0

func (q *Queries) UpsertCredentialArtifactsBulkBySource(ctx context.Context, arg UpsertCredentialArtifactsBulkBySourceParams) (int64, error)

func (*Queries) UpsertCredentialAuditEventsBulkBySource added in v0.3.0

func (q *Queries) UpsertCredentialAuditEventsBulkBySource(ctx context.Context, arg UpsertCredentialAuditEventsBulkBySourceParams) (int64, error)

func (*Queries) UpsertEntitlementsBulkBySource

func (q *Queries) UpsertEntitlementsBulkBySource(ctx context.Context, arg UpsertEntitlementsBulkBySourceParams) (int64, error)
func (q *Queries) UpsertIdentityAccountLink(ctx context.Context, arg UpsertIdentityAccountLinkParams) (IdentityAccount, error)

func (*Queries) UpsertIdentitySourceSetting added in v0.3.0

func (q *Queries) UpsertIdentitySourceSetting(ctx context.Context, arg UpsertIdentitySourceSettingParams) (IdentitySourceSetting, error)

func (*Queries) UpsertIntegrationOktaAppMap

func (q *Queries) UpsertIntegrationOktaAppMap(ctx context.Context, arg UpsertIntegrationOktaAppMapParams) error

func (*Queries) UpsertOktaAccountsBulk added in v0.3.0

func (q *Queries) UpsertOktaAccountsBulk(ctx context.Context, arg UpsertOktaAccountsBulkParams) (int64, error)

func (*Queries) UpsertOktaAppAssignmentsBulkByOktaAccountExternalIDs added in v0.4.9

func (q *Queries) UpsertOktaAppAssignmentsBulkByOktaAccountExternalIDs(ctx context.Context, arg UpsertOktaAppAssignmentsBulkByOktaAccountExternalIDsParams) (int64, error)

func (*Queries) UpsertOktaAppGroupAssignmentsBulkByExternalIDs added in v0.2.0

func (q *Queries) UpsertOktaAppGroupAssignmentsBulkByExternalIDs(ctx context.Context, arg UpsertOktaAppGroupAssignmentsBulkByExternalIDsParams) (int64, error)

func (*Queries) UpsertOktaAppsBulk added in v0.2.0

func (q *Queries) UpsertOktaAppsBulk(ctx context.Context, arg UpsertOktaAppsBulkParams) (int64, error)

func (*Queries) UpsertOktaGroupMembershipsBulkByOktaAccountExternalIDs added in v0.4.9

func (q *Queries) UpsertOktaGroupMembershipsBulkByOktaAccountExternalIDs(ctx context.Context, arg UpsertOktaGroupMembershipsBulkByOktaAccountExternalIDsParams) (int64, error)

func (*Queries) UpsertOktaGroupsBulk added in v0.2.0

func (q *Queries) UpsertOktaGroupsBulk(ctx context.Context, arg UpsertOktaGroupsBulkParams) (int64, error)

func (*Queries) UpsertRule

func (q *Queries) UpsertRule(ctx context.Context, arg UpsertRuleParams) (Rule, error)

func (*Queries) UpsertRuleAttestation

func (q *Queries) UpsertRuleAttestation(ctx context.Context, arg UpsertRuleAttestationParams) (RuleAttestation, error)

func (*Queries) UpsertRuleOverride

func (q *Queries) UpsertRuleOverride(ctx context.Context, arg UpsertRuleOverrideParams) (RuleOverride, error)

func (*Queries) UpsertRuleResultCurrent

func (q *Queries) UpsertRuleResultCurrent(ctx context.Context, arg UpsertRuleResultCurrentParams) (RuleResultsCurrent, error)

func (*Queries) UpsertRuleset

func (q *Queries) UpsertRuleset(ctx context.Context, arg UpsertRulesetParams) (Ruleset, error)

func (*Queries) UpsertRulesetOverride

func (q *Queries) UpsertRulesetOverride(ctx context.Context, arg UpsertRulesetOverrideParams) (RulesetOverride, error)

func (*Queries) UpsertSaaSAppBinding added in v0.4.0

func (q *Queries) UpsertSaaSAppBinding(ctx context.Context, arg UpsertSaaSAppBindingParams) error

func (*Queries) UpsertSaaSAppEventsBulkBySource added in v0.4.0

func (q *Queries) UpsertSaaSAppEventsBulkBySource(ctx context.Context, arg UpsertSaaSAppEventsBulkBySourceParams) (int64, error)

func (*Queries) UpsertSaaSAppReviewGovernance added in v0.4.11

func (q *Queries) UpsertSaaSAppReviewGovernance(ctx context.Context, arg UpsertSaaSAppReviewGovernanceParams) (GovernanceSubjectOverride, error)

func (*Queries) UpsertSaaSAppSourcesBulkBySource added in v0.4.0

func (q *Queries) UpsertSaaSAppSourcesBulkBySource(ctx context.Context, arg UpsertSaaSAppSourcesBulkBySourceParams) (int64, error)

func (*Queries) UpsertSaaSAppsBulk added in v0.4.0

func (q *Queries) UpsertSaaSAppsBulk(ctx context.Context, arg UpsertSaaSAppsBulkParams) (int64, error)

func (*Queries) UpsertSourceAccountsBulkBySource added in v0.4.9

func (q *Queries) UpsertSourceAccountsBulkBySource(ctx context.Context, arg UpsertSourceAccountsBulkBySourceParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type ReclaimRunningSyncRunsBySourceParams added in v0.4.9

type ReclaimRunningSyncRunsBySourceParams struct {
	Message     string   `json:"message"`
	ErrorKind   string   `json:"error_kind"`
	SourceKinds []string `json:"source_kinds"`
	SourceName  string   `json:"source_name"`
}

type RefreshAppAssetReadModelsBySourceParams added in v0.4.11

type RefreshAppAssetReadModelsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type RefreshNonHumanPrincipalReadModelsBySourceParams added in v0.4.11

type RefreshNonHumanPrincipalReadModelsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type RefreshSaaSAppReadModelsBySourceParams added in v0.4.11

type RefreshSaaSAppReadModelsBySourceParams struct {
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
}

type ReleaseSyncLockLeaseParams added in v0.2.2

type ReleaseSyncLockLeaseParams struct {
	ScopeKind   string      `json:"scope_kind"`
	ScopeName   string      `json:"scope_name"`
	HolderToken pgtype.UUID `json:"holder_token"`
}

type RenewSyncJobLeaseParams added in v0.4.8

type RenewSyncJobLeaseParams struct {
	LeaseSeconds int64       `json:"lease_seconds"`
	ID           pgtype.UUID `json:"id"`
	ClaimedBy    pgtype.Text `json:"claimed_by"`
}

type RenewSyncLockLeaseParams added in v0.2.2

type RenewSyncLockLeaseParams struct {
	LeaseSeconds int64       `json:"lease_seconds"`
	ScopeKind    string      `json:"scope_kind"`
	ScopeName    string      `json:"scope_name"`
	HolderToken  pgtype.UUID `json:"holder_token"`
}

type Rule

type Rule struct {
	ID               int64              `json:"id"`
	RulesetID        int64              `json:"ruleset_id"`
	Key              string             `json:"key"`
	Title            string             `json:"title"`
	Summary          string             `json:"summary"`
	Category         string             `json:"category"`
	Severity         string             `json:"severity"`
	MonitoringStatus string             `json:"monitoring_status"`
	MonitoringReason string             `json:"monitoring_reason"`
	RequiredData     []byte             `json:"required_data"`
	ExpectedParams   []byte             `json:"expected_params"`
	RuleVersion      string             `json:"rule_version"`
	IsActive         bool               `json:"is_active"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
	DefinitionJson   []byte             `json:"definition_json"`
}

type RuleAttestation

type RuleAttestation struct {
	ID         int64              `json:"id"`
	RuleID     int64              `json:"rule_id"`
	ScopeKind  string             `json:"scope_kind"`
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	Status     string             `json:"status"`
	Notes      string             `json:"notes"`
	ExpiresAt  pgtype.Timestamptz `json:"expires_at"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
}

type RuleEvaluation

type RuleEvaluation struct {
	ID                  int64              `json:"id"`
	RuleID              int64              `json:"rule_id"`
	ScopeKind           string             `json:"scope_kind"`
	SourceKind          string             `json:"source_kind"`
	SourceName          string             `json:"source_name"`
	Status              string             `json:"status"`
	SyncRunID           pgtype.Int8        `json:"sync_run_id"`
	EvaluatedAt         pgtype.Timestamptz `json:"evaluated_at"`
	EvidenceSummary     string             `json:"evidence_summary"`
	EvidenceJson        []byte             `json:"evidence_json"`
	AffectedResourceIds []string           `json:"affected_resource_ids"`
	ErrorKind           string             `json:"error_kind"`
}

type RuleOverride

type RuleOverride struct {
	ID         int64              `json:"id"`
	RuleID     int64              `json:"rule_id"`
	ScopeKind  string             `json:"scope_kind"`
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	Params     []byte             `json:"params"`
	Enabled    bool               `json:"enabled"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
}

type RuleResultsCurrent

type RuleResultsCurrent struct {
	ID                  int64              `json:"id"`
	RuleID              int64              `json:"rule_id"`
	ScopeKind           string             `json:"scope_kind"`
	SourceKind          string             `json:"source_kind"`
	SourceName          string             `json:"source_name"`
	Status              string             `json:"status"`
	EvaluatedAt         pgtype.Timestamptz `json:"evaluated_at"`
	SyncRunID           pgtype.Int8        `json:"sync_run_id"`
	EvidenceSummary     string             `json:"evidence_summary"`
	EvidenceJson        []byte             `json:"evidence_json"`
	AffectedResourceIds []string           `json:"affected_resource_ids"`
	ErrorKind           string             `json:"error_kind"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	UpdatedAt           pgtype.Timestamptz `json:"updated_at"`
}

type Ruleset

type Ruleset struct {
	ID             int64              `json:"id"`
	Key            string             `json:"key"`
	Name           string             `json:"name"`
	Description    string             `json:"description"`
	Source         string             `json:"source"`
	SourceVersion  string             `json:"source_version"`
	SourceDate     pgtype.Date        `json:"source_date"`
	ScopeKind      string             `json:"scope_kind"`
	ConnectorKind  pgtype.Text        `json:"connector_kind"`
	Status         string             `json:"status"`
	DefinitionHash string             `json:"definition_hash"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	DefinitionJson []byte             `json:"definition_json"`
}

type RulesetOverride

type RulesetOverride struct {
	ID         int64              `json:"id"`
	RulesetID  int64              `json:"ruleset_id"`
	ScopeKind  string             `json:"scope_kind"`
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	Enabled    bool               `json:"enabled"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
}

type SaasApp added in v0.4.0

type SaasApp struct {
	ID                    int64              `json:"id"`
	CanonicalKey          string             `json:"canonical_key"`
	DisplayName           string             `json:"display_name"`
	PrimaryDomain         string             `json:"primary_domain"`
	VendorName            string             `json:"vendor_name"`
	FirstSeenAt           pgtype.Timestamptz `json:"first_seen_at"`
	LastSeenAt            pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Actors30d             int64              `json:"actors_30d"`
	HasPrivilegedScope    bool               `json:"has_privileged_scope"`
	HasConfidentialScope  bool               `json:"has_confidential_scope"`
	ProjectionRefreshedAt pgtype.Timestamptz `json:"projection_refreshed_at"`
}

type SaasAppBinding added in v0.4.0

type SaasAppBinding struct {
	ID                  int64              `json:"id"`
	SaasAppID           int64              `json:"saas_app_id"`
	ConnectorKind       string             `json:"connector_kind"`
	ConnectorSourceName string             `json:"connector_source_name"`
	BindingSource       string             `json:"binding_source"`
	Confidence          float32            `json:"confidence"`
	IsPrimary           bool               `json:"is_primary"`
	CreatedByAuthUserID pgtype.Int8        `json:"created_by_auth_user_id"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	UpdatedAt           pgtype.Timestamptz `json:"updated_at"`
}

type SaasAppEvent added in v0.4.0

type SaasAppEvent struct {
	ID                int64              `json:"id"`
	SaasAppID         int64              `json:"saas_app_id"`
	SourceKind        string             `json:"source_kind"`
	SourceName        string             `json:"source_name"`
	SignalKind        string             `json:"signal_kind"`
	EventExternalID   string             `json:"event_external_id"`
	SourceAppID       string             `json:"source_app_id"`
	SourceAppName     string             `json:"source_app_name"`
	SourceAppDomain   string             `json:"source_app_domain"`
	ActorExternalID   string             `json:"actor_external_id"`
	ActorEmail        string             `json:"actor_email"`
	ActorDisplayName  string             `json:"actor_display_name"`
	ObservedAt        pgtype.Timestamptz `json:"observed_at"`
	ScopesJson        []byte             `json:"scopes_json"`
	RawJson           []byte             `json:"raw_json"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type SaasAppReviewDecision added in v0.4.11

type SaasAppReviewDecision struct {
	ID                    int64              `json:"id"`
	SaasAppID             int64              `json:"saas_app_id"`
	OwnerIdentityID       pgtype.Int8        `json:"owner_identity_id"`
	ReviewOwnerIdentityID pgtype.Int8        `json:"review_owner_identity_id"`
	ReviewDisposition     string             `json:"review_disposition"`
	TicketRef             string             `json:"ticket_ref"`
	Notes                 string             `json:"notes"`
	FollowUpDueDate       pgtype.Date        `json:"follow_up_due_date"`
	ReplacementSaasAppID  pgtype.Int8        `json:"replacement_saas_app_id"`
	ChangedByAuthUserID   pgtype.Int8        `json:"changed_by_auth_user_id"`
	ChangedAt             pgtype.Timestamptz `json:"changed_at"`
}

type SaasAppSource added in v0.4.0

type SaasAppSource struct {
	ID                int64              `json:"id"`
	SaasAppID         int64              `json:"saas_app_id"`
	SourceKind        string             `json:"source_kind"`
	SourceName        string             `json:"source_name"`
	SourceAppID       string             `json:"source_app_id"`
	SourceAppName     string             `json:"source_app_name"`
	SourceAppDomain   string             `json:"source_app_domain"`
	SeenInRunID       pgtype.Int8        `json:"seen_in_run_id"`
	SeenAt            pgtype.Timestamptz `json:"seen_at"`
	LastObservedRunID pgtype.Int8        `json:"last_observed_run_id"`
	LastObservedAt    pgtype.Timestamptz `json:"last_observed_at"`
	ExpiredAt         pgtype.Timestamptz `json:"expired_at"`
	ExpiredRunID      pgtype.Int8        `json:"expired_run_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type SearchAppAssetsForCommandParams added in v0.4.9

type SearchAppAssetsForCommandParams struct {
	Query                             string   `json:"query"`
	ExcludeGoogleWorkspaceOauthClient bool     `json:"exclude_google_workspace_oauth_client"`
	LimitRows                         int32    `json:"limit_rows"`
	ConfiguredSourceKinds             []string `json:"configured_source_kinds"`
	ConfiguredSourceNames             []string `json:"configured_source_names"`
}

type SearchAppAssetsForCommandRow added in v0.4.9

type SearchAppAssetsForCommandRow struct {
	ID          int64  `json:"id"`
	SourceKind  string `json:"source_kind"`
	SourceName  string `json:"source_name"`
	AssetKind   string `json:"asset_kind"`
	DisplayName string `json:"display_name"`
	ExternalID  string `json:"external_id"`
	Status      string `json:"status"`
}

type SearchDiscoveryAppsForCommandParams added in v0.4.9

type SearchDiscoveryAppsForCommandParams struct {
	Query     string `json:"query"`
	LimitRows int32  `json:"limit_rows"`
}

type SearchDiscoveryAppsForCommandRow added in v0.4.9

type SearchDiscoveryAppsForCommandRow struct {
	ID            int64              `json:"id"`
	DisplayName   string             `json:"display_name"`
	PrimaryDomain string             `json:"primary_domain"`
	VendorName    string             `json:"vendor_name"`
	ManagedState  string             `json:"managed_state"`
	RiskLevel     string             `json:"risk_level"`
	RiskScore     int32              `json:"risk_score"`
	LastSeenAt    pgtype.Timestamptz `json:"last_seen_at"`
}

type SearchIdentitiesForCommandParams added in v0.4.9

type SearchIdentitiesForCommandParams struct {
	LimitRows             int32    `json:"limit_rows"`
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
	Query                 string   `json:"query"`
}

type SearchIdentitiesForCommandRow added in v0.4.9

type SearchIdentitiesForCommandRow struct {
	ID           int64  `json:"id"`
	DisplayName  string `json:"display_name"`
	PrimaryEmail string `json:"primary_email"`
	IdentityType string `json:"identity_type"`
	SourceKind   string `json:"source_kind"`
	SourceName   string `json:"source_name"`
	Status       string `json:"status"`
}

type SearchManagedReplacementSaaSAppsParams added in v0.4.11

type SearchManagedReplacementSaaSAppsParams struct {
	ExcludeID int64  `json:"exclude_id"`
	Query     string `json:"query"`
	LimitRows int32  `json:"limit_rows"`
}

type SearchManagedReplacementSaaSAppsRow added in v0.4.11

type SearchManagedReplacementSaaSAppsRow struct {
	ID            int64  `json:"id"`
	DisplayName   string `json:"display_name"`
	PrimaryDomain string `json:"primary_domain"`
	VendorName    string `json:"vendor_name"`
	ManagedState  string `json:"managed_state"`
	RiskLevel     string `json:"risk_level"`
}

type SearchOktaAppsForCommandParams added in v0.4.9

type SearchOktaAppsForCommandParams struct {
	Query     string `json:"query"`
	LimitRows int32  `json:"limit_rows"`
}

type SearchOktaAppsForCommandRow added in v0.4.9

type SearchOktaAppsForCommandRow struct {
	ExternalID      string `json:"external_id"`
	Label           string `json:"label"`
	Name            string `json:"name"`
	Status          string `json:"status"`
	IntegrationKind string `json:"integration_kind"`
}

type Session added in v0.2.0

type Session struct {
	Token  string             `json:"token"`
	Data   []byte             `json:"data"`
	Expiry pgtype.Timestamptz `json:"expiry"`
}

type SummarizeIdentitiesInventoryByFiltersParams added in v0.4.12

type SummarizeIdentitiesInventoryByFiltersParams struct {
	ConfiguredSourceKinds []string `json:"configured_source_kinds"`
	ConfiguredSourceNames []string `json:"configured_source_names"`
	SourceKind            string   `json:"source_kind"`
	SourceName            string   `json:"source_name"`
	Query                 string   `json:"query"`
	IdentityType          string   `json:"identity_type"`
}

type SummarizeIdentitiesInventoryByFiltersRow added in v0.4.12

type SummarizeIdentitiesInventoryByFiltersRow struct {
	TotalCount          int64 `json:"total_count"`
	ActionRequiredCount int64 `json:"action_required_count"`
	ReviewCount         int64 `json:"review_count"`
	PrivilegedCount     int64 `json:"privileged_count"`
	UnmanagedCount      int64 `json:"unmanaged_count"`
	SuspendedCount      int64 `json:"suspended_count"`
	StaleCount          int64 `json:"stale_count"`
}

type SyncJob added in v0.4.8

type SyncJob struct {
	ID             pgtype.UUID        `json:"id"`
	Lane           string             `json:"lane"`
	ConnectorKind  pgtype.Text        `json:"connector_kind"`
	SourceName     pgtype.Text        `json:"source_name"`
	TriggerKind    string             `json:"trigger_kind"`
	Status         string             `json:"status"`
	AttemptCount   int32              `json:"attempt_count"`
	ClaimedBy      pgtype.Text        `json:"claimed_by"`
	ClaimedAt      pgtype.Timestamptz `json:"claimed_at"`
	HeartbeatAt    pgtype.Timestamptz `json:"heartbeat_at"`
	LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
	StartedAt      pgtype.Timestamptz `json:"started_at"`
	FinishedAt     pgtype.Timestamptz `json:"finished_at"`
	LastError      pgtype.Text        `json:"last_error"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	AvailableAt    pgtype.Timestamptz `json:"available_at"`
	RerunRequested bool               `json:"rerun_requested"`
}

type SyncLock added in v0.2.2

type SyncLock struct {
	ScopeKind        string             `json:"scope_kind"`
	ScopeName        string             `json:"scope_name"`
	HolderInstanceID string             `json:"holder_instance_id"`
	HolderToken      pgtype.UUID        `json:"holder_token"`
	AcquiredAt       pgtype.Timestamptz `json:"acquired_at"`
	LeaseExpiresAt   pgtype.Timestamptz `json:"lease_expires_at"`
	HeartbeatAt      pgtype.Timestamptz `json:"heartbeat_at"`
}

type SyncRun

type SyncRun struct {
	ID         int64              `json:"id"`
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	Status     string             `json:"status"`
	StartedAt  pgtype.Timestamptz `json:"started_at"`
	FinishedAt pgtype.Timestamptz `json:"finished_at"`
	Message    string             `json:"message"`
	Stats      []byte             `json:"stats"`
	ErrorKind  string             `json:"error_kind"`
}

type TryAcquireSyncLockLeaseParams added in v0.2.2

type TryAcquireSyncLockLeaseParams struct {
	ScopeKind        string      `json:"scope_kind"`
	ScopeName        string      `json:"scope_name"`
	HolderInstanceID string      `json:"holder_instance_id"`
	HolderToken      pgtype.UUID `json:"holder_token"`
	LeaseSeconds     int64       `json:"lease_seconds"`
}

type UpdateAuthUserLoginMetaParams added in v0.2.0

type UpdateAuthUserLoginMetaParams struct {
	LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
	LastLoginIp string             `json:"last_login_ip"`
	ID          int64              `json:"id"`
}

type UpdateAuthUserPasswordHashParams added in v0.2.1

type UpdateAuthUserPasswordHashParams struct {
	PasswordHash string `json:"password_hash"`
	ID           int64  `json:"id"`
}

type UpdateAuthUserRoleParams added in v0.2.1

type UpdateAuthUserRoleParams struct {
	Role string `json:"role"`
	ID   int64  `json:"id"`
}

type UpdateConnectorConfigEnabledParams

type UpdateConnectorConfigEnabledParams struct {
	Kind    string `json:"kind"`
	Enabled bool   `json:"enabled"`
}

type UpdateConnectorConfigParams

type UpdateConnectorConfigParams struct {
	Kind   string `json:"kind"`
	Config []byte `json:"config"`
}

type UpdateIdentityAttributesParams added in v0.3.0

type UpdateIdentityAttributesParams struct {
	DisplayName  string `json:"display_name"`
	PrimaryEmail string `json:"primary_email"`
	Kind         string `json:"kind"`
	ID           int64  `json:"id"`
}

type UpsertAppAssetGovernanceParams added in v0.4.10

type UpsertAppAssetGovernanceParams struct {
	AppAssetID          int64       `json:"app_asset_id"`
	GovernanceState     string      `json:"governance_state"`
	OwnerIdentityID     pgtype.Int8 `json:"owner_identity_id"`
	TicketRef           string      `json:"ticket_ref"`
	Notes               string      `json:"notes"`
	UpdatedByAuthUserID pgtype.Int8 `json:"updated_by_auth_user_id"`
}

type UpsertAppAssetOwnersBulkBySourceParams added in v0.3.0

type UpsertAppAssetOwnersBulkBySourceParams struct {
	SeenInRunID       int64    `json:"seen_in_run_id"`
	SourceKind        string   `json:"source_kind"`
	SourceName        string   `json:"source_name"`
	AssetKinds        []string `json:"asset_kinds"`
	AssetExternalIds  []string `json:"asset_external_ids"`
	OwnerKinds        []string `json:"owner_kinds"`
	OwnerExternalIds  []string `json:"owner_external_ids"`
	OwnerDisplayNames []string `json:"owner_display_names"`
	OwnerEmails       []string `json:"owner_emails"`
	RawJsons          [][]byte `json:"raw_jsons"`
}

type UpsertAppAssetsBulkBySourceParams added in v0.3.0

type UpsertAppAssetsBulkBySourceParams struct {
	SourceKind        string               `json:"source_kind"`
	SourceName        string               `json:"source_name"`
	SeenInRunID       int64                `json:"seen_in_run_id"`
	AssetKinds        []string             `json:"asset_kinds"`
	ExternalIds       []string             `json:"external_ids"`
	ParentExternalIds []string             `json:"parent_external_ids"`
	DisplayNames      []string             `json:"display_names"`
	Statuses          []string             `json:"statuses"`
	CreatedAtSources  []pgtype.Timestamptz `json:"created_at_sources"`
	UpdatedAtSources  []pgtype.Timestamptz `json:"updated_at_sources"`
	RawJsons          [][]byte             `json:"raw_jsons"`
}

type UpsertConnectorSecretParams added in v0.4.10

type UpsertConnectorSecretParams struct {
	Kind       string `json:"kind"`
	SecretName string `json:"secret_name"`
	Ciphertext []byte `json:"ciphertext"`
	Nonce      []byte `json:"nonce"`
	Version    int16  `json:"version"`
}

type UpsertConnectorSourceStateParams added in v0.4.11

type UpsertConnectorSourceStateParams struct {
	SourceKind       string             `json:"source_kind"`
	SourceName       string             `json:"source_name"`
	Enabled          bool               `json:"enabled"`
	Configured       bool               `json:"configured"`
	DiscoveryEnabled bool               `json:"discovery_enabled"`
	LastSuccessAt    pgtype.Timestamptz `json:"last_success_at"`
	FreshUntilAt     pgtype.Timestamptz `json:"fresh_until_at"`
}

type UpsertCredentialArtifactsBulkBySourceParams added in v0.3.0

type UpsertCredentialArtifactsBulkBySourceParams struct {
	SourceKind             string               `json:"source_kind"`
	SourceName             string               `json:"source_name"`
	SeenInRunID            int64                `json:"seen_in_run_id"`
	AssetRefKinds          []string             `json:"asset_ref_kinds"`
	AssetRefExternalIds    []string             `json:"asset_ref_external_ids"`
	CredentialKinds        []string             `json:"credential_kinds"`
	ExternalIds            []string             `json:"external_ids"`
	DisplayNames           []string             `json:"display_names"`
	Fingerprints           []string             `json:"fingerprints"`
	ScopeJsons             [][]byte             `json:"scope_jsons"`
	Statuses               []string             `json:"statuses"`
	CreatedAtSources       []pgtype.Timestamptz `json:"created_at_sources"`
	ExpiresAtSources       []pgtype.Timestamptz `json:"expires_at_sources"`
	LastUsedAtSources      []pgtype.Timestamptz `json:"last_used_at_sources"`
	CreatedByKinds         []string             `json:"created_by_kinds"`
	CreatedByExternalIds   []string             `json:"created_by_external_ids"`
	CreatedByDisplayNames  []string             `json:"created_by_display_names"`
	ApprovedByKinds        []string             `json:"approved_by_kinds"`
	ApprovedByExternalIds  []string             `json:"approved_by_external_ids"`
	ApprovedByDisplayNames []string             `json:"approved_by_display_names"`
	RawJsons               [][]byte             `json:"raw_jsons"`
}

type UpsertCredentialAuditEventsBulkBySourceParams added in v0.3.0

type UpsertCredentialAuditEventsBulkBySourceParams struct {
	SourceKind            string               `json:"source_kind"`
	SourceName            string               `json:"source_name"`
	EventExternalIds      []string             `json:"event_external_ids"`
	EventTypes            []string             `json:"event_types"`
	EventTimes            []pgtype.Timestamptz `json:"event_times"`
	ActorKinds            []string             `json:"actor_kinds"`
	ActorExternalIds      []string             `json:"actor_external_ids"`
	ActorDisplayNames     []string             `json:"actor_display_names"`
	TargetKinds           []string             `json:"target_kinds"`
	TargetExternalIds     []string             `json:"target_external_ids"`
	TargetDisplayNames    []string             `json:"target_display_names"`
	CredentialKinds       []string             `json:"credential_kinds"`
	CredentialExternalIds []string             `json:"credential_external_ids"`
	RawJsons              [][]byte             `json:"raw_jsons"`
}

type UpsertEntitlementsBulkBySourceParams

type UpsertEntitlementsBulkBySourceParams struct {
	SeenInRunID        int64    `json:"seen_in_run_id"`
	SourceKind         string   `json:"source_kind"`
	SourceName         string   `json:"source_name"`
	AccountExternalIds []string `json:"account_external_ids"`
	Kinds              []string `json:"kinds"`
	Resources          []string `json:"resources"`
	Permissions        []string `json:"permissions"`
	RawJsons           [][]byte `json:"raw_jsons"`
}

type UpsertIdentityAccountLinkParams added in v0.3.0

type UpsertIdentityAccountLinkParams struct {
	IdentityID int64   `json:"identity_id"`
	AccountID  int64   `json:"account_id"`
	LinkReason string  `json:"link_reason"`
	Confidence float32 `json:"confidence"`
}

type UpsertIdentitySourceSettingParams added in v0.3.0

type UpsertIdentitySourceSettingParams struct {
	SourceKind      string `json:"source_kind"`
	SourceName      string `json:"source_name"`
	IsAuthoritative bool   `json:"is_authoritative"`
}

type UpsertIntegrationOktaAppMapParams

type UpsertIntegrationOktaAppMapParams struct {
	IntegrationKind   string `json:"integration_kind"`
	OktaAppExternalID string `json:"okta_app_external_id"`
}

type UpsertOktaAccountsBulkParams added in v0.3.0

type UpsertOktaAccountsBulkParams struct {
	SourceName       string               `json:"source_name"`
	SeenInRunID      int64                `json:"seen_in_run_id"`
	ExternalIds      []string             `json:"external_ids"`
	Emails           []string             `json:"emails"`
	DisplayNames     []string             `json:"display_names"`
	AccountKinds     []string             `json:"account_kinds"`
	EntityCategories []string             `json:"entity_categories"`
	Statuses         []string             `json:"statuses"`
	RawJsons         [][]byte             `json:"raw_jsons"`
	LastLoginAts     []pgtype.Timestamptz `json:"last_login_ats"`
	LastLoginIps     []string             `json:"last_login_ips"`
	LastLoginRegions []string             `json:"last_login_regions"`
}

type UpsertOktaAppAssignmentsBulkByOktaAccountExternalIDsParams added in v0.4.9

type UpsertOktaAppAssignmentsBulkByOktaAccountExternalIDsParams struct {
	SeenInRunID            int64    `json:"seen_in_run_id"`
	OktaAccountExternalIds []string `json:"okta_account_external_ids"`
	OktaAppExternalIds     []string `json:"okta_app_external_ids"`
	Scopes                 []string `json:"scopes"`
	ProfileJsons           [][]byte `json:"profile_jsons"`
	RawJsons               [][]byte `json:"raw_jsons"`
}

type UpsertOktaAppGroupAssignmentsBulkByExternalIDsParams added in v0.2.0

type UpsertOktaAppGroupAssignmentsBulkByExternalIDsParams struct {
	SeenInRunID          int64    `json:"seen_in_run_id"`
	OktaAppExternalIds   []string `json:"okta_app_external_ids"`
	OktaGroupExternalIds []string `json:"okta_group_external_ids"`
	Priorities           []int32  `json:"priorities"`
	ProfileJsons         [][]byte `json:"profile_jsons"`
	RawJsons             [][]byte `json:"raw_jsons"`
}

type UpsertOktaAppsBulkParams added in v0.2.0

type UpsertOktaAppsBulkParams struct {
	SeenInRunID int64    `json:"seen_in_run_id"`
	ExternalIds []string `json:"external_ids"`
	Labels      []string `json:"labels"`
	Names       []string `json:"names"`
	Statuses    []string `json:"statuses"`
	SignOnModes []string `json:"sign_on_modes"`
	RawJsons    [][]byte `json:"raw_jsons"`
}

type UpsertOktaGroupMembershipsBulkByOktaAccountExternalIDsParams added in v0.4.9

type UpsertOktaGroupMembershipsBulkByOktaAccountExternalIDsParams struct {
	SeenInRunID            int64    `json:"seen_in_run_id"`
	OktaAccountExternalIds []string `json:"okta_account_external_ids"`
	OktaGroupExternalIds   []string `json:"okta_group_external_ids"`
}

type UpsertOktaGroupsBulkParams added in v0.2.0

type UpsertOktaGroupsBulkParams struct {
	SeenInRunID int64    `json:"seen_in_run_id"`
	ExternalIds []string `json:"external_ids"`
	Names       []string `json:"names"`
	Types       []string `json:"types"`
	RawJsons    [][]byte `json:"raw_jsons"`
}

type UpsertRuleAttestationParams

type UpsertRuleAttestationParams struct {
	RuleID     int64              `json:"rule_id"`
	ScopeKind  string             `json:"scope_kind"`
	SourceKind string             `json:"source_kind"`
	SourceName string             `json:"source_name"`
	Status     string             `json:"status"`
	Notes      string             `json:"notes"`
	ExpiresAt  pgtype.Timestamptz `json:"expires_at"`
}

type UpsertRuleOverrideParams

type UpsertRuleOverrideParams struct {
	RuleID     int64  `json:"rule_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Params     []byte `json:"params"`
	Enabled    bool   `json:"enabled"`
}

type UpsertRuleParams

type UpsertRuleParams struct {
	RulesetID        int64  `json:"ruleset_id"`
	Key              string `json:"key"`
	Title            string `json:"title"`
	Summary          string `json:"summary"`
	Category         string `json:"category"`
	Severity         string `json:"severity"`
	MonitoringStatus string `json:"monitoring_status"`
	MonitoringReason string `json:"monitoring_reason"`
	RequiredData     []byte `json:"required_data"`
	ExpectedParams   []byte `json:"expected_params"`
	RuleVersion      string `json:"rule_version"`
	IsActive         bool   `json:"is_active"`
	DefinitionJson   []byte `json:"definition_json"`
}

type UpsertRuleResultCurrentParams

type UpsertRuleResultCurrentParams struct {
	RuleID              int64              `json:"rule_id"`
	ScopeKind           string             `json:"scope_kind"`
	SourceKind          string             `json:"source_kind"`
	SourceName          string             `json:"source_name"`
	Status              string             `json:"status"`
	EvaluatedAt         pgtype.Timestamptz `json:"evaluated_at"`
	SyncRunID           pgtype.Int8        `json:"sync_run_id"`
	EvidenceSummary     string             `json:"evidence_summary"`
	EvidenceJson        []byte             `json:"evidence_json"`
	AffectedResourceIds []string           `json:"affected_resource_ids"`
	ErrorKind           string             `json:"error_kind"`
}

type UpsertRulesetOverrideParams

type UpsertRulesetOverrideParams struct {
	RulesetID  int64  `json:"ruleset_id"`
	ScopeKind  string `json:"scope_kind"`
	SourceKind string `json:"source_kind"`
	SourceName string `json:"source_name"`
	Enabled    bool   `json:"enabled"`
}

type UpsertRulesetParams

type UpsertRulesetParams struct {
	Key            string      `json:"key"`
	Name           string      `json:"name"`
	Description    string      `json:"description"`
	Source         string      `json:"source"`
	SourceVersion  string      `json:"source_version"`
	SourceDate     pgtype.Date `json:"source_date"`
	ScopeKind      string      `json:"scope_kind"`
	ConnectorKind  pgtype.Text `json:"connector_kind"`
	Status         string      `json:"status"`
	DefinitionHash string      `json:"definition_hash"`
	DefinitionJson []byte      `json:"definition_json"`
}

type UpsertSaaSAppBindingParams added in v0.4.0

type UpsertSaaSAppBindingParams struct {
	SaasAppID           int64       `json:"saas_app_id"`
	ConnectorKind       string      `json:"connector_kind"`
	ConnectorSourceName string      `json:"connector_source_name"`
	BindingSource       string      `json:"binding_source"`
	Confidence          float32     `json:"confidence"`
	IsPrimary           bool        `json:"is_primary"`
	CreatedByAuthUserID pgtype.Int8 `json:"created_by_auth_user_id"`
}

type UpsertSaaSAppEventsBulkBySourceParams added in v0.4.0

type UpsertSaaSAppEventsBulkBySourceParams struct {
	SeenInRunID       int64                `json:"seen_in_run_id"`
	SourceKind        string               `json:"source_kind"`
	SourceName        string               `json:"source_name"`
	CanonicalKeys     []string             `json:"canonical_keys"`
	SignalKinds       []string             `json:"signal_kinds"`
	EventExternalIds  []string             `json:"event_external_ids"`
	SourceAppIds      []string             `json:"source_app_ids"`
	SourceAppNames    []string             `json:"source_app_names"`
	SourceAppDomains  []string             `json:"source_app_domains"`
	ActorExternalIds  []string             `json:"actor_external_ids"`
	ActorEmails       []string             `json:"actor_emails"`
	ActorDisplayNames []string             `json:"actor_display_names"`
	ObservedAts       []pgtype.Timestamptz `json:"observed_ats"`
	ScopesJsons       [][]byte             `json:"scopes_jsons"`
	RawJsons          [][]byte             `json:"raw_jsons"`
}

type UpsertSaaSAppReviewGovernanceParams added in v0.4.11

type UpsertSaaSAppReviewGovernanceParams struct {
	SaasAppID             int64       `json:"saas_app_id"`
	ReviewDisposition     string      `json:"review_disposition"`
	OwnerIdentityID       pgtype.Int8 `json:"owner_identity_id"`
	TicketRef             string      `json:"ticket_ref"`
	Notes                 string      `json:"notes"`
	ReviewOwnerIdentityID pgtype.Int8 `json:"review_owner_identity_id"`
	FollowUpDueDate       pgtype.Date `json:"follow_up_due_date"`
	ReplacementSaasAppID  pgtype.Int8 `json:"replacement_saas_app_id"`
	UpdatedByAuthUserID   pgtype.Int8 `json:"updated_by_auth_user_id"`
}

type UpsertSaaSAppSourcesBulkBySourceParams added in v0.4.0

type UpsertSaaSAppSourcesBulkBySourceParams struct {
	SeenInRunID      int64                `json:"seen_in_run_id"`
	SourceKind       string               `json:"source_kind"`
	SourceName       string               `json:"source_name"`
	CanonicalKeys    []string             `json:"canonical_keys"`
	SourceAppIds     []string             `json:"source_app_ids"`
	SourceAppNames   []string             `json:"source_app_names"`
	SourceAppDomains []string             `json:"source_app_domains"`
	SeenAts          []pgtype.Timestamptz `json:"seen_ats"`
}

type UpsertSaaSAppsBulkParams added in v0.4.0

type UpsertSaaSAppsBulkParams struct {
	CanonicalKeys  []string             `json:"canonical_keys"`
	DisplayNames   []string             `json:"display_names"`
	PrimaryDomains []string             `json:"primary_domains"`
	VendorNames    []string             `json:"vendor_names"`
	FirstSeenAts   []pgtype.Timestamptz `json:"first_seen_ats"`
	LastSeenAts    []pgtype.Timestamptz `json:"last_seen_ats"`
}

type UpsertSourceAccountsBulkBySourceParams added in v0.4.9

type UpsertSourceAccountsBulkBySourceParams struct {
	SourceKind       string               `json:"source_kind"`
	SourceName       string               `json:"source_name"`
	SeenInRunID      int64                `json:"seen_in_run_id"`
	ExternalIds      []string             `json:"external_ids"`
	Emails           []string             `json:"emails"`
	DisplayNames     []string             `json:"display_names"`
	AccountKinds     []string             `json:"account_kinds"`
	EntityCategories []string             `json:"entity_categories"`
	RawJsons         [][]byte             `json:"raw_jsons"`
	LastLoginAts     []pgtype.Timestamptz `json:"last_login_ats"`
	LastLoginIps     []string             `json:"last_login_ips"`
	LastLoginRegions []string             `json:"last_login_regions"`
}

Jump to

Keyboard shortcuts

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