Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(desktop): regenerate the typed api client (#114455)

Thomas Obermüllerfde8470c75ea
diff --git a/products/desktop/packages/api-client/src/generated.ts b/products/desktop/packages/api-client/src/generated.ts
index ff9fe75546de..a72649f0a164 100644
--- a/products/desktop/packages/api-client/src/generated.ts
+++ b/products/desktop/packages/api-client/src/generated.ts
@@ -78,6 +78,11 @@ export namespace Schemas {
)
| undefined;
};
+ /**
+ * * `custom_property` - Custom property
+ * * `relationship` - Relationship
+ */
+ export type AccountPropertyPinKindEnum = "custom_property" | "relationship";
export type BounceRatePageViewMode =
| "count_pageviews"
| "uniq_urls"
@@ -208,6 +213,7 @@ export namespace Schemas {
optimizeJoinedFilters: boolean | null;
optimizeProjections: boolean | null;
parserMode: ParserMode | null;
+ personIdPushdown: boolean | null;
personsArgMaxVersion: PersonsArgMaxVersion | null;
personsJoinMode: PersonsJoinMode | null;
personsOnEventsMode: PersonsOnEventsMode | null;
@@ -221,6 +227,7 @@ export namespace Schemas {
timings: boolean | null;
typeAwareCastSimplification: boolean | null;
useMaterializedViews: boolean | null;
+ useNewEventsSchema: boolean | null;
usePreaggregatedIntermediateResults: boolean | null;
usePreaggregatedTableTransforms: boolean | null;
useWebAnalyticsPreAggregatedTables: boolean | null;
@@ -535,6 +542,17 @@ export namespace Schemas {
definitionId: string;
kind?: string | undefined;
};
+ export type AccountsTableRelationshipOperator =
+ | "exact"
+ | "is_not"
+ | "is_set"
+ | "is_not_set";
+ export type AccountsTableRelationshipFilter = {
+ definitionId: string;
+ kind?: string | undefined;
+ operator: AccountsTableRelationshipOperator;
+ userIds?: (Array<number> | null) | undefined;
+ };
export type AccountsTableSearchFilter = {
kind?: string | undefined;
query: string;
@@ -547,17 +565,6 @@ export namespace Schemas {
tagNames: Array<string>;
};
export type AccountsTableUnassignedFilter = Partial<{ kind: string }>;
- export type AccountsTableRelationshipOperator =
- | "exact"
- | "is_not"
- | "is_set"
- | "is_not_set";
- export type AccountsTableRelationshipFilter = {
- definitionId: string;
- kind?: string | undefined;
- operator: AccountsTableRelationshipOperator;
- userIds?: (Array<number> | null) | undefined;
- };
export type AccountsTableRow = {
/**
* Requested direct Account fields, keyed by their typed field reference.
@@ -635,6 +642,15 @@ export namespace Schemas {
| AccountsTableCustomPropertyColumn
| AccountsTableCustomPropertyHistoryColumn
>;
+ filterGroups?:
+ | (Array<
+ Array<
+ | AccountsTableAccountFieldFilter
+ | AccountsTableRelationshipFilter
+ | AccountsTableCustomPropertyFilter
+ >
+ > | null)
+ | undefined;
filters?:
| (Array<
| AccountsTableSearchFilter
@@ -677,7 +693,13 @@ export namespace Schemas {
event?: (string | null) | undefined;
properties?: (Array<ActionStepPropertyFilter> | null) | undefined;
selector?: (string | null) | undefined;
+ /**
+ * Compiled regex the selector matches against the event elements chain. Null when no selector is set.
+ */
selector_regex: string | null;
+ /**
+ * Set when the selector compiles to a matcher that cannot match any event. Null when the selector is valid or absent.
+ */
selector_warning: string | null;
tag_name?: (string | null) | undefined;
text?: (string | null) | undefined;
@@ -1737,6 +1759,7 @@ export namespace Schemas {
| "person"
| "event"
| "event_metadata"
+ | "element"
| "group"
| "session"
| "hogql"
@@ -1747,6 +1770,7 @@ export namespace Schemas {
| "person"
| "event"
| "event_metadata"
+ | "element"
| "group"
| "session"
| "hogql"
@@ -2143,6 +2167,7 @@ export namespace Schemas {
| "Metric"
| "ActionsPie"
| "ActionsDonut"
+ | "ActionsProportionBar"
| "ActionsBarValue"
| "ActionsTable"
| "WorldMap"
@@ -4197,6 +4222,7 @@ export namespace Schemas {
};
export type HogQLFilters = Partial<{
breakdownFilter: BreakdownFilter | null;
+ compareFilter: CompareFilter | null;
dateRange: DateRange | null;
filterTestAccounts: boolean | null;
interval: IntervalType | null;
@@ -4233,6 +4259,24 @@ export namespace Schemas {
message: string;
start?: (number | null) | undefined;
};
+ export type PredicateFixAction =
+ | "edit_query"
+ | "edit_property_type"
+ | "materialize";
+ export type PredicateQuickfix = {
+ /**
+ * Character offset in the query where the replaced range ends.
+ */
+ end: number;
+ /**
+ * Character offset in the query where the replaced range starts.
+ */
+ start: number;
+ /**
+ * Replacement text, substituted for the range verbatim.
+ */
+ text: string;
+ };
export type PredicateScope = "event" | "person" | "group" | "unknown";
export type PredicateIndexVerdict =
| "indexed"
@@ -4241,9 +4285,11 @@ export namespace Schemas {
| "unindexed_json"
| "operator_not_indexable";
export type PredicateIndexUsage = {
+ ai_fix_prompt?: (string | null) | undefined;
column_name?: (string | null) | undefined;
end?: (number | null) | undefined;
fix?: (string | null) | undefined;
+ fix_action?: (PredicateFixAction | null) | undefined;
message: string;
/**
* HogQL comparison operator, e.g. `==`, `in`, `ilike`.
@@ -4254,6 +4300,7 @@ export namespace Schemas {
*/
physical_type: string;
property_name: string;
+ quickfix?: (PredicateQuickfix | null) | undefined;
scope: PredicateScope;
/**
* Type the property definition declares.
@@ -4271,6 +4318,16 @@ export namespace Schemas {
verdict: PredicateIndexVerdict;
};
export type QueryIndexUsage = "undecisive" | "no" | "partial" | "yes";
+ export type HogQLMetadataColumn = {
+ /**
+ * Output column name, in the same order as the SELECT list.
+ */
+ name: string;
+ /**
+ * Inferred runtime type, including nullability. Unknown means inference could not determine the type; execution remains authoritative.
+ */
+ type: string;
+ };
export type HogQLMetadataResponse = {
ch_table_names?: (Array<string> | null) | undefined;
errors: Array<HogQLNotice>;
@@ -4278,6 +4335,7 @@ export namespace Schemas {
isUsingIndices?: (QueryIndexUsage | null) | undefined;
isValid?: (boolean | null) | undefined;
notices: Array<HogQLNotice>;
+ output_columns?: (Array<HogQLMetadataColumn> | null) | undefined;
query?: (string | null) | undefined;
table_names?: (Array<string> | null) | undefined;
warnings: Array<HogQLNotice>;
@@ -4519,6 +4577,308 @@ export namespace Schemas {
| "use_posthog_code"
| "use_posthog_mcp"
| "use_posthog_in_slack";
+ export type BIAggregation =
+ | "count"
+ | "count_distinct"
+ | "sum"
+ | "average"
+ | "minimum"
+ | "maximum"
+ | "custom";
+ export type BICategoryGroup = { name: string; values: Array<string> };
+ export type Operator1 = "AND" | "OR";
+ export type BIConditionGroup = {
+ filters: Array<string>;
+ groups: Array<BIConditionGroup>;
+ operator: Operator1;
+ };
+ export type BIDateBucket =
+ | "minute"
+ | "hour"
+ | "day"
+ | "week"
+ | "month"
+ | "quarter"
+ | "year";
+ export type BILocalFieldDefinition1 = {
+ expression: string;
+ groups: Array<BICategoryGroup>;
+ kind?: string | undefined;
+ other: string;
+ };
+ export type BILocalFieldDefinition2 = {
+ expression: string;
+ kind?: string | undefined;
+ origin: number;
+ width: number;
+ };
+ export type BIDataSource = {
+ connectionId?: (string | null) | undefined;
+ table: string;
+ };
+ export type DatabaseSerializedFieldType =
+ | "integer"
+ | "float"
+ | "decimal"
+ | "string"
+ | "datetime"
+ | "date"
+ | "boolean"
+ | "array"
+ | "json"
+ | "lazy_table"
+ | "virtual_table"
+ | "field_traverser"
+ | "expression"
+ | "view"
+ | "materialized_view"
+ | "unknown";
+ export type BIField = {
+ dateBucket?: (BIDateBucket | null) | undefined;
+ expression: string;
+ id: string;
+ localDefinition?:
+ | (BILocalFieldDefinition1 | BILocalFieldDefinition2 | null)
+ | undefined;
+ name: string;
+ source: BIDataSource;
+ type: DatabaseSerializedFieldType;
+ };
+ export type ComparisonPeriod = "previous" | null;
+ export type BIFilterOperator =
+ | "equals"
+ | "not_equals"
+ | "contains"
+ | "in"
+ | "not_in"
+ | "between"
+ | "greater_than"
+ | "less_than"
+ | "last_7_days"
+ | "is_set"
+ | "is_not_set"
+ | "custom";
+ export type BIFilter = {
+ customExpression?: (string | null) | undefined;
+ enabled?: (boolean | null) | undefined;
+ field: BIField;
+ operator: BIFilterOperator;
+ value: string;
+ valueTo?: (string | null) | undefined;
+ values?: (Array<string> | null) | undefined;
+ };
+ export type BIQueryLimit = 100 | 1000 | 10000 | 50000;
+ export type MissingDates = "gap" | "zero";
+ export type Operator2 =
+ | "equals"
+ | "not_equals"
+ | "greater_than"
+ | "less_than"
+ | "greater_than_or_equal"
+ | "less_than_or_equal"
+ | "between"
+ | "is_set"
+ | "is_not_set";
+ export type BIResultFilter = {
+ enabled?: (boolean | null) | undefined;
+ id: string;
+ measureIndex: number;
+ operator: Operator2;
+ value: string;
+ valueTo?: (string | null) | undefined;
+ };
+ export type BISortDirection = "asc" | "desc";
+ export type BISort = { direction: BISortDirection; key: string };
+ export type BITopN = {
+ count: number;
+ fieldId: string;
+ includeOther: boolean;
+ measureIndex: number;
+ };
+ export type BITotals = Partial<{
+ columns: boolean | null;
+ rows: boolean | null;
+ subtotals: boolean | null;
+ }>;
+ export type DisplayType = "auto" | "line" | "bar" | "area";
+ export type YAxisPosition = "left" | "right";
+ export type ChartSettingsDisplay = Partial<{
+ color: string | null;
+ displayType: DisplayType | null;
+ label: string | null;
+ trendLine: boolean | null;
+ yAxisPosition: YAxisPosition | null;
+ }>;
+ export type Style = "none" | "number" | "short" | "percent";
+ export type ChartSettingsFormatting = Partial<{
+ decimalPlaces: number | null;
+ prefix: string | null;
+ style: Style | null;
+ suffix: string | null;
+ }>;
+ export type BITableCalculationType =
+ | "percent_of_total"
+ | "running_total"
+ | "difference"
+ | "percent_change"
+ | "moving_average"
+ | "rank";
+ export type BITableCalculation = {
+ computeUsing?: (string | null) | undefined;
+ requireFullWindow?: (boolean | null) | undefined;
+ type: BITableCalculationType;
+ window?: (number | null) | undefined;
+ };
+ export type BIValue = {
+ aggregation: BIAggregation;
+ customExpression?: (string | null) | undefined;
+ display?: (ChartSettingsDisplay | null) | undefined;
+ field: BIField;
+ formatting?: (ChartSettingsFormatting | null) | undefined;
+ label?: (string | null) | undefined;
+ tableCalculation?: (BITableCalculation | null) | undefined;
+ };
+ export type BIConfig = {
+ chartType: ChartDisplayType;
+ columns: Array<BIField>;
+ compareFilter?: (CompareFilter | null) | undefined;
+ comparisonPeriod?: (ComparisonPeriod | null) | undefined;
+ dateField?: (BIField | null) | undefined;
+ dateRange?: (DateRange | null) | undefined;
+ filters: Array<BIFilter>;
+ limit: BIQueryLimit;
+ localFields?: (Array<BIField> | null) | undefined;
+ missingDates?: (MissingDates | null) | undefined;
+ resultFilterGroup?: (BIConditionGroup | null) | undefined;
+ resultFilters?: (Array<BIResultFilter> | null) | undefined;
+ rowFilterGroup?: (BIConditionGroup | null) | undefined;
+ rows: Array<BIField>;
+ sort?: (BISort | null) | undefined;
+ source?: (BIDataSource | null) | undefined;
+ topN?: (BITopN | null) | undefined;
+ totals?: (BITotals | null) | undefined;
+ values: Array<BIValue>;
+ };
+ export type BoxPlotSettings = Partial<{
+ excludeOutliers: boolean | null;
+ maxColumn: string | null;
+ meanColumn: string | null;
+ medianColumn: string | null;
+ minColumn: string | null;
+ p25Column: string | null;
+ p75Column: string | null;
+ seriesColumn: string | null;
+ xAxisColumn: string | null;
+ }>;
+ export type HeatmapGradientStop = { color: string; value: number };
+ export type GradientScaleMode = "absolute" | "relative";
+ export type HeatmapSortOrder = "asc" | "desc";
+ export type HeatmapSettings = Partial<{
+ gradient: Array<HeatmapGradientStop> | null;
+ gradientPreset: string | null;
+ gradientScaleMode: GradientScaleMode | null;
+ nullLabel: string | null;
+ nullValue: string | null;
+ sortColumn: string | null;
+ sortOrder: HeatmapSortOrder | null;
+ valueColumn: string | null;
+ xAxisColumn: string | null;
+ xAxisLabel: string | null;
+ yAxisColumn: string | null;
+ yAxisLabel: string | null;
+ }>;
+ export type Scale = "linear" | "logarithmic";
+ export type YAxisSettings = Partial<{
+ label: string | null;
+ scale: Scale | null;
+ showGridLines: boolean | null;
+ showTicks: boolean | null;
+ startAtZero: boolean | null;
+ }>;
+ export type Summary = "total" | "average" | "latest";
+ export type MetricChartSettings = Partial<{
+ changeDecreaseColor: string | null;
+ changeIncreaseColor: string | null;
+ colorByDirection: boolean | null;
+ lineDecreaseColor: string | null;
+ lineIncreaseColor: string | null;
+ showChange: boolean | null;
+ summary: Summary | null;
+ }>;
+ export type SliceContent = "labels" | "values" | "none";
+ export type ValueDisplay = "absolute" | "percentage";
+ export type PieChartSettings = Partial<{
+ showTotal: boolean | null;
+ sliceContent: SliceContent | null;
+ valueDisplay: ValueDisplay | null;
+ }>;
+ export type XScale = "linear" | "logarithmic";
+ export type ScatterChartSettings = Partial<{
+ showBestFit: boolean | null;
+ xScale: XScale | null;
+ xStartAtZero: boolean | null;
+ }>;
+ export type Settings = Partial<{
+ display: ChartSettingsDisplay | null;
+ formatting: ChartSettingsFormatting | null;
+ }>;
+ export type ChartAxis = {
+ column: string;
+ settings?: (Settings | null) | undefined;
+ };
+ export type ChartSettings = Partial<{
+ boxPlot: BoxPlotSettings | null;
+ chartStyle: ChartStyle | null;
+ goalLines: Array<GoalLine> | null;
+ heatmap: HeatmapSettings | null;
+ leftYAxisSettings: YAxisSettings | null;
+ legendPosition: LegendPosition | null;
+ metric: MetricChartSettings | null;
+ pie: PieChartSettings | null;
+ resultCustomizations: Record<string, ResultCustomizationByValue> | null;
+ rightYAxisSettings: YAxisSettings | null;
+ scatter: ScatterChartSettings | null;
+ seriesBreakdownColumn: string | null;
+ showAnnotations: boolean | null;
+ showLegend: boolean | null;
+ showNullsAsZero: boolean | null;
+ showPieTotal: boolean | null;
+ showTotalRow: boolean | null;
+ showValuesOnSeries: boolean | null;
+ showXAxisBorder: boolean | null;
+ showXAxisTicks: boolean | null;
+ showYAxisBorder: boolean | null;
+ stackBars100: boolean | null;
+ xAxis: ChartAxis | null;
+ xAxisLabel: string | null;
+ yAxis: Array<ChartAxis> | null;
+ yAxisAtZero: boolean | null;
+ }>;
+ export type ColorMode = "light" | "dark";
+ export type ConditionalFormattingRule = {
+ bytecode: Array<unknown>;
+ color: string;
+ colorMode?: (ColorMode | null) | undefined;
+ columnName: string;
+ id: string;
+ input: string;
+ templateId: string;
+ };
+ export type TableSettings = Partial<{
+ columns: Array<ChartAxis> | null;
+ conditionalFormatting: Array<ConditionalFormattingRule> | null;
+ pinnedColumns: Array<string> | null;
+ transpose: boolean | null;
+ }>;
+ export type BIVisualizationNode = {
+ chartSettings?: (ChartSettings | null) | undefined;
+ config: BIConfig;
+ display?: (ChartDisplayType | null) | undefined;
+ kind?: string | undefined;
+ source: HogQLQuery;
+ tableSettings?: (TableSettings | null) | undefined;
+ version?: (number | null) | undefined;
+ };
/**
* * `AED` - AED
* * `AFN` - AFN
@@ -4869,17 +5229,6 @@ export namespace Schemas {
*/
multiple_variant_percentage: number;
};
- export type BoxPlotSettings = Partial<{
- excludeOutliers: boolean | null;
- maxColumn: string | null;
- meanColumn: string | null;
- medianColumn: string | null;
- minColumn: string | null;
- p25Column: string | null;
- p75Column: string | null;
- seriesColumn: string | null;
- xAxisColumn: string | null;
- }>;
/**
* * `auto` - auto
* * `manual` - manual
@@ -4948,115 +5297,15 @@ export namespace Schemas {
* * `github` - GitHub
*/
export type ChannelEnum = "widget" | "email" | "slack" | "teams" | "github";
- export type DisplayType = "auto" | "line" | "bar" | "area";
- export type YAxisPosition = "left" | "right";
- export type ChartSettingsDisplay = Partial<{
- color: string | null;
- displayType: DisplayType | null;
- label: string | null;
- trendLine: boolean | null;
- yAxisPosition: YAxisPosition | null;
- }>;
- export type Style = "none" | "number" | "short" | "percent";
- export type ChartSettingsFormatting = Partial<{
- decimalPlaces: number | null;
- prefix: string | null;
- style: Style | null;
- suffix: string | null;
- }>;
- export type Settings = Partial<{
- display: ChartSettingsDisplay | null;
- formatting: ChartSettingsFormatting | null;
- }>;
- export type ChartAxis = {
- column: string;
- settings?: (Settings | null) | undefined;
- };
- export type HeatmapGradientStop = { color: string; value: number };
- export type GradientScaleMode = "absolute" | "relative";
- export type HeatmapSortOrder = "asc" | "desc";
- export type HeatmapSettings = Partial<{
- gradient: Array<HeatmapGradientStop> | null;
- gradientPreset: string | null;
- gradientScaleMode: GradientScaleMode | null;
- nullLabel: string | null;
- nullValue: string | null;
- sortColumn: string | null;
- sortOrder: HeatmapSortOrder | null;
- valueColumn: string | null;
- xAxisColumn: string | null;
- xAxisLabel: string | null;
- yAxisColumn: string | null;
- yAxisLabel: string | null;
- }>;
- export type Scale = "linear" | "logarithmic";
- export type YAxisSettings = Partial<{
- label: string | null;
- scale: Scale | null;
- showGridLines: boolean | null;
- showTicks: boolean | null;
- startAtZero: boolean | null;
- }>;
- export type Summary = "total" | "average" | "latest";
- export type MetricChartSettings = Partial<{
- changeDecreaseColor: string | null;
- changeIncreaseColor: string | null;
- colorByDirection: boolean | null;
- lineDecreaseColor: string | null;
- lineIncreaseColor: string | null;
- showChange: boolean | null;
- summary: Summary | null;
- }>;
- export type SliceContent = "labels" | "values" | "none";
- export type ValueDisplay = "absolute" | "percentage";
- export type PieChartSettings = Partial<{
- showTotal: boolean | null;
- sliceContent: SliceContent | null;
- valueDisplay: ValueDisplay | null;
- }>;
- export type XScale = "linear" | "logarithmic";
- export type ScatterChartSettings = Partial<{
- showBestFit: boolean | null;
- xScale: XScale | null;
- xStartAtZero: boolean | null;
- }>;
- export type ChartSettings = Partial<{
- boxPlot: BoxPlotSettings | null;
- chartStyle: ChartStyle | null;
- goalLines: Array<GoalLine> | null;
- heatmap: HeatmapSettings | null;
- leftYAxisSettings: YAxisSettings | null;
- legendPosition: LegendPosition | null;
- metric: MetricChartSettings | null;
- pie: PieChartSettings | null;
- resultCustomizations: Record<string, ResultCustomizationByValue> | null;
- rightYAxisSettings: YAxisSettings | null;
- scatter: ScatterChartSettings | null;
- seriesBreakdownColumn: string | null;
- showAnnotations: boolean | null;
- showLegend: boolean | null;
- showNullsAsZero: boolean | null;
- showPieTotal: boolean | null;
- showTotalRow: boolean | null;
- showValuesOnSeries: boolean | null;
- showXAxisBorder: boolean | null;
- showXAxisTicks: boolean | null;
- showYAxisBorder: boolean | null;
- stackBars100: boolean | null;
- xAxis: ChartAxis | null;
- xAxisLabel: string | null;
- yAxis: Array<ChartAxis> | null;
- yAxisAtZero: boolean | null;
- }>;
- /**
- * * `posthog-gateway` - posthog-gateway
- * * `own-subscription` - own-subscription
- */
- export type ClaudeModelAccessEnum = "posthog-gateway" | "own-subscription";
/**
* * `claude` - claude
*/
export type ClaudeRuntimeAdapterEnum = "claude";
+ /**
+ * * `posthog-gateway` - posthog-gateway
+ * * `own-subscription` - own-subscription
+ */
+ export type ModelAccessEnum = "posthog-gateway" | "own-subscription";
/**
* * `interactive` - interactive
* * `background` - background
@@ -5129,7 +5378,15 @@ export namespace Schemas {
/**
* Request body for creating a new task run
*/
- claude_model_access?: (ClaudeModelAccessEnum | NullEnum) | undefined;
+ claude_model_access?: (ModelAccessEnum | NullEnum) | undefined;
+ /**
+ * Request body for creating a new task run
+ */
+ codex_model_access?: (ModelAccessEnum | NullEnum) | undefined;
+ /**
+ * Request body for creating a new task run
+ */
+ scheduled_at?: (string | null) | undefined;
/**
* Request body for creating a new task run
*/
@@ -5243,7 +5500,15 @@ export namespace Schemas {
/**
* Request body for creating a new task run
*/
- claude_model_access?: (ClaudeModelAccessEnum | NullEnum) | undefined;
+ claude_model_access?: (ModelAccessEnum | NullEnum) | undefined;
+ /**
+ * Request body for creating a new task run
+ */
+ codex_model_access?: (ModelAccessEnum | NullEnum) | undefined;
+ /**
+ * Request body for creating a new task run
+ */
+ scheduled_at?: (string | null) | undefined;
/**
* Request body for creating a new task run
*/
@@ -5538,7 +5803,6 @@ export namespace Schemas {
_create_in_folder?: string | undefined;
_create_static_person_ids?: Array<string> | undefined;
};
- export type ColorMode = "light" | "dark";
export type CommentSlackThreadRef = {
/**
* Slack channel ID this discussion is mirrored to.
@@ -5601,15 +5865,6 @@ export namespace Schemas {
| "inconclusive"
| "stopped_early"
| "invalid";
- export type ConditionalFormattingRule = {
- bytecode: Array<unknown>;
- color: string;
- colorMode?: (ColorMode | null) | undefined;
- columnName: string;
- id: string;
- input: string;
- templateId: string;
- };
export type ConversionGoalFilter1 = {
conversion_goal_id: string;
conversion_goal_name: string;
@@ -5960,10 +6215,7 @@ export namespace Schemas {
pinned?: boolean | undefined;
created_at: string;
created_by: UserBasic & unknown;
- /**
- * Serializer mixin that handles tags for objects.
- */
- last_accessed_at?: (string | null) | undefined;
+ last_accessed_at: string | null;
last_viewed_at: string | null;
/**
* Path of the project-tree folder this dashboard is filed under in the file system, e.g. 'Unfiled/Dashboards'. An empty string means the project root; null means the dashboard has no file system entry. The dashboard's own name is not part of the path.
@@ -6049,6 +6301,14 @@ export namespace Schemas {
*/
_create_in_folder?: string | undefined;
};
+ export type MetricsFilterOp = "eq" | "neq" | "regex" | "not_regex";
+ export type MetricsAttributeScope = "resource" | "attribute" | "auto";
+ export type MetricsQueryFilter = {
+ key: string;
+ op: MetricsFilterOp;
+ scope?: (MetricsAttributeScope | null) | undefined;
+ value: string;
+ };
export type DashboardFilter = Partial<{
breakdown_filter: BreakdownFilter | null;
date_from: string | null;
@@ -6056,6 +6316,7 @@ export namespace Schemas {
explicitDate: boolean | null;
filterTestAccounts: boolean | null;
interval: IntervalType | null;
+ metricFilters: Array<MetricsQueryFilter> | null;
properties: Array<
| EventPropertyFilter
| PersonPropertyFilter
@@ -6122,23 +6383,31 @@ export namespace Schemas {
};
/**
* * `activity_events_list` - activity_events_list
+ * * `canvas_app` - canvas_app
* * `conversations_recent_tickets` - conversations_recent_tickets
* * `error_tracking_list` - error_tracking_list
* * `experiment_results` - experiment_results
* * `experiments_list` - experiments_list
* * `logs_list` - logs_list
+ * * `notebook_widget` - notebook_widget
* * `session_replay_list` - session_replay_list
* * `survey_results` - survey_results
*/
export type DashboardPatchWidgetOpenApiWidgetTypeEnum =
| "activity_events_list"
+ | "canvas_app"
| "conversations_recent_tickets"
| "error_tracking_list"
| "experiment_results"
| "experiments_list"
| "logs_list"
+ | "notebook_widget"
| "session_replay_list"
| "survey_results";
+ export type NotebookWidgetConfig = Partial<{
+ notebookShortId: string | null;
+ snapshotId: string | null;
+ }>;
export type WidgetDateRange = Partial<{
date_from:
| (
@@ -6267,7 +6536,9 @@ export namespace Schemas {
search: string;
savedViewId: string | null;
}>;
+ export type CanvasAppWidgetConfig = Partial<{ canvasId: string | null }>;
export type DashboardWidgetConfig =
+ | NotebookWidgetConfig
| ActivityEventsListWidgetConfig
| ErrorTrackingListWidgetConfig
| SessionReplayListWidgetConfig
@@ -6275,7 +6546,8 @@ export namespace Schemas {
| ExperimentResultsWidgetConfig
| SurveyResultsWidgetConfig
| LogsListWidgetConfig
- | ConversationsRecentTicketsWidgetConfig;
+ | ConversationsRecentTicketsWidgetConfig
+ | CanvasAppWidgetConfig;
export type DashboardPatchWidgetOpenApi = Partial<{
id: string;
widget_type: DashboardPatchWidgetOpenApiWidgetTypeEnum;
@@ -6286,6 +6558,7 @@ export namespace Schemas {
export type DashboardPatchTileOpenApi = Partial<{
id: number;
layouts: _DashboardPatchTileLayoutsOpenApi;
+ show_description: boolean;
widget: DashboardPatchWidgetOpenApi;
}>;
export type DashboardTileBasic = {
@@ -6293,6 +6566,111 @@ export namespace Schemas {
dashboard_id: number;
deleted?: (boolean | null) | undefined;
};
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ export type DashboardWriteOpenApi = {
+ id: number;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ name?: (string | null) | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ description?: string | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ pinned?: boolean | undefined;
+ created_at: string;
+ created_by: UserBasic & unknown;
+ last_accessed_at: string | null;
+ last_viewed_at: string | null;
+ /**
+ * Path of the project-tree folder this dashboard is filed under in the file system, e.g. 'Unfiled/Dashboards'. An empty string means the project root; null means the dashboard has no file system entry. The dashboard's own name is not part of the path.
+ */
+ folder: string | null;
+ /**
+ * Id of this dashboard's file system entry, or null when it has none. Together with `file_system_path` this is everything a caller needs to move the dashboard between folders, so a list page does not have to look the entry up separately.
+ */
+ file_system_id: string | null;
+ /**
+ * Full path of this dashboard's file system entry, e.g. 'Unfiled/Dashboards/Revenue'. Unlike `folder` this keeps the dashboard's own name as the last segment, which is what a move needs in order to compute the destination path. Null when it has no entry.
+ */
+ file_system_path: string | null;
+ is_shared: boolean;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ deleted?: boolean | undefined;
+ creation_mode: DashboardCreationModeEnum & unknown;
+ filters: Record<string, unknown>;
+ variables: Record<string, unknown> | null;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ breakdown_colors?: (Array<BreakdownColorConfig> | null) | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ data_color_theme_id?: (number | null) | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ tags?: Array<unknown> | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ restriction_level?: number | undefined;
+ effective_restriction_level: RestrictionLevelEnum & unknown;
+ effective_privilege_level: PrivilegeLevelEnum & unknown;
+ /**
+ * The effective access level the user has for this object
+ */
+ user_access_level: string | null;
+ access_control_version: string;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ last_refresh?: (string | null) | undefined;
+ persisted_filters: Record<string, unknown> | null;
+ persisted_variables: Record<string, unknown> | null;
+ team_id: number;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ quick_filter_ids?: (Array<string> | null) | undefined;
+ /**
+ * Dashboard display settings.
+ */
+ customization: DashboardCustomization & unknown;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ grid_spacing?: (TileSpacingEnum & unknown) | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ layout_compaction?: (LayoutCompactionEnum & unknown) | undefined;
+ tiles: Array<Record<string, unknown>> | null;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ use_template?: string | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ use_dashboard?: (number | null) | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ delete_insights?: boolean | undefined;
+ /**
+ * Serializer mixin that handles tags for objects.
+ */
+ _create_in_folder?: string | undefined;
+ };
export type DataTableNodeViewPropsContextType =
| "event_definition"
| "team_columns";
@@ -6652,12 +7030,14 @@ export namespace Schemas {
};
export type Response12 = {
columns?: (Array<unknown> | null) | undefined;
+ dataComputedAt?: (string | null) | undefined;
error?: (string | null) | undefined;
hasMore?: (boolean | null) | undefined;
hogql?: (string | null) | undefined;
limit?: (number | null) | undefined;
modifiers?: (HogQLQueryModifiers | null) | undefined;
offset?: (number | null) | undefined;
+ precomputeNotReady?: (boolean | null) | undefined;
query_status?: (QueryStatus | null) | undefined;
resolved_compare_date_range?:
| (ResolvedDateRangeResponse | null)
@@ -6677,9 +7057,11 @@ export namespace Schemas {
| undefined;
};
export type Response13 = {
+ dataComputedAt?: (string | null) | undefined;
error?: (string | null) | undefined;
hogql?: (string | null) | undefined;
modifiers?: (HogQLQueryModifiers | null) | undefined;
+ precomputeNotReady?: (boolean | null) | undefined;
query_status?: (QueryStatus | null) | undefined;
resolved_compare_date_range?:
| (ResolvedDateRangeResponse | null)
@@ -6750,12 +7132,14 @@ export namespace Schemas {
| "customerio-webhook"
| "customerio-track"
| "apns"
+ | "apple-ads"
| "postgresql"
| "aws-s3"
| "aws-redshift"
| "s3-compatible"
| "snowflake"
- | "youtube-analytics";
+ | "youtube-analytics"
+ | "twitter-ads";
export type ErrorTrackingExternalReferenceIntegration = {
display_name: string;
id: number;
@@ -7878,12 +8262,14 @@ export namespace Schemas {
export type MarketingAnalyticsOrderByEnum = "ASC" | "DESC";
export type MarketingAnalyticsTableQueryResponse = {
columns?: (Array<unknown> | null) | undefined;
+ dataComputedAt?: (string | null) | undefined;
error?: (string | null) | undefined;
hasMore?: (boolean | null) | undefined;
hogql?: (string | null) | undefined;
limit?: (number | null) | undefined;
modifiers?: (HogQLQueryModifiers | null) | undefined;
offset?: (number | null) | undefined;
+ precomputeNotReady?: (boolean | null) | undefined;
query_status?: (QueryStatus | null) | undefined;
resolved_compare_date_range?:
| (ResolvedDateRangeResponse | null)
@@ -7946,9 +8332,11 @@ export namespace Schemas {
version?: (number | null) | undefined;
};
export type MarketingAnalyticsAggregatedQueryResponse = {
+ dataComputedAt?: (string | null) | undefined;
error?: (string | null) | undefined;
hogql?: (string | null) | undefined;
modifiers?: (HogQLQueryModifiers | null) | undefined;
+ precomputeNotReady?: (boolean | null) | undefined;
query_status?: (QueryStatus | null) | undefined;
resolved_compare_date_range?:
| (ResolvedDateRangeResponse | null)
@@ -8501,12 +8889,6 @@ export namespace Schemas {
tags?: (QueryLogTags | null) | undefined;
version?: (number | null) | undefined;
};
- export type TableSettings = Partial<{
- columns: Array<ChartAxis> | null;
- conditionalFormatting: Array<ConditionalFormattingRule> | null;
- pinnedColumns: Array<string> | null;
- transpose: boolean | null;
- }>;
export type DataVisualizationNode = {
chartSettings?: (ChartSettings | null) | undefined;
display?: (ChartDisplayType | null) | undefined;
@@ -8658,6 +9040,7 @@ export namespace Schemas {
* * `provider_key_quota_exceeded` - Provider API key quota exceeded
* * `provider_key_rate_limited` - Provider API key is rate limited
* * `model_not_found` - Model not found
+ * * `model_not_supported` - Model does not support chat completions
* * `hog_error` - Hog evaluation code failed
*/
export type EvaluationStatusReasonEnum =
@@ -8669,6 +9052,7 @@ export namespace Schemas {
| "provider_key_quota_exceeded"
| "provider_key_rate_limited"
| "model_not_found"
+ | "model_not_supported"
| "hog_error";
/**
* * `llm_judge` - LLM as a judge
@@ -8678,9 +9062,15 @@ export namespace Schemas {
export type EvaluationTypeEnum = "llm_judge" | "hog" | "sentiment";
/**
* * `boolean` - Boolean (Pass/Fail)
+ * * `numeric` - Numeric
+ * * `categorical` - Categorical
* * `sentiment` - Sentiment
*/
- export type OutputTypeEnum = "boolean" | "sentiment";
+ export type OutputTypeEnum =
+ | "boolean"
+ | "numeric"
+ | "categorical"
+ | "sentiment";
/**
* A trigger condition set controlling which generations an evaluation runs on.
*/
@@ -8714,6 +9104,8 @@ export namespace Schemas {
* * `together_ai` - Together AI
* * `minimax` - MiniMax
* * `zeabur` - Zeabur AI Hub
+ * * `system_one` - System One
+ * * `openai_compatible` - OpenAI-compatible
*/
export type LLMProviderEnum =
| "openai"
@@ -8724,7 +9116,9 @@ export namespace Schemas {
| "azure_openai"
| "together_ai"
| "minimax"
- | "zeabur";
+ | "zeabur"
+ | "system_one"
+ | "openai_compatible";
/**
* Nested serializer for model configuration.
*/
@@ -8785,7 +9179,7 @@ export namespace Schemas {
}
| {
/**
- * Hog source code. Must return true or false, or null for N/A. Output settings determine which boolean counts as a failure.
+ * Hog source code. Return a boolean, finite number, or category keys matching output_type. Categorical single selection accepts one key or a one-item list; multiple selection accepts a list, including []. Return null only for allowed N/A. Output settings determine which boolean counts as a failure.
*/
source: string;
}
@@ -8798,9 +9192,11 @@ export namespace Schemas {
)
| undefined;
/**
- * Output format. Use 'boolean' for pass/fail evaluations and 'sentiment' for sentiment analysis.
+ * Output format: 'boolean', 'numeric' for a finite score, 'categorical' for category keys, or 'sentiment' for sentiment analysis.
*
* * `boolean` - Boolean (Pass/Fail)
+ * * `numeric` - Numeric
+ * * `categorical` - Categorical
* * `sentiment` - Sentiment
*/
output_type: OutputTypeEnum;
@@ -8814,9 +9210,59 @@ export namespace Schemas {
*/
allows_na: boolean;
/**
- * Whether a true result means the evaluation found a problem. False (the default) suits pass/fail evaluations, where a true result satisfied the criteria. Set it to true for detector-style evaluations, so a true result is counted and labeled as a fail.
+ * Boolean output only. Omit for numeric, categorical, and sentiment output. Whether a true result means the evaluation found a problem. False (the default) suits pass/fail evaluations, where a true result satisfied the criteria. Set it to true for detector-style evaluations, so a true result is counted and labeled as a fail.
*/
true_is_failure: boolean;
+ /**
+ * Inclusive minimum numeric score. Omit for no lower bound. Required for numeric decision models.
+ */
+ min: number | null;
+ /**
+ * Inclusive maximum numeric score. Omit for no upper bound. Required for numeric decision models and must exceed min.
+ */
+ max: number | null;
+ /**
+ * Optional positive input increment. Does not round evaluation results.
+ */
+ step: number | null;
+ /**
+ * Categorical output options. Keys identify stored results; labels are displayed to users.
+ */
+ options: Array<{
+ /**
+ * Stable category key.
+ */
+ key: string;
+ /**
+ * Category display label.
+ */
+ label: string;
+ }>;
+ /**
+ * Select one category or multiple categories. Multiple selection allows an empty result. Defaults to single.
+ */
+ selection_mode: "single" | "multiple";
+ /**
+ * Optional numeric or categorical passing rule. Null removes the rule; historical results use the current rule.
+ */
+ passing_rule:
+ | {
+ /**
+ * Pass at or above (gte), or at or below (lte), the threshold.
+ */
+ operator: "gte" | "lte";
+ /**
+ * Finite passing threshold within any configured score bounds.
+ */
+ threshold: number;
+ }
+ | {
+ /**
+ * Passing category keys. With keys selected, results must be non-empty and contain only these keys. If no passing keys are selected, only an empty result passes.
+ */
+ categories: Array<string>;
+ }
+ | null;
}>
| undefined;
/**
@@ -9255,25 +9701,40 @@ export namespace Schemas {
recommended_running_time: number | null;
recommended_sample_size: number | null;
}>;
+ export type ExperimentMetric =
+ | ExperimentMeanMetric
+ | ExperimentFunnelMetric
+ | ExperimentRatioMetric
+ | ExperimentRetentionMetric;
+ /**
+ * A shared metric's link to one experiment, as the experiment API returns it.
+ */
export type ExperimentToSavedMetric = {
id: number;
experiment: number;
saved_metric: number;
+ /**
+ * A shared metric's link to one experiment, as the experiment API returns it.
+ */
metadata?: unknown | undefined;
created_at: string;
query: unknown;
name: string;
+ /**
+ * The metric this experiment calculates for this shared metric: `query` with the per-experiment overrides from `metadata` applied (breakdowns, breakdown_limit, and funnel breakdown attribution). Results, fingerprints and queries for this metric use this definition, not `query`. Null when `query` is not an ExperimentMetric, such as a legacy shared metric (kind ExperimentTrendsQuery or ExperimentFunnelsQuery), which takes no overrides.
+ */
+ effective_query: ExperimentMetric | null;
};
/**
* * `web` - web
* * `product` - product
*/
export type ExperimentTypeEnum = "web" | "product";
- export type Kind1 = "ExperimentEventExposureConfig" | "ActionsNode";
+ export type Kind2 = "ExperimentEventExposureConfig" | "ActionsNode";
export type ExperimentApiExposureConfig = {
event?: (string | null) | undefined;
id?: (number | null) | undefined;
- kind?: (Kind1 | null) | undefined;
+ kind?: (Kind2 | null) | undefined;
/**
* Property filters (event, person, and other supported types). Pass an empty array if no filters needed.
*/
@@ -9310,13 +9771,46 @@ export namespace Schemas {
filterTestAccounts: boolean | null;
multiple_variant_handling: MultipleVariantHandling | null;
}>;
- export type Kind = "EventsNode" | "ActionsNode";
- export type ExperimentApiEventSource = {
- event?: (string | null) | undefined;
- id?: (number | null) | undefined;
- kind: Kind;
- math?: (ExperimentMetricMathType | null) | undefined;
- math_group_type_index?: (MathGroupTypeIndex | null) | undefined;
+ export type ExperimentApiBreakdownAttributionType =
+ | "first_touch"
+ | "last_touch"
+ | "step";
+ export type ExperimentApiPropertyBreakdownType =
+ | "event"
+ | "person"
+ | "session";
+ export type ExperimentApiPropertyBreakdown = {
+ /**
+ * Property name to break down by.
+ */
+ property: string;
+ type?: (ExperimentApiPropertyBreakdownType | null) | undefined;
+ };
+ export type GroupTypeIndex = 0 | 1 | 2 | 3 | 4;
+ export type ExperimentApiGroupBreakdown = {
+ /**
+ * Which group type the property belongs to.
+ */
+ group_type_index: GroupTypeIndex;
+ /**
+ * Property name to break down by.
+ */
+ property: string;
+ type?: string | undefined;
+ };
+ export type ExperimentApiBreakdownFilter = Partial<{
+ breakdown_limit: number | null;
+ breakdowns: Array<
+ ExperimentApiPropertyBreakdown | ExperimentApiGroupBreakdown
+ > | null;
+ }>;
+ export type Kind1 = "EventsNode" | "ActionsNode";
+ export type ExperimentApiEventSource = {
+ event?: (string | null) | undefined;
+ id?: (number | null) | undefined;
+ kind: Kind1;
+ math?: (ExperimentMetricMathType | null) | undefined;
+ math_group_type_index?: (MathGroupTypeIndex | null) | undefined;
math_hogql?: (string | null) | undefined;
math_property?: (string | null) | undefined;
properties?: (Array<EventPropertyFilter> | null) | undefined;
@@ -9326,14 +9820,14 @@ export namespace Schemas {
| "mean"
| "ratio"
| "retention";
- export type Kind2 = "EventsNode" | "ActionsNode" | "ExperimentExposureNode";
+ export type Kind3 = "EventsNode" | "ActionsNode" | "ExperimentExposureNode";
export type ExperimentApiRetentionStart = {
event?: (string | null) | undefined;
id?: (number | null) | undefined;
/**
* Pass 'ExperimentExposureNode' to start retention from the experiment's own exposure event; the other fields then stay unset.
*/
- kind: Kind2;
+ kind: Kind3;
math?: (ExperimentMetricMathType | null) | undefined;
math_group_type_index?: (MathGroupTypeIndex | null) | undefined;
math_hogql?: (string | null) | undefined;
@@ -9341,6 +9835,11 @@ export namespace Schemas {
properties?: (Array<EventPropertyFilter> | null) | undefined;
};
export type ExperimentApiMetric = {
+ breakdownAttributionType?:
+ | (ExperimentApiBreakdownAttributionType | null)
+ | undefined;
+ breakdownAttributionValue?: (number | null) | undefined;
+ breakdownFilter?: (ExperimentApiBreakdownFilter | null) | undefined;
completion_event?: (ExperimentApiEventSource | null) | undefined;
conversion_window?: (number | null) | undefined;
conversion_window_unit?:
@@ -9384,6 +9883,102 @@ export namespace Schemas {
| "paused"
| "exposure_frozen"
| "stopped";
+ /**
+ * * `flag_off_while_running` - Flag Off While Running
+ * * `variant_shipped_while_running` - Variant Shipped While Running
+ * * `flag_live_after_end` - Flag Live After End
+ * * `flag_live_before_launch` - Flag Live Before Launch
+ * * `bias_risk_multiple_excluded` - Bias Risk Multiple Excluded
+ * * `no_metric` - No Metric
+ * * `srm` - Sample Ratio Mismatch
+ * * `zero_exposures` - Zero Exposures
+ */
+ export type ExperimentHealthFindingCodeEnum =
+ | "flag_off_while_running"
+ | "variant_shipped_while_running"
+ | "flag_live_after_end"
+ | "flag_live_before_launch"
+ | "bias_risk_multiple_excluded"
+ | "no_metric"
+ | "srm"
+ | "zero_exposures";
+ /**
+ * * `critical` - Critical severity
+ * * `warning` - Warning severity
+ * * `info` - Info severity
+ */
+ export type ExperimentHealthFindingSeverityEnum =
+ | "critical"
+ | "warning"
+ | "info";
+ /**
+ * * `open_feature_flag` - Open Feature Flag
+ * * `adjust_distribution` - Adjust Distribution
+ * * `use_first_seen_variant` - Use First Seen Variant
+ * * `add_primary_metric` - Add Primary Metric
+ * * `add_secondary_metric` - Add Secondary Metric
+ * * `edit_exposure_criteria` - Edit Exposure Criteria
+ */
+ export type ExperimentHealthFindingActionKindEnum =
+ | "open_feature_flag"
+ | "adjust_distribution"
+ | "use_first_seen_variant"
+ | "add_primary_metric"
+ | "add_secondary_metric"
+ | "edit_exposure_criteria";
+ export type ExperimentHealthFinding = {
+ /**
+ * Stable identifier of the problem. Each code has one meaning across every surface that reports it.
+ *
+ * * `flag_off_while_running` - Flag Off While Running
+ * * `variant_shipped_while_running` - Variant Shipped While Running
+ * * `flag_live_after_end` - Flag Live After End
+ * * `flag_live_before_launch` - Flag Live Before Launch
+ * * `bias_risk_multiple_excluded` - Bias Risk Multiple Excluded
+ * * `no_metric` - No Metric
+ * * `srm` - Sample Ratio Mismatch
+ * * `zero_exposures` - Zero Exposures
+ */
+ code: ExperimentHealthFindingCodeEnum;
+ /**
+ * The case within the code, when a code covers several, for example 'running_but_no_rollout' within 'flag_off_while_running'. Null when the code has one case.
+ */
+ subcode: string | null;
+ /**
+ * How much the problem affects the results: critical, warning, or info.
+ *
+ * * `critical` - Critical severity
+ * * `warning` - Warning severity
+ * * `info` - Info severity
+ */
+ severity: ExperimentHealthFindingSeverityEnum;
+ /**
+ * One-line summary of the problem.
+ */
+ title: string;
+ /**
+ * What is wrong, what it does to the experiment, and how to fix it.
+ */
+ detail: string;
+ /**
+ * The values behind the finding, such as the key of a shipped variant or the share of users exposed to multiple variants. The keys depend on the code.
+ */
+ evidence: Record<string, string | number | null>;
+ /**
+ * The actions that fix the problem, in order of preference, for example 'open_feature_flag' or 'add_primary_metric'.
+ */
+ actions: Array<ExperimentHealthFindingActionKindEnum>;
+ /**
+ * The id of the matching diagnostic in the diagnosing-experiment-health skill, for example 'A5'. Null when the skill has none.
+ */
+ diagnostic_ref: string | null;
+ };
+ export type ExperimentHealth = {
+ /**
+ * Problems that the health checks found in the experiment's configuration and its feature flag. Empty when every check passed.
+ */
+ findings: Array<ExperimentHealthFinding>;
+ };
/**
* Full experiment representation for the detail, create, and update endpoints.
*
@@ -9630,7 +10225,7 @@ export namespace Schemas {
* fields, and refreshes stale action names while serializing. The list endpoint uses the
* leaner ``ExperimentBasicSerializer`` instead.
*/
- primary_metrics_ordered_uuids?: unknown | undefined;
+ primary_metrics_ordered_uuids?: (Array<string> | null) | undefined;
/**
* Full experiment representation for the detail, create, and update endpoints.
*
@@ -9639,7 +10234,7 @@ export namespace Schemas {
* fields, and refreshes stale action names while serializing. The list endpoint uses the
* leaner ``ExperimentBasicSerializer`` instead.
*/
- secondary_metrics_ordered_uuids?: unknown | undefined;
+ secondary_metrics_ordered_uuids?: (Array<string> | null) | undefined;
/**
* Full experiment representation for the detail, create, and update endpoints.
*
@@ -9692,6 +10287,10 @@ export namespace Schemas {
* The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now.
*/
resolved_exposure_event: string;
+ /**
+ * Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet.
+ */
+ health: ExperimentHealth | null;
/**
* The effective access level the user has for this object
*/
@@ -9706,6 +10305,52 @@ export namespace Schemas {
*/
tags?: Array<string> | undefined;
};
+ export type ExperimentExposureHealthFindingActionKind =
+ | "edit_exposure_criteria"
+ | "adjust_distribution"
+ | "use_first_seen_variant";
+ export type ExperimentExposureHealthFindingCode =
+ | "zero_exposures"
+ | "srm"
+ | "bias_risk_multiple_excluded";
+ export type ExperimentExposureHealthFindingSeverity =
+ | "critical"
+ | "warning"
+ | "info";
+ export type ExperimentExposureHealthFinding = {
+ /**
+ * The actions that fix the problem, in order of preference.
+ */
+ actions: Array<ExperimentExposureHealthFindingActionKind>;
+ /**
+ * Stable identifier of the problem. Each code has one meaning across every surface that reports it.
+ */
+ code: ExperimentExposureHealthFindingCode;
+ /**
+ * What is wrong, what it does to the experiment, and how to fix it.
+ */
+ detail: string;
+ /**
+ * The id of the matching diagnostic in the diagnosing-experiment-health skill, for example 'A2'. Null when the skill has none.
+ */
+ diagnostic_ref: string | null;
+ /**
+ * The values behind the finding, such as the p-value of the sample ratio test. The keys depend on the code.
+ */
+ evidence: Record<string, string | number | null>;
+ /**
+ * How much the problem affects the results: critical, warning, or info.
+ */
+ severity: ExperimentExposureHealthFindingSeverity;
+ /**
+ * The case within the code, when a code covers several. Null when the code has one case.
+ */
+ subcode: string | null;
+ /**
+ * One-line summary of the problem.
+ */
+ title: string;
+ };
export type SampleRatioMismatch = {
expected: Record<string, number>;
p_value: number;
@@ -9718,6 +10363,9 @@ export namespace Schemas {
export type ExperimentExposureQueryResponse = {
bias_risk?: (BiasRisk | null) | undefined;
date_range: DateRange;
+ health_findings?:
+ | (Array<ExperimentExposureHealthFinding> | null)
+ | undefined;
kind?: string | undefined;
sample_ratio_mismatch?: (SampleRatioMismatch | null) | undefined;
timeseries: Array<ExperimentExposureTimeSeries>;
@@ -9904,11 +10552,11 @@ export namespace Schemas {
/**
* Experiment write payload. Identical to Experiment, plus the writable `feature_flag` config input.
*/
- primary_metrics_ordered_uuids?: unknown | undefined;
+ primary_metrics_ordered_uuids?: (Array<string> | null) | undefined;
/**
* Experiment write payload. Identical to Experiment, plus the writable `feature_flag` config input.
*/
- secondary_metrics_ordered_uuids?: unknown | undefined;
+ secondary_metrics_ordered_uuids?: (Array<string> | null) | undefined;
/**
* Experiment write payload. Identical to Experiment, plus the writable `feature_flag` config input.
*/
@@ -9941,6 +10589,10 @@ export namespace Schemas {
* The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now.
*/
resolved_exposure_event: string;
+ /**
+ * Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet.
+ */
+ health: ExperimentHealth | null;
/**
* The effective access level the user has for this object
*/
@@ -10073,6 +10725,18 @@ export namespace Schemas {
* A schema of an external data source: its sync configuration and the warehouse table it syncs into.
*/
sync_time_of_day?: (string | null) | undefined;
+ /**
+ * A schema of an external data source: its sync configuration and the warehouse table it syncs into.
+ */
+ full_refresh_interval_days?: (number | null) | undefined;
+ /**
+ * A schema of an external data source: its sync configuration and the warehouse table it syncs into.
+ */
+ full_refresh_time_of_day?: (string | null) | undefined;
+ /**
+ * When the next scheduled full refresh is due. The first scheduled sync that starts at most an hour before this time re-imports the table. Saving a new interval or time, or any full resync, moves it one interval ahead, onto full_refresh_time_of_day when that is set.
+ */
+ next_full_refresh_at: string | null;
description: string | null;
/**
* A schema of an external data source: its sync configuration and the warehouse table it syncs into.
@@ -10109,6 +10773,10 @@ export namespace Schemas {
value: unknown;
}> | null)
| undefined;
+ /**
+ * Columns a row filter on this schema may use, with the operators each accepts. `null` means any column in `available_columns` with any operator, which is the case for SQL sources. A list means the source can filter on these columns only; an empty list means this schema accepts no row filter.
+ */
+ row_filter_columns: Array<RowFilterColumn> | null;
/**
* Column metadata (name, data type, nullable) for this schema. For SQL sources this is the source-side schema discovered via `refresh_schemas`; for other sources (and once synced) it falls back to the synced table's columns. Empty only before the first successful sync/refresh.
*/
@@ -10164,6 +10832,8 @@ export namespace Schemas {
incremental_field_type?: (string | null) | undefined;
sync_frequency?: (string | null) | undefined;
sync_time_of_day?: (string | null) | undefined;
+ full_refresh_interval_days?: (number | null) | undefined;
+ full_refresh_time_of_day?: (string | null) | undefined;
primary_key_columns?: (Array<string> | null) | undefined;
cdc_table_mode?: (CdcTableModeEnum | NullEnum) | undefined;
enabled_columns?: (Array<string> | null) | undefined;
@@ -10684,6 +11354,7 @@ export namespace Schemas {
* * `Squarespace` - Squarespace
* * `Statsig` - Statsig
* * `Statuspage` - Statuspage
+ * * `Steam` - Steam
* * `Stigg` - Stigg
* * `Strava` - Strava
* * `SurveySparrow` - SurveySparrow
@@ -11194,6 +11865,7 @@ export namespace Schemas {
* * `Donorbox` - Donorbox
* * `Doorloop` - Doorloop
* * `Dovetail` - Dovetail
+ * * `Dragonboat` - Dragonboat
* * `Drchrono` - Drchrono
* * `Dynamics365BusinessCentral` - Dynamics365BusinessCentral
* * `EcbDataPortal` - EcbDataPortal
@@ -11429,6 +12101,7 @@ export namespace Schemas {
* * `WhatsappBusinessManagement` - WhatsappBusinessManagement
* * `WhoGho` - WhoGho
* * `Whop` - Whop
+ * * `Wistia` - Wistia
* * `Wiz` - Wiz
* * `Wompi` - Wompi
* * `Workiz` - Workiz
@@ -11537,6 +12210,28 @@ export namespace Schemas {
* * `Expo` - Expo
* * `PostNord` - PostNord
* * `Commslayer` - Commslayer
+ * * `Sprinto` - Sprinto
+ * * `Gem` - Gem
+ * * `AudioGO` - AudioGO
+ * * `ExactOnline` - ExactOnline
+ * * `LettrLabs` - LettrLabs
+ * * `GrafanaIRM` - GrafanaIRM
+ * * `Tessitura` - Tessitura
+ * * `ChargebackStop` - ChargebackStop
+ * * `Chargeflow` - Chargeflow
+ * * `Dreamdata` - Dreamdata
+ * * `GoogleBusinessProfile` - GoogleBusinessProfile
+ * * `Ledyer` - Ledyer
+ * * `Supermetrics` - Supermetrics
+ * * `SQLite` - SQLite
+ * * `Modal` - Modal
+ * * `Vimeo` - Vimeo
+ * * `Scrunch` - Scrunch
+ * * `Loom` - Loom
+ * * `Arcade` - Arcade
+ * * `Neo4j` - Neo4j
+ * * `TestDino` - TestDino
+ * * `ChessCom` - ChessCom
*/
export type ExternalDataSourceTypeEnum =
| "Ashby"
@@ -12034,6 +12729,7 @@ export namespace Schemas {
| "Squarespace"
| "Statsig"
| "Statuspage"
+ | "Steam"
| "Stigg"
| "Strava"
| "SurveySparrow"
@@ -12544,6 +13240,7 @@ export namespace Schemas {
| "Donorbox"
| "Doorloop"
| "Dovetail"
+ | "Dragonboat"
| "Drchrono"
| "Dynamics365BusinessCentral"
| "EcbDataPortal"
@@ -12779,6 +13476,7 @@ export namespace Schemas {
| "WhatsappBusinessManagement"
| "WhoGho"
| "Whop"
+ | "Wistia"
| "Wiz"
| "Wompi"
| "Workiz"
@@ -12886,7 +13584,29 @@ export namespace Schemas {
| "Oneleet"
| "Expo"
| "PostNord"
- | "Commslayer";
+ | "Commslayer"
+ | "Sprinto"
+ | "Gem"
+ | "AudioGO"
+ | "ExactOnline"
+ | "LettrLabs"
+ | "GrafanaIRM"
+ | "Tessitura"
+ | "ChargebackStop"
+ | "Chargeflow"
+ | "Dreamdata"
+ | "GoogleBusinessProfile"
+ | "Ledyer"
+ | "Supermetrics"
+ | "SQLite"
+ | "Modal"
+ | "Vimeo"
+ | "Scrunch"
+ | "Loom"
+ | "Arcade"
+ | "Neo4j"
+ | "TestDino"
+ | "ChessCom";
/**
* * `web` - web
* * `api` - api
@@ -13392,6 +14112,7 @@ export namespace Schemas {
* * `Squarespace` - Squarespace
* * `Statsig` - Statsig
* * `Statuspage` - Statuspage
+ * * `Steam` - Steam
* * `Stigg` - Stigg
* * `Strava` - Strava
* * `SurveySparrow` - SurveySparrow
@@ -13902,6 +14623,7 @@ export namespace Schemas {
* * `Donorbox` - Donorbox
* * `Doorloop` - Doorloop
* * `Dovetail` - Dovetail
+ * * `Dragonboat` - Dragonboat
* * `Drchrono` - Drchrono
* * `Dynamics365BusinessCentral` - Dynamics365BusinessCentral
* * `EcbDataPortal` - EcbDataPortal
@@ -14137,6 +14859,7 @@ export namespace Schemas {
* * `WhatsappBusinessManagement` - WhatsappBusinessManagement
* * `WhoGho` - WhoGho
* * `Whop` - Whop
+ * * `Wistia` - Wistia
* * `Wiz` - Wiz
* * `Wompi` - Wompi
* * `Workiz` - Workiz
@@ -14245,6 +14968,28 @@ export namespace Schemas {
* * `Expo` - Expo
* * `PostNord` - PostNord
* * `Commslayer` - Commslayer
+ * * `Sprinto` - Sprinto
+ * * `Gem` - Gem
+ * * `AudioGO` - AudioGO
+ * * `ExactOnline` - ExactOnline
+ * * `LettrLabs` - LettrLabs
+ * * `GrafanaIRM` - GrafanaIRM
+ * * `Tessitura` - Tessitura
+ * * `ChargebackStop` - ChargebackStop
+ * * `Chargeflow` - Chargeflow
+ * * `Dreamdata` - Dreamdata
+ * * `GoogleBusinessProfile` - GoogleBusinessProfile
+ * * `Ledyer` - Ledyer
+ * * `Supermetrics` - Supermetrics
+ * * `SQLite` - SQLite
+ * * `Modal` - Modal
+ * * `Vimeo` - Vimeo
+ * * `Scrunch` - Scrunch
+ * * `Loom` - Loom
+ * * `Arcade` - Arcade
+ * * `Neo4j` - Neo4j
+ * * `TestDino` - TestDino
+ * * `ChessCom` - ChessCom
*/
source_type: ExternalDataSourceTypeEnum;
/**
@@ -14360,6 +15105,10 @@ export namespace Schemas {
* Set when the vendor has deprecated the API version this source is pinned to; null otherwise. Drives the in-product deprecation warning.
*/
api_version_deprecation: ExternalDataSourceApiVersionDeprecation | null;
+ /**
+ * Set on an update response when the change was saved but the connection check from the API could not reach the database. Null otherwise.
+ */
+ connection_warning: string | null;
};
export type FeatureFlagExperimentSetMetadata = {
/**
@@ -14471,6 +15220,9 @@ export namespace Schemas {
* Serializer mixin that handles tags for objects.
*/
has_encrypted_payloads?: (boolean | null) | undefined;
+ /**
+ * Staleness classification: ACTIVE, STALE, ARCHIVED, DELETED or UNKNOWN. This is not the serving state. Read the `active` field for that. A disabled flag that is not archived or deleted reports ACTIVE, because disabled flags are not evaluated for staleness.
+ */
status: string;
/**
* Serializer mixin that handles tags for objects.
@@ -14541,7 +15293,7 @@ export namespace Schemas {
}>;
export type FeatureFlagRolloutSummary = {
/**
- * True if the flag is effectively rolled out to everyone, independent of recent evaluation. For boolean flags this means at least one release condition targets 100% with no property filters (or there are no release conditions); for multivariate flags it means a single variant is served to 100% via a fully rolled out release condition. This is the signal for 'fully rolled out' / GA — unlike `status`, which only reflects recent evaluation.
+ * True if the flag is effectively rolled out to everyone, independent of recent evaluation. For boolean flags this means at least one release condition targets 100% with no property filters, or there are no release conditions. For multivariate flags it means every release condition a user can reach, up to the first one at 100% with no property filters, serves the same variant. In a flag of either type that mixes person and group aggregation, only a person-level condition counts as that 100% condition. This is the signal for 'fully rolled out' / GA, unlike `status`, which only reflects recent evaluation.
*/
effectively_full_rollout: boolean;
/**
@@ -14559,7 +15311,7 @@ export namespace Schemas {
};
export type FeatureFlagStatusResponse = {
/**
- * Flag staleness/evaluation status: active, stale, archived, deleted, or unknown. 'active' means the flag was recently evaluated (or has no usage data yet) — it does NOT mean the flag is fully rolled out. Use the `rollout` object to determine rollout completeness.
+ * Staleness classification: active, stale, archived, deleted, or unknown. This is not the serving state, and this response carries no serving-state field: read the `active` field of the flag itself from the list or retrieve endpoint. A disabled flag that is not archived or deleted reports 'active', because disabled flags are not evaluated for staleness. 'active' also does NOT mean the flag is fully rolled out. Use the `rollout` object to determine rollout completeness.
*/
status: string;
/**
@@ -14575,6 +15327,7 @@ export namespace Schemas {
*/
rollout: FeatureFlagRolloutSummary;
};
+ export type FlagEvaluationsModeEnum = 0 | 1 | 2;
/**
* * `draft` - Draft
* * `active` - Active
@@ -14618,6 +15371,7 @@ export namespace Schemas {
transpiled: unknown;
filter_test_accounts: boolean;
bytecode_error: string;
+ bytecode_contract: string;
}>;
export type HogFlowConversionEvent = {
/**
@@ -14629,14 +15383,13 @@ export namespace Schemas {
filters: Array<Record<string, unknown>>;
events: Array<HogFlowConversionEvent>;
window: string | null;
- window_minutes: number | null;
bytecode: unknown;
}>;
/**
* * `minute` - minute
* * `hour` - hour
*/
- export type PeriodEnum = "minute" | "hour";
+ export type HogFlowEmailSendingRateLimitPeriodEnum = "minute" | "hour";
export type HogFlowEmailSendingRateLimit = {
/**
* Maximum number of emails this workflow sends per period.
@@ -14648,7 +15401,7 @@ export namespace Schemas {
* * `minute` - minute
* * `hour` - hour
*/
- period: PeriodEnum;
+ period: HogFlowEmailSendingRateLimitPeriodEnum;
};
/**
* * `continue` - continue
@@ -14734,7 +15487,7 @@ export namespace Schemas {
*/
type: HogFlowActionTypeEnum;
/**
- * Type-specific config keyed by action type. trigger: {type: event|webhook|manual|batch|schedule|tracking_pixel|internal-event, filters?}. internal-event requires filters.events naming one or more allowed event ids, and runs once for each matching event on the internal-events stream. Runs are person-less, so person-dependent steps are rejected. $slack_message_received takes filters: {properties: [<cond>]} over the message properties (channel, user, bot_id, text, subtype, is_thread_reply), and requires an exact-match channel filter; without one it runs on every message in every connected channel. $github_event_received takes filters: {properties: [<cond>]} over the delivery properties (repository, event_type, action, sender, bot_sender, own_app, author_association, actor_access, title, body, review_state, branch, repository_visibility), and requires exact-match repository and event_type filters; without them it runs on every delivery from every connected repository. webhook and manual triggers also require template_id: 'template-source-webhook', and tracking_pixel requires template_id: 'template-source-webhook-pixel'. filters shape: {events: [{id, name, type:'events', properties:[<cond>]}], properties:[<cond>], actions:[...], filter_test_accounts:<bool>}. <cond>: {key, value, operator, type: event|person|group}, or {key: 'id', type: 'cohort', value: <cohort_id>, operator: 'in'} to reference a cohort. batch triggers may set filters.audience_type: 'persons' (default) or 'accounts'. An accounts audience fans out one run per customer analytics account and takes account filters instead: properties entries of type 'account_custom_property' (key = definition id), plus tag_names: [<str>], assignment_status: 'all'|'assigned'|'unassigned', and assigned_to_user_ids: [<int>] when assignment_status is 'assigned'. all_roles_unassigned remains accepted for workflows saved before assignment_status was added. function*: {template_id, inputs: {<key>: {value: <str>}}}. Wrap values in {value:...} to enable hog templating ({person.x}, {event.x}); flat strings won't interpolate. function_email also accepts tracking_enabled?: <bool> (default true) - when false, no open pixel is injected, links are not rewritten, and the send skips ESP-level open/click tracking, so opens and clicks are not recorded for that step (delivery/bounce/unsubscribe still are). Dictionary input values are template strings too — write booleans/numbers as single-expression templates ('{true}', '{42}'), which evaluate to the typed value. delay: waits a fixed span or until a per-person/-event date — set EXACTLY ONE of delay_duration or delay_until. {delay_duration: '<number><unit>'} where unit is s|m|h|d. Fractions OK ('1.5d'=36h). Per-unit max s<=60, m<=60, h<=24, d<=30; values above are SILENTLY CLAMPED. Max 30d. delay_until: {expression: '<SQL>', offset?: '<±number><unit>'} waits until the date expression evaluates to (an ISO string, unix seconds, or a date value all resolve to the same instant); offset is a signed duration shifting it ('-1d' a day before, '2h' two hours after). expression is compiled server-side, so any bytecode sent with it is discarded. A person property is person.properties.<key>; an event property is properties.<key>, as the 'event.' prefix resolves to nothing and aborts the run. Optional timezone (IANA name), use_person_timezone (read $geoip_time_zone) and fallback_timezone decide which zone a date with no offset of its own is read in; a date that states an offset, and unix seconds, ignore them. Default UTC. Optional sibling max_delay_duration (default 30d, same '<number><unit>' format) caps how far past the step's start the wait may run. conditional_branch: {conditions: [{filters}, ...]}. Index N matches the 'branch' edge with index:N. random_cohort_branch: {cohorts: [{percentage: <number>, name?}, ...]}. Index N matches the 'branch' edge with index:N; percentages are relative weights, so they should sum to 100 but a total above or below that still splits traffic in the given proportions. wait_until_condition: {condition: {filters}, events?: [{filters: {events: [{id, name, type: 'events'}], actions?: [...]}, name?}], max_wait_duration: <duration>} (same rules as delay). Continues when condition.filters match OR any events entry fires; each events entry must target at least one event or action. On resolution (a condition match or any events entry firing) it advances via the 'branch' edge with index:0; the max_wait_duration timeout falls through the 'continue' edge. exit: {reason}.
+ * Type-specific config keyed by action type. trigger: {type: event|webhook|manual|batch|schedule|tracking_pixel|internal-event, filters?}. An active event trigger must name at least one event, action or property filter; with filters.source 'person-updates' that means at least one property filter. internal-event requires filters.events naming one or more allowed event ids, and runs once for each matching event on the internal-events stream. Runs are person-less, so person-dependent steps are rejected. $slack_message_received takes filters: {properties: [<cond>]} over the message properties (channel, user, bot_id, text, subtype, is_thread_reply), and requires an exact-match channel filter; without one it runs on every message in every connected channel. $github_event_received takes filters: {properties: [<cond>]} over the delivery properties (repository, event_type, action, sender, bot_sender, own_app, author_association, actor_access, title, body, review_state, branch, repository_visibility), and requires exact-match repository and event_type filters; without them it runs on every delivery from every connected repository. webhook and manual triggers also require template_id: 'template-source-webhook', and tracking_pixel requires template_id: 'template-source-webhook-pixel'. filters shape: {events: [{id, name, type:'events', properties:[<cond>]}], properties:[<cond>], actions:[...], filter_test_accounts:<bool>}. <cond>: {key, value, operator, type: event|person|group}, or {key: 'id', type: 'cohort', value: <cohort_id>, operator: 'in'} to reference a cohort. batch triggers may set filters.audience_type: 'persons' (default) or 'accounts'. An accounts audience fans out one run per customer analytics account and takes account filters instead: properties entries of type 'account_custom_property' (key = definition id), plus tag_names: [<str>], assignment_status: 'all'|'assigned'|'unassigned', and assigned_to_user_ids: [<int>] when assignment_status is 'assigned'. all_roles_unassigned remains accepted for workflows saved before assignment_status was added. function*: {template_id, inputs: {<key>: {value: <str>}}}. Wrap values in {value:...} to enable hog templating ({person.x}, {event.x}); flat strings won't interpolate. function_email also accepts tracking_enabled?: <bool> (default true) - when false, no open pixel is injected, links are not rewritten, and the send skips ESP-level open/click tracking, so opens and clicks are not recorded for that step (delivery/bounce/unsubscribe still are). Dictionary input values are template strings too — write booleans/numbers as single-expression templates ('{true}', '{42}'), which evaluate to the typed value. delay: waits a fixed span or until a per-person/-event date — set EXACTLY ONE of delay_duration or delay_until. {delay_duration: '<number><unit>'} where unit is s|m|h|d. Fractions OK ('1.5d'=36h). Per-unit max s<=60, m<=60, h<=24, d<=30; values above are SILENTLY CLAMPED. Max 30d. delay_until: {expression: '<SQL>', offset?: '<±number><unit>'} waits until the date expression evaluates to (an ISO string, unix seconds, or a date value all resolve to the same instant); offset is a signed duration shifting it ('-1d' a day before, '2h' two hours after). expression is compiled server-side, so any bytecode sent with it is discarded. A person property is person.properties.<key>; an event property is properties.<key>, as the 'event.' prefix resolves to nothing and aborts the run. Optional timezone (IANA name), use_person_timezone (read $geoip_time_zone) and fallback_timezone decide which zone a date with no offset of its own is read in; a date that states an offset, and unix seconds, ignore them. Default UTC. Optional sibling max_delay_duration (default 30d, same '<number><unit>' format) caps how far past the step's start the wait may run. conditional_branch: {conditions: [{filters}, ...]}. Index N matches the 'branch' edge with index:N. random_cohort_branch: {cohorts: [{percentage: <number>, name?}, ...]}. Index N matches the 'branch' edge with index:N; percentages are relative weights, so they should sum to 100 but a total above or below that still splits traffic in the given proportions. wait_until_condition: {condition: {filters}, events?: [{filters: {events: [{id, name, type: 'events'}], actions?: [...]}, name?}], max_wait_duration: <duration>} (same rules as delay). Continues when condition.filters match OR any events entry fires; each events entry must target at least one event or action. On resolution (a condition match or any events entry firing) it advances via the 'branch' edge with index:0; the max_wait_duration timeout falls through the 'continue' edge. exit: {reason}.
*/
config:
| Record<string, unknown>
@@ -14811,6 +15564,20 @@ export namespace Schemas {
created_at: string;
updated_at: string;
};
+ export type HogFlowLastRun = {
+ /**
+ * The task this run belongs to.
+ */
+ task_id: string;
+ /**
+ * Status of the task's newest run: not_started, queued, in_progress, completed, failed or cancelled.
+ */
+ status: string;
+ /**
+ * When the run started, or when the task was created if it has no run yet.
+ */
+ ran_at: string;
+ };
/**
* Mixin for serializers to add user access control fields
*/
@@ -14909,6 +15676,10 @@ export namespace Schemas {
* When sending was last resumed. Every detector window starts after this, so resuming does not immediately re-trip on the feedback that caused the pause. Null if never paused.
*/
email_sending_resumed_at: string | null;
+ /**
+ * Newest task this loop workflow created, as its last run. Null when the workflow is not a loop or has not run.
+ */
+ last_run: HogFlowLastRun | null;
};
/**
* Mixin for serializers to add user access control fields
@@ -14941,6 +15712,18 @@ export namespace Schemas {
* The effective access level the user has for this object
*/
user_access_level: string | null;
+ /**
+ * Newest task this loop workflow created, as its last run. Null when the workflow is not a loop or has not run.
+ */
+ last_run: HogFlowLastRun | null;
+ /**
+ * How many suggested changes are waiting for a person on this workflow. Counted on the list only.
+ */
+ pending_suggestions: number | null;
+ /**
+ * Whether someone turned suggestions on for this workflow. Read on the list only.
+ */
+ suggestions_enabled: boolean | null;
};
export type HogFlowRunRequest = Partial<{
variables: Record<string, unknown>;
@@ -15056,6 +15839,10 @@ export namespace Schemas {
* When sending was last resumed. Every detector window starts after this, so resuming does not immediately re-trip on the feedback that caused the pause. Null if never paused.
*/
email_sending_resumed_at: string | null;
+ /**
+ * Newest task this loop workflow created, as its last run. Null when the workflow is not a loop or has not run.
+ */
+ last_run: HogFlowLastRun | null;
};
export type HogQueryResponse = {
bytecode?: (Array<unknown> | null) | undefined;
@@ -15129,6 +15916,7 @@ export namespace Schemas {
* The query definition for this insight. The `kind` field determines the query type:
* - `InsightVizNode` — product analytics (trends, funnels, retention, paths, stickiness, lifecycle)
* - `DataVisualizationNode` — SQL insights using HogQL
+ * - `BIVisualizationNode` — business intelligence worksheets with a HogQL source
* - `DataTableNode` — raw data tables
* - `HogQuery` — Hog language queries
*/
@@ -15136,7 +15924,14 @@ export namespace Schemas {
| InsightVizNode
| DataTableNode
| DataVisualizationNode
+ | BIVisualizationNode
| HogQuery;
+ /**
+ * Warnings attached to the query response that produced an insight's results.
+ */
+ export type _InsightResultWarnings = Array<
+ DataWarehouseSyncWarning | AccessControlFilterWarning
+ >;
export type TileFilters = Partial<{
breakdown_filter: BreakdownFilter | null;
date_from: string | null;
@@ -15270,6 +16065,10 @@ export namespace Schemas {
* What ClickHouse read for this insight's last slow run, with the findings of its query scan.
*/
query_scan: unknown;
+ /**
+ * Warnings from the run that produced these results. A `warehouse_sync` warning means the query read a data warehouse table whose sync failed, is paused, or is overdue, so the results can be out of date. Reflects the sync state when the results were computed. Null for shared insights.
+ */
+ warnings: _InsightResultWarnings | null;
/**
* Simplified serializer to speed response times when loading large amounts of objects.
*/
@@ -15292,6 +16091,7 @@ export namespace Schemas {
export type InstallationStatusEnum = "connected" | "unavailable";
/**
* * `anthropic` - Anthropic
+ * * `apple-ads` - Apple Ads
* * `apns` - Apple Push
* * `aws-redshift` - Aws Redshift
* * `aws-s3` - Aws S3
@@ -15327,6 +16127,7 @@ export namespace Schemas {
* * `postgresql` - Postgresql
* * `posthog` - Posthog
* * `reddit-ads` - Reddit Ads
+ * * `twitter-ads` - Twitter Ads
* * `resend` - Resend
* * `s3-compatible` - S3 Compatible
* * `salesforce` - Salesforce
@@ -15342,6 +16143,7 @@ export namespace Schemas {
*/
export type IntegrationKindEnum =
| "anthropic"
+ | "apple-ads"
| "apns"
| "aws-redshift"
| "aws-s3"
@@ -15377,6 +16179,7 @@ export namespace Schemas {
| "postgresql"
| "posthog"
| "reddit-ads"
+ | "twitter-ads"
| "resend"
| "s3-compatible"
| "salesforce"
@@ -15956,817 +16759,6 @@ export namespace Schemas {
* * `9` - root
*/
export type OrganizationPluginsAccessLevelEnum = 0 | 3 | 6 | 9;
- /**
- * * `bayesian` - Bayesian
- * * `frequentist` - Frequentist
- */
- export type OrganizationDefaultExperimentStatsMethodEnum =
- | "bayesian"
- | "frequentist";
- export type Organization = {
- id: string;
- name: string;
- slug: string;
- logo_media_id?: (string | null) | undefined;
- created_at: string;
- updated_at: string;
- membership_level: OrganizationMembershipLevelEnum & unknown;
- plugins_access_level: OrganizationPluginsAccessLevelEnum & unknown;
- teams: Array<Record<string, unknown>>;
- projects: Array<Record<string, unknown>>;
- available_product_features: Array<unknown> | null;
- /**
- * Legacy field; member-join emails are controlled per user in account notification settings.
- */
- is_member_join_email_enabled: boolean;
- metadata: Record<string, string>;
- customer_id: string | null;
- enforce_2fa?: (boolean | null) | undefined;
- enforce_verified_domains?: (boolean | null) | undefined;
- members_can_invite?: (boolean | null) | undefined;
- members_can_create_projects?: (boolean | null) | undefined;
- members_can_use_personal_api_keys?: boolean | undefined;
- members_can_see_org_members?: boolean | undefined;
- allow_publicly_shared_resources?: boolean | undefined;
- read_only_mcp_access?: (boolean | null) | undefined;
- member_count: number;
- is_ai_data_processing_approved?: (boolean | null) | undefined;
- is_ai_training_opted_in?: (boolean | null) | undefined;
- /**
- * When True, the AI training opt-out setting cannot be modified through the UI or API.
- */
- is_ai_training_locked: boolean | null;
- /**
- * When True, in-app callouts inviting members to enable AI training are shown.
- */
- is_ai_training_cta_shown: boolean | null;
- /**
- * Whether the organization has a countersigned Business Associate Agreement on file. When true, AI training stays opted out and cannot be changed.
- */
- has_signed_baa: boolean;
- default_experiment_stats_method?:
- | (
- | OrganizationDefaultExperimentStatsMethodEnum
- | BlankEnum
- | NullEnum
- )
- | undefined;
- default_anonymize_ips?: boolean | undefined;
- default_role_id?: (string | null) | undefined;
- /**
- * Set this to 'No' to temporarily disable an organization.
- */
- is_active: boolean | null;
- /**
- * (optional) reason for why the organization has been de-activated. This will be displayed to users on the web app.
- */
- is_not_active_reason: string | null;
- /**
- * Set to True when org deletion has been initiated. Blocks all UI access until the async task completes.
- */
- is_pending_deletion: boolean | null;
- /**
- * When True, access controls resolve with the most specific matching rule. When False, the legacy resolution order applies.
- */
- uses_most_specific_access_resolution: boolean | null;
- };
- /**
- * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
- * Also used for nested serializers.
- */
- export type OrganizationBasic = {
- id: string;
- name: string;
- slug: string;
- logo_media_id: string | null;
- membership_level: OrganizationMembershipLevelEnum & unknown;
- /**
- * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
- * Also used for nested serializers.
- */
- members_can_use_personal_api_keys?: boolean | undefined;
- /**
- * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
- * Also used for nested serializers.
- */
- is_active?: (boolean | null) | undefined;
- /**
- * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
- * Also used for nested serializers.
- */
- is_not_active_reason?: (string | null) | undefined;
- /**
- * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
- * Also used for nested serializers.
- */
- is_pending_deletion?: (boolean | null) | undefined;
- };
- /**
- * * `discussions_mentioned` - discussions_mentioned
- * * `error_tracking_issue_assigned` - error_tracking_issue_assigned
- * * `error_tracking_weekly_digest_project_enabled` - error_tracking_weekly_digest_project_enabled
- * * `materialized_view_sync_failed` - materialized_view_sync_failed
- * * `materialized_view_sync_failed_daily` - materialized_view_sync_failed_daily
- * * `materialized_view_sync_failed_immediate` - materialized_view_sync_failed_immediate
- * * `organization_member_join_email_disabled` - organization_member_join_email_disabled
- * * `pipeline_notifications_disabled` - pipeline_notifications_disabled
- * * `project_weekly_digest_disabled` - project_weekly_digest_disabled
- * * `web_analytics_weekly_digest_project_enabled` - web_analytics_weekly_digest_project_enabled
- */
- export type SettingEnum =
- | "discussions_mentioned"
- | "error_tracking_issue_assigned"
- | "error_tracking_weekly_digest_project_enabled"
- | "materialized_view_sync_failed"
- | "materialized_view_sync_failed_daily"
- | "materialized_view_sync_failed_immediate"
- | "organization_member_join_email_disabled"
- | "pipeline_notifications_disabled"
- | "project_weekly_digest_disabled"
- | "web_analytics_weekly_digest_project_enabled";
- export type OrganizationNotificationLock = {
- /**
- * Notification setting this rule enforces.
- *
- * * `discussions_mentioned` - discussions_mentioned
- * * `error_tracking_issue_assigned` - error_tracking_issue_assigned
- * * `error_tracking_weekly_digest_project_enabled` - error_tracking_weekly_digest_project_enabled
- * * `materialized_view_sync_failed` - materialized_view_sync_failed
- * * `materialized_view_sync_failed_daily` - materialized_view_sync_failed_daily
- * * `materialized_view_sync_failed_immediate` - materialized_view_sync_failed_immediate
- * * `organization_member_join_email_disabled` - organization_member_join_email_disabled
- * * `pipeline_notifications_disabled` - pipeline_notifications_disabled
- * * `project_weekly_digest_disabled` - project_weekly_digest_disabled
- * * `web_analytics_weekly_digest_project_enabled` - web_analytics_weekly_digest_project_enabled
- */
- setting: SettingEnum;
- /**
- * What the setting applies to: a project ID or an organization ID. Empty for a setting that is a single switch.
- */
- scope_id: string;
- /**
- * The value the organization enforces.
- */
- locked_value: boolean;
- };
- export type PaginatedCommentList = {
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<Comment>;
- };
- export type PaginatedEvaluationList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<Evaluation>;
- };
- export type PaginatedExternalDataSourceSerializersList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<ExternalDataSourceSerializers>;
- };
- export type PaginatedFeatureFlagList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<FeatureFlag>;
- };
- export type PaginatedHogFlowMinimalList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<HogFlowMinimal>;
- };
- export type PersonRecord = {
- /**
- * Numeric person ID.
- */
- id: number;
- /**
- * Display name derived from person properties (email, name, or username).
- */
- name: string;
- distinct_ids: Array<string>;
- properties?: unknown | undefined;
- /**
- * When this person was first seen (ISO 8601).
- */
- created_at: string;
- /**
- * Unique identifier (UUID) for this person.
- */
- uuid: string;
- /**
- * Timestamp of the last event from this person, or null.
- */
- last_seen_at: string | null;
- };
- export type PaginatedPersonRecordList = Partial<{
- next: string | null;
- previous: string | null;
- count: number;
- results: Array<PersonRecord>;
- }>;
- /**
- * * `acp` - ACP
- * * `pi` - Pi
- */
- export type TaskRuntimeEnum = "acp" | "pi";
- /**
- * * `claude` - claude
- * * `codex` - codex
- */
- export type RuntimeAdapterEnum = "claude" | "codex";
- /**
- * * `anthropic` - anthropic
- * * `openai` - openai
- */
- export type TaskRunDetailDTOProviderEnum = "anthropic" | "openai";
- /**
- * * `off` - off
- * * `minimal` - minimal
- * * `low` - low
- * * `medium` - medium
- * * `high` - high
- * * `xhigh` - xhigh
- * * `max` - max
- * * `ultracode` - ultracode
- */
- export type TaskRunReasoningEffortEnum =
- | "off"
- | "minimal"
- | "low"
- | "medium"
- | "high"
- | "xhigh"
- | "max"
- | "ultracode";
- /**
- * * `user` - user
- * * `repo` - repo
- * * `marketplace` - marketplace
- * * `codex` - codex
- */
- export type SkillSourceEnum = "user" | "repo" | "marketplace" | "codex";
- export type TaskRunSkillBundleMetadata = {
- /**
- * Name of the local skill included in a skill_bundle artifact.
- */
- skill_name: string;
- /**
- * Local source for the uploaded skill bundle, such as user or repo.
- *
- * * `user` - user
- * * `repo` - repo
- * * `marketplace` - marketplace
- * * `codex` - codex
- */
- skill_source: SkillSourceEnum;
- /**
- * SHA-256 hex digest of the uploaded skill bundle bytes.
- */
- content_sha256: string;
- /**
- * Archive format used for the local skill bundle.
- *
- * * `zip` - zip
- */
- bundle_format: BundleFormatEnum;
- /**
- * Version of the local skill bundle metadata schema.
- */
- schema_version: number;
- };
- /**
- * * `posthog_object` - posthog_object
- */
- export type ReferenceTypeEnum = "posthog_object";
- export type TaskRunPostHogReferenceMetadata = {
- /**
- * Reference metadata type. posthog_object identifies a live PostHog object.
- *
- * * `posthog_object` - posthog_object
- */
- reference_type: ReferenceTypeEnum;
- /**
- * PostHog object kind used to resolve the reference.
- *
- * * `insight` - insight
- * * `hogql` - hogql
- * * `dashboard` - dashboard
- * * `error` - error
- * * `replay` - replay
- * * `flag` - flag
- * * `experiment` - experiment
- * * `survey` - survey
- * * `ticket` - ticket
- * * `report` - report
- * * `trace` - trace
- * * `eval` - eval
- * * `event` - event
- * * `cohort` - cohort
- * * `action` - action
- * * `person` - person
- */
- object_kind: ObjectKindEnum;
- /**
- * Exact PostHog object identifier, flag key, event name, or SQL query.
- */
- object_id: string;
- /**
- * Completed assistant message identifiers that referenced the object.
- */
- source_message_ids: Array<string>;
- /**
- * Number of distinct completed assistant messages that referenced the object.
- */
- occurrence_count: number;
- };
- export type TaskRunArtifactMetadata =
- | TaskRunSkillBundleMetadata
- | TaskRunPostHogReferenceMetadata;
- /**
- * * `agent` - agent
- * * `user` - user
- */
- export type UploadedByEnum = "agent" | "user";
- export type TaskRunArtifactResponse = {
- id?: string | undefined;
- /**
- * Artifact file name
- */
- name: string;
- /**
- * Artifact classification (plan, context, etc.)
- */
- type: string;
- source?: string | undefined;
- size?: number | undefined;
- content_type?: string | undefined;
- metadata?: TaskRunArtifactMetadata | undefined;
- storage_path?: string | undefined;
- /**
- * Timestamp when the artifact was uploaded or registered
- */
- uploaded_at: string;
- uploaded_by?: UploadedByEnum | undefined;
- uploaded_by_user_id?: number | undefined;
- dismissed_at?: string | undefined;
- url?: string | undefined;
- };
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- export type TaskRunDetailDTO = {
- id: string;
- /**
- * Parent task id this run belongs to.
- */
- task: string;
- stage: string | null;
- branch: string | null;
- status: string;
- environment: string;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- runtime_adapter?: (RuntimeAdapterEnum | NullEnum) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- provider?: (TaskRunDetailDTOProviderEnum | NullEnum) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- model?: (string | null) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- reasoning_effort?: (TaskRunReasoningEffortEnum | NullEnum) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- log_url?: (string | null) | undefined;
- error_message: string | null;
- output: Record<string, unknown> | null;
- /**
- * Latest summary for this task, including a summary inherited from an earlier run.
- */
- task_summary: string | null;
- state: Record<string, unknown>;
- artifacts: Array<TaskRunArtifactResponse>;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- created_at?: (string | null) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- updated_at?: (string | null) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- completed_at?: (string | null) | undefined;
- /**
- * Detail response for a task run.
- *
- * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
- * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
- * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
- * ``latest_run`` shape by the task detail response.
- */
- preview_available?: boolean | undefined;
- };
- /**
- * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
- */
- export type TaskUserBasicInfo = {
- id: number;
- uuid: string;
- distinct_id: string;
- first_name: string;
- last_name: string;
- email: string;
- /**
- * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
- */
- is_email_verified?: (boolean | null) | undefined;
- /**
- * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
- */
- hedgehog_config?: (Record<string, unknown> | null) | undefined;
- /**
- * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
- */
- role_at_organization?: (string | null) | undefined;
- };
- export type SlackThreadReferenceDTO = {
- url: string;
- channel: string;
- created_at?: (string | null) | undefined;
- };
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- export type TaskDetailDTO = {
- id: string;
- task_number: number | null;
- slug: string;
- title: string;
- title_manually_set: boolean;
- description: string;
- origin_product: string;
- /**
- * Agent protocol and harness used for this task's runs.
- *
- * * `acp` - ACP
- * * `pi` - Pi
- */
- runtime: TaskRuntimeEnum;
- repository: string | null;
- repositories: Array<string>;
- github_integration: number | null;
- github_user_integration: string | null;
- signal_report: string | null;
- json_schema: Record<string, unknown> | null;
- internal: boolean;
- archived: boolean;
- archived_at: string | null;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- latest_run?: (TaskRunDetailDTO | null) | undefined;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- created_at?: (string | null) | undefined;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- updated_at?: (string | null) | undefined;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- last_activity_at?: (string | null) | undefined;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- created_by?: (TaskUserBasicInfo | null) | undefined;
- ci_prompt: string | null;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- channel?: (string | null) | undefined;
- slack_thread_references: Array<SlackThreadReferenceDTO>;
- /**
- * Detail response for a task.
- *
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
- */
- origin_key?: (string | null) | undefined;
- };
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- export type TaskBasic = {
- id: string;
- task_number: number | null;
- slug: string;
- title: string;
- title_manually_set: boolean;
- origin_product: string;
- /**
- * Agent protocol and harness used for this task's runs.
- *
- * * `acp` - ACP
- * * `pi` - Pi
- */
- runtime: TaskRuntimeEnum;
- repository: string | null;
- repositories: Array<string>;
- github_integration: number | null;
- github_user_integration: string | null;
- signal_report: string | null;
- json_schema: Record<string, unknown> | null;
- internal: boolean;
- archived: boolean;
- archived_at: string | null;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- latest_run?: (TaskRunDetailDTO | null) | undefined;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- created_at?: (string | null) | undefined;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- updated_at?: (string | null) | undefined;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- last_activity_at?: (string | null) | undefined;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- created_by?: (TaskUserBasicInfo | null) | undefined;
- ci_prompt: string | null;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- channel?: (string | null) | undefined;
- slack_thread_references: Array<SlackThreadReferenceDTO>;
- /**
- * Basic list response for a task, returned when the list is asked for ``basic=true``.
- *
- * A surface that renders only a summary of each task asks for the basic payload and gets this
- * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
- * replaces it with ``description_preview`` (the first characters) so a feed can still show a
- * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
- * always returns it. A client uses the ``search`` query parameter to match description text
- * server-side.
- */
- origin_key?: (string | null) | undefined;
- /**
- * First 1000 characters of the description, so a summary surface can show a prompt snippet without the full body. Open the task for the complete text.
- */
- description_preview: string;
- };
- export type TaskListItem = TaskDetailDTO | TaskBasic;
- export type PaginatedTaskListItemList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<TaskListItem>;
- };
- export type PaginatedTaskRunDetailDTOList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<TaskRunDetailDTO>;
- };
- /**
- * * `not_started` - Not Started
- * * `queued` - Queued
- * * `in_progress` - In Progress
- * * `completed` - Completed
- * * `failed` - Failed
- * * `cancelled` - Cancelled
- */
- export type TaskRunStatusEnum =
- | "not_started"
- | "queued"
- | "in_progress"
- | "completed"
- | "failed"
- | "cancelled";
- /**
- * * `local` - Local
- * * `cloud` - Cloud
- */
- export type TaskRunEnvironmentEnum = "local" | "cloud";
- /**
- * * `open` - open
- * * `draft` - draft
- * * `merged` - merged
- * * `closed` - closed
- * * `unknown` - unknown
- */
- export type PrStateEnum =
- | "open"
- | "draft"
- | "merged"
- | "closed"
- | "unknown";
- export type TaskRunSummary = {
- /**
- * ID of the latest run.
- */
- id: string;
- status: TaskRunStatusEnum | NullEnum;
- environment: TaskRunEnvironmentEnum | NullEnum;
- /**
- * Execution mode of the latest run.
- *
- * * `interactive` - interactive
- * * `background` - background
- */
- mode: TaskExecutionModeEnum;
- /**
- * URL of the pull request the latest run opened, or null when it opened none.
- */
- pr_url: string | null;
- /**
- * State of that pull request: open, draft, merged, closed, or unknown. Null when the latest run opened no pull request.
- *
- * * `open` - open
- * * `draft` - draft
- * * `merged` - merged
- * * `closed` - closed
- * * `unknown` - unknown
- */
- pr_state: PrStateEnum | NullEnum;
- task_summary?: (string | null) | undefined;
- };
- /**
- * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
- */
- export type TaskSummaryDTO = {
- id: string;
- title: string;
- repository: string | null;
- /**
- * ID of the user who created the task, or null for system-created tasks.
- */
- created_by_id: number | null;
- created_at: string;
- updated_at: string;
- /**
- * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
- */
- origin_product?: string | undefined;
- /**
- * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
- */
- latest_run?: (TaskRunSummary | null) | undefined;
- };
- export type PaginatedTaskSummaryDTOList = {
- count: number;
- next?: (string | null) | undefined;
- previous?: (string | null) | undefined;
- results: Array<TaskSummaryDTO>;
- };
- /**
- * * `disabled` - disabled
- * * `toolbar` - toolbar
- */
- export type ToolbarModeEnum = "disabled" | "toolbar";
/**
* * `Africa/Abidjan` - Africa/Abidjan
* * `Africa/Accra` - Africa/Accra
@@ -17962,6 +17954,875 @@ export namespace Schemas {
| "W-SU"
| "WET"
| "Zulu";
+ /**
+ * Serializer for `Team` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ export type OrganizationTeamBasic = {
+ id: number;
+ uuid: string;
+ organization: string;
+ project_id: number;
+ api_token: string;
+ name: string;
+ completed_snippet_onboarding: boolean;
+ has_completed_onboarding_for: unknown;
+ ingested_event: boolean;
+ is_demo: boolean;
+ timezone: TimezoneEnum & unknown;
+ access_control: boolean;
+ /**
+ * The project group shown in the organization project switcher, or null if it has no group.
+ */
+ project_group: string | null;
+ };
+ export type OrganizationMemberNoticeAction = {
+ /**
+ * Text on the button shown next to the notice.
+ */
+ label: string;
+ /**
+ * Link the button opens in a new tab. Must use http or https.
+ */
+ url: string;
+ };
+ export type OrganizationMemberNotice = {
+ /**
+ * HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.
+ */
+ message: string;
+ action?: (OrganizationMemberNoticeAction | null) | undefined;
+ };
+ export type Organization = {
+ id: string;
+ name: string;
+ slug: string;
+ logo_media_id?: (string | null) | undefined;
+ created_at: string;
+ updated_at: string;
+ membership_level: OrganizationMembershipLevelEnum & unknown;
+ /**
+ * When the requesting user joined this organization. Null if the user is not a member.
+ */
+ membership_joined_at: string | null;
+ plugins_access_level: OrganizationPluginsAccessLevelEnum & unknown;
+ teams: Array<OrganizationTeamBasic>;
+ projects: Array<Record<string, unknown>>;
+ available_product_features: Array<unknown> | null;
+ /**
+ * Legacy field; member-join emails are controlled per user in account notification settings.
+ */
+ is_member_join_email_enabled: boolean;
+ metadata: Record<string, string>;
+ customer_id: string | null;
+ enforce_2fa?: (boolean | null) | undefined;
+ enforce_verified_domains?: (boolean | null) | undefined;
+ members_can_invite?: (boolean | null) | undefined;
+ members_can_create_projects?: (boolean | null) | undefined;
+ members_can_use_personal_api_keys?: boolean | undefined;
+ members_can_see_org_members?: boolean | undefined;
+ allow_publicly_shared_resources?: boolean | undefined;
+ read_only_mcp_access?: (boolean | null) | undefined;
+ member_notice?: (OrganizationMemberNotice | null) | undefined;
+ member_count: number;
+ is_ai_data_processing_approved?: (boolean | null) | undefined;
+ is_ai_training_opted_in?: (boolean | null) | undefined;
+ /**
+ * When True, the AI training opt-out setting cannot be modified through the UI or API.
+ */
+ is_ai_training_locked: boolean | null;
+ /**
+ * When True, in-app callouts inviting members to enable AI training are shown.
+ */
+ is_ai_training_cta_shown: boolean | null;
+ /**
+ * Whether the organization has a countersigned Business Associate Agreement on file. When true, AI training stays opted out and cannot be changed.
+ */
+ has_signed_baa: boolean;
+ default_anonymize_ips?: boolean | undefined;
+ default_role_id?: (string | null) | undefined;
+ /**
+ * Set this to 'No' to temporarily disable an organization.
+ */
+ is_active: boolean | null;
+ /**
+ * (optional) reason for why the organization has been de-activated. This will be displayed to users on the web app.
+ */
+ is_not_active_reason: string | null;
+ /**
+ * Set to True when org deletion has been initiated. Blocks all UI access until the async task completes.
+ */
+ is_pending_deletion: boolean | null;
+ /**
+ * When True, access controls resolve with the most specific matching rule. When False, the legacy resolution order applies.
+ */
+ uses_most_specific_access_resolution: boolean | null;
+ };
+ /**
+ * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ export type OrganizationBasic = {
+ id: string;
+ name: string;
+ slug: string;
+ logo_media_id: string | null;
+ membership_level: OrganizationMembershipLevelEnum & unknown;
+ /**
+ * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ members_can_use_personal_api_keys?: boolean | undefined;
+ /**
+ * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ is_active?: (boolean | null) | undefined;
+ /**
+ * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ is_not_active_reason?: (string | null) | undefined;
+ /**
+ * Serializer for `Organization` model with minimal attributes to speeed up loading and transfer times.
+ * Also used for nested serializers.
+ */
+ is_pending_deletion?: (boolean | null) | undefined;
+ };
+ /**
+ * * `data_catalog_weekly_digest` - data_catalog_weekly_digest
+ * * `discussions_mentioned` - discussions_mentioned
+ * * `error_tracking_issue_assigned` - error_tracking_issue_assigned
+ * * `error_tracking_weekly_digest_project_enabled` - error_tracking_weekly_digest_project_enabled
+ * * `materialized_view_sync_failed` - materialized_view_sync_failed
+ * * `materialized_view_sync_failed_daily` - materialized_view_sync_failed_daily
+ * * `materialized_view_sync_failed_immediate` - materialized_view_sync_failed_immediate
+ * * `organization_member_join_email_disabled` - organization_member_join_email_disabled
+ * * `pipeline_notifications_disabled` - pipeline_notifications_disabled
+ * * `project_weekly_digest_disabled` - project_weekly_digest_disabled
+ * * `web_analytics_weekly_digest_project_enabled` - web_analytics_weekly_digest_project_enabled
+ */
+ export type SettingEnum =
+ | "data_catalog_weekly_digest"
+ | "discussions_mentioned"
+ | "error_tracking_issue_assigned"
+ | "error_tracking_weekly_digest_project_enabled"
+ | "materialized_view_sync_failed"
+ | "materialized_view_sync_failed_daily"
+ | "materialized_view_sync_failed_immediate"
+ | "organization_member_join_email_disabled"
+ | "pipeline_notifications_disabled"
+ | "project_weekly_digest_disabled"
+ | "web_analytics_weekly_digest_project_enabled";
+ export type OrganizationNotificationLock = {
+ /**
+ * Notification setting this rule enforces.
+ *
+ * * `data_catalog_weekly_digest` - data_catalog_weekly_digest
+ * * `discussions_mentioned` - discussions_mentioned
+ * * `error_tracking_issue_assigned` - error_tracking_issue_assigned
+ * * `error_tracking_weekly_digest_project_enabled` - error_tracking_weekly_digest_project_enabled
+ * * `materialized_view_sync_failed` - materialized_view_sync_failed
+ * * `materialized_view_sync_failed_daily` - materialized_view_sync_failed_daily
+ * * `materialized_view_sync_failed_immediate` - materialized_view_sync_failed_immediate
+ * * `organization_member_join_email_disabled` - organization_member_join_email_disabled
+ * * `pipeline_notifications_disabled` - pipeline_notifications_disabled
+ * * `project_weekly_digest_disabled` - project_weekly_digest_disabled
+ * * `web_analytics_weekly_digest_project_enabled` - web_analytics_weekly_digest_project_enabled
+ */
+ setting: SettingEnum;
+ /**
+ * What the setting applies to: a project ID or an organization ID. Empty for a setting that is a single switch.
+ */
+ scope_id: string;
+ /**
+ * The value the organization enforces.
+ */
+ locked_value: boolean;
+ };
+ export type PaginatedCommentList = {
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<Comment>;
+ };
+ export type PaginatedEvaluationList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<Evaluation>;
+ };
+ export type PaginatedExternalDataSourceSerializersList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<ExternalDataSourceSerializers>;
+ };
+ export type PaginatedFeatureFlagList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<FeatureFlag>;
+ };
+ export type PaginatedHogFlowMinimalList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<HogFlowMinimal>;
+ };
+ /**
+ * * `distinct_id` - Distinct ID
+ * * `email` - Email
+ * * `name` - Name
+ * * `id` - Person ID
+ */
+ export type PersonSearchMatchFieldEnum =
+ | "distinct_id"
+ | "email"
+ | "name"
+ | "id";
+ export type PersonListRecord = {
+ /**
+ * Numeric person ID.
+ */
+ id: number;
+ /**
+ * Display name derived from person properties (email, name, or username).
+ */
+ name: string;
+ distinct_ids: Array<string>;
+ properties?: unknown | undefined;
+ /**
+ * When this person was first seen (ISO 8601).
+ */
+ created_at: string;
+ /**
+ * Unique identifier (UUID) for this person.
+ */
+ uuid: string;
+ /**
+ * Timestamp of the last event from this person, or null.
+ */
+ last_seen_at: string | null;
+ matched_fields?: Array<PersonSearchMatchFieldEnum> | undefined;
+ };
+ export type PaginatedPersonListRecordList = Partial<{
+ next: string | null;
+ previous: string | null;
+ count: number;
+ results: Array<PersonListRecord>;
+ }>;
+ /**
+ * * `acp` - ACP
+ * * `pi` - Pi
+ */
+ export type TaskRuntimeEnum = "acp" | "pi";
+ /**
+ * * `claude` - claude
+ * * `codex` - codex
+ */
+ export type RuntimeAdapterEnum = "claude" | "codex";
+ /**
+ * * `anthropic` - anthropic
+ * * `openai` - openai
+ */
+ export type TaskRunDetailDTOProviderEnum = "anthropic" | "openai";
+ /**
+ * * `off` - off
+ * * `minimal` - minimal
+ * * `low` - low
+ * * `medium` - medium
+ * * `high` - high
+ * * `xhigh` - xhigh
+ * * `max` - max
+ * * `ultracode` - ultracode
+ */
+ export type TaskRunReasoningEffortEnum =
+ | "off"
+ | "minimal"
+ | "low"
+ | "medium"
+ | "high"
+ | "xhigh"
+ | "max"
+ | "ultracode";
+ /**
+ * * `user` - user
+ * * `repo` - repo
+ * * `marketplace` - marketplace
+ * * `codex` - codex
+ */
+ export type SkillSourceEnum = "user" | "repo" | "marketplace" | "codex";
+ export type TaskRunSkillBundleMetadata = {
+ /**
+ * Name of the local skill included in a skill_bundle artifact.
+ */
+ skill_name: string;
+ /**
+ * Local source for the uploaded skill bundle, such as user or repo.
+ *
+ * * `user` - user
+ * * `repo` - repo
+ * * `marketplace` - marketplace
+ * * `codex` - codex
+ */
+ skill_source: SkillSourceEnum;
+ /**
+ * SHA-256 hex digest of the uploaded skill bundle bytes.
+ */
+ content_sha256: string;
+ /**
+ * Archive format used for the local skill bundle.
+ *
+ * * `zip` - zip
+ */
+ bundle_format: BundleFormatEnum;
+ /**
+ * Version of the local skill bundle metadata schema.
+ */
+ schema_version: number;
+ };
+ /**
+ * * `posthog_object` - posthog_object
+ */
+ export type ReferenceTypeEnum = "posthog_object";
+ export type TaskRunPostHogReferenceMetadata = {
+ /**
+ * Reference metadata type. posthog_object identifies a live PostHog object.
+ *
+ * * `posthog_object` - posthog_object
+ */
+ reference_type: ReferenceTypeEnum;
+ /**
+ * PostHog object kind used to resolve the reference.
+ *
+ * * `insight` - insight
+ * * `hogql` - hogql
+ * * `dashboard` - dashboard
+ * * `error` - error
+ * * `replay` - replay
+ * * `flag` - flag
+ * * `experiment` - experiment
+ * * `survey` - survey
+ * * `ticket` - ticket
+ * * `report` - report
+ * * `trace` - trace
+ * * `eval` - eval
+ * * `event` - event
+ * * `cohort` - cohort
+ * * `action` - action
+ * * `person` - person
+ */
+ object_kind: ObjectKindEnum;
+ /**
+ * Exact PostHog object identifier, flag key, event name, or SQL query.
+ */
+ object_id: string;
+ /**
+ * Completed assistant message identifiers that referenced the object.
+ */
+ source_message_ids: Array<string>;
+ /**
+ * Number of distinct completed assistant messages that referenced the object.
+ */
+ occurrence_count: number;
+ };
+ export type TaskRunArtifactMetadata =
+ | TaskRunSkillBundleMetadata
+ | TaskRunPostHogReferenceMetadata;
+ /**
+ * * `agent` - agent
+ * * `user` - user
+ */
+ export type UploadedByEnum = "agent" | "user";
+ export type TaskRunArtifactResponse = {
+ id?: string | undefined;
+ /**
+ * Artifact file name
+ */
+ name: string;
+ /**
+ * Artifact classification (plan, context, etc.)
+ */
+ type: string;
+ source?: string | undefined;
+ size?: number | undefined;
+ content_type?: string | undefined;
+ metadata?: TaskRunArtifactMetadata | undefined;
+ storage_path?: string | undefined;
+ /**
+ * Timestamp when the artifact was uploaded or registered
+ */
+ uploaded_at: string;
+ uploaded_by?: UploadedByEnum | undefined;
+ uploaded_by_user_id?: number | undefined;
+ dismissed_at?: string | undefined;
+ url?: string | undefined;
+ };
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ export type TaskRunDetailDTO = {
+ id: string;
+ /**
+ * Parent task id this run belongs to.
+ */
+ task: string;
+ stage: string | null;
+ branch: string | null;
+ status: string;
+ environment: string;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ runtime_adapter?: (RuntimeAdapterEnum | NullEnum) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ provider?: (TaskRunDetailDTOProviderEnum | NullEnum) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ model?: (string | null) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ reasoning_effort?: (TaskRunReasoningEffortEnum | NullEnum) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ log_url?: (string | null) | undefined;
+ error_message: string | null;
+ output: Record<string, unknown> | null;
+ /**
+ * Latest summary for this task, including a summary inherited from an earlier run.
+ */
+ task_summary: string | null;
+ /**
+ * Latest slug tags for this task, including tags inherited from an earlier run.
+ */
+ task_tags: Array<string>;
+ state: Record<string, unknown>;
+ artifacts: Array<TaskRunArtifactResponse>;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ created_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ updated_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ completed_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ scheduled_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task run.
+ *
+ * Reads from a frozen ``TaskRunDetailDTO`` produced by the facade mapper (which computes the
+ * presigned ``log_url`` and parses ``runtime_adapter`` / ``provider`` / ``model`` /
+ * ``reasoning_effort`` off the run state). ``task`` is the parent task id. Reused as the nested
+ * ``latest_run`` shape by the task detail response.
+ */
+ preview_available?: boolean | undefined;
+ };
+ /**
+ * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
+ */
+ export type TaskUserBasicInfo = {
+ id: number;
+ uuid: string;
+ distinct_id: string;
+ first_name: string;
+ last_name: string;
+ email: string;
+ /**
+ * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
+ */
+ is_email_verified?: (boolean | null) | undefined;
+ /**
+ * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
+ */
+ hedgehog_config?: (Record<string, unknown> | null) | undefined;
+ /**
+ * Response shape for a task creator, mirroring core ``UserBasicSerializer`` output.
+ */
+ role_at_organization?: (string | null) | undefined;
+ };
+ export type SlackThreadReferenceDTO = {
+ url: string;
+ channel: string;
+ created_at?: (string | null) | undefined;
+ };
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ export type TaskDetailDTO = {
+ id: string;
+ task_number: number | null;
+ slug: string;
+ title: string;
+ title_manually_set: boolean;
+ description: string;
+ origin_product: string;
+ /**
+ * Agent protocol and harness used for this task's runs.
+ *
+ * * `acp` - ACP
+ * * `pi` - Pi
+ */
+ runtime: TaskRuntimeEnum;
+ repository: string | null;
+ repositories: Array<string>;
+ github_integration: number | null;
+ github_user_integration: string | null;
+ signal_report: string | null;
+ json_schema: Record<string, unknown> | null;
+ internal: boolean;
+ archived: boolean;
+ archived_at: string | null;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ latest_run?: (TaskRunDetailDTO | null) | undefined;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ created_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ updated_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ last_activity_at?: (string | null) | undefined;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ created_by?: (TaskUserBasicInfo | null) | undefined;
+ ci_prompt: string | null;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ channel?: (string | null) | undefined;
+ slack_thread_references: Array<SlackThreadReferenceDTO>;
+ /**
+ * Detail response for a task.
+ *
+ * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
+ * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
+ * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ */
+ origin_key?: (string | null) | undefined;
+ };
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ export type TaskBasic = {
+ id: string;
+ task_number: number | null;
+ slug: string;
+ title: string;
+ title_manually_set: boolean;
+ origin_product: string;
+ /**
+ * Agent protocol and harness used for this task's runs.
+ *
+ * * `acp` - ACP
+ * * `pi` - Pi
+ */
+ runtime: TaskRuntimeEnum;
+ repository: string | null;
+ repositories: Array<string>;
+ github_integration: number | null;
+ github_user_integration: string | null;
+ signal_report: string | null;
+ json_schema: Record<string, unknown> | null;
+ internal: boolean;
+ archived: boolean;
+ archived_at: string | null;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ latest_run?: (TaskRunDetailDTO | null) | undefined;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ created_at?: (string | null) | undefined;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ updated_at?: (string | null) | undefined;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ last_activity_at?: (string | null) | undefined;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ created_by?: (TaskUserBasicInfo | null) | undefined;
+ ci_prompt: string | null;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ channel?: (string | null) | undefined;
+ slack_thread_references: Array<SlackThreadReferenceDTO>;
+ /**
+ * Basic list response for a task, returned when the list is asked for ``basic=true``.
+ *
+ * A surface that renders only a summary of each task asks for the basic payload and gets this
+ * smaller shape. It drops the full ``description`` body, which dominates the list payload, and
+ * replaces it with ``description_preview`` (the first characters) so a feed can still show a
+ * prompt snippet. The default list response keeps the full ``description``, and ``retrieve``
+ * always returns it. A client uses the ``search`` query parameter to match description text
+ * server-side.
+ */
+ origin_key?: (string | null) | undefined;
+ /**
+ * First 1000 characters of the description, so a summary surface can show a prompt snippet without the full body. Open the task for the complete text.
+ */
+ description_preview: string;
+ };
+ export type TaskListItem = TaskDetailDTO | TaskBasic;
+ export type PaginatedTaskListItemList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<TaskListItem>;
+ };
+ export type PaginatedTaskRunDetailDTOList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<TaskRunDetailDTO>;
+ };
+ /**
+ * * `not_started` - Not Started
+ * * `queued` - Queued
+ * * `in_progress` - In Progress
+ * * `completed` - Completed
+ * * `failed` - Failed
+ * * `cancelled` - Cancelled
+ */
+ export type TaskRunStatusEnum =
+ | "not_started"
+ | "queued"
+ | "in_progress"
+ | "completed"
+ | "failed"
+ | "cancelled";
+ /**
+ * * `local` - Local
+ * * `cloud` - Cloud
+ */
+ export type TaskRunEnvironmentEnum = "local" | "cloud";
+ /**
+ * * `open` - open
+ * * `draft` - draft
+ * * `merged` - merged
+ * * `closed` - closed
+ * * `unknown` - unknown
+ */
+ export type PrStateEnum =
+ | "open"
+ | "draft"
+ | "merged"
+ | "closed"
+ | "unknown";
+ export type TaskRunSummary = {
+ /**
+ * ID of the latest run.
+ */
+ id: string;
+ status: TaskRunStatusEnum | NullEnum;
+ environment: TaskRunEnvironmentEnum | NullEnum;
+ /**
+ * Execution mode of the latest run.
+ *
+ * * `interactive` - interactive
+ * * `background` - background
+ */
+ mode: TaskExecutionModeEnum;
+ /**
+ * URL of the pull request the latest run opened, or null when it opened none.
+ */
+ pr_url: string | null;
+ /**
+ * State of that pull request: open, draft, merged, closed, or unknown. Null when the latest run opened no pull request.
+ *
+ * * `open` - open
+ * * `draft` - draft
+ * * `merged` - merged
+ * * `closed` - closed
+ * * `unknown` - unknown
+ */
+ pr_state: PrStateEnum | NullEnum;
+ task_summary?: (string | null) | undefined;
+ };
+ /**
+ * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
+ */
+ export type TaskSummaryDTO = {
+ id: string;
+ title: string;
+ repository: string | null;
+ /**
+ * ID of the user who created the task, or null for system-created tasks.
+ */
+ created_by_id: number | null;
+ created_at: string;
+ updated_at: string;
+ /**
+ * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
+ */
+ origin_product?: string | undefined;
+ /**
+ * Summary response for a task — reads from a frozen ``TaskSummaryDTO``.
+ */
+ latest_run?: (TaskRunSummary | null) | undefined;
+ };
+ export type PaginatedTaskSummaryDTOList = {
+ count: number;
+ next?: (string | null) | undefined;
+ previous?: (string | null) | undefined;
+ results: Array<TaskSummaryDTO>;
+ };
+ /**
+ * * `disabled` - disabled
+ * * `toolbar` - toolbar
+ */
+ export type ToolbarModeEnum = "disabled" | "toolbar";
/**
* Serializer for `Team` model with minimal attributes to speeed up loading and transfer times.
* Also used for nested serializers.
@@ -18034,6 +18895,10 @@ export namespace Schemas {
*/
is_impersonated_reason: string | null;
sensitive_session_expires_at: string | null;
+ /**
+ * When the last re-authentication stops counting as fresh. Changing `email` after this needs a new re-authentication. Null when the session has none on record.
+ */
+ fresh_reauth_expires_at: string | null;
team: TeamBasic & unknown;
organization: Organization & unknown;
organizations: Array<OrganizationBasic>;
@@ -18163,6 +19028,15 @@ export namespace Schemas {
output_config: Partial<{
allows_na: boolean;
true_is_failure: boolean;
+ min: number | null;
+ max: number | null;
+ step: number | null;
+ options: Array<{ key: string; label: string }>;
+ selection_mode: "single" | "multiple";
+ passing_rule:
+ | { operator: "gte" | "lte"; threshold: number }
+ | { categories: Array<string> }
+ | null;
}>;
conditions: Array<EvaluationCondition>;
target: EvaluationTargetEnum;
@@ -18218,8 +19092,8 @@ export namespace Schemas {
conclusion_comment: string | null;
flag_cleanup_task_id: string | null;
repository: string | null;
- primary_metrics_ordered_uuids: unknown;
- secondary_metrics_ordered_uuids: unknown;
+ primary_metrics_ordered_uuids: Array<string> | null;
+ secondary_metrics_ordered_uuids: Array<string> | null;
only_count_matured_users: boolean;
update_feature_flag_params: boolean;
version: number | null;
@@ -18228,6 +19102,7 @@ export namespace Schemas {
is_legacy: boolean;
can_freeze_exposure: boolean;
resolved_exposure_event: string;
+ health: ExperimentHealth | null;
user_access_level: string | null;
tags: Array<string>;
}>;
@@ -18261,6 +19136,7 @@ export namespace Schemas {
supports_column_selection: boolean;
api_version: string | null;
api_version_deprecation: ExternalDataSourceApiVersionDeprecation | null;
+ connection_warning: string | null;
}>;
export type PatchedFeatureFlagPartialUpdateRequestSchema = Partial<{
key: string;
@@ -18319,6 +19195,7 @@ export namespace Schemas {
email_sending_paused_by: string;
email_sending_pause_requires_support: boolean;
email_sending_resumed_at: string | null;
+ last_run: HogFlowLastRun | null;
}>;
/**
* Simplified serializer to speed response times when loading large amounts of objects.
@@ -18361,6 +19238,7 @@ export namespace Schemas {
date_to: string;
}> | null;
query_scan: unknown;
+ warnings: _InsightResultWarnings | null;
_create_in_folder: string;
alerts: Array<unknown>;
filter_override_context: InsightFilterOverrideContext | null;
@@ -18381,7 +19259,7 @@ export namespace Schemas {
breakdown_colors: Array<BreakdownColorConfig> | null;
data_color_theme_id: number | null;
tags: Array<string>;
- restriction_level: RestrictionLevelEnum;
+ restriction_level: number;
quick_filter_ids: Array<string> | null;
grid_spacing: TileSpacingEnum;
layout_compaction: LayoutCompactionEnum;
@@ -18605,6 +19483,7 @@ export namespace Schemas {
* * `posthog_ai` - PostHog AI
* * `experiments` - Experiments
* * `signal_report` - Signal Report
+ * * `autoresearch` - Autoresearch
* * `signals_scout` - Signals Scout
* * `scout_suggestions` - Signals Scout Suggestions
* * `support_reply` - Support Reply
@@ -18616,6 +19495,8 @@ export namespace Schemas {
* * `signals_chat` - Signals Chat
* * `task_analysis` - Task Analysis
* * `workflow` - Workflow
+ * * `space_setup` - Space Setup
+ * * `business_knowledge` - Business Knowledge
*/
export type TaskOriginProductEnum =
| "onboarding"
@@ -18628,6 +19509,7 @@ export namespace Schemas {
| "posthog_ai"
| "experiments"
| "signal_report"
+ | "autoresearch"
| "signals_scout"
| "scout_suggestions"
| "support_reply"
@@ -18638,7 +19520,9 @@ export namespace Schemas {
| "mcp_analytics"
| "signals_chat"
| "task_analysis"
- | "workflow";
+ | "workflow"
+ | "space_setup"
+ | "business_knowledge";
/**
* * `default` - default
* * `acceptEdits` - acceptEdits
@@ -18761,6 +19645,7 @@ export namespace Schemas {
is_impersonated_read_only: boolean | null;
is_impersonated_reason: string | null;
sensitive_session_expires_at: string | null;
+ fresh_reauth_expires_at: string | null;
team: TeamBasic & unknown;
organization: Organization & unknown;
organizations: Array<OrganizationBasic>;
@@ -18793,6 +19678,30 @@ export namespace Schemas {
pending_invites: Array<PendingInvite>;
requires_credential_review: boolean;
}>;
+ export type PersonRecord = {
+ /**
+ * Numeric person ID.
+ */
+ id: number;
+ /**
+ * Display name derived from person properties (email, name, or username).
+ */
+ name: string;
+ distinct_ids: Array<string>;
+ properties?: unknown | undefined;
+ /**
+ * When this person was first seen (ISO 8601).
+ */
+ created_at: string;
+ /**
+ * Unique identifier (UUID) for this person.
+ */
+ uuid: string;
+ /**
+ * Timestamp of the last event from this person, or null.
+ */
+ last_seen_at: string | null;
+ };
/**
* * `30d` - 30 Days
* * `90d` - 90 Days
@@ -18824,6 +19733,19 @@ export namespace Schemas {
custom_source_mappings: MarketingAnalyticsCustomSourceMappings;
campaign_field_preferences: MarketingAnalyticsCampaignFieldPreferences;
}>;
+ export type TeamCustomerAnalyticsPinnedAccountProperty = {
+ /**
+ * Definition type for this default pinned account property.
+ *
+ * * `custom_property` - Custom property
+ * * `relationship` - Relationship
+ */
+ kind: AccountPropertyPinKindEnum;
+ /**
+ * Project-scoped custom property or relationship definition UUID.
+ */
+ id: string;
+ };
export type TeamCustomerAnalyticsConfig = Partial<{
activity_event: unknown;
signup_pageview_event: unknown;
@@ -18831,6 +19753,7 @@ export namespace Schemas {
subscription_event: unknown;
payment_event: unknown;
account_group_type_index: number | null;
+ default_pinned_properties: Array<TeamCustomerAnalyticsPinnedAccountProperty>;
}>;
export type TeamWorkflowsConfig = Partial<{
capture_workflows_engagement_events: boolean;
@@ -19137,6 +20060,13 @@ export namespace Schemas {
* onto /api/projects/ never loses a field.
*/
primary_dashboard?: (number | null) | undefined;
+ /**
+ * A project and its settings, including the settings that live on its passthrough Team.
+ *
+ * This shape is a superset of TeamSerializer's, so a request rewritten from /api/environments/
+ * onto /api/projects/ never loses a field.
+ */
+ home_tab_dashboard?: (number | null) | undefined;
/**
* A project and its settings, including the settings that live on its passthrough Team.
*
@@ -19243,7 +20173,7 @@ export namespace Schemas {
* This shape is a superset of TeamSerializer's, so a request rewritten from /api/environments/
* onto /api/projects/ never loses a field.
*/
- conversations_settings?: unknown | undefined;
+ conversations_settings?: (Record<string, unknown> | null) | undefined;
/**
* A project and its settings, including the settings that live on its passthrough Team.
*
@@ -19276,6 +20206,10 @@ export namespace Schemas {
*/
user_access_level: string | null;
managed_viewsets: Record<string, boolean>;
+ /**
+ * Which table this project's feature flag usage data is read from. PostHog sets it for the whole organization. 0 reads the events table. 1 and 2 read the flag_evaluations table.
+ */
+ flag_evaluations_mode: FlagEvaluationsModeEnum & unknown;
/**
* A project and its settings, including the settings that live on its passthrough Team.
*
@@ -19473,6 +20407,20 @@ export namespace Schemas {
*/
states: Record<string, boolean>;
};
+ export type RowFilterColumn = {
+ /**
+ * Column name to use as `column` in a row filter.
+ */
+ name: string;
+ /**
+ * Column type, which decides the format of the filter value.
+ */
+ data_type: string;
+ /**
+ * Operators a row filter on this column may use.
+ */
+ operators: Array<string>;
+ };
export type SessionRecording = {
id: string;
distinct_id: string | null;
@@ -19957,6 +20905,7 @@ export namespace Schemas {
pending_user_artifact_ids: Array<string>;
auto_publish: boolean | null;
channel: string | null;
+ scheduled_at: string | null;
start_run: boolean;
signal_report_discussion_question: string;
naming_source: string;
@@ -20129,6 +21078,9 @@ export namespace Schemas {
created: boolean;
};
export type TaskRunResumeRequestSchema = Partial<{
+ scheduled_at: string | null;
+ model: string;
+ reasoning_effort: ReasoningEffortEnum;
mode: TaskExecutionModeEnum & unknown;
branch: string | null;
resume_from_run_id: string;
@@ -20158,11 +21110,10 @@ export namespace Schemas {
is_pro: boolean;
}>;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
export type TaskRunResponse = {
id: string;
@@ -20189,71 +21140,70 @@ export namespace Schemas {
archived: boolean;
archived_at: string | null;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
latest_run?: (TaskRunDetailDTO | null) | undefined;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
created_at?: (string | null) | undefined;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
updated_at?: (string | null) | undefined;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
last_activity_at?: (string | null) | undefined;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
created_by?: (TaskUserBasicInfo | null) | undefined;
ci_prompt: string | null;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
channel?: (string | null) | undefined;
slack_thread_references: Array<SlackThreadReferenceDTO>;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
origin_key?: (string | null) | undefined;
/**
- * Detail response for a task.
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
*
- * Reads from a frozen ``TaskDetailDTO`` produced by the facade. ``github_integration`` /
- * ``github_user_integration`` are integration ids, ``signal_report`` is the report id, and
- * ``latest_run`` nests the run-detail shape. ``created_by`` mirrors core ``UserBasicSerializer``.
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
*/
run_error?: string | undefined;
+ /**
+ * The task ``run`` action's response: the refreshed task detail plus the run this call made.
+ *
+ * ``run`` is the run the call created or activated — the payload a caller reads run-scoped ids
+ * from, instead of inferring them from ``latest_run`` (or, worse, the top-level task ``id``).
+ */
+ run?: (TaskRunDetailDTO | null) | undefined;
};
export type TaskSummariesRequest = {
/**
@@ -20353,7 +21303,21 @@ export namespace Schemas {
unread_team_count: number;
unread_customer_count: number;
session_id: string | null;
- session_context: unknown;
+ /**
+ * Context captured with the ticket. Values are strings, numbers or booleans. Keys are whatever the widget sent, commonly current_url, replay_url, browser, os and sdk_version.
+ */
+ session_context: Partial<
+ {
+ /**
+ * Page the reporter was on.
+ */
+ current_url: string;
+ /**
+ * Replay of the session the ticket came from.
+ */
+ replay_url: string;
+ } & Record<string, any>
+ >;
/**
* Mixin for serializers to add user access control fields
*/
@@ -20708,7 +21672,7 @@ export namespace Endpoints {
}>;
path: { id: number; project_id: string };
- body: Schemas.Dashboard;
+ body: Schemas.DashboardWriteOpenApi;
};
responses: { 200: Schemas.Dashboard };
};
@@ -21159,11 +22123,14 @@ export namespace Endpoints {
requestFormat: "json";
parameters: {
query: Partial<{
+ broadcast_eligible: boolean;
+ broadcast_status: string;
created_at: string;
created_by: string;
id: string;
limit: number;
offset: number;
+ optimization_enabled: boolean;
origin_product: "broadcasts" | "loops";
search: string;
status: "active" | "archived" | "draft";
@@ -21387,6 +22354,7 @@ export namespace Endpoints {
distinct_id: string;
email: string;
format: "csv" | "json";
+ include_matched_fields: boolean;
limit: number;
offset: number;
properties: Array<Schemas.Property>;
@@ -21394,7 +22362,7 @@ export namespace Endpoints {
}>;
path: { project_id: string };
};
- responses: { 200: Schemas.PaginatedPersonRecordList };
+ responses: { 200: Schemas.PaginatedPersonListRecordList };
};
/**
* This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
@@ -21507,6 +22475,13 @@ export namespace Endpoints {
};
responses: { 200: Schemas.ReportReadStateResponse };
};
+ /**
+ * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers.
+ *
+ * Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate
+ * decorator on serializer methods and converts them into the same responses the viewset path
+ * produces (see decorators._result_to_response), so both paths share one contract.
+ */
export type get_Surveys_retrieve = {
method: "GET";
path: "/api/projects/{project_id}/surveys/{id}/";
@@ -21516,6 +22491,13 @@ export namespace Endpoints {
};
responses: { 200: Schemas.Survey };
};
+ /**
+ * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers.
+ *
+ * Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate
+ * decorator on serializer methods and converts them into the same responses the viewset path
+ * produces (see decorators._result_to_response), so both paths share one contract.
+ */
export type put_Surveys_update = {
method: "PUT";
path: "/api/projects/{project_id}/surveys/{id}/";
@@ -21527,6 +22509,13 @@ export namespace Endpoints {
};
responses: { 200: Schemas.SurveySerializerCreateUpdateOnly };
};
+ /**
+ * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers.
+ *
+ * Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate
+ * decorator on serializer methods and converts them into the same responses the viewset path
+ * produces (see decorators._result_to_response), so both paths share one contract.
+ */
export type patch_Surveys_partial_update = {
method: "PATCH";
path: "/api/projects/{project_id}/surveys/{id}/";
@@ -21538,6 +22527,13 @@ export namespace Endpoints {
};
responses: { 200: Schemas.SurveySerializerCreateUpdateOnly };
};
+ /**
+ * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers.
+ *
+ * Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate
+ * decorator on serializer methods and converts them into the same responses the viewset path
+ * produces (see decorators._result_to_response), so both paths share one contract.
+ */
export type delete_Surveys_destroy = {
method: "DELETE";
path: "/api/projects/{project_id}/surveys/{id}/";
@@ -21601,6 +22597,7 @@ export namespace Endpoints {
| "posthog_ai"
| "experiments"
| "signal_report"
+ | "autoresearch"
| "signals_scout"
| "scout_suggestions"
| "support_reply"
@@ -21611,7 +22608,9 @@ export namespace Endpoints {
| "mcp_analytics"
| "signals_chat"
| "task_analysis"
- | "workflow";
+ | "workflow"
+ | "space_setup"
+ | "business_knowledge";
hog_flow_id: string;
internal: "true" | "false" | "all";
limit: number;
@@ -21723,7 +22722,7 @@ export namespace Endpoints {
responses: { 200: Schemas.TaskReview };
};
/**
- * Create a new task run and kick off the workflow.
+ * Create a new task run and kick off the workflow. The response is the refreshed task with the created run under the top-level `run` key: read `run.id` for anything run-scoped, such as the run's stream and command endpoints. The top-level `id` is the task's, and `latest_run` mirrors `run` only as long as nothing newer starts — reading either of those as the created run is deprecated.
*/
export type post_Tasks_run_create = {
method: "POST";