{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tickertrac-com/json-schema/tickertrac-com-editorial-funnel-export-out-schema.json",
  "title": "EditorialFunnelExportOut",
  "description": "Everything TickerTrac can honestly say about attributed downstream product value.\n\n``stages_are_monotonic`` is false by contract: view and click counts are keyed by\nanonymous session HMACs while every later stage is keyed by account, so a consumer that\nranks on stage-to-stage ratios across that seam is comparing different populations.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tickertrac-com-openapi.json#/components/schemas/EditorialFunnelExportOut",
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "tickertrac-public-funnel-export/v1",
      "title": "Schema Version"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Generated At"
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "title": "As Of"
    },
    "window_days": {
      "type": "integer",
      "maximum": 90.0,
      "minimum": 1.0,
      "title": "Window Days"
    },
    "period_started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Period Started At"
    },
    "period_ended_at": {
      "type": "string",
      "format": "date-time",
      "title": "Period Ended At"
    },
    "aggregation_level": {
      "type": "string",
      "const": "artifact_presentation_channel_placement",
      "title": "Aggregation Level"
    },
    "cohorts": {
      "items": {
        "$ref": "#/$defs/EditorialFunnelCohortOut"
      },
      "type": "array",
      "title": "Cohorts"
    },
    "suppressed_cohorts": {
      "items": {
        "$ref": "#/$defs/EditorialFunnelSuppressedCohortOut"
      },
      "type": "array",
      "title": "Suppressed Cohorts"
    },
    "stage_order": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Stage Order"
    },
    "stage_identity_units": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Stage Identity Units"
    },
    "stages_are_monotonic": {
      "type": "boolean",
      "const": false,
      "title": "Stages Are Monotonic"
    },
    "artifact_views_are_owned_web_only": {
      "type": "boolean",
      "const": true,
      "title": "Artifact Views Are Owned Web Only"
    },
    "artifact_view_channel": {
      "type": "string",
      "const": "owned_web",
      "title": "Artifact View Channel"
    },
    "audience_gated_channels": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Audience Gated Channels"
    },
    "unmeasured_stages": {
      "items": {
        "$ref": "#/$defs/EditorialFunnelUnmeasuredStageOut"
      },
      "type": "array",
      "title": "Unmeasured Stages"
    },
    "channel_side_fields_absent": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Channel Side Fields Absent"
    },
    "direct_signup_cohort_excluded": {
      "type": "boolean",
      "const": true,
      "title": "Direct Signup Cohort Excluded"
    },
    "excludes_accounts_marked_out_of_product_metrics": {
      "type": "boolean",
      "const": true,
      "title": "Excludes Accounts Marked Out Of Product Metrics"
    },
    "low_volume_signup_floor": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Low Volume Signup Floor"
    },
    "k_anonymity_min_accounts": {
      "type": "integer",
      "minimum": 1.0,
      "title": "K Anonymity Min Accounts"
    },
    "reconstruction_is_deterministic_for_as_of": {
      "type": "boolean",
      "const": true,
      "title": "Reconstruction Is Deterministic For As Of"
    },
    "contains_user_identifiers": {
      "type": "boolean",
      "const": false,
      "title": "Contains User Identifiers"
    },
    "contains_raw_reason_text": {
      "type": "boolean",
      "const": false,
      "title": "Contains Raw Reason Text"
    },
    "contains_private_thesis_content": {
      "type": "boolean",
      "const": false,
      "title": "Contains Private Thesis Content"
    },
    "publication_authority": {
      "type": "string",
      "const": "none",
      "title": "Publication Authority"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "as_of",
    "window_days",
    "period_started_at",
    "period_ended_at",
    "aggregation_level",
    "cohorts",
    "suppressed_cohorts",
    "stage_order",
    "stage_identity_units",
    "stages_are_monotonic",
    "artifact_views_are_owned_web_only",
    "artifact_view_channel",
    "audience_gated_channels",
    "unmeasured_stages",
    "channel_side_fields_absent",
    "direct_signup_cohort_excluded",
    "excludes_accounts_marked_out_of_product_metrics",
    "low_volume_signup_floor",
    "k_anonymity_min_accounts",
    "reconstruction_is_deterministic_for_as_of",
    "contains_user_identifiers",
    "contains_raw_reason_text",
    "contains_private_thesis_content",
    "publication_authority"
  ],
  "$defs": {
    "EditorialFunnelCohortOut": {
      "properties": {
        "canonical_insight_ref": {
          "type": "string",
          "title": "Canonical Insight Ref"
        },
        "public_insight_candidate_ref": {
          "type": "string",
          "title": "Public Insight Candidate Ref"
        },
        "public_artifact_ref": {
          "type": "string",
          "title": "Public Artifact Ref"
        },
        "presentation_ref": {
          "type": "string",
          "title": "Presentation Ref"
        },
        "audience_variant": {
          "type": "string",
          "enum": [
            "readthrough",
            "inflection",
            "forward-signal"
          ],
          "title": "Audience Variant"
        },
        "channel": {
          "type": "string",
          "enum": [
            "owned_web",
            "instagram",
            "x",
            "linkedin",
            "email"
          ],
          "title": "Channel"
        },
        "account_key": {
          "type": "string",
          "const": "tickertrac-editorial",
          "title": "Account Key"
        },
        "cta_placement": {
          "type": "string",
          "enum": [
            "artifact_footer",
            "social_caption",
            "profile_bio",
            "email_body",
            "story_link"
          ],
          "title": "Cta Placement"
        },
        "stages": {
          "$ref": "#/$defs/EditorialFunnelStagesOut"
        },
        "first_observed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Observed At"
        },
        "low_volume": {
          "type": "boolean",
          "title": "Low Volume"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "canonical_insight_ref",
        "public_insight_candidate_ref",
        "public_artifact_ref",
        "presentation_ref",
        "audience_variant",
        "channel",
        "account_key",
        "cta_placement",
        "stages",
        "first_observed_at",
        "low_volume"
      ],
      "title": "EditorialFunnelCohortOut"
    },
    "EditorialFunnelStagesOut": {
      "properties": {
        "artifact_views": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Artifact Views"
        },
        "cta_clicks": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Cta Clicks"
        },
        "signups": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Signups"
        },
        "first_company_reasons": {
          "type": "integer",
          "minimum": 0.0,
          "title": "First Company Reasons"
        },
        "first_replays": {
          "type": "integer",
          "minimum": 0.0,
          "title": "First Replays"
        },
        "qualified_returns": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Qualified Returns"
        },
        "second_company_attempts": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Second Company Attempts"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "artifact_views",
        "cta_clicks",
        "signups",
        "first_company_reasons",
        "first_replays",
        "qualified_returns",
        "second_company_attempts"
      ],
      "title": "EditorialFunnelStagesOut",
      "description": "Product-side stage counts. Read ``stage_identity_units`` before comparing them."
    },
    "EditorialFunnelSuppressedCohortOut": {
      "properties": {
        "canonical_insight_ref": {
          "type": "string",
          "title": "Canonical Insight Ref"
        },
        "public_insight_candidate_ref": {
          "type": "string",
          "title": "Public Insight Candidate Ref"
        },
        "public_artifact_ref": {
          "type": "string",
          "title": "Public Artifact Ref"
        },
        "presentation_ref": {
          "type": "string",
          "title": "Presentation Ref"
        },
        "audience_variant": {
          "type": "string",
          "enum": [
            "readthrough",
            "inflection",
            "forward-signal"
          ],
          "title": "Audience Variant"
        },
        "channel": {
          "type": "string",
          "enum": [
            "owned_web",
            "instagram",
            "x",
            "linkedin",
            "email"
          ],
          "title": "Channel"
        },
        "account_key": {
          "type": "string",
          "const": "tickertrac-editorial",
          "title": "Account Key"
        },
        "cta_placement": {
          "type": "string",
          "enum": [
            "artifact_footer",
            "social_caption",
            "profile_bio",
            "email_body",
            "story_link"
          ],
          "title": "Cta Placement"
        },
        "first_observed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Observed At"
        },
        "withheld_stages": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Withheld Stages"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "canonical_insight_ref",
        "public_insight_candidate_ref",
        "public_artifact_ref",
        "presentation_ref",
        "audience_variant",
        "channel",
        "account_key",
        "cta_placement",
        "first_observed_at",
        "withheld_stages",
        "reason"
      ],
      "title": "EditorialFunnelSuppressedCohortOut",
      "description": "A cohort whose counts were withheld for k-anonymity, not measured as zero.\n\nIt carries the lineage Editorial itself registered plus the reason its stages are\nabsent. There is deliberately no stage object: a suppressed cohort must be unreadable\nas a measurement, and a consumer that wants counts has to wait for the cohort to reach\nthe account floor."
    },
    "EditorialFunnelUnmeasuredStageOut": {
      "properties": {
        "stage": {
          "type": "string",
          "enum": [
            "reason_previews",
            "paid_conversions",
            "artifact_views"
          ],
          "title": "Stage"
        },
        "explanation": {
          "type": "string",
          "title": "Explanation"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "stage",
        "explanation"
      ],
      "title": "EditorialFunnelUnmeasuredStageOut"
    }
  }
}