Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

468 lines
21 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"description": {
"description": "Human-readable description of what this function does.",
"type": "string"
},
"enabled": {
"description": "Whether the function is active and processing events.",
"type": "boolean"
},
"execution_order": {
"anyOf": [
{
"maximum": 32767,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"description": "Execution priority for transformation functions (lower runs first). Only applies to type=transformation. If omitted, the function is appended at the end."
},
"filters": {
"description": "Event filters that control which events trigger this function.",
"properties": {
"actions": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"bytecode": {},
"bytecode_error": {
"type": "string"
},
"data_warehouse": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"events": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"filter_test_accounts": {
"type": "boolean"
},
"properties": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"source": {
"default": "events",
"description": "* `events` - events\n* `person-updates` - person-updates\n* `data-warehouse-table` - data-warehouse-table",
"enum": ["events", "person-updates", "data-warehouse-table"],
"type": "string"
},
"transpiled": {}
},
"type": "object"
},
"script": {
"description": "Source code for the function. For most types this is Script code; for site_destination and site_app types this is TypeScript. Required if no template_id is provided.",
"type": "string"
},
"icon_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "URL for the function's icon displayed in the UI."
},
"inputs": {
"additionalProperties": {
"properties": {
"bytecode": {
"items": {},
"type": "array"
},
"order": {
"type": "number"
},
"templating": {
"description": "* `script` - script\n* `liquid` - liquid",
"enum": ["script", "liquid"],
"type": "string"
},
"transpiled": {},
"value": {}
},
"type": "object"
},
"description": "Values for each input defined in inputs_schema.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"inputs_schema": {
"description": "Schema defining the configurable input parameters for this function.",
"items": {
"properties": {
"choices": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"default": {},
"description": {
"type": "string"
},
"hidden": {
"default": false,
"type": "boolean"
},
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"required": {
"default": false,
"type": "boolean"
},
"searchable": {
"type": "boolean"
},
"secret": {
"default": false,
"type": "boolean"
},
"templating": {
"anyOf": [
{
"type": "boolean"
},
{
"enum": ["script", "liquid"],
"type": "string"
}
]
},
"type": {
"description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `insights_assignee` - insights_assignee\n* `insights_ticket_tags` - insights_ticket_tags\n* `insights_business_hours` - insights_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships",
"enum": [
"string",
"number",
"boolean",
"dictionary",
"choice",
"json",
"integration",
"integration_multi",
"integration_field",
"email",
"native_email",
"insights_assignee",
"insights_ticket_tags",
"insights_business_hours",
"non_failure_status_codes",
"customer_analytics_account_properties",
"customer_analytics_account_relationships"
],
"type": "string"
}
},
"required": ["type", "key"],
"type": "object"
},
"type": "array"
},
"mappings": {
"anyOf": [
{
"items": {
"properties": {
"filters": {
"properties": {
"actions": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"data_warehouse": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"events": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"filter_test_accounts": {
"type": "boolean"
},
"properties": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"source": {
"default": "events",
"description": "* `events` - events\n* `person-updates` - person-updates\n* `data-warehouse-table` - data-warehouse-table",
"enum": ["events", "person-updates", "data-warehouse-table"],
"type": "string"
}
},
"type": "object"
},
"inputs": {
"additionalProperties": {
"properties": {
"bytecode": {
"items": {},
"type": "array"
},
"order": {
"type": "number"
},
"templating": {
"description": "* `script` - script\n* `liquid` - liquid",
"enum": ["script", "liquid"],
"type": "string"
},
"transpiled": {},
"value": {}
},
"type": "object"
},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"inputs_schema": {
"items": {
"properties": {
"choices": {
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"default": {},
"description": {
"type": "string"
},
"hidden": {
"default": false,
"type": "boolean"
},
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"required": {
"default": false,
"type": "boolean"
},
"searchable": {
"type": "boolean"
},
"secret": {
"default": false,
"type": "boolean"
},
"templating": {
"anyOf": [
{
"type": "boolean"
},
{
"enum": ["script", "liquid"],
"type": "string"
}
]
},
"type": {
"description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `insights_assignee` - insights_assignee\n* `insights_ticket_tags` - insights_ticket_tags\n* `insights_business_hours` - insights_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships",
"enum": [
"string",
"number",
"boolean",
"dictionary",
"choice",
"json",
"integration",
"integration_multi",
"integration_field",
"email",
"native_email",
"insights_assignee",
"insights_ticket_tags",
"insights_business_hours",
"non_failure_status_codes",
"customer_analytics_account_properties",
"customer_analytics_account_relationships"
],
"type": "string"
}
},
"required": ["type", "key"],
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Event-to-destination field mappings. Only for destination and site_destination types."
},
"masking": {
"anyOf": [
{
"properties": {
"bytecode": {
"description": "Compiled bytecode for the hash expression. Auto-generated."
},
"hash": {
"description": "Script expression used to compute the masking hash.",
"type": "string"
},
"threshold": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Optional threshold count before masking applies."
},
"ttl": {
"description": "Time-to-live in seconds for the masking cache (60–86400).",
"maximum": 86400,
"minimum": 60,
"type": "number"
}
},
"required": ["ttl", "hash"],
"type": "object"
},
{
"type": "null"
}
],
"description": "PII masking configuration with TTL, threshold, and hash expression."
},
"name": {
"anyOf": [
{
"maxLength": 400,
"type": "string"
},
{
"type": "null"
}
],
"description": "Display name for the function."
},
"template_id": {
"anyOf": [
{
"maxLength": 400,
"type": "string"
},
{
"type": "null"
}
],
"description": "ID of a InsightsFunctionTemplate to derive defaults from (code, inputs_schema, icon, name, description). Use the cdp-function-templates-list tool to find available templates."
},
"type": {
"anyOf": [
{
"description": "* `destination` - Destination\n* `site_destination` - Site Destination\n* `internal_destination` - Internal Destination\n* `source_webhook` - Source Webhook\n* `warehouse_source_webhook` - Warehouse Source Webhook\n* `site_app` - Site App\n* `transformation` - Transformation\n* `transformation_log` - Transformation Log",
"enum": [
"destination",
"site_destination",
"internal_destination",
"source_webhook",
"warehouse_source_webhook",
"site_app",
"transformation",
"transformation_log"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Function type. One of: destination, site_destination, internal_destination, source_webhook, warehouse_source_webhook, site_app, transformation."
}
},
"type": "object"
}