{
  "description": "Generated platform event contracts. Source service catalogs are authoritative; do not edit this file directly.",
  "format_version": 1,
  "services": [
    {
      "catalog_version": 6,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent-wide budget or principal allocation policy was deleted.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:agents.agent.budget.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.agent.budget.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.agent.budget.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent budget deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.agent.budget.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent call was blocked by an exhausted agent or principal budget.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:agents.agent.budget.exhausted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.agent.budget.exhausted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_run_id": {
                    "title": "Automation run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_spent_cost_usd": {
                    "title": "Conversation cost spent (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "conversation_spent_tokens": {
                    "title": "Conversation tokens spent",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "limit": {
                    "title": "Limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "metric": {
                    "title": "Metric",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "node_slug": {
                    "title": "Automation node",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "scope_type": {
                    "title": "Scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source_type": {
                    "title": "Invocation source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.agent.budget.exhausted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent budget exhausted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Scope",
              "path": "scope_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Metric",
              "path": "metric",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Limit",
              "path": "limit",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation cost spent (USD)",
              "path": "conversation_spent_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation tokens spent",
              "path": "conversation_spent_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Invocation source",
              "path": "source_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation run",
              "path": "automation_run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation node",
              "path": "node_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.agent.budget.exhausted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent-wide budget or principal allocation policy was updated.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:agents.agent.budget.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.agent.budget.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_max_cost_usd": {
                    "title": "Conversation cost limit (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "conversation_max_session_minutes": {
                    "title": "Conversation session time limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "conversation_max_tokens": {
                    "title": "Conversation token limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "max_cost_usd": {
                    "title": "Recurring cost limit (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "max_tokens": {
                    "title": "Recurring token limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "operation": {
                    "title": "Operation",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_allocations": {
                    "title": "Principal allocations",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.agent.budget.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent budget updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Operation",
              "path": "operation",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Recurring cost limit (USD)",
              "path": "max_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Recurring token limit",
              "path": "max_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation cost limit (USD)",
              "path": "conversation_max_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation token limit",
              "path": "conversation_max_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation session time limit",
              "path": "conversation_max_session_minutes",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal allocations",
              "path": "principal_allocations",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.agent.budget.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An LLM configuration budget or allocation was deleted.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.budget.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.budget.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "scope_type": {
                    "title": "Scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.budget.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config budget deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Scope",
              "path": "scope_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.budget.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent provider call was blocked by an exhausted budget.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.budget.exhausted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.budget.exhausted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_run_id": {
                    "title": "Automation run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "conversation_spent_cost_usd": {
                    "title": "Conversation cost spent (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "conversation_spent_tokens": {
                    "title": "Conversation tokens spent",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "limit": {
                    "title": "Limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "metric": {
                    "title": "Metric",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "node_slug": {
                    "title": "Automation node",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "scope_type": {
                    "title": "Scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source": {
                    "title": "Source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source_type": {
                    "title": "Invocation source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "spent_cost_usd": {
                    "title": "Cost spent (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "spent_tokens": {
                    "title": "Tokens spent",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "window": {
                    "title": "Window",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.budget.exhausted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config budget exhausted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Scope",
              "path": "scope_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Metric",
              "path": "metric",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Limit",
              "path": "limit",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cost spent (USD)",
              "path": "spent_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Tokens spent",
              "path": "spent_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation cost spent (USD)",
              "path": "conversation_spent_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation tokens spent",
              "path": "conversation_spent_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Window",
              "path": "window",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source",
              "path": "source",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Invocation source",
              "path": "source_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation run",
              "path": "automation_run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation node",
              "path": "node_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.budget.exhausted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An LLM configuration budget plan or allocation policy was updated.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.budget.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.budget.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "allocations": {
                    "title": "Agent allocations",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "budget_id": {
                    "title": "Budget",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "max_cost_usd": {
                    "title": "Cost limit (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "max_tokens": {
                    "title": "Token limit",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "operation": {
                    "title": "Operation",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "policy_version": {
                    "title": "Policy version",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "window": {
                    "title": "Window",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.budget.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config budget updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Budget",
              "path": "budget_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Operation",
              "path": "operation",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cost limit (USD)",
              "path": "max_cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Token limit",
              "path": "max_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Window",
              "path": "window",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Policy version",
              "path": "policy_version",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent allocations",
              "path": "allocations",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.budget.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub LLM configuration was created.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "models": {
                    "title": "Models",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_ids": {
                    "title": "Provider keys",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider keys",
              "path": "provider_key_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Models",
              "path": "models",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub LLM configuration was deleted.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "models": {
                    "title": "Models",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_ids": {
                    "title": "Provider keys",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider keys",
              "path": "provider_key_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Models",
              "path": "models",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub LLM configuration was updated.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "models": {
                    "title": "Models",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_ids": {
                    "title": "Provider keys",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider keys",
              "path": "provider_key_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Models",
              "path": "models",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A billable provider call was recorded with platform-derived cost.",
          "entity_type": "llm_config",
          "json_schema": {
            "$id": "urn:ergon:event:agents.llm_config.usage.recorded:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.llm_config.usage.recorded"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_run_id": {
                    "title": "Automation run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "cache_write_tokens": {
                    "title": "Cache write tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "cached_input_tokens": {
                    "title": "Cached input tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "cost_usd": {
                    "title": "Cost (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "input_price_per_mtok": {
                    "title": "Input price / 1M",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "input_tokens": {
                    "title": "Input tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "llm_config_id": {
                    "title": "LLM config",
                    "type": "string",
                    "x-ergon-reference-resource": "llm-config",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "model": {
                    "title": "Model",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "node_slug": {
                    "title": "Automation node",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "output_price_per_mtok": {
                    "title": "Output price / 1M",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "output_tokens": {
                    "title": "Output tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "provider_attempt_id": {
                    "title": "Provider attempt",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_call_index": {
                    "title": "Provider call",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source_type": {
                    "title": "Invocation source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.llm_config.usage.recorded",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "LLM config usage recorded",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "LLM config",
              "path": "llm_config_id",
              "reference_resource": "llm-config",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider call",
              "path": "provider_call_index",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider attempt",
              "path": "provider_attempt_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Model",
              "path": "model",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Input tokens",
              "path": "input_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Output tokens",
              "path": "output_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cached input tokens",
              "path": "cached_input_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cache write tokens",
              "path": "cache_write_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Input price / 1M",
              "path": "input_price_per_mtok",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Output price / 1M",
              "path": "output_price_per_mtok",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cost (USD)",
              "path": "cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Invocation source",
              "path": "source_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation run",
              "path": "automation_run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation node",
              "path": "node_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "llm-config",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.llm_config.usage.recorded"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An assistant reply was recorded on a conversation.",
          "entity_type": "message",
          "json_schema": {
            "$id": "urn:ergon:event:agents.message.sent:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.message.sent"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "cost_usd": {
                    "title": "Cost (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "input_tokens": {
                    "title": "Input tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "model": {
                    "title": "Model",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "output_tokens": {
                    "title": "Output tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "run_id": {
                    "description": "Set when the message originated from a tracked run.",
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.message.sent",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Assistant message sent",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the message originated from a tracked run.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Model",
              "path": "model",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Input tokens",
              "path": "input_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Output tokens",
              "path": "output_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cost (USD)",
              "path": "cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.message.sent"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub provider key was created. Secret material is never included.",
          "entity_type": "provider_key",
          "json_schema": {
            "$id": "urn:ergon:event:agents.provider_key.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.provider_key.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "base_url": {
                    "title": "Base URL",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_id": {
                    "title": "Provider key",
                    "type": "string",
                    "x-ergon-reference-resource": "provider-key",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.provider_key.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Provider key created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider key",
              "path": "provider_key_id",
              "reference_resource": "provider-key",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Base URL",
              "path": "base_url",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "provider-key",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.provider_key.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub provider key was deleted. Secret material is never included.",
          "entity_type": "provider_key",
          "json_schema": {
            "$id": "urn:ergon:event:agents.provider_key.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.provider_key.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "base_url": {
                    "title": "Base URL",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_id": {
                    "title": "Provider key",
                    "type": "string",
                    "x-ergon-reference-resource": "provider-key",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.provider_key.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Provider key deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider key",
              "path": "provider_key_id",
              "reference_resource": "provider-key",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Base URL",
              "path": "base_url",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "provider-key",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.provider_key.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Agent Hub provider key was updated. Secret material is never included.",
          "entity_type": "provider_key",
          "json_schema": {
            "$id": "urn:ergon:event:agents.provider_key.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.provider_key.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "base_url": {
                    "title": "Base URL",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider_key_id": {
                    "title": "Provider key",
                    "type": "string",
                    "x-ergon-reference-resource": "provider-key",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "secret_rotated": {
                    "title": "Secret rotated",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.provider_key.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Provider key updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider key",
              "path": "provider_key_id",
              "reference_resource": "provider-key",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Base URL",
              "path": "base_url",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Secret rotated",
              "path": "secret_rotated",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "provider-key",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.provider_key.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent invocation finished successfully. Resolves the agent_run wait key.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:agents.run.completed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.run.completed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "budget_metric": {
                    "title": "Exhausted budget metric",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "cost_usd": {
                    "title": "Cost (USD)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "duration_ms": {
                    "title": "Duration (ms)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "input_tokens": {
                    "title": "Input tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "mode": {
                    "enum": [
                      "freeform",
                      "structured",
                      "hybrid"
                    ],
                    "title": "Mode",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "model": {
                    "title": "Model",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "output_tokens": {
                    "title": "Output tokens",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "reason": {
                    "enum": [
                      "completed",
                      "budget_exceeded"
                    ],
                    "title": "Completion reason",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "structured": {
                    "description": "Parsed json_schema payload (set for structured / hybrid).",
                    "title": "Structured output",
                    "type": [
                      "array",
                      "boolean",
                      "null",
                      "number",
                      "object",
                      "string"
                    ],
                    "x-ergon-value-family": "object"
                  },
                  "text": {
                    "description": "Final assistant text (always set for freeform / hybrid).",
                    "title": "Reply text",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.run.completed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent run completed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "freeform",
                "structured",
                "hybrid"
              ],
              "json_schema_types": null,
              "label": "Mode",
              "path": "mode",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Final assistant text (always set for freeform / hybrid).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Reply text",
              "path": "text",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Parsed json_schema payload (set for structured / hybrid).",
              "enum_values": null,
              "json_schema_types": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ],
              "label": "Structured output",
              "path": "structured",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Model",
              "path": "model",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Input tokens",
              "path": "input_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Output tokens",
              "path": "output_tokens",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Cost (USD)",
              "path": "cost_usd",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Duration (ms)",
              "path": "duration_ms",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": [
                "completed",
                "budget_exceeded"
              ],
              "json_schema_types": null,
              "label": "Completion reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Exhausted budget metric",
              "path": "budget_metric",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.run.completed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent invocation raised before producing a final reply. Resolves the agent_run wait key with an error.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:agents.run.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.run.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "error": {
                    "title": "Error message",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "error_code": {
                    "description": "Stable machine-readable code (e.g. rate_limited, schema_invalid).",
                    "title": "Error code",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.run.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent run failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Error message",
              "path": "error",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Stable machine-readable code (e.g. rate_limited, schema_invalid).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Error code",
              "path": "error_code",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.run.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Internal wake event indicating a durable headless run is ready.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:agents.run.requested:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.run.requested"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "mode": {
                    "title": "Mode",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "run_id": {
                    "description": "Durable AgentRun identifier claimed by the processor.",
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source_type": {
                    "title": "Source type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.run.requested",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent run requested",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Durable AgentRun identifier claimed by the processor.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Mode",
              "path": "mode",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source type",
              "path": "source_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": true,
          "slug": "agents.run.requested"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent invocation began. Carries the run_id used for wait pairing.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:agents.run.started:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.run.started"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "message_id": {
                    "title": "Initial message",
                    "type": "string",
                    "x-ergon-reference-resource": "message",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "mode": {
                    "enum": [
                      "freeform",
                      "structured",
                      "hybrid"
                    ],
                    "title": "Mode",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "response_format_name": {
                    "description": "Name of the json_schema bound for structured / hybrid runs.",
                    "title": "Schema name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "run_id": {
                    "description": "UUID minted at dispatch time; matches the agent_run resume key.",
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.run.started",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent run started",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "UUID minted at dispatch time; matches the agent_run resume key.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Initial message",
              "path": "message_id",
              "reference_resource": "message",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "freeform",
                "structured",
                "hybrid"
              ],
              "json_schema_types": null,
              "label": "Mode",
              "path": "mode",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name of the json_schema bound for structured / hybrid runs.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Schema name",
              "path": "response_format_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.run.started"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A model tool call finished (success or error).",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:agents.tool.executed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "agents.tool.executed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "agents",
                    "x-ergon-value-family": "reference"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "success": {
                    "title": "Succeeded",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "tool": {
                    "title": "Tool name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "agents"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "agents.tool.executed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Tool executed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "agents",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Tool name",
              "path": "tool",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Succeeded",
              "path": "success",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "agents",
          "resource_type": "agent",
          "scope_anchor": "instance",
          "service_slug": "agents",
          "skip_processing": false,
          "slug": "agents.tool.executed"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "agents"
    },
    {
      "catalog_version": 1,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An Apps ``notify/email`` view was rendered and dispatched via Channels.",
          "entity_type": "view",
          "json_schema": {
            "$id": "urn:ergon:event:apps.notification.sent:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "apps.notification.sent"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "title": "From address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "app_id": {
                    "title": "App",
                    "type": "string",
                    "x-ergon-reference-resource": "app",
                    "x-ergon-reference-service": "apps",
                    "x-ergon-value-family": "reference"
                  },
                  "idempotent_replay": {
                    "description": "True when an Idempotency-Key was reused and the channels send was a cached replay rather than a new dispatch.",
                    "title": "Idempotent replay",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "item_id": {
                    "description": "Workflow item that the view rendered against. Populated when the view is bound to a workflow.",
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "message_id": {
                    "title": "Channels message id",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "recipients_count": {
                    "title": "Recipients dispatched",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "to": {
                    "title": "Recipients",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "view_id": {
                    "title": "View",
                    "type": "string",
                    "x-ergon-reference-resource": "view",
                    "x-ergon-reference-service": "apps",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "apps"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "apps.notification.sent",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Apps notification sent",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "App",
              "path": "app_id",
              "reference_resource": "app",
              "reference_service": "apps",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "View",
              "path": "view_id",
              "reference_resource": "view",
              "reference_service": "apps",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Workflow item that the view rendered against. Populated when the view is bound to a workflow.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "From address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Recipients dispatched",
              "path": "recipients_count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Recipients",
              "path": "to",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channels message id",
              "path": "message_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "True when an Idempotency-Key was reused and the channels send was a cached replay rather than a new dispatch.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Idempotent replay",
              "path": "idempotent_replay",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "apps",
          "resource_type": "app",
          "scope_anchor": "instance",
          "service_slug": "apps",
          "skip_processing": false,
          "slug": "apps.notification.sent"
        }
      ],
      "resource_id_payload_paths": {
        "app": "app_id",
        "view": "view_id"
      },
      "service_slug": "apps"
    },
    {
      "catalog_version": 1,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:automations.automation.activated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.automation.activated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.automation.activated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Automation Activated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.automation.activated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:automations.automation.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.automation.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.automation.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Automation Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.automation.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:automations.automation.deactivated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.automation.deactivated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.automation.deactivated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Automation Deactivated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.automation.deactivated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:automations.automation.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.automation.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.automation.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Automation Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.automation.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:automations.automation.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.automation.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.automation.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Automation Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.automation.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "graph",
          "json_schema": {
            "$id": "urn:ergon:event:automations.graph.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.graph.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.graph.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Graph Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.graph.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emitted by POST /automations/{id}/invoke/{trigger_node_id} after the request body validates against the trigger's input_schema.",
          "entity_type": "trigger",
          "json_schema": {
            "$id": "urn:ergon:event:automations.manual.invoked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.manual.invoked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "inputs": {
                    "description": "Free-form JSON validated against the trigger's input_schema.",
                    "title": "Inputs",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "invoked_by_kind": {
                    "enum": [
                      "user",
                      "api_key",
                      "agent",
                      "service"
                    ],
                    "title": "Invoked by kind",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "invoked_by_principal_id": {
                    "title": "Invoked by principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "trigger_node_id": {
                    "title": "Trigger node",
                    "type": "string",
                    "x-ergon-reference-resource": "automation-node",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.manual.invoked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Manual run invoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Trigger node",
              "path": "trigger_node_id",
              "reference_resource": "automation-node",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Invoked by principal",
              "path": "invoked_by_principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "user",
                "api_key",
                "agent",
                "service"
              ],
              "json_schema_types": null,
              "label": "Invoked by kind",
              "path": "invoked_by_kind",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Free-form JSON validated against the trigger's input_schema.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Inputs",
              "path": "inputs",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": false,
          "slug": "automations.manual.invoked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:automations.project.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.project.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.project.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Project Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.project.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:automations.project.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.project.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.project.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Project Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.project.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:automations.project.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.project.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.project.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Project Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.project.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.completed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.completed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.completed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Completed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.completed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.depth_limited:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.depth_limited"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.depth_limited",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Depth Limited",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.depth_limited"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Failed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.resumed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.resumed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.resumed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Resumed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.resumed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.retried:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.retried"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.retried",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Retried",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.retried"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.started:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.started"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.started",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Started",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.started"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.timed_out:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.timed_out"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.timed_out",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Timed Out",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.timed_out"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "run",
          "json_schema": {
            "$id": "urn:ergon:event:automations.run.waited:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.run.waited"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.run.waited",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations Run Waited",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.run.waited"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emitted by automations-scheduler when a schedule trigger node's next_fire_at is due. Consumed by automations-subscription as a trigger-fire cue.",
          "entity_type": "trigger",
          "json_schema": {
            "$id": "urn:ergon:event:automations.schedule.fired:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.schedule.fired"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "fired_at": {
                    "format": "date-time",
                    "title": "Fired at (UTC)",
                    "type": "string",
                    "x-ergon-value-family": "date"
                  },
                  "missed_fires": {
                    "description": "Count of fires the scheduler skipped before catching up.",
                    "title": "Missed fires",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "rule_index": {
                    "title": "Rule index",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "rule_kind": {
                    "enum": [
                      "weekly",
                      "monthly",
                      "calendar"
                    ],
                    "title": "Rule kind",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "scheduled_for": {
                    "format": "date-time",
                    "title": "Scheduled for (UTC)",
                    "type": "string",
                    "x-ergon-value-family": "date"
                  },
                  "trigger_node_id": {
                    "title": "Trigger node",
                    "type": "string",
                    "x-ergon-reference-resource": "automation-node",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.schedule.fired",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Schedule fired",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Trigger node",
              "path": "trigger_node_id",
              "reference_resource": "automation-node",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Scheduled for (UTC)",
              "path": "scheduled_for",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "date"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Fired at (UTC)",
              "path": "fired_at",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "date"
            },
            {
              "description": "Count of fires the scheduler skipped before catching up.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Missed fires",
              "path": "missed_fires",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": [
                "weekly",
                "monthly",
                "calendar"
              ],
              "json_schema_types": null,
              "label": "Rule kind",
              "path": "rule_kind",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Rule index",
              "path": "rule_index",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": false,
          "slug": "automations.schedule.fired"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "system_managed",
          "json_schema": {
            "$id": "urn:ergon:event:automations.system_managed.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.system_managed.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.system_managed.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations System Managed Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.system_managed.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "system_managed",
          "json_schema": {
            "$id": "urn:ergon:event:automations.system_managed.upserted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "automations.system_managed.upserted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "automations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "automations.system_managed.upserted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Automations System Managed Upserted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "automations",
          "skip_processing": true,
          "slug": "automations.system_managed.upserted"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "automations"
    },
    {
      "catalog_version": 8,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "IAM created a grant for a bucket-scoped resource (proxied via buckets).",
          "entity_type": "grant",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.access.grant.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.access.grant.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "effect": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Effect",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "grant_id": {
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "permission_name": {
                    "title": "Permission",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "IAM principal id of the grantee.",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "description": "IAM principal kind.",
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service",
                      "role",
                      "team"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "resource": {
                    "title": "Resource scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "bucket_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.access.grant.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Bucket access granted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "IAM principal id of the grantee.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "IAM principal kind.",
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service",
                "role",
                "team"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Permission",
              "path": "permission_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Resource scope",
              "path": "resource",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Effect",
              "path": "effect",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.access.grant.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "IAM removed a grant for a bucket.",
          "entity_type": "grant",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.access.grant.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.access.grant.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "grant_id": {
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "bucket_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.access.grant.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Bucket access revoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.access.grant.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new bucket was created in the org (optionally nested).",
          "entity_type": "bucket",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.bucket.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.bucket.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "name": {
                    "title": "Bucket name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "bucket_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.bucket.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Bucket created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.bucket.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A bucket was soft-deleted.",
          "entity_type": "bucket",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.bucket.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.bucket.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "name": {
                    "description": "Name captured before deletion.",
                    "title": "Bucket name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "bucket_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.bucket.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Bucket deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.bucket.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Bucket fields (name and/or pipeline config) were patched.",
          "entity_type": "bucket",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.bucket.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.bucket.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "updated_fields": {
                    "description": "Names of request fields that were explicitly set.",
                    "title": "Updated fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  }
                },
                "required": [
                  "bucket_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.bucket.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Bucket updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Names of request fields that were explicitly set.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Updated fields",
              "path": "updated_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.bucket.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A file was soft-deleted.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "filename": {
                    "description": "Filename captured before deletion.",
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "file_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "File deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Filename captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The pipeline raised; run and files marked failed.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "error": {
                    "title": "Error message",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "error_meta": {
                    "title": "Error truncation metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "failure_code": {
                    "title": "Failure code",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_ids": {
                    "title": "Files",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "file_ids_meta": {
                    "title": "Truncated file list metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-reference-resource": "pipeline_run",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "run_id",
                  "file_ids"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Pipeline run failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": "pipeline_run",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Files",
              "path": "file_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Truncated file list metadata",
              "path": "file_ids_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Error message",
              "path": "error",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Error truncation metadata",
              "path": "error_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Failure code",
              "path": "failure_code",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new file was ingested into the buckets (uploaded or programmatically created).",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.ingested:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.ingested"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "action": {
                    "enum": [
                      "copied"
                    ],
                    "title": "Ingest action",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "bucket_id": {
                    "description": "Parent bucket when the file is bucket-backed.",
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "filename": {
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "source": {
                    "description": "Set by internal/programmatic upload paths; absent for end-user API uploads.",
                    "enum": [
                      "internal_confirm",
                      "internal_upload",
                      "internal_upload_batch",
                      "content_upload",
                      "batch_upload"
                    ],
                    "title": "Source",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "source_file_id": {
                    "title": "Source file",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "target_bucket_id": {
                    "title": "Target bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "target_folder_id": {
                    "title": "Target folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "visibility": {
                    "enum": [
                      "bucket",
                      "standalone_company"
                    ],
                    "title": "Visibility",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "file_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.ingested",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "File ingested",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Parent bucket when the file is bucket-backed.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Set by internal/programmatic upload paths; absent for end-user API uploads.",
              "enum_values": [
                "internal_confirm",
                "internal_upload",
                "internal_upload_batch",
                "content_upload",
                "batch_upload"
              ],
              "json_schema_types": null,
              "label": "Source",
              "path": "source",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": [
                "bucket",
                "standalone_company"
              ],
              "json_schema_types": null,
              "label": "Visibility",
              "path": "visibility",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": [
                "copied"
              ],
              "json_schema_types": null,
              "label": "Ingest action",
              "path": "action",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source file",
              "path": "source_file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target bucket",
              "path": "target_bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target folder",
              "path": "target_folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.ingested"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A PipelineRun was created and the processor should run the configured OCR, analysis, grouping, and embedding stages.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.process:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.process"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "config": {
                    "description": "Sparse canonical v2 config snapshot for this run. Historical events may contain v1 aliases. Values over 32768 bytes are replaced by config_meta with a run reference.",
                    "title": "Pipeline config",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "config_meta": {
                    "title": "Omitted config metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "config_version": {
                    "description": "Optional explicit snapshot version; 2 for canonical events.",
                    "title": "Config version",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "failure_code": {
                    "title": "Previous failure code",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_ids": {
                    "description": "UUIDs of files to process.",
                    "title": "Files",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "file_ids_meta": {
                    "title": "Truncated file list metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-reference-resource": "pipeline_run",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "triggered_by": {
                    "title": "Triggered by",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "run_id",
                  "file_ids"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.process",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Pipeline run requested",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": "pipeline_run",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "UUIDs of files to process.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Files",
              "path": "file_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Truncated file list metadata",
              "path": "file_ids_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Sparse canonical v2 config snapshot for this run. Historical events may contain v1 aliases. Values over 32768 bytes are replaced by config_meta with a run reference.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Pipeline config",
              "path": "config",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Omitted config metadata",
              "path": "config_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": "Optional explicit snapshot version; 2 for canonical events.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Config version",
              "path": "config_version",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Triggered by",
              "path": "triggered_by",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous failure code",
              "path": "failure_code",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.process"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A file was not eligible for one or more pipeline stages.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.process_skipped:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.process_skipped"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "decision": {
                    "enum": [
                      "skipped",
                      "oversized"
                    ],
                    "title": "Decision",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_ids": {
                    "title": "Files",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "file_ids_meta": {
                    "title": "Truncated file list metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "reason": {
                    "title": "Reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-reference-resource": "pipeline_run",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "triggered_by": {
                    "title": "Triggered by",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.process_skipped",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "File processing skipped",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Files",
              "path": "file_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Truncated file list metadata",
              "path": "file_ids_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": "pipeline_run",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "skipped",
                "oversized"
              ],
              "json_schema_types": null,
              "label": "Decision",
              "path": "decision",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Triggered by",
              "path": "triggered_by",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.process_skipped"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The pipeline finished successfully.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.processed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.processed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "completed_empty_reason": {
                    "description": "Optional reason for a successful output with no analysis artifacts, for example no_analysis_configured.",
                    "title": "Completed-empty reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "config_version": {
                    "description": "Canonical config version used by the completed run.",
                    "title": "Config version",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_ids": {
                    "title": "Files",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "file_ids_meta": {
                    "title": "Truncated file list metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "grouping": {
                    "description": "Optional semantic-group confidence and visual-fallback metadata.",
                    "title": "Grouping metadata",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "grouping_meta": {
                    "title": "Grouping snapshot metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "reason": {
                    "title": "Skipped completion reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "result_refs": {
                    "description": "Bounded result/file identifiers. Fetch the pipeline run for the complete persisted results.",
                    "title": "Pipeline result references",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "result_refs_truncated": {
                    "title": "Result references truncated",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "results": {
                    "description": "Per-result schemas, OCR metadata, and split metadata. Each value is limited to 16384 bytes and the snapshot to 65536 bytes; omissions include explicit metadata and stable refs.",
                    "title": "Bounded result schemas and metadata",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "results_meta": {
                    "title": "Result snapshot metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "route_counts": {
                    "description": "Optional counts keyed by text_source_analysis_input.",
                    "title": "Adaptive route counts",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "route_states": {
                    "description": "Optional per-page text_source, analysis_input, reason, and quality states.",
                    "title": "Adaptive route states",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "route_states_meta": {
                    "title": "Route-state snapshot metadata",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "run_id": {
                    "title": "Run",
                    "type": "string",
                    "x-ergon-reference-resource": "pipeline_run",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "skipped": {
                    "title": "Skipped file details",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "status": {
                    "enum": [
                      "completed",
                      "skipped"
                    ],
                    "title": "Status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "run_id",
                  "file_ids"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.processed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Pipeline run completed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Run",
              "path": "run_id",
              "reference_resource": "pipeline_run",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Files",
              "path": "file_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Truncated file list metadata",
              "path": "file_ids_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "completed",
                "skipped"
              ],
              "json_schema_types": null,
              "label": "Status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Canonical config version used by the completed run.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Config version",
              "path": "config_version",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": "Optional counts keyed by text_source_analysis_input.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Adaptive route counts",
              "path": "route_counts",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": "Optional per-page text_source, analysis_input, reason, and quality states.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Adaptive route states",
              "path": "route_states",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Optional reason for a successful output with no analysis artifacts, for example no_analysis_configured.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Completed-empty reason",
              "path": "completed_empty_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Optional semantic-group confidence and visual-fallback metadata.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grouping metadata",
              "path": "grouping",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Bounded result/file identifiers. Fetch the pipeline run for the complete persisted results.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Pipeline result references",
              "path": "result_refs",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Per-result schemas, OCR metadata, and split metadata. Each value is limited to 16384 bytes and the snapshot to 65536 bytes; omissions include explicit metadata and stable refs.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bounded result schemas and metadata",
              "path": "results",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Result snapshot metadata",
              "path": "results_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Result references truncated",
              "path": "result_refs_truncated",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Skipped file details",
              "path": "skipped",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Skipped completion reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Route-state snapshot metadata",
              "path": "route_states_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grouping snapshot metadata",
              "path": "grouping_meta",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.processed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "File metadata or associations were patched.",
          "entity_type": "file",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.files.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.files.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "action": {
                    "enum": [
                      "moved"
                    ],
                    "title": "Update action",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "from_bucket_id": {
                    "title": "Previous bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "from_folder_id": {
                    "title": "Previous folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "source": {
                    "enum": [
                      "content_replace"
                    ],
                    "title": "Update source",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "to_bucket_id": {
                    "title": "New bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "to_folder_id": {
                    "title": "New folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "upload_batch_id": {
                    "description": "Files accepted together share this correlation id.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "file_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.files.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "File metadata updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": [
                "content_replace"
              ],
              "json_schema_types": null,
              "label": "Update source",
              "path": "source",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": [
                "moved"
              ],
              "json_schema_types": null,
              "label": "Update action",
              "path": "action",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous bucket",
              "path": "from_bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous folder",
              "path": "from_folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New bucket",
              "path": "to_bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New folder",
              "path": "to_folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Files accepted together share this correlation id.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "file_id",
              "resource_type": "file",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.files.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A folder was created inside a bucket or another folder.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.folder.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.folder.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "name": {
                    "title": "Folder name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "parent_folder_id": {
                    "description": "Set when the folder is nested inside another folder.",
                    "title": "Parent folder",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "bucket_id",
                  "folder_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.folder.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Set when the folder is nested inside another folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Parent folder",
              "path": "parent_folder_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.folder.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A folder was soft-deleted.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.folder.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.folder.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "name": {
                    "description": "Name captured before deletion.",
                    "title": "Folder name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "bucket_id",
                  "folder_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.folder.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Name captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.folder.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Folder fields (e.g. name) were patched.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.folder.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.folder.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_path_ids": {
                    "description": "Folder ids ordered from the bucket root to the containing folder.",
                    "title": "Folder ancestry",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "updated_fields": {
                    "title": "Updated fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  }
                },
                "required": [
                  "bucket_id",
                  "folder_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.folder.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "buckets",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Folder ids ordered from the bucket root to the containing folder.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder ancestry",
              "path": "folder_path_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Updated fields",
              "path": "updated_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            },
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.folder.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Every file accepted in one upload request reached a terminal processing state. Emitted exactly once per upload_batch_id.",
          "entity_type": "bucket",
          "json_schema": {
            "$id": "urn:ergon:event:buckets.upload_batch.completed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "buckets.upload_batch.completed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "bucket_id": {
                    "title": "Bucket",
                    "type": "string",
                    "x-ergon-reference-resource": "bucket",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "completed_at": {
                    "format": "date-time",
                    "title": "Completed at",
                    "type": "string",
                    "x-ergon-value-family": "date"
                  },
                  "expected_file_count": {
                    "title": "Expected file count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "failure_reason": {
                    "title": "Failure reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "file_count": {
                    "title": "File count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "file_ids": {
                    "title": "Files",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "file_ids_truncated": {
                    "title": "File list truncated",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "missing_file_count": {
                    "title": "Missing file count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "resume_key": {
                    "title": "Automation resume key",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "enum": [
                      "completed",
                      "completed_with_skips",
                      "completed_with_failures"
                    ],
                    "title": "Batch outcome",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "status_counts": {
                    "title": "Counts by terminal status",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "upload_batch_id": {
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "upload_batch_id",
                  "resume_key",
                  "status",
                  "file_count",
                  "completed_at"
                ],
                "type": "object"
              },
              "source": {
                "const": "buckets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "buckets.upload_batch.completed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Upload batch completed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Bucket",
              "path": "bucket_id",
              "reference_resource": "bucket",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation resume key",
              "path": "resume_key",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "completed",
                "completed_with_skips",
                "completed_with_failures"
              ],
              "json_schema_types": null,
              "label": "Batch outcome",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File count",
              "path": "file_count",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Expected file count",
              "path": "expected_file_count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Missing file count",
              "path": "missing_file_count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Counts by terminal status",
              "path": "status_counts",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Failure reason",
              "path": "failure_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Files",
              "path": "file_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File list truncated",
              "path": "file_ids_truncated",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Completed at",
              "path": "completed_at",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "date"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "bucket_id",
              "resource_type": "bucket",
              "service": "buckets"
            }
          ],
          "resource_service": "buckets",
          "resource_type": "bucket",
          "scope_anchor": "instance",
          "service_slug": "buckets",
          "skip_processing": false,
          "slug": "buckets.upload_batch.completed"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "buckets"
    },
    {
      "catalog_version": 9,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel address was created.",
          "entity_type": "address",
          "json_schema": {
            "$id": "urn:ergon:event:channels.address.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.address.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address": {
                    "title": "Address",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "channel_address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "direction": {
                    "title": "Direction",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "title": "Status",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.address.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Address created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "channel_address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Address",
              "path": "address",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Direction",
              "path": "direction",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "parent",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.address.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel address was deleted.",
          "entity_type": "address",
          "json_schema": {
            "$id": "urn:ergon:event:channels.address.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.address.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address": {
                    "title": "Address",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "channel_address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "direction": {
                    "title": "Direction",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.address.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Address deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "channel_address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Address",
              "path": "address",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Direction",
              "path": "direction",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.address.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel address was updated.",
          "entity_type": "address",
          "json_schema": {
            "$id": "urn:ergon:event:channels.address.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.address.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address": {
                    "title": "Address",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "after": {
                    "title": "After",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "before": {
                    "title": "Before",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "changed_fields": {
                    "title": "Changed fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "channel_address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.address.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Address updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "channel_address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Address",
              "path": "address",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Changed fields",
              "path": "changed_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Before",
              "path": "before",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "After",
              "path": "after",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.address.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel configuration was created.",
          "entity_type": "channel",
          "json_schema": {
            "$id": "urn:ergon:event:channels.channel.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.channel.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel_type": {
                    "title": "Channel type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "domain": {
                    "title": "Domain",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "integration_type": {
                    "description": "Email setup model. Connected mailbox is reserved and not yet available.",
                    "enum": [
                      "platform-domain",
                      "custom-domain",
                      "connected-mailbox"
                    ],
                    "title": "Integration type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "title": "Status",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.channel.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Channel created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel type",
              "path": "channel_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Domain",
              "path": "domain",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Email setup model. Connected mailbox is reserved and not yet available.",
              "enum_values": [
                "platform-domain",
                "custom-domain",
                "connected-mailbox"
              ],
              "json_schema_types": null,
              "label": "Integration type",
              "path": "integration_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "channel",
          "scope_anchor": "parent",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.channel.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel configuration was deleted.",
          "entity_type": "channel",
          "json_schema": {
            "$id": "urn:ergon:event:channels.channel.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.channel.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "domain": {
                    "title": "Domain",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.channel.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Channel deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Domain",
              "path": "domain",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "channel",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.channel.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A channel configuration was updated.",
          "entity_type": "channel",
          "json_schema": {
            "$id": "urn:ergon:event:channels.channel.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.channel.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "after": {
                    "title": "After",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "before": {
                    "title": "Before",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "changed_fields": {
                    "title": "Changed fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.channel.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Channel updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Changed fields",
              "path": "changed_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Before",
              "path": "before",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "After",
              "path": "after",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "channel",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.channel.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports a permanent bounce.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.bounced:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.bounced"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "bounced"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.bounced",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email bounced",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "bounced"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.bounced"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports a link click in the email.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.clicked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.clicked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "clicked"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.clicked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Link clicked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "clicked"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.clicked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Recipient marked the email as spam.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.complained:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.complained"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "complained"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.complained",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email complaint",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "complained"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.complained"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports successful delivery to the recipient mail server.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.delivered:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.delivered"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "delivered"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.delivered",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email delivered",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "delivered"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.delivered"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports a temporary delivery delay.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.delivery_delayed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.delivery_delayed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "delayed"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.delivery_delayed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email delivery delayed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "delayed"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.delivery_delayed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports a send/delivery failure.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "failed"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "failed"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Provider reports the email was opened (tracking pixel).",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.opened:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.opened"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "description": "Sending/receiving address (nullable when unknown).",
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "description": "Tenant id propagated from the original send.",
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "message_log_id": {
                    "description": "Activity-log row created for this lifecycle event.",
                    "title": "Message log entry",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "resend_type": {
                    "description": "Raw vendor webhook event type (currently sourced from Resend).",
                    "title": "Upstream event type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status": {
                    "description": "Status normalized from the upstream delivery event.",
                    "enum": [
                      "opened"
                    ],
                    "title": "Normalized status",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.opened",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email opened",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Activity-log row created for this lifecycle event.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log entry",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Sending/receiving address (nullable when unknown).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Tenant id propagated from the original send.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw vendor webhook event type (currently sourced from Resend).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream event type",
              "path": "resend_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Status normalized from the upstream delivery event.",
              "enum_values": [
                "opened"
              ],
              "json_schema_types": null,
              "label": "Normalized status",
              "path": "status",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.opened"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Inbound provider webhook accepted an email for a configured receive address.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.received:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.received"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "from": {
                    "description": "Raw From header on the inbound message.",
                    "title": "Sender",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "message_log_id": {
                    "title": "Message log",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "subject": {
                    "title": "Subject",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "thread_id": {
                    "description": "Resolves wait nodes paired on channel_thread:<thread_id>.",
                    "title": "Thread",
                    "type": "string",
                    "x-ergon-reference-resource": "thread",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.received",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email received",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw From header on the inbound message.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Sender",
              "path": "from",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Subject",
              "path": "subject",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Resolves wait nodes paired on channel_thread:<thread_id>.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Thread",
              "path": "thread_id",
              "reference_resource": "thread",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.received"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Outbound email was accepted by the upstream provider. Carries thread_id at the top level so automation wait nodes can resume on ``channel_thread:<thread_id>`` regardless of direction.",
          "entity_type": "email",
          "json_schema": {
            "$id": "urn:ergon:event:channels.email.sent:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.email.sent"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "company_id": {
                    "title": "Company",
                    "type": "string",
                    "x-ergon-reference-resource": "company",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "from": {
                    "title": "From header",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "message_log_id": {
                    "title": "Message log",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "provider_message_id": {
                    "title": "Provider message id",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "subject": {
                    "title": "Subject",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "thread_id": {
                    "description": "Resolves wait nodes paired on channel_thread:<thread_id>.",
                    "title": "Thread",
                    "type": "string",
                    "x-ergon-reference-resource": "thread",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.email.sent",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Email sent",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company",
              "path": "company_id",
              "reference_resource": "company",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "From header",
              "path": "from",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Subject",
              "path": "subject",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Resolves wait nodes paired on channel_thread:<thread_id>.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Thread",
              "path": "thread_id",
              "reference_resource": "thread",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider message id",
              "path": "provider_message_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.email.sent"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An address manager blocked or allowed an agent-owned automatic reply route.",
          "entity_type": "address",
          "json_schema": {
            "$id": "urn:ergon:event:channels.inbound_route.address_gate.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.inbound_route.address_gate.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "after": {
                    "title": "After",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "agent_principal_id": {
                    "title": "Agent principal",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "before": {
                    "title": "Before",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "channel_address_id": {
                    "title": "Channel address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel_config_id": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-reference-resource": "channel",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "route_id": {
                    "title": "Inbound route",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.inbound_route.address_gate.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Inbound auto-reply gate updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel_config_id",
              "reference_resource": "channel",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel address",
              "path": "channel_address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Inbound route",
              "path": "route_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent principal",
              "path": "agent_principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Before",
              "path": "before",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "After",
              "path": "after",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.inbound_route.address_gate.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An outbound message was accepted and queued for the channel address.",
          "entity_type": "message",
          "json_schema": {
            "$id": "urn:ergon:event:channels.message.dispatched:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "channels.message.dispatched"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "address_id": {
                    "title": "From address",
                    "type": "string",
                    "x-ergon-reference-resource": "address",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "channel": {
                    "description": "Logical channel kind (only 'email' validated today).",
                    "enum": [
                      "email"
                    ],
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "config": {
                    "additionalProperties": true,
                    "description": "Raw send config (subject, html, to/cc/bcc, threading headers).",
                    "properties": {
                      "bcc": {
                        "title": "BCC",
                        "type": "array",
                        "x-ergon-value-family": "array"
                      },
                      "cc": {
                        "title": "CC",
                        "type": "array",
                        "x-ergon-value-family": "array"
                      },
                      "html": {
                        "title": "HTML body",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      },
                      "in_reply_to": {
                        "title": "In-Reply-To",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      },
                      "reply_to": {
                        "title": "Reply-To",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      },
                      "subject": {
                        "title": "Subject",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      },
                      "to": {
                        "title": "Recipients",
                        "type": "array",
                        "x-ergon-value-family": "array"
                      }
                    },
                    "title": "Send config",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "from_address": {
                    "title": "From header",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "message_log_id": {
                    "title": "Message log",
                    "type": "string",
                    "x-ergon-reference-resource": "message_log",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  },
                  "thread_id": {
                    "title": "Thread",
                    "type": "string",
                    "x-ergon-reference-resource": "thread",
                    "x-ergon-reference-service": "channels",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "channels"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "channels.message.dispatched",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Message dispatched",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message log",
              "path": "message_log_id",
              "reference_resource": "message_log",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Logical channel kind (only 'email' validated today).",
              "enum_values": [
                "email"
              ],
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "From address",
              "path": "address_id",
              "reference_resource": "address",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "From header",
              "path": "from_address",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Thread",
              "path": "thread_id",
              "reference_resource": "thread",
              "reference_service": "channels",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Raw send config (subject, html, to/cc/bcc, threading headers).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Send config",
              "path": "config",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Recipients",
              "path": "config.to",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Subject",
              "path": "config.subject",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "HTML body",
              "path": "config.html",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "CC",
              "path": "config.cc",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "BCC",
              "path": "config.bcc",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Reply-To",
              "path": "config.reply_to",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "In-Reply-To",
              "path": "config.in_reply_to",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "channels",
          "resource_type": "address",
          "scope_anchor": "instance",
          "service_slug": "channels",
          "skip_processing": false,
          "slug": "channels.message.dispatched"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "channels"
    },
    {
      "catalog_version": 1,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection_folder",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection_folder.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection_folder.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection_folder.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Folder Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection_folder.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection_folder",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection_folder.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection_folder.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection_folder.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Folder Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection_folder.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "collection_folder",
          "json_schema": {
            "$id": "urn:ergon:event:compute.collection_folder.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.collection_folder.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.collection_folder.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Collection Folder Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.collection_folder.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "invocation",
          "json_schema": {
            "$id": "urn:ergon:event:compute.invocation.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.invocation.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.invocation.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Invocation Failed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.invocation.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "invocation",
          "json_schema": {
            "$id": "urn:ergon:event:compute.invocation.started:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.invocation.started"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.invocation.started",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Invocation Started",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.invocation.started"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "invocation",
          "json_schema": {
            "$id": "urn:ergon:event:compute.invocation.succeeded:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.invocation.succeeded"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.invocation.succeeded",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Invocation Succeeded",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.invocation.succeeded"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "request",
          "json_schema": {
            "$id": "urn:ergon:event:compute.request.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.request.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.request.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Request Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.request.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "request",
          "json_schema": {
            "$id": "urn:ergon:event:compute.request.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.request.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.request.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Request Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.request.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "request",
          "json_schema": {
            "$id": "urn:ergon:event:compute.request.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "compute.request.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "compute"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "compute.request.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Compute Request Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "compute",
          "skip_processing": false,
          "slug": "compute.request.updated"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "compute"
    },
    {
      "catalog_version": 5,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A chat attachment upload failed before Conversations could persist a Buckets file reference.",
          "entity_type": "attachment",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.attachment.failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.attachment.failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "batch": {
                    "title": "Batch upload",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "error": {
                    "title": "Error",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "filename": {
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "filenames": {
                    "title": "Filenames",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "status_code": {
                    "title": "Upstream status",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.attachment.failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment upload failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filenames",
              "path": "filenames",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Error",
              "path": "error",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upstream status",
              "path": "status_code",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Batch upload",
              "path": "batch",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.attachment.failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A chat attachment was successfully brokered to Buckets.",
          "entity_type": "attachment",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.attachment.uploaded:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.attachment.uploaded"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "content_type": {
                    "title": "Content type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "file_id": {
                    "title": "File",
                    "type": "string",
                    "x-ergon-reference-resource": "file",
                    "x-ergon-reference-service": "buckets",
                    "x-ergon-value-family": "reference"
                  },
                  "filename": {
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "upload_batch_id": {
                    "description": "Batch identifier when the attachment came from a batch upload.",
                    "title": "Upload batch",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.attachment.uploaded",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment uploaded",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "File",
              "path": "file_id",
              "reference_resource": "file",
              "reference_service": "buckets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Content type",
              "path": "content_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Batch identifier when the attachment came from a batch upload.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Upload batch",
              "path": "upload_batch_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.attachment.uploaded"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new conversation was started (user or internal service).",
          "entity_type": "conversation",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.conversation.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.conversation.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "channel": {
                    "description": "Channel identifier string (default 'direct').",
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "type": {
                    "enum": [
                      "dm",
                      "group"
                    ],
                    "title": "Conversation kind",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.conversation.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Conversation created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "dm",
                "group"
              ],
              "json_schema_types": null,
              "label": "Conversation kind",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Channel identifier string (default 'direct').",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.conversation.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A conversation was removed.",
          "entity_type": "conversation",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.conversation.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.conversation.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.conversation.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Conversation deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.conversation.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Conversation fields were patched (title, status, project, …).",
          "entity_type": "conversation",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.conversation.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.conversation.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "changes": {
                    "description": "Mapping of changed attribute names to their new values (excluding metadata-only updates).",
                    "title": "Changed fields",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.conversation.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Conversation updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Mapping of changed attribute names to their new values (excluding metadata-only updates).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Changed fields",
              "path": "changes",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.conversation.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new message row was stored in a conversation.",
          "entity_type": "message",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.message.added:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.message.added"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "channel": {
                    "title": "Channel",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "has_agent_participant": {
                    "description": "True if at least one agent is currently joined to the conversation.",
                    "title": "Has agent participant",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "message_id": {
                    "title": "Message",
                    "type": "string",
                    "x-ergon-reference-resource": "message",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "sender_principal_type": {
                    "description": "Kind of principal that produced the message.",
                    "enum": [
                      "user",
                      "agent",
                      "operator",
                      "contact"
                    ],
                    "title": "Sender principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "type": {
                    "enum": [
                      "dm",
                      "group"
                    ],
                    "title": "Conversation kind",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.message.added",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Message created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message",
              "path": "message_id",
              "reference_resource": "message",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "dm",
                "group"
              ],
              "json_schema_types": null,
              "label": "Conversation kind",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Channel",
              "path": "channel",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Kind of principal that produced the message.",
              "enum_values": [
                "user",
                "agent",
                "operator",
                "contact"
              ],
              "json_schema_types": null,
              "label": "Sender principal type",
              "path": "sender_principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "True if at least one agent is currently joined to the conversation.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Has agent participant",
              "path": "has_agent_participant",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.message.added"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: message handed to an external channel for delivery (not currently emitted).",
          "entity_type": "message",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.message.sent:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.message.sent"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "message_id": {
                    "title": "Message",
                    "type": "string",
                    "x-ergon-reference-resource": "message",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.message.sent",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Message sent (external)",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Message",
              "path": "message_id",
              "reference_resource": "message",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.message.sent"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An internal continuation requested processing the next bounded note window.",
          "entity_type": "conversation",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.note_backfill.requested:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.note_backfill.requested"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.note_backfill.requested",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Conversation note backfill requested",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.note_backfill.requested"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Someone joined a conversation.",
          "entity_type": "participant",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.participant.added:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.participant.added"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "participant_id": {
                    "title": "Participant row",
                    "type": "string",
                    "x-ergon-reference-resource": "participant",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_id": {
                    "description": "Platform principal id of the joining party.",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "user",
                      "agent",
                      "operator",
                      "contact"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.participant.added",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Participant added",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Participant row",
              "path": "participant_id",
              "reference_resource": "participant",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Platform principal id of the joining party.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "user",
                "agent",
                "operator",
                "contact"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.participant.added"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: a participant marked the conversation as read (not currently emitted).",
          "entity_type": "participant",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.participant.read:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.participant.read"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "participant_id": {
                    "title": "Participant row",
                    "type": "string",
                    "x-ergon-reference-resource": "participant",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.participant.read",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Participant read",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Participant row",
              "path": "participant_id",
              "reference_resource": "participant",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.participant.read"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A participant left or was removed (soft 'left_at' close).",
          "entity_type": "participant",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.participant.removed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.participant.removed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "conversation_id": {
                    "title": "Conversation",
                    "type": "string",
                    "x-ergon-reference-resource": "conversation",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "participant_id": {
                    "title": "Participant row",
                    "type": "string",
                    "x-ergon-reference-resource": "participant",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_id": {
                    "description": "Platform principal id of the leaving party.",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "user",
                      "agent",
                      "operator",
                      "contact"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "project_id": {
                    "description": "Linked project, if the conversation is project-scoped.",
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.participant.removed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Participant removed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Conversation",
              "path": "conversation_id",
              "reference_resource": "conversation",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Linked project, if the conversation is project-scoped.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Participant row",
              "path": "participant_id",
              "reference_resource": "participant",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Platform principal id of the leaving party.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "user",
                "agent",
                "operator",
                "contact"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "conversation",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.participant.removed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new project container was created under a company.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.project.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.project.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "name": {
                    "title": "Project name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "project_id": {
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.project.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Project created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "project",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.project.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A project was removed.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.project.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.project.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "name": {
                    "description": "Name captured before the row was removed.",
                    "title": "Project name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "project_id": {
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.project.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Project deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured before the row was removed.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "project",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.project.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Project fields were patched.",
          "entity_type": "project",
          "json_schema": {
            "$id": "urn:ergon:event:conversations.project.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "conversations.project.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "project_id": {
                    "title": "Project",
                    "type": "string",
                    "x-ergon-reference-resource": "project",
                    "x-ergon-reference-service": "conversations",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "conversations"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "conversations.project.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Project updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Project",
              "path": "project_id",
              "reference_resource": "project",
              "reference_service": "conversations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "conversations",
          "resource_type": "project",
          "scope_anchor": "instance",
          "service_slug": "conversations",
          "skip_processing": false,
          "slug": "conversations.project.updated"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "conversations"
    },
    {
      "catalog_version": 5,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user linked an external identity provider to their account.",
          "entity_type": "identity",
          "json_schema": {
            "$id": "urn:ergon:event:auth.sso.link:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "auth.sso.link"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "email_at_link": {
                    "title": "Email at link",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "subject": {
                    "title": "Subject",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "auth.sso.link",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "SSO identity linked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Subject",
              "path": "subject",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Email at link",
              "path": "email_at_link",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "auth.sso.link"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An existing user signed in via an external identity provider.",
          "entity_type": "identity",
          "json_schema": {
            "$id": "urn:ergon:event:auth.sso.login:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "auth.sso.login"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "email_at_link": {
                    "title": "Email at link",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "subject": {
                    "title": "Subject",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "auth.sso.login",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "SSO login",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Subject",
              "path": "subject",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Email at link",
              "path": "email_at_link",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "auth.sso.login"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user removed an external identity provider from their account.",
          "entity_type": "identity",
          "json_schema": {
            "$id": "urn:ergon:event:auth.sso.unlink:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "auth.sso.unlink"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "identity_id": {
                    "title": "Identity",
                    "type": "string",
                    "x-ergon-reference-resource": "identity",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "provider": {
                    "title": "Provider",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "auth.sso.unlink",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "SSO identity unlinked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Provider",
              "path": "provider",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Identity",
              "path": "identity_id",
              "reference_resource": "identity",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "auth.sso.unlink"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal was added to an agent's access allowlist.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:iam.agent.access_granted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.agent.access_granted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_id": {
                    "description": "company_members.id or api_keys.id depending on principal_type.",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "member",
                      "api_key"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.agent.access_granted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent access granted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "member",
                "api_key"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "company_members.id or api_keys.id depending on principal_type.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.agent.access_granted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent_access allowlist row was removed.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:iam.agent.access_revoked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.agent.access_revoked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_access_id": {
                    "title": "Access row",
                    "type": "string",
                    "x-ergon-reference-resource": "agent_access",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.agent.access_revoked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent access revoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Access row",
              "path": "agent_access_id",
              "reference_resource": "agent_access",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.agent.access_revoked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new agent and agent principal were provisioned.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:iam.agent.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.agent.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "agent_name": {
                    "title": "Agent name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "creator_principal_id": {
                    "description": "Universal Principal.id of the caller that created the agent. Null when created by a service-key path.",
                    "title": "Creator principal",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "creator_user_id": {
                    "description": "User id of the human that created the agent. Null when created by a service-key path.",
                    "title": "Creator user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.agent.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent name",
              "path": "agent_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Universal Principal.id of the caller that created the agent. Null when created by a service-key path.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Creator principal",
              "path": "creator_principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "User id of the human that created the agent. Null when created by a service-key path.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Creator user",
              "path": "creator_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.agent.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An agent row was deleted.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:iam.agent.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.agent.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "agent_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Agent name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.agent.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent name",
              "path": "agent_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.agent.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Agent fields (name, description, active flag) changed.",
          "entity_type": "agent",
          "json_schema": {
            "$id": "urn:ergon:event:iam.agent.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.agent.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "agent_name": {
                    "title": "Agent name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.agent.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Agent updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent name",
              "path": "agent_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.agent.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new API key and its principal were created.",
          "entity_type": "api_key",
          "json_schema": {
            "$id": "urn:ergon:event:iam.api_key.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.api_key.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "api_key_id": {
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.api_key.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "API key created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "api_key_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.api_key.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An API key (and cascaded principal data) was deleted.",
          "entity_type": "api_key",
          "json_schema": {
            "$id": "urn:ergon:event:iam.api_key.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.api_key.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "api_key_id": {
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.api_key.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "API key deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "api_key_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.api_key.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "API key name and/or expiry was updated.",
          "entity_type": "api_key",
          "json_schema": {
            "$id": "urn:ergon:event:iam.api_key.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.api_key.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "api_key_id": {
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.api_key.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "API key updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "api_key_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.api_key.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The automations service provisioned an automation row + automation principal via internal IAM API.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:iam.automation.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.automation.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_name": {
                    "title": "Automation name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.automation.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Automation principal created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation name",
              "path": "automation_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.automation.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An automation principal was soft-deleted via the internal IAM API.",
          "entity_type": "automation",
          "json_schema": {
            "$id": "urn:ergon:event:iam.automation.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.automation.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "automation_id": {
                    "title": "Automation",
                    "type": "string",
                    "x-ergon-reference-resource": "automation",
                    "x-ergon-reference-service": "automations",
                    "x-ergon-value-family": "reference"
                  },
                  "automation_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Automation name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.automation.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Automation principal deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation",
              "path": "automation_id",
              "reference_resource": "automation",
              "reference_service": "automations",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation name",
              "path": "automation_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.automation.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.avatar_removed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.avatar_removed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.avatar_removed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Company Avatar Removed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.avatar_removed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.avatar_updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.avatar_updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.avatar_updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Company Avatar Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.avatar_updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new organization was created and the creator was bootstrapped as a member.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "company_name": {
                    "title": "Company name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "company_slug": {
                    "title": "Company slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Company created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company name",
              "path": "company_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company slug",
              "path": "company_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An organization was soft deleted.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "company_name": {
                    "title": "Company name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "company_slug": {
                    "title": "Company slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Company deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company name",
              "path": "company_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Company slug",
              "path": "company_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An administrator changed the company-level MFA requirement.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.mfa_policy_changed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.mfa_policy_changed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "previous_require_mfa": {
                    "title": "Previous require MFA",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "require_mfa": {
                    "title": "Require MFA",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.mfa_policy_changed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Company MFA policy changed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Require MFA",
              "path": "require_mfa",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous require MFA",
              "path": "previous_require_mfa",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.mfa_policy_changed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "company",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company.profile_updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company.profile_updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company.profile_updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Company Profile Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company.profile_updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "company_service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company_service.disabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company_service.disabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company_service.disabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Company Service Disabled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company_service.disabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "company_service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.company_service.enabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.company_service.enabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.company_service.enabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Company Service Enabled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.company_service.enabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "compute_collection",
          "json_schema": {
            "$id": "urn:ergon:event:iam.compute_collection.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.compute_collection.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.compute_collection.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Compute Collection Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.compute_collection.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "connection_request",
          "json_schema": {
            "$id": "urn:ergon:event:iam.connection_request.accepted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.connection_request.accepted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.connection_request.accepted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Connection Request Accepted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.connection_request.accepted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "connection_request",
          "json_schema": {
            "$id": "urn:ergon:event:iam.connection_request.approved:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.connection_request.approved"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.connection_request.approved",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Connection Request Approved",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.connection_request.approved"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "connection_request",
          "json_schema": {
            "$id": "urn:ergon:event:iam.connection_request.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.connection_request.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.connection_request.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Connection Request Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.connection_request.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "connection_request",
          "json_schema": {
            "$id": "urn:ergon:event:iam.connection_request.rejected:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.connection_request.rejected"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.connection_request.rejected",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Connection Request Rejected",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.connection_request.rejected"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "connection_request",
          "json_schema": {
            "$id": "urn:ergon:event:iam.connection_request.withdrawn:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.connection_request.withdrawn"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.connection_request.withdrawn",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Connection Request Withdrawn",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.connection_request.withdrawn"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A non-system grant was deleted from the org-wide grants API.",
          "entity_type": "permission_grant",
          "json_schema": {
            "$id": "urn:ergon:event:iam.grant.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.grant.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "grant_id": {
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.grant.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Org grant deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.grant.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "IAM removed grants below a deleted registered resource zone.",
          "entity_type": "permission_grant",
          "json_schema": {
            "$id": "urn:ergon:event:iam.grants.subtree_purged:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.grants.subtree_purged"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "counts": {
                    "title": "Counts by subject and effect",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "deleted_count": {
                    "title": "Deleted grants",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "resource_id": {
                    "title": "Resource",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.grants.subtree_purged",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Resource grant subtree purged",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Resource",
              "path": "resource_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Deleted grants",
              "path": "deleted_count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Counts by subject and effect",
              "path": "counts",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": true,
          "slug": "iam.grants.subtree_purged"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal's IP allowlist assignments were set.",
          "entity_type": "ip_allowlist",
          "json_schema": {
            "$id": "urn:ergon:event:iam.ip_allowlists.assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.ip_allowlists.assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "allowlist_ids": {
                    "description": "Ordered set of allowlists now assigned.",
                    "title": "Allowlist ids",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.ip_allowlists.assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "IP allowlists assigned to principal",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Ordered set of allowlists now assigned.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Allowlist ids",
              "path": "allowlist_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.ip_allowlists.assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new company IP allowlist was created.",
          "entity_type": "ip_allowlist",
          "json_schema": {
            "$id": "urn:ergon:event:iam.ip_allowlists.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.ip_allowlists.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "allowlist_id": {
                    "title": "Allowlist",
                    "type": "string",
                    "x-ergon-reference-resource": "ip_allowlist",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.ip_allowlists.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "IP allowlist created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Allowlist",
              "path": "allowlist_id",
              "reference_resource": "ip_allowlist",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.ip_allowlists.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An IP allowlist was removed.",
          "entity_type": "ip_allowlist",
          "json_schema": {
            "$id": "urn:ergon:event:iam.ip_allowlists.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.ip_allowlists.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "allowlist_id": {
                    "title": "Allowlist",
                    "type": "string",
                    "x-ergon-reference-resource": "ip_allowlist",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.ip_allowlists.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "IP allowlist deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Allowlist",
              "path": "allowlist_id",
              "reference_resource": "ip_allowlist",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.ip_allowlists.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "All IP allowlist assignments were removed for a principal.",
          "entity_type": "ip_allowlist",
          "json_schema": {
            "$id": "urn:ergon:event:iam.ip_allowlists.unassigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.ip_allowlists.unassigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.ip_allowlists.unassigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "IP allowlists cleared",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.ip_allowlists.unassigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Allowlist metadata and/or CIDR entries were replaced.",
          "entity_type": "ip_allowlist",
          "json_schema": {
            "$id": "urn:ergon:event:iam.ip_allowlists.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.ip_allowlists.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "allowlist_id": {
                    "title": "Allowlist",
                    "type": "string",
                    "x-ergon-reference-resource": "ip_allowlist",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.ip_allowlists.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "IP allowlist updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Allowlist",
              "path": "allowlist_id",
              "reference_resource": "ip_allowlist",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.ip_allowlists.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user was added directly or an email invitation was created for a role.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.member.invited:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.member.invited"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "email": {
                    "title": "Invitee email",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "role": {
                    "description": "Role assigned or invited (string).",
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.member.invited",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Member invited",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Invitee email",
              "path": "email",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Role assigned or invited (string).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.member.invited"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user accepted an invitation and became a member.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.member.joined:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.member.joined"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "email": {
                    "description": "Email of the user who accepted.",
                    "title": "Email",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.member.joined",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Member joined",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Email of the user who accepted.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Email",
              "path": "email",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.member.joined"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user was removed from the organization.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.member.removed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.member.removed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "removed_user_id": {
                    "title": "Removed user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.member.removed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Member removed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Removed user",
              "path": "removed_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.member.removed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user submitted an invalid MFA code during sign-in.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.challenge_failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.challenge_failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "used_recovery_code": {
                    "title": "Used recovery code",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.challenge_failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA challenge failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Used recovery code",
              "path": "used_recovery_code",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.challenge_failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user successfully completed an MFA challenge during sign-in.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.challenge_passed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.challenge_passed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.challenge_passed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA challenge passed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.challenge_passed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user removed their MFA factor.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.disabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.disabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.disabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA disabled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.disabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user enrolled an authenticator-app TOTP factor.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.enrolled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.enrolled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.enrolled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA enrolled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.enrolled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user regenerated their batch of MFA recovery codes.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.recovery_regenerated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.recovery_regenerated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.recovery_regenerated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA recovery codes regenerated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.recovery_regenerated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A user signed in by burning a single-use MFA recovery code.",
          "entity_type": "user",
          "json_schema": {
            "$id": "urn:ergon:event:iam.mfa.recovery_used:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.mfa.recovery_used"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.mfa.recovery_used",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "MFA recovery code used",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.mfa.recovery_used"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal_permissions row was created for a member, agent, API key, custom role, or via internal service API.",
          "entity_type": "permission_grant",
          "json_schema": {
            "$id": "urn:ergon:event:iam.permission.granted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.permission.granted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "effect": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Effect",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "permission_name": {
                    "title": "Permission",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "Typed grantee id (meaning depends on principal_type).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "description": "Set on the internal grant API.",
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "resource": {
                    "description": "Often 'org/{uuid}', '*', or a service-specific path.",
                    "title": "Resource scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "role_id": {
                    "description": "Set when the grant is attached to a custom role.",
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.permission.granted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Permission granted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grant is attached to a custom role.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on the internal grant API.",
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Typed grantee id (meaning depends on principal_type).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Permission",
              "path": "permission_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Often 'org/{uuid}', '*', or a service-specific path.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Resource scope",
              "path": "resource",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Effect",
              "path": "effect",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.permission.granted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A permission grant row was deleted (per-target, role grant, or internal delete-by-id).",
          "entity_type": "permission_grant",
          "json_schema": {
            "$id": "urn:ergon:event:iam.permission.revoked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.permission.revoked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "grant_id": {
                    "description": "Id of the removed grant (also used alone for internal delete).",
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_id": {
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.permission.revoked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Permission revoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Id of the removed grant (also used alone for internal delete).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.permission.revoked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "platform",
          "json_schema": {
            "$id": "urn:ergon:event:iam.platform.company_service.disabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.platform.company_service.disabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.platform.company_service.disabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Platform Company Service Disabled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.platform.company_service.disabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "platform",
          "json_schema": {
            "$id": "urn:ergon:event:iam.platform.company_service.enabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.platform.company_service.enabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.platform.company_service.enabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Platform Company Service Enabled",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.platform.company_service.enabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "platform",
          "json_schema": {
            "$id": "urn:ergon:event:iam.platform.feature_flag.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.platform.feature_flag.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.platform.feature_flag.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Platform Feature Flag Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.platform.feature_flag.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "platform",
          "json_schema": {
            "$id": "urn:ergon:event:iam.platform.feature_flag.set:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.platform.feature_flag.set"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.platform.feature_flag.set",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Platform Feature Flag Set",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.platform.feature_flag.set"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "IAM policy evaluator denied a principal (working-hours or IP allowlist).",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.policy.denied:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.policy.denied"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "effective_mode": {
                    "enum": [
                      "platform_access",
                      "routing_only",
                      "none"
                    ],
                    "title": "Effective mode",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "reason": {
                    "enum": [
                      "outside_working_hours",
                      "ip_not_allowed"
                    ],
                    "title": "Reason",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.policy.denied",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Policy denied",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "outside_working_hours",
                "ip_not_allowed"
              ],
              "json_schema_types": null,
              "label": "Reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": [
                "platform_access",
                "routing_only",
                "none"
              ],
              "json_schema_types": null,
              "label": "Effective mode",
              "path": "effective_mode",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.policy.denied"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Any principal kind (member / api_key / agent / automation) was provisioned.",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.principals.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.principals.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "label": {
                    "description": "Human-readable label for the principal at emit time.",
                    "title": "Label",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "IAM principal id (UUID).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.principals.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Principal created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "IAM principal id (UUID).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Human-readable label for the principal at emit time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Label",
              "path": "label",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.principals.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal was soft- or hard-deleted.",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.principals.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.principals.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "label": {
                    "description": "Human-readable label for the principal at emit time.",
                    "title": "Label",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "IAM principal id (UUID).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.principals.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Principal deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "IAM principal id (UUID).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Human-readable label for the principal at emit time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Label",
              "path": "label",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.principals.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal's metadata (name, description, active flag, ...) changed.",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.principals.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.principals.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "label": {
                    "description": "Human-readable label for the principal at emit time.",
                    "title": "Label",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "IAM principal id (UUID).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.principals.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Principal updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "IAM principal id (UUID).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Human-readable label for the principal at emit time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Label",
              "path": "label",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.principals.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A role was linked to a principal (member, API key, or agent).",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_id": {
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_name": {
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Role assigned",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A custom (non-system) role was created in the org.",
          "entity_type": "role",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "role_id": {
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_name": {
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Role created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A custom role was deleted.",
          "entity_type": "role",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "role_id": {
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Role deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "role",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.service_granted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.service_granted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.service_granted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Role Service Granted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.service_granted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "role",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.service_revoked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.service_revoked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.service_revoked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Role Service Revoked",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.service_revoked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal–role assignment row was removed.",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.unassigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.unassigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_role_id": {
                    "title": "Assignment row",
                    "type": "string",
                    "x-ergon-reference-resource": "principal_role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_name": {
                    "description": "Present for member unassign; may be omitted for agent/api-key paths.",
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.unassigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Role unassigned",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Assignment row",
              "path": "principal_role_id",
              "reference_resource": "principal_role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Present for member unassign; may be omitted for agent/api-key paths.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.unassigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A custom role's name or description was changed.",
          "entity_type": "role",
          "json_schema": {
            "$id": "urn:ergon:event:iam.role.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.role.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "role_id": {
                    "title": "Role",
                    "type": "string",
                    "x-ergon-reference-resource": "role",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "role_name": {
                    "title": "Role name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.role.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Role updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role",
              "path": "role_id",
              "reference_resource": "role",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Role name",
              "path": "role_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.role.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: a service was turned off for the company (no current emit site).",
          "entity_type": "service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.service.disabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.service.disabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "service_slug": {
                    "title": "Service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.service.disabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Service disabled",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Service",
              "path": "service_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.service.disabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: a service was turned on for the company (no current emit site).",
          "entity_type": "service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.service.enabled:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.service.enabled"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "service_slug": {
                    "title": "Service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.service.enabled",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Service enabled",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Service",
              "path": "service_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.service.enabled"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal was linked to a service (principal_services row).",
          "entity_type": "principal_service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.service_access.granted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.service_access.granted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_id": {
                    "description": "Entity id for that grant path (typed by principal_type).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "description": "Set on the services-router grant-by-principal flow.",
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "service_slug": {
                    "title": "Service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.service_access.granted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Service access granted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Service",
              "path": "service_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Set on the services-router grant-by-principal flow.",
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": "Entity id for that grant path (typed by principal_type).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.service_access.granted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal_services row was removed.",
          "entity_type": "principal_service",
          "json_schema": {
            "$id": "urn:ergon:event:iam.service_access.revoked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.service_access.revoked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "access_id": {
                    "title": "Access row",
                    "type": "string",
                    "x-ergon-reference-resource": "principal_service",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "agent_id": {
                    "description": "Set when the grantee is an agent principal.",
                    "title": "Agent",
                    "type": "string",
                    "x-ergon-reference-resource": "agent",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "api_key_id": {
                    "description": "Set when the grantee is an API-key principal.",
                    "title": "API key",
                    "type": "string",
                    "x-ergon-reference-resource": "api_key",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "service_slug": {
                    "description": "Set when revoking via the services router with slug in path.",
                    "title": "Service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "target_user_id": {
                    "description": "Set when the grantee is a member principal.",
                    "title": "Target user",
                    "type": "string",
                    "x-ergon-reference-resource": "user",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.service_access.revoked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Service access revoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Set when the grantee is a member principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target user",
              "path": "target_user_id",
              "reference_resource": "user",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an agent principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Agent",
              "path": "agent_id",
              "reference_resource": "agent",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when the grantee is an API-key principal.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "API key",
              "path": "api_key_id",
              "reference_resource": "api_key",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Access row",
              "path": "access_id",
              "reference_resource": "principal_service",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set when revoking via the services router with slug in path.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Service",
              "path": "service_slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.service_access.revoked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal's presence status was changed.",
          "entity_type": "principal_status",
          "json_schema": {
            "$id": "urn:ergon:event:iam.status.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.status.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "status_type_id": {
                    "title": "Status type",
                    "type": "string",
                    "x-ergon-reference-resource": "status_type",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.status.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Principal status updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status type",
              "path": "status_type_id",
              "reference_resource": "status_type",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.status.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new custom status type was defined for the company.",
          "entity_type": "status_type",
          "json_schema": {
            "$id": "urn:ergon:event:iam.status_types.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.status_types.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status_type_id": {
                    "title": "Status type",
                    "type": "string",
                    "x-ergon-reference-resource": "status_type",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.status_types.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Status type created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status type",
              "path": "status_type_id",
              "reference_resource": "status_type",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.status_types.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A custom status type was removed.",
          "entity_type": "status_type",
          "json_schema": {
            "$id": "urn:ergon:event:iam.status_types.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.status_types.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status_type_id": {
                    "title": "Status type",
                    "type": "string",
                    "x-ergon-reference-resource": "status_type",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.status_types.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Status type deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status type",
              "path": "status_type_id",
              "reference_resource": "status_type",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.status_types.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Status-type fields were changed.",
          "entity_type": "status_type",
          "json_schema": {
            "$id": "urn:ergon:event:iam.status_types.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.status_types.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "status_type_id": {
                    "title": "Status type",
                    "type": "string",
                    "x-ergon-reference-resource": "status_type",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.status_types.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Status type updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Status type",
              "path": "status_type_id",
              "reference_resource": "status_type",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.status_types.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "team",
          "json_schema": {
            "$id": "urn:ergon:event:iam.team.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.team.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.team.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Team Created",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.team.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "team",
          "json_schema": {
            "$id": "urn:ergon:event:iam.team.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.team.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.team.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Team Deleted",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.team.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "team",
          "json_schema": {
            "$id": "urn:ergon:event:iam.team.member_added:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.team.member_added"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.team.member_added",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Team Member Added",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.team.member_added"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "team",
          "json_schema": {
            "$id": "urn:ergon:event:iam.team.member_removed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.team.member_removed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.team.member_removed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Team Member Removed",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.team.member_removed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Emit-only event awaiting curated payload metadata. The source service catalog remains authoritative.",
          "entity_type": "team",
          "json_schema": {
            "$id": "urn:ergon:event:iam.team.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.team.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {},
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.team.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {
            "uncurated": true
          },
          "name": "Iam Team Updated",
          "payload_path_overrides": {},
          "payload_schema": [],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.team.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "IAM refused to mint a token because platform access policy denied the principal.",
          "entity_type": "principal",
          "json_schema": {
            "$id": "urn:ergon:event:iam.token.issuance_denied:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.token.issuance_denied"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "detail": {
                    "title": "Denial detail",
                    "type": [
                      "array",
                      "boolean",
                      "null",
                      "number",
                      "object",
                      "string"
                    ],
                    "x-ergon-value-family": "object"
                  },
                  "endpoint": {
                    "title": "Endpoint",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.token.issuance_denied",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Token issuance denied",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Endpoint",
              "path": "endpoint",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ],
              "label": "Denial detail",
              "path": "detail",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.token.issuance_denied"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The workflows service provisioned a workflow row and principal via internal IAM API.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:iam.workflow.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.workflow.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_name": {
                    "title": "Workflow name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.workflow.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow principal created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow name",
              "path": "workflow_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.workflow.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A workflow principal was soft-deleted via the internal IAM API.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:iam.workflow.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.workflow.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Workflow name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.workflow.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow principal deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow name",
              "path": "workflow_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.workflow.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal's working-hours config assignments were set.",
          "entity_type": "working_hours",
          "json_schema": {
            "$id": "urn:ergon:event:iam.working_hours.assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.working_hours.assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "assignments": {
                    "description": "Full replacement list — each entry has config_id + enforcement_mode.",
                    "title": "Assignments",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.working_hours.assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Working hours assigned to principal",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Full replacement list — each entry has config_id + enforcement_mode.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Assignments",
              "path": "assignments",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.working_hours.assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new company working-hours schedule was created.",
          "entity_type": "working_hours",
          "json_schema": {
            "$id": "urn:ergon:event:iam.working_hours.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.working_hours.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "config_id": {
                    "title": "Config",
                    "type": "string",
                    "x-ergon-reference-resource": "working_hours_config",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.working_hours.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Working hours config created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Config",
              "path": "config_id",
              "reference_resource": "working_hours_config",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.working_hours.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A working-hours config was removed.",
          "entity_type": "working_hours",
          "json_schema": {
            "$id": "urn:ergon:event:iam.working_hours.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.working_hours.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "config_id": {
                    "title": "Config",
                    "type": "string",
                    "x-ergon-reference-resource": "working_hours_config",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.working_hours.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Working hours config deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Config",
              "path": "config_id",
              "reference_resource": "working_hours_config",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.working_hours.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "All working-hours assignments were removed for a principal.",
          "entity_type": "working_hours",
          "json_schema": {
            "$id": "urn:ergon:event:iam.working_hours.unassigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.working_hours.unassigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "principal_id": {
                    "description": "Org principal id (member / agent / api key).",
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.working_hours.unassigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Working hours cleared",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": "Org principal id (member / agent / api key).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.working_hours.unassigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Working-hours metadata and/or weekly slots were replaced.",
          "entity_type": "working_hours",
          "json_schema": {
            "$id": "urn:ergon:event:iam.working_hours.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.working_hours.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "config_id": {
                    "title": "Config",
                    "type": "string",
                    "x-ergon-reference-resource": "working_hours_config",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "description": "Stable per-company slug for the resource.",
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.working_hours.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Working hours config updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Config",
              "path": "config_id",
              "reference_resource": "working_hours_config",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stable per-company slug for the resource.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.working_hours.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The worksheets service provisioned a worksheet row and principal via internal IAM API.",
          "entity_type": "worksheet",
          "json_schema": {
            "$id": "urn:ergon:event:iam.worksheet.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.worksheet.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_name": {
                    "title": "Worksheet name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.worksheet.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Worksheet principal created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet name",
              "path": "worksheet_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.worksheet.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A worksheet principal was soft-deleted via the internal IAM API.",
          "entity_type": "worksheet",
          "json_schema": {
            "$id": "urn:ergon:event:iam.worksheet.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "iam.worksheet.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Worksheet name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "iam"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "iam.worksheet.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Worksheet principal deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet name",
              "path": "worksheet_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "iam",
          "skip_processing": false,
          "slug": "iam.worksheet.deleted"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "iam"
    },
    {
      "catalog_version": 1,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "config": {
                    "title": "Non-secret configuration",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "exportable": {
                    "title": "Exportable",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "source": {
                    "title": "Source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source",
              "path": "source",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Exportable",
              "path": "exportable",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Non-secret configuration",
              "path": "config",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.operate_denied:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.operate_denied"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "acting_principal_id": {
                    "title": "Acting principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "acting_principal_type": {
                    "title": "Acting principal type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "deny_reason": {
                    "title": "Denial reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "outcome": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Outcome",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "via_service": {
                    "title": "Via service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id",
                  "outcome"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.operate_denied",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential operation denied",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal",
              "path": "acting_principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal type",
              "path": "acting_principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Via service",
              "path": "via_service",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Outcome",
              "path": "outcome",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Denial reason",
              "path": "deny_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.operate_denied"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.operated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.operated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "acting_principal_id": {
                    "title": "Acting principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "acting_principal_type": {
                    "title": "Acting principal type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "deny_reason": {
                    "title": "Denial reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "outcome": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Outcome",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "via_service": {
                    "title": "Via service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id",
                  "outcome"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.operated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential operated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal",
              "path": "acting_principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal type",
              "path": "acting_principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Via service",
              "path": "via_service",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Outcome",
              "path": "outcome",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Denial reason",
              "path": "deny_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.operated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.resolve_denied:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.resolve_denied"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "acting_principal_id": {
                    "title": "Acting principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "acting_principal_type": {
                    "title": "Acting principal type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "deny_reason": {
                    "title": "Denial reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "outcome": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Outcome",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "via_service": {
                    "title": "Via service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id",
                  "outcome"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.resolve_denied",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential resolution denied",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal",
              "path": "acting_principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal type",
              "path": "acting_principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Via service",
              "path": "via_service",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Outcome",
              "path": "outcome",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Denial reason",
              "path": "deny_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.resolve_denied"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.resolved:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.resolved"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "acting_principal_id": {
                    "title": "Acting principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "acting_principal_type": {
                    "title": "Acting principal type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "deny_reason": {
                    "title": "Denial reason",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "outcome": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Outcome",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "via_service": {
                    "title": "Via service",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id",
                  "outcome"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.resolved",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential resolved",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal",
              "path": "acting_principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Acting principal type",
              "path": "acting_principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Via service",
              "path": "via_service",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Outcome",
              "path": "outcome",
              "reference_resource": null,
              "reference_service": null,
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Denial reason",
              "path": "deny_reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.resolved"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.rotated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.rotated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.rotated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential rotated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.rotated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "credential",
          "json_schema": {
            "$id": "urn:ergon:event:vault.credential.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.credential.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "changed_fields": {
                    "title": "Changed fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "config": {
                    "title": "Non-secret configuration",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "credential_id": {
                    "title": "Credential",
                    "type": "string",
                    "x-ergon-reference-resource": "credential",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "type": {
                    "title": "Credential type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "namespace_id",
                  "credential_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.credential.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Credential updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential",
              "path": "credential_id",
              "reference_resource": "credential",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Credential type",
              "path": "type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Changed fields",
              "path": "changed_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Non-secret configuration",
              "path": "config",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.credential.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "namespace",
          "json_schema": {
            "$id": "urn:ergon:event:vault.namespace.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.namespace.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.namespace.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Namespace created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.namespace.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "namespace",
          "json_schema": {
            "$id": "urn:ergon:event:vault.namespace.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.namespace.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "name": {
                    "title": "Name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  },
                  "slug": {
                    "title": "Slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "namespace_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.namespace.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Namespace deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Name",
              "path": "name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Slug",
              "path": "slug",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.namespace.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": null,
          "entity_type": "namespace",
          "json_schema": {
            "$id": "urn:ergon:event:vault.namespace.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "vault.namespace.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "changed_fields": {
                    "title": "Changed fields",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "namespace_id": {
                    "title": "Namespace",
                    "type": "string",
                    "x-ergon-reference-resource": "namespace",
                    "x-ergon-reference-service": "vault",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "namespace_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "vault"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "vault.namespace.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Namespace updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Namespace",
              "path": "namespace_id",
              "reference_resource": "namespace",
              "reference_service": "vault",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Changed fields",
              "path": "changed_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": null,
          "resource_type": null,
          "scope_anchor": "instance",
          "service_slug": "vault",
          "skip_processing": false,
          "slug": "vault.namespace.updated"
        }
      ],
      "resource_id_payload_paths": {
        "credential": "credential_id",
        "namespace": "namespace_id"
      },
      "service_slug": "vault"
    },
    {
      "catalog_version": 16,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A workflow-scoped IAM grant was created (proxied via workflows).",
          "entity_type": "access",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.access.grant.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.access.grant.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "effect": {
                    "enum": [
                      "allow",
                      "deny"
                    ],
                    "title": "Effect",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "grant_id": {
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "permission_name": {
                    "title": "Permission",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "principal_id": {
                    "title": "Principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "principal_type": {
                    "enum": [
                      "member",
                      "api_key",
                      "agent",
                      "automation",
                      "service"
                    ],
                    "title": "Principal type",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "resource": {
                    "title": "Resource scope",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.access.grant.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow access granted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "member",
                "api_key",
                "agent",
                "automation",
                "service"
              ],
              "json_schema_types": null,
              "label": "Principal type",
              "path": "principal_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Principal",
              "path": "principal_id",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Permission",
              "path": "permission_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Resource scope",
              "path": "resource",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": [
                "allow",
                "deny"
              ],
              "json_schema_types": null,
              "label": "Effect",
              "path": "effect",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.access.grant.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A workflow-scoped grant was deleted.",
          "entity_type": "access",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.access.grant.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.access.grant.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "grant_id": {
                    "title": "Grant",
                    "type": "string",
                    "x-ergon-reference-resource": "permission_grant",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.access.grant.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow access revoked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Grant",
              "path": "grant_id",
              "reference_resource": "permission_grant",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.access.grant.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A field was added to a phase.",
          "entity_type": "field",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.field.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.field.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "field_id": {
                    "title": "Field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "field_name": {
                    "title": "Field name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "field_type": {
                    "description": "Slug from field_types (e.g. text, number, select, attachment).",
                    "title": "Field type slug",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Owning phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.field.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase field created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field name",
              "path": "field_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Slug from field_types (e.g. text, number, select, attachment).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field type slug",
              "path": "field_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Owning phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.field.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A field was removed from a phase.",
          "entity_type": "field",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.field.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.field.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "field_id": {
                    "title": "Field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "field_name": {
                    "title": "Field name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Owning phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.field.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase field deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field name",
              "path": "field_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Owning phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "field_id",
              "resource_type": "field",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.field.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Field metadata was changed, or the field set was reordered within a phase.",
          "entity_type": "field",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.field.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.field.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "action": {
                    "description": "Set to 'reordered' on the reorder path; absent on metadata updates.",
                    "enum": [
                      "reordered"
                    ],
                    "title": "Update kind",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "field_id": {
                    "title": "Field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "field_ids": {
                    "description": "Set on the reorder path: ordered field ids after the change.",
                    "title": "Reordered field ids",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "field_name": {
                    "title": "Field name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Owning phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.field.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase field updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set to 'reordered' on the reorder path; absent on metadata updates.",
              "enum_values": [
                "reordered"
              ],
              "json_schema_types": null,
              "label": "Update kind",
              "path": "action",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field name",
              "path": "field_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Owning phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on the reorder path: ordered field ids after the change.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Reordered field ids",
              "path": "field_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "field_id",
              "resource_type": "field",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.field.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An item was assigned to a principal (manual path).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "assigned_to": {
                    "description": "Principal id of the assignee.",
                    "title": "Assignee",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item assigned",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Principal id of the assignee.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Assignee",
              "path": "assigned_to",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Attachment field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An attachment was removed from a field.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.attachment.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.attachment.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "field_id": {
                    "title": "Attachment field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "object_key": {
                    "title": "Storage key",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.attachment.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment removed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Attachment field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Storage key",
              "path": "object_key",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.attachment.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Attachment field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new attachment was added to a field.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.attachment.uploaded:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.attachment.uploaded"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "field_id": {
                    "title": "Attachment field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "filename": {
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.attachment.uploaded",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment uploaded",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Attachment field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.attachment.uploaded"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "The routing worker assigned an item to a principal.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.auto_assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.auto_assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "assigned_to": {
                    "title": "Chosen assignee",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "group_id": {
                    "title": "Routing group",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow_group",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "strategy": {
                    "enum": [
                      "round_robin",
                      "least_loaded"
                    ],
                    "title": "Routing strategy",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.auto_assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item auto-assigned",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Routing group",
              "path": "group_id",
              "reference_resource": "workflow_group",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Chosen assignee",
              "path": "assigned_to",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "round_robin",
                "least_loaded"
              ],
              "json_schema_types": null,
              "label": "Routing strategy",
              "path": "strategy",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.auto_assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Assignment was cleared after timeout (timeout worker pass 2).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.auto_released:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.auto_released"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_title": {
                    "title": "Item title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Current phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "released_from": {
                    "title": "Previous assignee",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.auto_released",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Assignment auto-released",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Current phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous assignee",
              "path": "released_from",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item title",
              "path": "item_title",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.auto_released"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Parent item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Parent phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A child item was created from a parent item. The event is anchored on the parent; the child also emits items.created.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.child_created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.child_created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "child_item_id": {
                    "title": "Child item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Parent phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "target_phase_id": {
                    "title": "Child starting phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "target_workflow_id": {
                    "title": "Child workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.child_created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Child item created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Parent phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Child item",
              "path": "child_item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Child workflow",
              "path": "target_workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Child starting phase",
              "path": "target_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.child_created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Parent item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Parent phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A parent-to-child item link was removed without deleting either item. The event is anchored on the parent.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.child_unlinked:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.child_unlinked"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "child_item_id": {
                    "title": "Child item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Parent phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.child_unlinked",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Child item unlinked",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Parent phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Child item",
              "path": "child_item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.child_unlinked"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A principal claimed an item from the pool.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.claimed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.claimed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "assigned_to": {
                    "title": "Claiming principal",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.claimed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item claimed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Claiming principal",
              "path": "assigned_to",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.claimed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A comment was posted on an item.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.comment.added:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.comment.added"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "comment_content": {
                    "title": "Comment text",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "comment_id": {
                    "title": "Comment",
                    "type": "string",
                    "x-ergon-reference-resource": "comment",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.comment.added",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Comment added",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Comment",
              "path": "comment_id",
              "reference_resource": "comment",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Comment text",
              "path": "comment_content",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.comment.added"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A comment on an item was removed.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.comment.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.comment.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "comment_id": {
                    "title": "Comment id",
                    "type": "string",
                    "x-ergon-reference-resource": "comment",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.comment.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Comment deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Comment id",
              "path": "comment_id",
              "reference_resource": "comment",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.comment.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Starting phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new workflow item was created (authenticated path).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Starting phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Starting phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item (snapshot)",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase at deletion",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An item was removed from the workflow.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Phase at deletion",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "title": {
                    "description": "Title captured before deletion.",
                    "title": "Item title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Title captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item title",
              "path": "title",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase at deletion",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "field",
              "inventory_endpoint_template": "/api/v1/workflows/fields/{id}/condition-fields",
              "key": "field",
              "kind": "entity",
              "label": "Changed field",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "field_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 2
          },
          "deprecated": false,
          "description": "A single item field value changed through the direct API or a saved view, or a batch update was applied by automation.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.field.updated:v2",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.field.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "field_id": {
                    "description": "API path: the single field whose value changed.",
                    "title": "Field",
                    "type": "string",
                    "x-ergon-reference-resource": "field",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "field_name": {
                    "title": "Field name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Current phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "updated_fields": {
                    "description": "Automation update_fields path: list of field ids updated.",
                    "title": "Updated field ids",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "value": {
                    "description": "API path: new field value (shape depends on field type). Omitted with value_ref metadata when its serialized form exceeds the field-value event limit.",
                    "title": "New value",
                    "type": [
                      "array",
                      "boolean",
                      "null",
                      "number",
                      "object",
                      "string"
                    ],
                    "x-ergon-value-family": "object"
                  },
                  "value_omitted": {
                    "title": "Value omitted",
                    "type": "boolean",
                    "x-ergon-value-family": "boolean"
                  },
                  "value_ref": {
                    "title": "Value reference",
                    "type": "object",
                    "x-ergon-value-family": "object"
                  },
                  "value_size_bytes": {
                    "title": "Omitted value size",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "view_id": {
                    "description": "Present when the field was edited through a saved view.",
                    "title": "Source view",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id",
                  "field_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.field.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 2
            }
          },
          "metadata": {},
          "name": "Item field value updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Current phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "API path: the single field whose value changed.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field",
              "path": "field_id",
              "reference_resource": "field",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field name",
              "path": "field_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "API path: new field value (shape depends on field type). Omitted with value_ref metadata when its serialized form exceeds the field-value event limit.",
              "enum_values": null,
              "json_schema_types": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ],
              "label": "New value",
              "path": "value",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Value omitted",
              "path": "value_omitted",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "boolean"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Omitted value size",
              "path": "value_size_bytes",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Value reference",
              "path": "value_ref",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "object"
            },
            {
              "description": "Automation update_fields path: list of field ids updated.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Updated field ids",
              "path": "updated_fields",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Present when the field was edited through a saved view.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source view",
              "path": "view_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.field.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Form phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A public Apps view created or updated an item via the /api/v1/workflows/apps-public/* endpoints.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.form.submitted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.form.submitted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "app_id": {
                    "title": "App",
                    "type": "string",
                    "x-ergon-reference-resource": "app",
                    "x-ergon-reference-service": "apps",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Form phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "source": {
                    "description": "apps_public_form for the public no-login surface.",
                    "title": "Source",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "view_id": {
                    "description": "Apps view UUID that rendered the form.",
                    "title": "View",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.form.submitted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Public form submitted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Form phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "App",
              "path": "app_id",
              "reference_resource": "app",
              "reference_service": "apps",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Apps view UUID that rendered the form.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "View",
              "path": "view_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "apps_public_form for the public no-login surface.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source",
              "path": "source",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.form.submitted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase when timeout fired",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Item exceeded the workflow-level (cross-phase) global timeout without reaching a terminal phase. Emitted by the timeout worker's first pass; precedes any ``workflows.items.timeout`` (phase) event for the same item in the same tick. The system-managed automation provisioned by Workflows when the workflow has both ``global_timeout_minutes`` and ``global_timeout_target_phase_id`` configured listens to this event and transitions the item to the target phase.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.global_timeout:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.global_timeout"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "global_clock_started_at": {
                    "description": "ISO-8601 timestamp the global clock was anchored at. Defaults to the item's ``created_at``.",
                    "title": "Global clock started at",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "global_timeout_minutes": {
                    "title": "Effective global timeout (min)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_title": {
                    "title": "Item title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Phase when timeout fired",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.global_timeout",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item global timeout",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase when timeout fired",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Effective global timeout (min)",
              "path": "global_timeout_minutes",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": "ISO-8601 timestamp the global clock was anchored at. Defaults to the item's ``created_at``.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Global clock started at",
              "path": "global_clock_started_at",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item title",
              "path": "item_title",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.global_timeout"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase context",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An item was bound to a routing group (often precedes auto-assignment).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.group_assigned:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.group_assigned"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "group_id": {
                    "title": "Routing group",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow_group",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Phase context",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.group_assigned",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item assigned to routing group",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Routing group",
              "path": "group_id",
              "reference_resource": "workflow_group",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase context",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.group_assigned"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An item was returned to the unassigned pool.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.released:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.released"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "released_from": {
                    "description": "Principal id of the previous assignee (nullable).",
                    "title": "Previous assignee",
                    "type": "string",
                    "x-ergon-reference-resource": "principal",
                    "x-ergon-reference-service": "iam",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.released",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item released",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Principal id of the previous assignee (nullable).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous assignee",
              "path": "released_from",
              "reference_resource": "principal",
              "reference_service": "iam",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.released"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "from_phase",
              "kind": "entity",
              "label": "From phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "from_phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "to_phase",
              "kind": "entity",
              "label": "To phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "to_phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "An item's current phase changed (UI transition or automation transition_to action).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.routed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.routed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "from_phase_id": {
                    "title": "From phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "to_phase_id": {
                    "title": "To phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.routed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item routed between phases",
          "payload_path_overrides": {
            "phase": "to_phase_id"
          },
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "From phase",
              "path": "from_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "To phase",
              "path": "to_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "to_phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.routed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "No suitable principal was found for auto-assignment.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.routing_failed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.routing_failed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "group_id": {
                    "title": "Routing group",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow_group",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "reason": {
                    "enum": [
                      "no_members",
                      "no_available",
                      "no_within_working_hours",
                      "at_capacity",
                      "no_authorized",
                      "strategy_empty"
                    ],
                    "title": "Reason",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.routing_failed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Routing failed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Routing group",
              "path": "group_id",
              "reference_resource": "workflow_group",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "no_members",
                "no_available",
                "no_within_working_hours",
                "at_capacity",
                "no_authorized",
                "strategy_empty"
              ],
              "json_schema_types": null,
              "label": "Reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.routing_failed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Routing was intentionally not applied (manual/inactive config or phase outside working hours).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.routing_skipped:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.routing_skipped"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "group_id": {
                    "title": "Routing group",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow_group",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "reason": {
                    "enum": [
                      "manual_or_inactive",
                      "phase_outside_working_hours"
                    ],
                    "title": "Reason",
                    "type": "string",
                    "x-ergon-value-family": "enum"
                  }
                },
                "required": [
                  "item_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.routing_skipped",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Routing skipped",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Routing group",
              "path": "group_id",
              "reference_resource": "workflow_group",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": [
                "manual_or_inactive",
                "phase_outside_working_hours"
              ],
              "json_schema_types": null,
              "label": "Reason",
              "path": "reason",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "enum"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": true,
          "slug": "workflows.items.routing_skipped"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase when timeout fired",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Item exceeded the effective timeout without activity (timeout worker pass 1).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.timeout:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.timeout"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_title": {
                    "title": "Item title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Phase when timeout fired",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "timeout_hours": {
                    "description": "Deprecated alias for ``timeout_minutes / 60``. Removed after the 045_phase_timeout_minutes deprecation window.",
                    "title": "Effective timeout (hours, deprecated)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "timeout_minutes": {
                    "title": "Effective timeout (min)",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.timeout",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item phase timeout",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase when timeout fired",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Effective timeout (min)",
              "path": "timeout_minutes",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": "Deprecated alias for ``timeout_minutes / 60``. Removed after the 045_phase_timeout_minutes deprecation window.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Effective timeout (hours, deprecated)",
              "path": "timeout_hours",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item title",
              "path": "item_title",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.timeout"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Item metadata changed. Saved-view edits also emit this event; field values additionally emit workflows.items.field.updated.",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "global_timeout_minutes": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New global timeout (min)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      },
                      "old": {
                        "title": "Previous global timeout (min)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      }
                    },
                    "type": "object"
                  },
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_id": {
                    "title": "Current phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "timeout_minutes": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New timeout (min)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      },
                      "old": {
                        "title": "Previous timeout (min)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      }
                    },
                    "type": "object"
                  },
                  "title": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New title",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      },
                      "old": {
                        "title": "Previous title",
                        "type": "string",
                        "x-ergon-value-family": "text"
                      }
                    },
                    "type": "object"
                  },
                  "view_id": {
                    "description": "Present when the update was submitted through a saved view.",
                    "title": "Source view",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "visibility_timeout_on_create_minutes": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New visibility cooldown on create (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      },
                      "old": {
                        "title": "Previous visibility cooldown on create (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      }
                    },
                    "type": "object"
                  },
                  "visibility_timeout_on_release_minutes": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New visibility cooldown on release (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      },
                      "old": {
                        "title": "Previous visibility cooldown on release (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      }
                    },
                    "type": "object"
                  },
                  "visibility_timeout_on_transition_minutes": {
                    "additionalProperties": true,
                    "properties": {
                      "new": {
                        "title": "New visibility cooldown on transition (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      },
                      "old": {
                        "title": "Previous visibility cooldown on transition (minutes)",
                        "type": "number",
                        "x-ergon-value-family": "number"
                      }
                    },
                    "type": "object"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Item metadata updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Current phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Present when the update was submitted through a saved view.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source view",
              "path": "view_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous title",
              "path": "title.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New title",
              "path": "title.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous timeout (min)",
              "path": "timeout_minutes.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New timeout (min)",
              "path": "timeout_minutes.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous global timeout (min)",
              "path": "global_timeout_minutes.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New global timeout (min)",
              "path": "global_timeout_minutes.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous visibility cooldown on create (minutes)",
              "path": "visibility_timeout_on_create_minutes.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New visibility cooldown on create (minutes)",
              "path": "visibility_timeout_on_create_minutes.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous visibility cooldown on transition (minutes)",
              "path": "visibility_timeout_on_transition_minutes.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New visibility cooldown on transition (minutes)",
              "path": "visibility_timeout_on_transition_minutes.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Previous visibility cooldown on release (minutes)",
              "path": "visibility_timeout_on_release_minutes.old",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "before"
              ],
              "value_family": "number"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "New visibility cooldown on release (minutes)",
              "path": "visibility_timeout_on_release_minutes.new",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "item",
              "kind": "entity",
              "label": "Item",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Current phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "item",
              "inventory_endpoint_template": "/api/v1/workflows/items/{id}/condition-fields",
              "key": "field_values",
              "kind": "entity",
              "label": "Field values",
              "max_snapshot_bytes": 65536,
              "max_value_bytes": 16384,
              "omission_metadata_path": "field_values_meta",
              "parent_inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "payload_id_path": "item_id",
              "snapshot_policy": "bounded"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A released item became visible again after the visibility timeout (timeout worker pass 3).",
          "entity_type": "item",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.items.visibility_restored:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.items.visibility_restored"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "item_id": {
                    "title": "Item",
                    "type": "string",
                    "x-ergon-reference-resource": "item",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "item_title": {
                    "title": "Item title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_id": {
                    "title": "Current phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "item_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.items.visibility_restored",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Visibility cooldown cleared",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item",
              "path": "item_id",
              "reference_resource": "item",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Current phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Item title",
              "path": "item_title",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "item_id",
              "resource_type": "item",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.items.visibility_restored"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A phase was added to the workflow graph.",
          "entity_type": "phase",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.phase.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.phase.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "phase_id": {
                    "title": "Phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.phase.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.phase.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A phase was removed from the workflow.",
          "entity_type": "phase",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.phase.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.phase.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "phase_id": {
                    "description": "Stringified id of the deleted phase.",
                    "title": "Phase id",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "phase_name": {
                    "description": "Name captured before deletion.",
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.phase.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stringified id of the deleted phase.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase id",
              "path": "phase_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Name captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.phase.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Phase ordering was updated for the workflow.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.phase.reordered:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.phase.reordered"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "phase_ids": {
                    "title": "Ordered phase ids",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.phase.reordered",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phases reordered",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Ordered phase ids",
              "path": "phase_ids",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.phase.reordered"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "phase",
              "kind": "entity",
              "label": "Phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Phase properties were changed.",
          "entity_type": "phase",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.phase.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.phase.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "phase_id": {
                    "title": "Phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "phase_name": {
                    "title": "Phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id",
                  "phase_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.phase.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Phase updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase",
              "path": "phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Phase name",
              "path": "phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "phase_id",
              "resource_type": "phase",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.phase.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "from_phase",
              "kind": "entity",
              "label": "From phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "from_phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "to_phase",
              "kind": "entity",
              "label": "To phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "to_phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A directed edge between phases was added.",
          "entity_type": "transition",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.route.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.route.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "from_phase_id": {
                    "title": "Source phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "from_phase_name": {
                    "title": "Source phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "to_phase_id": {
                    "title": "Target phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "to_phase_name": {
                    "title": "Target phase name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "transition_id": {
                    "title": "Transition",
                    "type": "string",
                    "x-ergon-reference-resource": "transition",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.route.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Route created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Transition",
              "path": "transition_id",
              "reference_resource": "transition",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source phase",
              "path": "from_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source phase name",
              "path": "from_phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target phase",
              "path": "to_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target phase name",
              "path": "to_phase_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.route.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "from_phase",
              "kind": "entity",
              "label": "From phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "from_phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "to_phase",
              "kind": "entity",
              "label": "To phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "to_phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A transition was removed from the workflow.",
          "entity_type": "transition",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.route.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.route.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "from_phase_id": {
                    "title": "Source phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "to_phase_id": {
                    "title": "Target phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "transition_id": {
                    "description": "Stringified id of the deleted transition.",
                    "title": "Transition id",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.route.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Route deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Stringified id of the deleted transition.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Transition id",
              "path": "transition_id",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source phase",
              "path": "from_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target phase",
              "path": "to_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.route.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "from_phase",
              "kind": "entity",
              "label": "From phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "from_phase_id",
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "phase",
              "inventory_endpoint_template": "/api/v1/workflows/phases/{id}/condition-fields",
              "key": "to_phase",
              "kind": "entity",
              "label": "To phase",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "payload_id_path": "to_phase_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A transition annotation or metadata was updated.",
          "entity_type": "transition",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.route.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.route.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "annotation": {
                    "title": "Annotation",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "from_phase_id": {
                    "title": "Source phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "to_phase_id": {
                    "title": "Target phase",
                    "type": "string",
                    "x-ergon-reference-resource": "phase",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "transition_id": {
                    "title": "Transition",
                    "type": "string",
                    "x-ergon-reference-resource": "transition",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.route.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Route updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Transition",
              "path": "transition_id",
              "reference_resource": "transition",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Source phase",
              "path": "from_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Target phase",
              "path": "to_phase_id",
              "reference_resource": "phase",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Annotation",
              "path": "annotation",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.route.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new workflow was created in the org.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.workflow.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.workflow.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Workflow folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_name": {
                    "title": "Workflow name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.workflow.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow name",
              "path": "workflow_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "parent",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.workflow.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A workflow was deleted.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.workflow.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.workflow.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Workflow folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_name": {
                    "description": "Name captured at deletion time.",
                    "title": "Workflow name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.workflow.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured at deletion time.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow name",
              "path": "workflow_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.workflow.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            },
            {
              "entity_service": "workflows",
              "entity_type": "workflow",
              "inventory_endpoint_template": "/api/v1/workflows/workflows/{id}/condition-fields",
              "key": "workflow",
              "kind": "entity",
              "label": "Workflow",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": "workflow_id",
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Workflow metadata was changed.",
          "entity_type": "workflow",
          "json_schema": {
            "$id": "urn:ergon:event:workflows.workflow.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "workflows.workflow.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Workflow folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_id": {
                    "title": "Workflow",
                    "type": "string",
                    "x-ergon-reference-resource": "workflow",
                    "x-ergon-reference-service": "workflows",
                    "x-ergon-value-family": "reference"
                  },
                  "workflow_name": {
                    "title": "Workflow name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "required": [
                  "workflow_id"
                ],
                "type": "object"
              },
              "source": {
                "const": "workflows"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "workflows.workflow.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Workflow updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "workflows",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow",
              "path": "workflow_id",
              "reference_resource": "workflow",
              "reference_service": "workflows",
              "required": true,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Workflow name",
              "path": "workflow_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [
            {
              "parent_segment": null,
              "payload_path": "folder_id",
              "resource_type": "folder",
              "service": "workflows"
            },
            {
              "parent_segment": null,
              "payload_path": "workflow_id",
              "resource_type": "workflow",
              "service": "workflows"
            }
          ],
          "resource_service": "workflows",
          "resource_type": "workflow",
          "scope_anchor": "instance",
          "service_slug": "workflows",
          "skip_processing": false,
          "slug": "workflows.workflow.updated"
        }
      ],
      "resource_id_payload_paths": {
        "field": "field_id",
        "folder": "folder_id",
        "item": "item_id",
        "phase": "phase_id",
        "workflow": "workflow_id"
      },
      "service_slug": "workflows"
    },
    {
      "catalog_version": 7,
      "events": [
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new column definition was added to a worksheet.",
          "entity_type": "column",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.column.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.column.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_name": {
                    "title": "Column name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "field_type": {
                    "description": "Slug of the column field type (effectively an enum).",
                    "title": "Field type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.column.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Column created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column name",
              "path": "column_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": "Slug of the column field type (effectively an enum).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field type",
              "path": "field_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.column.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A column was removed from a worksheet.",
          "entity_type": "column",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.column.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.column.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_name": {
                    "title": "Column name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "field_type": {
                    "title": "Field type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.column.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Column deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column name",
              "path": "column_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field type",
              "path": "field_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.column.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: dedicated formula-edit slug (formula edits currently surface as worksheets.column.updated).",
          "entity_type": "column",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.column.formula_changed:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.column.formula_changed"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_name": {
                    "title": "Column name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.column.formula_changed",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Column formula changed",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column name",
              "path": "column_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.column.formula_changed"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Column definition changed (includes formula expression updates).",
          "entity_type": "column",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.column.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.column.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_name": {
                    "title": "Column name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "field_type": {
                    "title": "Field type",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.column.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Column updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column name",
              "path": "column_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Field type",
              "path": "field_type",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.column.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A folder was created in the org.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.folder.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.folder.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_name": {
                    "title": "Folder name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.folder.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder name",
              "path": "folder_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "folder",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.folder.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A folder was removed.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.folder.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.folder.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_name": {
                    "description": "Name captured before deletion.",
                    "title": "Folder name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.folder.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder name",
              "path": "folder_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "folder",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.folder.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Folder metadata (name, description, icon, color) changed.",
          "entity_type": "folder",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.folder.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.folder.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_name": {
                    "title": "Folder name",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.folder.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Folder updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder name",
              "path": "folder_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "folder",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.folder.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A file was removed from an attachment column on a worksheet row.",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.attachment.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.attachment.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_id": {
                    "title": "Column",
                    "type": "string",
                    "x-ergon-reference-resource": "column",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "object_key": {
                    "title": "Object key",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "row_id": {
                    "title": "Row",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.attachment.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Row",
              "path": "row_id",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column",
              "path": "column_id",
              "reference_resource": "column",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Object key",
              "path": "object_key",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.attachment.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A file was uploaded to an attachment column on a worksheet row.",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.attachment.uploaded:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.attachment.uploaded"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "column_id": {
                    "title": "Column",
                    "type": "string",
                    "x-ergon-reference-resource": "column",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "filename": {
                    "title": "Filename",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "row_id": {
                    "title": "Row",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.attachment.uploaded",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Attachment uploaded",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Row",
              "path": "row_id",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Column",
              "path": "column_id",
              "reference_resource": "column",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Filename",
              "path": "filename",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.attachment.uploaded"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Many rows were created in one API call.",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.bulk_created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.bulk_created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "count": {
                    "description": "Number of rows created.",
                    "title": "Count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.bulk_created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Rows bulk created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Number of rows created.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Count",
              "path": "count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.bulk_created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Many rows were deleted in one API call.",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.bulk_deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.bulk_deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "count": {
                    "title": "Count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.bulk_deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Rows bulk deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Count",
              "path": "count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.bulk_deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Reserved: bulk row-update slug declared in seeds (no current emit site).",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.bulk_updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.bulk_updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "count": {
                    "title": "Count",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.bulk_updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Rows bulk updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Count",
              "path": "count",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.bulk_updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A new row was created in a worksheet (API, public form, or automation side-effect).",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "duplicated_from": {
                    "description": "Source row id when created via the duplicate-row automation action.",
                    "title": "Duplicated from",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "row_id": {
                    "title": "Row",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Row created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Row",
              "path": "row_id",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Source row id when created via the duplicate-row automation action.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Duplicated from",
              "path": "duplicated_from",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A row was removed from a worksheet.",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "row_id": {
                    "title": "Row",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Row deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Row",
              "path": "row_id",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Row cells were changed (API or automation update_cells).",
          "entity_type": "row",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.rows.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.rows.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "_trigger_depth": {
                    "description": "Set on automation-initiated events; tracks chain depth to break loops.",
                    "title": "Automation cascade depth",
                    "type": "number",
                    "x-ergon-value-family": "number"
                  },
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "row_id": {
                    "title": "Row",
                    "type": "string",
                    "x-ergon-reference-resource": "row",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "updated_columns": {
                    "description": "Column ids whose cells were written (automation update_cells).",
                    "title": "Updated columns",
                    "type": "array",
                    "x-ergon-value-family": "array"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.rows.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Row updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Row",
              "path": "row_id",
              "reference_resource": "row",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Column ids whose cells were written (automation update_cells).",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Updated columns",
              "path": "updated_columns",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "array"
            },
            {
              "description": "Set on automation-initiated events; tracks chain depth to break loops.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Automation cascade depth",
              "path": "_trigger_depth",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "number"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.rows.updated"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A worksheet was added under a folder.",
          "entity_type": "worksheet",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.worksheet.created:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.worksheet.created"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_name": {
                    "title": "Worksheet title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.worksheet.created",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Worksheet created",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet title",
              "path": "worksheet_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.worksheet.created"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "A worksheet was removed from its folder.",
          "entity_type": "worksheet",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.worksheet.deleted:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.worksheet.deleted"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_name": {
                    "description": "Name captured before deletion.",
                    "title": "Worksheet title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.worksheet.deleted",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Worksheet deleted",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": "Name captured before deletion.",
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet title",
              "path": "worksheet_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.worksheet.deleted"
        },
        {
          "condition_sources": [
            {
              "entity_service": null,
              "entity_type": null,
              "inventory_endpoint_template": null,
              "key": "event",
              "kind": "payload",
              "label": "Event data",
              "max_snapshot_bytes": null,
              "max_value_bytes": null,
              "omission_metadata_path": null,
              "parent_inventory_endpoint_template": null,
              "payload_id_path": null,
              "snapshot_policy": "complete"
            }
          ],
          "contract": {
            "delivery_semantics": "at_least_once",
            "large_value_strategy": "reference_or_omit",
            "max_wire_bytes": 262144,
            "ordering_guarantee": "none",
            "recommended_payload_bytes": 131072,
            "schema_version": 1
          },
          "deprecated": false,
          "description": "Worksheet name and/or position changed.",
          "entity_type": "worksheet",
          "json_schema": {
            "$id": "urn:ergon:event:worksheets.worksheet.updated:v1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "actor_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_id": {
                "type": "string"
              },
              "correlation_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "event_id": {
                "type": "string"
              },
              "event_type": {
                "const": "worksheets.worksheet.updated"
              },
              "payload": {
                "additionalProperties": true,
                "properties": {
                  "folder_id": {
                    "title": "Folder",
                    "type": "string",
                    "x-ergon-reference-resource": "folder",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_id": {
                    "title": "Worksheet",
                    "type": "string",
                    "x-ergon-reference-resource": "worksheet",
                    "x-ergon-reference-service": "worksheets",
                    "x-ergon-value-family": "reference"
                  },
                  "worksheet_name": {
                    "title": "Worksheet title",
                    "type": "string",
                    "x-ergon-value-family": "text"
                  }
                },
                "type": "object"
              },
              "source": {
                "const": "worksheets"
              },
              "timestamp": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "event_type",
              "source",
              "company_id",
              "timestamp",
              "payload"
            ],
            "title": "worksheets.worksheet.updated",
            "type": "object",
            "x-ergon-contract": {
              "delivery_semantics": "at_least_once",
              "large_value_strategy": "reference_or_omit",
              "max_wire_bytes": 262144,
              "ordering_guarantee": "none",
              "recommended_payload_bytes": 131072,
              "schema_version": 1
            }
          },
          "metadata": {},
          "name": "Worksheet updated",
          "payload_path_overrides": {},
          "payload_schema": [
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Folder",
              "path": "folder_id",
              "reference_resource": "folder",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet",
              "path": "worksheet_id",
              "reference_resource": "worksheet",
              "reference_service": "worksheets",
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "reference"
            },
            {
              "description": null,
              "enum_values": null,
              "json_schema_types": null,
              "label": "Worksheet title",
              "path": "worksheet_name",
              "reference_resource": null,
              "reference_service": null,
              "required": false,
              "scope": [
                "after"
              ],
              "value_family": "text"
            }
          ],
          "replacement_event_slug": null,
          "resource_chain": [],
          "resource_service": "worksheets",
          "resource_type": "worksheet",
          "scope_anchor": "instance",
          "service_slug": "worksheets",
          "skip_processing": false,
          "slug": "worksheets.worksheet.updated"
        }
      ],
      "resource_id_payload_paths": {},
      "service_slug": "worksheets"
    }
  ]
}
