// Copyright 2024 Google LLC. Licensed under Apache-2.0.
// Generated from A2UI revision 780bb6f0803d90a237d47e9bf733d3389680968f.
// Embedded verbatim schema data; regenerate with scripts/embed-schemas.mbtx.

///|
let agent_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/agent_to_renderer.json",
  #|  "title": "A2UI Message Schema",
  #|  "description": "Describes a JSON payload for an A2UI message, which is used to dynamically construct and update user interfaces.",
  #|  "type": "object",
  #|  "oneOf": [
  #|    {"$ref": "#/$defs/CreateSurfaceMessage"},
  #|    {"$ref": "#/$defs/UpdateComponentsMessage"},
  #|    {"$ref": "#/$defs/UpdateDataModelMessage"},
  #|    {"$ref": "#/$defs/DeleteSurfaceMessage"},
  #|    {"$ref": "#/$defs/CallRendererFunctionMessage"},
  #|    {"$ref": "#/$defs/AgentFunctionResponseMessage"}
  #|  ],
  #|  "$defs": {
  #|    "CreateSurfaceMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "createSurface": {
  #|          "type": "object",
  #|          "description": "Signals the renderer to create a new surface and begin rendering it. Creating a surface implicitly instantiates the canonical 'Surface' container component ('common_types.json#/$defs/Surface') with 'child': 'root'. It is an error to try to create a surface with an existing ID without first deleting it; surfaceId MUST be globally unique for the renderer's lifetime. The component tree and initial data model may be provided inline via 'components' and 'dataModel', or sent later in 'updateComponents' and/or 'updateDataModel' messages for the same surfaceId.",
  #|          "properties": {
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The unique identifier for the UI surface to be rendered. It must be globally unique for the renderer's lifetime."
  #|            },
  #|            "catalogId": {
  #|              "type": "string",
  #|              "description": "A string that uniquely identifies the default catalog for this surface. It is recommended to prefix this with an internet domain that you own, to avoid conflicts e.g. 'mycompany.com:somecatalog'. Components that do not explicitly specify @catalogId and function calls that do not explicitly specify catalogId will use this surface-level default catalogId."
  #|            },
  #|            "sendDataModel": {
  #|              "type": "boolean",
  #|              "description": "If true, the renderer will send the full data model of this surface in the metadata of every A2A message sent to the agent that created the surface. Defaults to false."
  #|            },
  #|            "components": {
  #|              "$ref": "#/$defs/ComponentsList"
  #|            },
  #|            "dataModel": {
  #|              "type": "object",
  #|              "description": "The initial root data model object for the surface.",
  #|              "additionalProperties": true
  #|            },
  #|            "metadata": {
  #|              "type": "object",
  #|              "description": "Optional surface-level metadata.",
  #|              "properties": {
  #|                "extensions": {
  #|                  "$ref": "common_types.json#/$defs/Extensions"
  #|                }
  #|              },
  #|              "additionalProperties": false
  #|            }
  #|          },
  #|          "required": ["surfaceId"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["createSurface", "version"],
  #|      "additionalProperties": false
  #|    },
  #|    "Component": {
  #|      "description": "A UI component for the surface, combining baseline envelope properties with the catalog component definition.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/ComponentCommon"
  #|        },
  #|        {
  #|          "$ref": "catalog.json#/$defs/anyComponent"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "not": {
  #|                "const": "Surface"
  #|              }
  #|            }
  #|          }
  #|        }
  #|      ],
  #|      "unevaluatedProperties": false
  #|    },
  #|    "ComponentsList": {
  #|      "type": "array",
  #|      "description": "A list containing UI components for the surface.",
  #|      "minItems": 1,
  #|      "items": {
  #|        "$ref": "#/$defs/Component"
  #|      }
  #|    },
  #|    "UpdateComponentsMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "updateComponents": {
  #|          "type": "object",
  #|          "description": "Updates a surface with a new set of components. This message can be sent multiple times to update the component tree of an existing surface. One of the components in one of the components lists MUST have an 'id' of 'root' to serve as the root of the component tree. The createSurface message MUST have been previously sent for this surfaceId.",
  #|          "properties": {
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The unique identifier for the UI surface to be updated. It must be globally unique for the renderer's lifetime."
  #|            },
  #|            "components": {
  #|              "$ref": "#/$defs/ComponentsList"
  #|            }
  #|          },
  #|          "required": ["surfaceId", "components"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["updateComponents", "version"],
  #|      "additionalProperties": false
  #|    },
  #|    "UpdateDataModelMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "updateDataModel": {
  #|          "type": "object",
  #|          "description": "Updates the data model for an existing surface. This message can be sent multiple times to update the data model. The createSurface message MUST have been previously sent for this surfaceId.",
  #|          "properties": {
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The unique identifier for the UI surface this data model update applies to. It must be globally unique for the renderer's lifetime."
  #|            },
  #|            "path": {
  #|              "type": "string",
  #|              "description": "An optional path to a location within the data model (e.g., '/user/name'). If omitted, or set to '/', refers to the entire data model."
  #|            },
  #|            "value": {
  #|              "description": "The data to be updated in the data model. To delete the key/value at 'path', set 'value' explicitly to null."
  #|            }
  #|          },
  #|          "required": ["surfaceId", "value"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["updateDataModel", "version"],
  #|      "additionalProperties": false
  #|    },
  #|    "DeleteSurfaceMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "deleteSurface": {
  #|          "type": "object",
  #|          "description": "Signals the renderer to delete the surface identified by 'surfaceId'. The createSurface message MUST have been previously sent for this surfaceId.",
  #|          "properties": {
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The unique identifier for the UI surface to be deleted. It must be globally unique for the renderer's lifetime."
  #|            }
  #|          },
  #|          "required": ["surfaceId"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["deleteSurface", "version"],
  #|      "additionalProperties": false
  #|    },
  #|    "CallRendererFunctionMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "callRendererFunction": {
  #|          "type": "object",
  #|          "description": "Signals the renderer to execute a function locally on behalf of the agent.",
  #|          "properties": {
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "Optional ID of the surface whose data model provides the evaluation context for this call. If omitted, the function executes in a surface-independent root context with an empty data model."
  #|            },
  #|            "functionCallId": {
  #|              "$ref": "common_types.json#/$defs/CallId",
  #|              "description": "Unique ID for this instance of the function call. The renderer MUST copy this ID into the return response."
  #|            },
  #|            "callFunction": {
  #|              "allOf": [
  #|                {
  #|                  "$ref": "common_types.json#/$defs/FunctionCall"
  #|                },
  #|                {
  #|                  "required": ["catalogId"]
  #|                }
  #|              ]
  #|            }
  #|          },
  #|          "required": ["functionCallId", "callFunction"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["callRendererFunction", "version"],
  #|      "additionalProperties": false
  #|    },
  #|    "AgentFunctionResponseMessage": {
  #|      "type": "object",
  #|      "properties": {
  #|        "version": {
  #|          "const": "1.0"
  #|        },
  #|        "agentFunctionResponse": {
  #|          "$ref": "common_types.json#/$defs/FunctionResponse"
  #|        }
  #|      },
  #|      "required": ["agentFunctionResponse", "version"],
  #|      "additionalProperties": false
  #|    }
  #|  }
  #|}
  #|

///|
let renderer_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/renderer_to_agent.json",
  #|  "title": "A2UI Renderer-to-Agent Event Schema",
  #|  "description": "Describes a JSON payload for a renderer-to-agent event message.",
  #|  "type": "object",
  #|  "minProperties": 2,
  #|  "maxProperties": 2,
  #|  "properties": {
  #|    "version": {
  #|      "const": "1.0"
  #|    },
  #|    "action": {
  #|      "type": "object",
  #|      "description": "Reports a user-initiated action from a component.",
  #|      "properties": {
  #|        "name": {
  #|          "type": "string",
  #|          "description": "The name of the action, taken from the component's action.event.name property."
  #|        },
  #|        "userMessage": {
  #|          "type": "string",
  #|          "description": "An optional human-readable string describing the action performed by the user, taken from the component's action.event.userMessage property after resolving bindings."
  #|        },
  #|        "surfaceId": {
  #|          "type": "string",
  #|          "description": "The id of the surface where the event originated. It must be globally unique for the renderer's lifetime."
  #|        },
  #|        "sourceComponentId": {
  #|          "type": "string",
  #|          "description": "The id of the component that triggered the event."
  #|        },
  #|        "timestamp": {
  #|          "type": "string",
  #|          "format": "date-time",
  #|          "description": "An ISO 8601 timestamp of when the event occurred."
  #|        },
  #|        "context": {
  #|          "type": "object",
  #|          "description": "A JSON object containing the key-value pairs from the component's action.event.context, after resolving all data bindings.",
  #|          "additionalProperties": true
  #|        },
  #|        "metadata": {
  #|          "type": "object",
  #|          "description": "Optional renderer-side metadata to send back to the agent with the action.",
  #|          "properties": {
  #|            "extensions": {
  #|              "$ref": "common_types.json#/$defs/Extensions"
  #|            }
  #|          },
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["name", "surfaceId", "sourceComponentId", "timestamp", "context"]
  #|    },
  #|    "callAgentFunction": {
  #|      "type": "object",
  #|      "description": "Signals the agent to execute a function remotely on behalf of the renderer.",
  #|      "properties": {
  #|        "surfaceId": {
  #|          "type": "string",
  #|          "description": "The surface ID where the call originated."
  #|        },
  #|        "functionCallId": {
  #|          "$ref": "common_types.json#/$defs/CallId",
  #|          "description": "Unique ID for this instance of the function call. The agent MUST copy this ID into the return response."
  #|        },
  #|        "callFunction": {
  #|          "$ref": "common_types.json#/$defs/FunctionCall"
  #|        }
  #|      },
  #|      "required": ["surfaceId", "functionCallId", "callFunction"],
  #|      "additionalProperties": false
  #|    },
  #|    "rendererFunctionResponse": {
  #|      "$ref": "common_types.json#/$defs/FunctionResponse"
  #|    },
  #|    "error": {
  #|      "description": "Reports a renderer-side error.",
  #|      "oneOf": [
  #|        {
  #|          "type": "object",
  #|          "title": "Validation Failed Error",
  #|          "properties": {
  #|            "code": {
  #|              "enum": ["VALIDATION_FAILED", "UNALLOWED_PARENT", "UNALLOWED_CHILD"]
  #|            },
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The id of the surface where the error occurred. It must be globally unique for the renderer's lifetime."
  #|            },
  #|            "path": {
  #|              "type": "string",
  #|              "description": "The JSON pointer to the field that failed validation (e.g. '/components/0/text')."
  #|            },
  #|            "message": {
  #|              "type": "string",
  #|              "description": "A short one or two sentence description of why validation failed."
  #|            }
  #|          },
  #|          "required": ["code", "path", "message", "surfaceId"],
  #|          "additionalProperties": false
  #|        },
  #|        {
  #|          "type": "object",
  #|          "title": "Generic Error",
  #|          "properties": {
  #|            "code": {
  #|              "type": "string",
  #|              "not": {
  #|                "enum": ["VALIDATION_FAILED", "UNALLOWED_PARENT", "UNALLOWED_CHILD"]
  #|              }
  #|            },
  #|            "message": {
  #|              "type": "string",
  #|              "description": "A short one or two sentence description of why the error occurred."
  #|            },
  #|            "surfaceId": {
  #|              "type": "string",
  #|              "description": "The id of the surface where the error occurred. It must be globally unique for the renderer's lifetime."
  #|            },
  #|            "functionCallId": {
  #|              "$ref": "common_types.json#/$defs/CallId",
  #|              "description": "The unique ID of the function invocation, which must be identical to the value specified in the function invocation."
  #|            }
  #|          },
  #|          "required": ["code", "message"],
  #|          "oneOf": [
  #|            {
  #|              "required": ["surfaceId"],
  #|              "not": {
  #|                "required": ["functionCallId"]
  #|              }
  #|            },
  #|            {
  #|              "required": ["functionCallId"],
  #|              "not": {
  #|                "required": ["surfaceId"]
  #|              }
  #|            }
  #|          ],
  #|          "additionalProperties": true
  #|        }
  #|      ]
  #|    }
  #|  },
  #|  "oneOf": [
  #|    {
  #|      "required": ["action", "version"]
  #|    },
  #|    {
  #|      "required": ["callAgentFunction", "version"]
  #|    },
  #|    {
  #|      "required": ["rendererFunctionResponse", "version"]
  #|    },
  #|    {
  #|      "required": ["error", "version"]
  #|    }
  #|  ]
  #|}
  #|

///|
let common_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/common_types.json",
  #|  "title": "A2UI Common Types",
  #|  "description": "Common type definitions used across A2UI schemas.",
  #|  "$defs": {
  #|    "ComponentId": {
  #|      "type": "string",
  #|      "description": "The unique identifier for a component, used for both definitions and references within the same surface."
  #|    },
  #|    "CallId": {
  #|      "type": "string",
  #|      "description": "The unique identifier for a function call."
  #|    },
  #|    "AccessibilityAttributes": {
  #|      "type": "object",
  #|      "description": "Attributes to enhance accessibility when using assistive technologies like screen readers or model understanding.",
  #|      "properties": {
  #|        "label": {
  #|          "$ref": "#/$defs/DynamicString",
  #|          "description": "A short string, typically 1 to 3 words, used by assistive technologies to convey the purpose or intent of an element. For example, an input field might have an accessible label of 'User ID' or a button might be labeled 'Submit'."
  #|        },
  #|        "description": {
  #|          "$ref": "#/$defs/DynamicString",
  #|          "description": "Additional information provided by assistive technologies about an element such as instructions, format requirements, or result of an action. For example, a mute button might have a label of 'Mute' and a description of 'Silences notifications about this conversation'."
  #|        },
  #|        "live": {
  #|          "type": "string",
  #|          "description": "Controls screen reader announcements for dynamic updates (WAI-ARIA aria-live). 'polite' waits for user pause; 'assertive' interrupts immediately for alerts.",
  #|          "enum": ["off", "polite", "assertive"],
  #|          "default": "off"
  #|        },
  #|        "hidden": {
  #|          "$ref": "#/$defs/DynamicBoolean",
  #|          "description": "Hides the element and its children from assistive technologies when true. Default is false."
  #|        }
  #|      },
  #|      "additionalProperties": false
  #|    },
  #|    "Extensions": {
  #|      "type": "object",
  #|      "description": "Optional extension metadata. Keys MUST be Unicode identifiers (UAX #31). Keys starting with 'a2ui_' are reserved for official extensions.",
  #|      "patternProperties": {
  #|        "^[\\p{XID_Start}_][\\p{XID_Continue}]*$": {}
  #|      },
  #|      "additionalProperties": false
  #|    },
  #|    "ComponentCommon": {
  #|      "type": "object",
  #|      "properties": {
  #|        "id": {
  #|          "$ref": "#/$defs/ComponentId"
  #|        },
  #|        "@catalogId": {
  #|          "type": "string",
  #|          "description": "The catalog ID for this component, overriding any surface-level default catalogId."
  #|        },
  #|        "@accessibility": {
  #|          "$ref": "#/$defs/AccessibilityAttributes"
  #|        },
  #|        "@metadata": {
  #|          "type": "object",
  #|          "description": "Optional component-level metadata for vendor extensions.",
  #|          "properties": {
  #|            "extensions": {
  #|              "$ref": "#/$defs/Extensions"
  #|            }
  #|          },
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["id"]
  #|    },
  #|    "Child": {
  #|      "$ref": "#/$defs/ComponentId",
  #|      "description": "A reference to a single child component ID."
  #|    },
  #|    "ChildList": {
  #|      "oneOf": [
  #|        {
  #|          "type": "array",
  #|          "description": "A static list of child component IDs.",
  #|          "items": {
  #|            "$ref": "#/$defs/ComponentId"
  #|          }
  #|        },
  #|        {
  #|          "type": "object",
  #|          "description": "A template for generating a dynamic list of children from a data model list. The `componentId` is the component to use as a template.",
  #|          "properties": {
  #|            "componentId": {
  #|              "$ref": "#/$defs/ComponentId"
  #|            },
  #|            "path": {
  #|              "type": "string",
  #|              "description": "The path to the list of component property objects in the data model."
  #|            }
  #|          },
  #|          "required": ["componentId", "path"],
  #|          "additionalProperties": false
  #|        }
  #|      ]
  #|    },
  #|    "DataBinding": {
  #|      "type": "object",
  #|      "properties": {
  #|        "@path": {
  #|          "type": "string",
  #|          "description": "A JSON Pointer path to a value in the data model."
  #|        }
  #|      },
  #|      "required": ["@path"],
  #|      "additionalProperties": false
  #|    },
  #|    "DynamicValue": {
  #|      "description": "A value that can be a literal, a path, or a function call returning any type.",
  #|      "oneOf": [
  #|        {
  #|          "type": "string"
  #|        },
  #|        {
  #|          "type": "number"
  #|        },
  #|        {
  #|          "type": "boolean"
  #|        },
  #|        {
  #|          "type": "array"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "propertyNames": {
  #|            "not": {
  #|              "pattern": "^@([^@]|$)"
  #|            }
  #|          },
  #|          "not": {
  #|            "anyOf": [
  #|              {
  #|                "required": ["@path"]
  #|              },
  #|              {
  #|                "required": ["@call"]
  #|              }
  #|            ]
  #|          }
  #|        },
  #|        {
  #|          "$ref": "#/$defs/DataBinding"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/FunctionCall"
  #|        }
  #|      ]
  #|    },
  #|    "DynamicString": {
  #|      "description": "Represents a string",
  #|      "oneOf": [
  #|        {
  #|          "type": "string"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/DataBinding"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/FunctionCall"
  #|        }
  #|      ]
  #|    },
  #|    "DynamicNumber": {
  #|      "description": "Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.",
  #|      "oneOf": [
  #|        {
  #|          "type": "number"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/DataBinding"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/FunctionCall"
  #|        }
  #|      ]
  #|    },
  #|    "DynamicBoolean": {
  #|      "description": "A boolean value that can be a literal, a path, or a function call returning a boolean or a validation result object (coerced to its 'valid' boolean).",
  #|      "oneOf": [
  #|        {
  #|          "type": "boolean"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/DataBinding"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/FunctionCall"
  #|        }
  #|      ]
  #|    },
  #|    "DynamicStringList": {
  #|      "description": "Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.",
  #|      "oneOf": [
  #|        {
  #|          "type": "array",
  #|          "items": {
  #|            "type": "string"
  #|          }
  #|        },
  #|        {
  #|          "$ref": "#/$defs/DataBinding"
  #|        },
  #|        {
  #|          "$ref": "#/$defs/FunctionCall"
  #|        }
  #|      ]
  #|    },
  #|    "FunctionCommon": {
  #|      "type": "object",
  #|      "description": "Baseline envelope properties common to all function calls. Function-specific argument schemas ('args') are defined individually by each function in the active catalog.",
  #|      "properties": {
  #|        "@call": {
  #|          "type": "string",
  #|          "description": "The name of the function to call."
  #|        },
  #|        "catalogId": {
  #|          "type": "string",
  #|          "description": "The catalog ID for this function, overriding any surface-level default catalogId."
  #|        }
  #|      },
  #|      "required": ["@call"]
  #|    },
  #|    "IndexSystemFunction": {
  #|      "type": "object",
  #|      "description": "Returns the 0-based index of the current item when rendering a dynamic list from a template. This function MUST ONLY be available when evaluating template items within a list context.",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "@index"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "offset": {
  #|              "$ref": "#/$defs/DynamicNumber",
  #|              "description": "Optional. An offset to add to the 0-based index (e.g., 1 for 1-based indexing). Defaults to 0.",
  #|              "default": 0
  #|            }
  #|          },
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call"],
  #|      "unevaluatedProperties": false,
  #|      "returnType": "number"
  #|    },
  #|    "FunctionCall": {
  #|      "type": "object",
  #|      "description": "Invokes a named function, combining common function properties with the catalog function definition.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "#/$defs/FunctionCommon"
  #|        },
  #|        {
  #|          "oneOf": [
  #|            {
  #|              "$ref": "catalog.json#/$defs/anyFunction"
  #|            },
  #|            {
  #|              "$ref": "#/$defs/IndexSystemFunction"
  #|            }
  #|          ]
  #|        }
  #|      ],
  #|      "unevaluatedProperties": false
  #|    },
  #|    "CheckRule": {
  #|      "type": "object",
  #|      "description": "A single validation check rule applied to an input component. The condition function or path evaluates to a structured validation result object or a boolean (which is coerced to a validation result object).",
  #|      "properties": {
  #|        "condition": {
  #|          "description": "Path or function call evaluating to a structured validation result object or a boolean.",
  #|          "oneOf": [{"$ref": "#/$defs/DataBinding"}, {"$ref": "#/$defs/FunctionCall"}]
  #|        },
  #|        "message": {
  #|          "type": "string",
  #|          "description": "Optional fallback error message."
  #|        }
  #|      },
  #|      "required": ["condition"],
  #|      "additionalProperties": false
  #|    },
  #|    "Checkable": {
  #|      "type": "object",
  #|      "description": "Properties for components that support renderer-side checks.",
  #|      "properties": {
  #|        "@checks": {
  #|          "type": "array",
  #|          "description": "A list of validation check rules to perform on the component.",
  #|          "items": {
  #|            "$ref": "#/$defs/CheckRule"
  #|          }
  #|        }
  #|      }
  #|    },
  #|    "Action": {
  #|      "description": "Defines an interaction handler that can either trigger an agent-side event or execute a local renderer-side function.",
  #|      "oneOf": [
  #|        {
  #|          "type": "object",
  #|          "description": "Triggers an agent-side event.",
  #|          "properties": {
  #|            "event": {
  #|              "type": "object",
  #|              "description": "The event to dispatch to the agent.",
  #|              "properties": {
  #|                "name": {
  #|                  "type": "string",
  #|                  "description": "The name of the action to be dispatched to the agent."
  #|                },
  #|                "userMessage": {
  #|                  "$ref": "#/$defs/DynamicString",
  #|                  "description": "An optional human-readable message describing the action performed by the user, resolved by the renderer and included in the outbound action message."
  #|                },
  #|                "context": {
  #|                  "type": "object",
  #|                  "description": "A JSON object containing the key-value pairs for the action context. Values can be literals or paths. Use literal values unless the value must be dynamically bound to the data model. Do NOT use paths for static IDs.",
  #|                  "additionalProperties": {
  #|                    "$ref": "#/$defs/DynamicValue"
  #|                  }
  #|                }
  #|              },
  #|              "required": ["name"],
  #|              "additionalProperties": false
  #|            }
  #|          },
  #|          "required": ["event"],
  #|          "additionalProperties": false
  #|        },
  #|        {
  #|          "type": "object",
  #|          "description": "Executes a renderer or agent-side function.",
  #|          "properties": {
  #|            "functionCall": {
  #|              "$ref": "#/$defs/FunctionCall"
  #|            }
  #|          },
  #|          "required": ["functionCall"],
  #|          "additionalProperties": false
  #|        }
  #|      ]
  #|    },
  #|    "Surface": {
  #|      "title": "Surface Container Component",
  #|      "description": "The reserved canonical container component representing an A2UI surface. The Surface component is immutable and always has 'child': 'root'.",
  #|      "type": "object",
  #|      "allowedParents": [],
  #|      "properties": {
  #|        "component": {
  #|          "const": "Surface"
  #|        },
  #|        "child": {
  #|          "const": "root"
  #|        }
  #|      },
  #|      "additionalProperties": false
  #|    },
  #|    "FunctionResponse": {
  #|      "type": "object",
  #|      "description": "The return response matching a callAgentFunction or callRendererFunction invocation.",
  #|      "properties": {
  #|        "functionCallId": {
  #|          "$ref": "#/$defs/CallId",
  #|          "description": "The unique ID matching the initiating function call."
  #|        },
  #|        "value": {
  #|          "description": "The return value of the function."
  #|        },
  #|        "error": {
  #|          "type": "object",
  #|          "description": "An error object indicating failure of the function execution.",
  #|          "properties": {
  #|            "code": {"type": "string"},
  #|            "message": {"type": "string"}
  #|          },
  #|          "required": ["code", "message"],
  #|          "additionalProperties": false
  #|        }
  #|      },
  #|      "required": ["functionCallId"],
  #|      "oneOf": [{"required": ["value"]}, {"required": ["error"]}],
  #|      "additionalProperties": false
  #|    }
  #|  }
  #|}
  #|

///|
let catalog_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/catalog_definition.json",
  #|  "title": "A2UI Catalog Definition Schema",
  #|  "description": "A collection of component and function definitions.",
  #|  "type": "object",
  #|  "properties": {
  #|    "$schema": {"type": "string"},
  #|    "$id": {"type": "string"},
  #|    "protocolVersion": {
  #|      "type": "string",
  #|      "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:\\.(0|[1-9][0-9]*))?(?:-((?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
  #|      "default": "0.9",
  #|      "description": "The A2UI specification version of this catalog definition (e.g. '1.0'). Defaults to '0.9' if omitted."
  #|    },
  #|    "$defs": {
  #|      "type": "object",
  #|      "description": "Standardized schema definitions referenced from outside the catalog file, and custom leaf definitions.",
  #|      "properties": {
  #|        "anyComponent": {
  #|          "title": "A2UI Any Component Schema",
  #|          "description": "Unified validation schema for all components.",
  #|          "$ref": "https://json-schema.org/draft/2020-12/schema"
  #|        },
  #|        "anyFunction": {
  #|          "title": "A2UI Any Function Schema",
  #|          "description": "Unified validation schema for all functions.",
  #|          "$ref": "https://json-schema.org/draft/2020-12/schema"
  #|        }
  #|      },
  #|      "required": ["anyComponent", "anyFunction"],
  #|      "additionalProperties": {
  #|        "$ref": "#/$defs/LeafDefinition"
  #|      }
  #|    },
  #|    "title": {
  #|      "type": "string",
  #|      "description": "The title of the catalog."
  #|    },
  #|    "description": {
  #|      "type": "string",
  #|      "description": "A human-readable description of the catalog."
  #|    },
  #|    "catalogId": {
  #|      "type": "string",
  #|      "description": "Unique identifier for this catalog."
  #|    },
  #|    "metadata": {
  #|      "type": "object",
  #|      "description": "Optional catalog-level metadata.",
  #|      "properties": {
  #|        "extensions": {
  #|          "$ref": "common_types.json#/$defs/Extensions"
  #|        }
  #|      },
  #|      "additionalProperties": false
  #|    },
  #|    "instructions": {
  #|      "type": "string",
  #|      "description": "Markdown-formatted design guidelines or instructions specific to this catalog."
  #|    },
  #|    "components": {
  #|      "type": "object",
  #|      "description": "Definitions for UI components supported by this catalog.",
  #|      "propertyNames": {
  #|        "not": {
  #|          "const": "Surface"
  #|        }
  #|      },
  #|      "additionalProperties": {
  #|        "$ref": "#/$defs/ComponentDefinition"
  #|      }
  #|    },
  #|    "functions": {
  #|      "type": "object",
  #|      "description": "Definitions for functions supported by this catalog.",
  #|      "additionalProperties": {
  #|        "$ref": "#/$defs/FunctionDefinition"
  #|      }
  #|    }
  #|  },
  #|  "required": ["catalogId"],
  #|  "additionalProperties": false,
  #|  "$defs": {
  #|    "FunctionCallValidationSchema": {
  #|      "type": "object",
  #|      "description": "JSON Schema structure that validates a wire-level FunctionCall object.",
  #|      "properties": {
  #|        "type": {
  #|          "const": "object"
  #|        },
  #|        "description": {
  #|          "type": "string"
  #|        },
  #|        "properties": {
  #|          "type": "object",
  #|          "properties": {
  #|            "@call": {
  #|              "type": "object",
  #|              "properties": {
  #|                "const": {"type": "string"}
  #|              },
  #|              "required": ["const"]
  #|            },
  #|            "args": {
  #|              "type": "object",
  #|              "description": "A JSON Schema describing the expected arguments (args) for this function.",
  #|              "$ref": "https://json-schema.org/draft/2020-12/schema"
  #|            }
  #|          },
  #|          "required": ["@call"],
  #|          "additionalProperties": false
  #|        },
  #|        "required": {
  #|          "type": "array",
  #|          "items": {"type": "string"},
  #|          "contains": {"const": "@call"}
  #|        }
  #|      },
  #|      "required": ["type", "properties", "required"]
  #|    },
  #|    "FunctionDefinition": {
  #|      "type": "object",
  #|      "description": "Describes a function's validation schema and interface metadata.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "#/$defs/FunctionCallValidationSchema"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "returnType": {
  #|              "type": "string",
  #|              "enum": [
  #|                "string",
  #|                "number",
  #|                "boolean",
  #|                "array",
  #|                "object",
  #|                "validationResult",
  #|                "any",
  #|                "void"
  #|              ],
  #|              "description": "The type of value this function returns."
  #|            },
  #|            "allowedCallers": {
  #|              "type": "string",
  #|              "enum": ["rendererOnly", "agentOnly", "rendererOrAgent"],
  #|              "default": "rendererOnly",
  #|              "description": "Specifies which roles are authorized to invoke this function."
  #|            },
  #|            "requiresUserActivation": {
  #|              "type": "boolean",
  #|              "default": false,
  #|              "description": "Specifies whether this function requires a user activation context to execute."
  #|            }
  #|          },
  #|          "required": ["returnType"]
  #|        },
  #|        {
  #|          "if": {
  #|            "properties": {
  #|              "requiresUserActivation": {"const": true}
  #|            },
  #|            "required": ["requiresUserActivation"]
  #|          },
  #|          "then": {
  #|            "properties": {
  #|              "allowedCallers": {"enum": ["rendererOnly"]}
  #|            }
  #|          }
  #|        }
  #|      ],
  #|      "unevaluatedProperties": false
  #|    },
  #|    "LeafDefinition": {
  #|      "type": "object",
  #|      "description": "Describes a reusable leaf data type (e.g. design token, value union, or payload structure). Must not define a component schema.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "https://json-schema.org/draft/2020-12/schema"
  #|        },
  #|        {
  #|          "not": {
  #|            "anyOf": [
  #|              {
  #|                "properties": {
  #|                  "properties": {
  #|                    "type": "object",
  #|                    "properties": {
  #|                      "component": {
  #|                        "type": "object",
  #|                        "required": ["const"]
  #|                      }
  #|                    },
  #|                    "required": ["component"]
  #|                  }
  #|                },
  #|                "required": ["properties"]
  #|              },
  #|              {
  #|                "properties": {
  #|                  "allOf": {
  #|                    "type": "array",
  #|                    "contains": {
  #|                      "properties": {
  #|                        "properties": {
  #|                          "type": "object",
  #|                          "properties": {
  #|                            "component": {
  #|                              "type": "object",
  #|                              "required": ["const"]
  #|                            }
  #|                          },
  #|                          "required": ["component"]
  #|                        }
  #|                      },
  #|                      "required": ["properties"]
  #|                    }
  #|                  }
  #|                },
  #|                "required": ["allOf"]
  #|              }
  #|            ]
  #|          }
  #|        }
  #|      ]
  #|    },
  #|    "ComponentDefinition": {
  #|      "type": "object",
  #|      "description": "Describes a component's validation schema and composition constraints.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "https://json-schema.org/draft/2020-12/schema"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "allowedParents": {
  #|              "type": "array",
  #|              "items": {
  #|                "type": "string"
  #|              },
  #|              "description": "The list of parent component type names that can contain this component type. If omitted, all parent component types are allowed. To restrict a component so it can appear only as the top-level component (id='root') of a surface, set \"allowedParents\": [\"Surface\"]. To allow a component as either the top-level component of a surface or a child of a specific container, specify both (e.g., \"allowedParents\": [\"Surface\", \"CanvasContainer\"]).",
  #|              "uniqueItems": true
  #|            },
  #|            "allowedChildren": {
  #|              "type": "array",
  #|              "items": {
  #|                "type": "string"
  #|              },
  #|              "description": "The list of child component type names allowed inside this container or slot. If omitted, all child component types are allowed.",
  #|              "uniqueItems": true
  #|            },
  #|            "metadata": {
  #|              "type": "object",
  #|              "description": "Optional static metadata.",
  #|              "properties": {
  #|                "extensions": {
  #|                  "$ref": "common_types.json#/$defs/Extensions"
  #|                }
  #|              },
  #|              "additionalProperties": false
  #|            }
  #|          },
  #|          "not": {
  #|            "anyOf": [{"required": ["anyOf"]}, {"required": ["oneOf"]}]
  #|          }
  #|        }
  #|      ]
  #|    },
  #|    "ValidationResult": {
  #|      "type": "object",
  #|      "description": "Dynamic validation result object returned by a validation condition function or data binding.",
  #|      "properties": {
  #|        "valid": {
  #|          "type": "boolean",
  #|          "description": "Whether the check passed."
  #|        },
  #|        "code": {
  #|          "type": "string",
  #|          "description": "Machine-readable error code (e.g. EXPIRED_CARD, OUT_OF_RANGE)."
  #|        },
  #|        "message": {
  #|          "type": "string",
  #|          "description": "Human-readable error or warning message."
  #|        },
  #|        "severity": {
  #|          "type": "string",
  #|          "enum": ["error", "warning", "info"],
  #|          "default": "error",
  #|          "description": "Severity level of the validation result."
  #|        }
  #|      },
  #|      "required": ["valid"]
  #|    }
  #|  }
  #|}
  #|

///|
let agent_capabilities_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/agent_capabilities.json",
  #|  "title": "A2UI Agent Capabilities Schema",
  #|  "description": "A schema for the agent capabilities object, which is used by an A2UI Agent to advertise its supported UI features to renderers. This can be embedded in an Agent Card for A2A or used in other transport protocols like MCP.",
  #|  "type": "object",
  #|  "properties": {
  #|    "1.0": {
  #|      "type": "object",
  #|      "description": "The agent capabilities structure for version 1.0 of the A2UI protocol.",
  #|      "properties": {
  #|        "supportedCatalogIds": {
  #|          "type": "array",
  #|          "description": "An array of strings, where each is an ID identifying a Catalog for which the agent can generate content. This is not a resolvable URI. Multiple catalogs can be mixed in a single surface.",
  #|          "items": {"type": "string"}
  #|        },
  #|        "acceptsInlineCatalogs": {
  #|          "type": "boolean",
  #|          "description": "A boolean indicating if the agent can accept an 'inlineCatalogs' array in the renderer's a2uiRendererCapabilities. If omitted, this defaults to false.",
  #|          "default": false
  #|        }
  #|      }
  #|    }
  #|  },
  #|  "required": ["1.0"]
  #|}
  #|

///|
let renderer_capabilities_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/renderer_capabilities.json",
  #|  "title": "A2UI Renderer Capabilities Schema",
  #|  "description": "A schema for the a2uiRendererCapabilities object, which is sent from the renderer to the agent as part of the A2A metadata to describe the renderer's UI rendering capabilities.",
  #|  "type": "object",
  #|  "properties": {
  #|    "1.0": {
  #|      "type": "object",
  #|      "description": "The capabilities structure for version 1.0 of the A2UI protocol.",
  #|      "properties": {
  #|        "supportedCatalogIds": {
  #|          "type": "array",
  #|          "description": "An array of string identifiers for each of the component and function catalogs supported by the renderer. Multiple catalogs can be mixed in a single surface.",
  #|          "items": {"type": "string"}
  #|        },
  #|        "inlineCatalogs": {
  #|          "type": "array",
  #|          "description": "An array of inline catalog definitions, which can contain both components and functions. This should only be provided if the agent declares 'acceptsInlineCatalogs: true' in its capabilities.",
  #|          "items": {
  #|            "$ref": "https://a2ui.org/specification/v1_0/catalog_definition.json"
  #|          }
  #|        }
  #|      },
  #|      "required": ["supportedCatalogIds"]
  #|    }
  #|  },
  #|  "required": ["1.0"]
  #|}
  #|

///|
let renderer_data_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/renderer_data_model.json",
  #|  "title": "A2UI Renderer Data Model Schema",
  #|  "description": "Schema for conveying the renderer data models for all active surfaces. This is used for bidirectional data synchronization between the renderer and the agent.",
  #|  "type": "object",
  #|  "properties": {
  #|    "version": {
  #|      "const": "1.0"
  #|    },
  #|    "surfaces": {
  #|      "type": "object",
  #|      "description": "A map of surface IDs to their current data models.",
  #|      "additionalProperties": {
  #|        "type": "object",
  #|        "description": "The current data model for the surface, as a standard JSON object."
  #|      }
  #|    }
  #|  },
  #|  "required": ["version", "surfaces"],
  #|  "additionalProperties": false
  #|}
  #|

///|
let basic_catalog_schema : String =
  #|{
  #|  "$schema": "https://json-schema.org/draft/2020-12/schema",
  #|  "$id": "https://a2ui.org/specification/v1_0/catalogs/basic/catalog.json",
  #|  "protocolVersion": "1.0",
  #|  "title": "A2UI Basic Catalog",
  #|  "description": "Unified catalog of basic A2UI components and functions.",
  #|  "catalogId": "https://a2ui.org/specification/v1_0/catalogs/basic/catalog.json",
  #|  "instructions": "For layout, use the Row and Column components to organize other components.\n\n## Catalog Guidelines\n\n1. String Concatenation & Formatting: A2UI does not support binary operators like '+' or formatting symbols. To concatenate strings or dynamically inject data bindings into text, you must use the catalog function `formatString(value)` where the value string contains placeholders formatted as `${expression}`:\n   formatString(\"Hello ${/user/name}\")\n\n2. Strict Hierarchy: You must strictly adhere to the requested component nesting and hierarchy. If the prompt specifies that a component is 'inside' or 'contained in' another component, you MUST place it as a child of that specific component, not as a sibling or in a different container.\n\n3. Validation Checks: When components support validation checks, specify any custom error messages directly as the 'message' inside the check. Do NOT create separate text-display components to display validation errors.\n\n## Examples\n\nExample 1: Dynamic text form\n```json\n[\n  {\n    \"version\": \"1.0\",\n    \"createSurface\": {\n      \"surfaceId\": \"main\",\n      \"catalogId\": \"https://a2ui.org/specification/v1_0/catalogs/basic/catalog.json\",\n      \"components\": [\n        {\n          \"id\": \"root\",\n          \"component\": \"Column\",\n          \"children\": [\"repField\", \"valueField\"]\n        },\n        {\n          \"id\": \"repField\",\n          \"component\": \"TextField\",\n          \"label\": \"Representative\",\n          \"value\": {\"@path\": \"/form/rep\"},\n          \"placeholder\": \"Enter name\"\n        },\n        {\n          \"id\": \"valueField\",\n          \"component\": \"TextField\",\n          \"label\": \"Deal Value\",\n          \"value\": {\"@path\": \"/form/value\"},\n          \"placeholder\": \"0.00\",\n          \"variant\": \"number\",\n          \"@checks\": [\n            {\n              \"condition\": {\n                \"@call\": \"required\",\n                \"args\": {\"value\": {\"@path\": \"/form/value\"}}\n              },\n              \"message\": \"Deal value is required.\"\n            }\n          ]\n        }\n      ],\n      \"dataModel\": {\n        \"form\": {\n          \"rep\": \"John Doe\",\n          \"value\": 1500.00\n        }\n      }\n    }\n  }\n]\n```\n\nExample 2: Dynamic list with templates\n```json\n[\n  {\n    \"version\": \"1.0\",\n    \"createSurface\": {\n      \"surfaceId\": \"main\",\n      \"catalogId\": \"https://a2ui.org/specification/v1_0/catalogs/basic/catalog.json\",\n      \"components\": [\n        {\n          \"id\": \"root\",\n          \"component\": \"Card\",\n          \"child\": \"breedList\"\n        },\n        {\n          \"id\": \"breedList\",\n          \"component\": \"List\",\n          \"children\": {\n            \"path\": \"/breeds\",\n            \"componentId\": \"breedTemplate\"\n          },\n          \"direction\": \"horizontal\"\n        },\n        {\n          \"id\": \"breedTemplate\",\n          \"component\": \"Image\",\n          \"url\": {\"@path\": \"url\"}\n        }\n      ],\n      \"dataModel\": {\n        \"breeds\": [\n          {\n            \"url\": \"https://example.com/poodle.jpg\"\n          },\n          {\n            \"url\": \"https://example.com/lab.jpg\"\n          }\n        ]\n      }\n    }\n  }\n]\n```",
  #|  "components": {
  #|    "Text": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Text"
  #|        },
  #|        "text": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "The text content to display. While simple Markdown formatting is supported (i.e. without HTML, images, or links), utilizing dedicated UI components is generally preferred for a richer and more structured presentation."
  #|        },
  #|        "variant": {
  #|          "type": "string",
  #|          "description": "A hint for the base text style.",
  #|          "enum": ["caption", "body"],
  #|          "default": "body"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "text"]
  #|    },
  #|    "Image": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Image"
  #|        },
  #|        "url": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "The URL of the image to display."
  #|        },
  #|        "description": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "Accessibility text for the image."
  #|        },
  #|        "fit": {
  #|          "type": "string",
  #|          "description": "Specifies how the image should be resized to fit its container. This corresponds to the CSS 'object-fit' property.",
  #|          "enum": ["contain", "cover", "fill", "none", "scaleDown"],
  #|          "default": "fill"
  #|        },
  #|        "variant": {
  #|          "type": "string",
  #|          "description": "A hint for the image size and style.",
  #|          "enum": ["icon", "avatar", "smallFeature", "mediumFeature", "largeFeature", "header"],
  #|          "default": "mediumFeature"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "url"]
  #|    },
  #|    "Icon": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Icon"
  #|        },
  #|        "name": {
  #|          "description": "The name of the icon to display.",
  #|          "oneOf": [
  #|            {
  #|              "type": "string",
  #|              "enum": [
  #|                "accountCircle",
  #|                "add",
  #|                "arrowBack",
  #|                "arrowForward",
  #|                "attachFile",
  #|                "calendarToday",
  #|                "call",
  #|                "camera",
  #|                "check",
  #|                "close",
  #|                "delete",
  #|                "download",
  #|                "edit",
  #|                "event",
  #|                "error",
  #|                "fastForward",
  #|                "favorite",
  #|                "favoriteOff",
  #|                "folder",
  #|                "help",
  #|                "home",
  #|                "info",
  #|                "locationOn",
  #|                "lock",
  #|                "lockOpen",
  #|                "mail",
  #|                "menu",
  #|                "moreVert",
  #|                "moreHoriz",
  #|                "notificationsOff",
  #|                "notifications",
  #|                "pause",
  #|                "payment",
  #|                "person",
  #|                "phone",
  #|                "photo",
  #|                "play",
  #|                "print",
  #|                "refresh",
  #|                "rewind",
  #|                "search",
  #|                "send",
  #|                "settings",
  #|                "share",
  #|                "shoppingCart",
  #|                "skipNext",
  #|                "skipPrevious",
  #|                "star",
  #|                "starHalf",
  #|                "starOff",
  #|                "stop",
  #|                "upload",
  #|                "visibility",
  #|                "visibilityOff",
  #|                "volumeDown",
  #|                "volumeMute",
  #|                "volumeOff",
  #|                "volumeUp",
  #|                "warning"
  #|              ]
  #|            },
  #|            {
  #|              "type": "object",
  #|              "properties": {
  #|                "svgPath": {
  #|                  "$ref": "common_types.json#/$defs/DynamicString"
  #|                }
  #|              },
  #|              "required": ["svgPath"],
  #|              "additionalProperties": false
  #|            },
  #|            {
  #|              "$ref": "common_types.json#/$defs/DataBinding"
  #|            }
  #|          ]
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "name"]
  #|    },
  #|    "Video": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Video"
  #|        },
  #|        "url": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "The URL of the video to display."
  #|        },
  #|        "posterUrl": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "The URL of the poster image to display before the video plays."
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "url"]
  #|    },
  #|    "AudioPlayer": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "AudioPlayer"
  #|        },
  #|        "url": {
  #|          "$ref": "common_types.json#/$defs/DynamicString",
  #|          "description": "The URL of the audio to be played."
  #|        },
  #|        "description": {
  #|          "description": "A description of the audio, such as a title or summary.",
  #|          "$ref": "common_types.json#/$defs/DynamicString"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "url"]
  #|    },
  #|    "Row": {
  #|      "type": "object",
  #|      "description": "A layout component that arranges its children horizontally. To create a grid layout, nest Columns within this Row.",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Row"
  #|        },
  #|        "children": {
  #|          "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID.",
  #|          "$ref": "common_types.json#/$defs/ChildList"
  #|        },
  #|        "justify": {
  #|          "type": "string",
  #|          "description": "Defines the arrangement of children along the main axis (horizontally). Use 'spaceBetween' to push items to the edges, or 'start'/'end'/'center' to pack them together.",
  #|          "enum": [
  #|            "center",
  #|            "end",
  #|            "spaceAround",
  #|            "spaceBetween",
  #|            "spaceEvenly",
  #|            "start",
  #|            "stretch"
  #|          ],
  #|          "default": "start"
  #|        },
  #|        "align": {
  #|          "type": "string",
  #|          "description": "Defines the alignment of children along the cross axis (vertically). This is similar to the CSS 'align-items' property, but uses camelCase values (e.g., 'start').",
  #|          "enum": ["start", "center", "end", "stretch"],
  #|          "default": "stretch"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "children"]
  #|    },
  #|    "Column": {
  #|      "type": "object",
  #|      "description": "A layout component that arranges its children vertically. To create a grid layout, nest Rows within this Column.",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Column"
  #|        },
  #|        "children": {
  #|          "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID.",
  #|          "$ref": "common_types.json#/$defs/ChildList"
  #|        },
  #|        "justify": {
  #|          "type": "string",
  #|          "description": "Defines the arrangement of children along the main axis (vertically). Use 'spaceBetween' to push items to the edges (e.g. header at top, footer at bottom), or 'start'/'end'/'center' to pack them together.",
  #|          "enum": [
  #|            "start",
  #|            "center",
  #|            "end",
  #|            "spaceBetween",
  #|            "spaceAround",
  #|            "spaceEvenly",
  #|            "stretch"
  #|          ],
  #|          "default": "start"
  #|        },
  #|        "align": {
  #|          "type": "string",
  #|          "description": "Defines the alignment of children along the cross axis (horizontally). This is similar to the CSS 'align-items' property.",
  #|          "enum": ["center", "end", "start", "stretch"],
  #|          "default": "stretch"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "children"]
  #|    },
  #|    "List": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "List"
  #|        },
  #|        "children": {
  #|          "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list.",
  #|          "$ref": "common_types.json#/$defs/ChildList"
  #|        },
  #|        "direction": {
  #|          "type": "string",
  #|          "description": "The direction in which the list items are laid out.",
  #|          "enum": ["vertical", "horizontal"],
  #|          "default": "vertical"
  #|        },
  #|        "align": {
  #|          "type": "string",
  #|          "description": "Defines the alignment of children along the cross axis.",
  #|          "enum": ["start", "center", "end", "stretch"],
  #|          "default": "stretch"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "children"]
  #|    },
  #|    "Card": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Card"
  #|        },
  #|        "child": {
  #|          "$ref": "common_types.json#/$defs/Child",
  #|          "description": "The ID of the single child component to be rendered inside the card. To display multiple elements, you MUST wrap them in a layout component (like Column or Row) and pass that container's ID here. Do NOT pass multiple IDs or a non-existent ID."
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "child"]
  #|    },
  #|    "Tabs": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Tabs"
  #|        },
  #|        "tabs": {
  #|          "type": "array",
  #|          "description": "An array of objects, where each object defines a tab with a title and a child component.",
  #|          "minItems": 1,
  #|          "items": {
  #|            "type": "object",
  #|            "properties": {
  #|              "title": {
  #|                "description": "The tab title.",
  #|                "$ref": "common_types.json#/$defs/DynamicString"
  #|              },
  #|              "child": {
  #|                "$ref": "common_types.json#/$defs/Child",
  #|                "description": "The ID of the child component."
  #|              }
  #|            },
  #|            "required": ["title", "child"],
  #|            "additionalProperties": false
  #|          }
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "tabs"]
  #|    },
  #|    "Modal": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Modal"
  #|        },
  #|        "trigger": {
  #|          "$ref": "common_types.json#/$defs/Child",
  #|          "description": "The ID of the component that opens the modal when interacted with (e.g., a button)."
  #|        },
  #|        "content": {
  #|          "$ref": "common_types.json#/$defs/Child",
  #|          "description": "The ID of the component to be displayed inside the modal."
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component", "trigger", "content"]
  #|    },
  #|    "Divider": {
  #|      "type": "object",
  #|      "properties": {
  #|        "component": {
  #|          "const": "Divider"
  #|        },
  #|        "axis": {
  #|          "type": "string",
  #|          "description": "The orientation of the divider.",
  #|          "enum": ["horizontal", "vertical"],
  #|          "default": "horizontal"
  #|        },
  #|        "weight": {
  #|          "$ref": "#/$defs/Weight"
  #|        }
  #|      },
  #|      "required": ["component"]
  #|    },
  #|    "Button": {
  #|      "type": "object",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "Button"
  #|            },
  #|            "child": {
  #|              "$ref": "common_types.json#/$defs/Child",
  #|              "description": "The ID of the child component. Use a 'Text' component for a labeled button. Only use an 'Icon' if the requirements explicitly ask for an icon-only button."
  #|            },
  #|            "variant": {
  #|              "type": "string",
  #|              "description": "A hint for the button style. If omitted, a default button style is used. 'primary' indicates this is the main call-to-action button. 'borderless' means the button has no visual border or background, making its child content appear like a clickable link.",
  #|              "enum": ["default", "primary", "borderless"],
  #|              "default": "default"
  #|            },
  #|            "action": {
  #|              "$ref": "common_types.json#/$defs/Action"
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "child", "action"]
  #|        }
  #|      ]
  #|    },
  #|    "TextField": {
  #|      "type": "object",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "TextField"
  #|            },
  #|            "label": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The text label for the input field."
  #|            },
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The value of the text field."
  #|            },
  #|            "placeholder": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The placeholder text for the input field."
  #|            },
  #|            "variant": {
  #|              "type": "string",
  #|              "description": "The type of input field to display.",
  #|              "enum": ["longText", "number", "shortText", "obscured"],
  #|              "default": "shortText"
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "label", "value"]
  #|        }
  #|      ]
  #|    },
  #|    "CheckBox": {
  #|      "type": "object",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "CheckBox"
  #|            },
  #|            "label": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The text to display next to the checkbox."
  #|            },
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicBoolean",
  #|              "description": "The current state of the checkbox (true for checked, false for unchecked)."
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "label", "value"]
  #|        }
  #|      ]
  #|    },
  #|    "ChoicePicker": {
  #|      "type": "object",
  #|      "description": "A component that allows selecting one or more options from a list.",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "ChoicePicker"
  #|            },
  #|            "label": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The label for the group of options."
  #|            },
  #|            "variant": {
  #|              "type": "string",
  #|              "description": "A hint for how the choice picker should be displayed and behave.",
  #|              "enum": ["multipleSelection", "mutuallyExclusive"],
  #|              "default": "mutuallyExclusive"
  #|            },
  #|            "options": {
  #|              "type": "array",
  #|              "description": "The list of available options to choose from.",
  #|              "items": {
  #|                "type": "object",
  #|                "properties": {
  #|                  "label": {
  #|                    "description": "The text to display for this option.",
  #|                    "$ref": "common_types.json#/$defs/DynamicString"
  #|                  },
  #|                  "value": {
  #|                    "type": "string",
  #|                    "description": "The stable value associated with this option."
  #|                  }
  #|                },
  #|                "required": ["label", "value"],
  #|                "additionalProperties": false
  #|              }
  #|            },
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicStringList",
  #|              "description": "The list of currently selected values. This should be bound to a string array in the data model."
  #|            },
  #|            "displayStyle": {
  #|              "type": "string",
  #|              "description": "The display style of the component.",
  #|              "enum": ["checkbox", "chips"],
  #|              "default": "checkbox"
  #|            },
  #|            "filterable": {
  #|              "type": "boolean",
  #|              "description": "If true, displays a search input to filter the options.",
  #|              "default": false
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "options", "value"]
  #|        }
  #|      ]
  #|    },
  #|    "Slider": {
  #|      "type": "object",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "Slider"
  #|            },
  #|            "label": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The label for the slider."
  #|            },
  #|            "min": {
  #|              "type": "number",
  #|              "description": "The minimum value of the slider.",
  #|              "default": 0
  #|            },
  #|            "max": {
  #|              "type": "number",
  #|              "description": "The maximum value of the slider."
  #|            },
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "The current value of the slider."
  #|            },
  #|            "steps": {
  #|              "type": "integer",
  #|              "minimum": 1,
  #|              "description": "The number of discrete divisions in the slider range. If specified, the slider will snap to discrete values."
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "value", "max"]
  #|        }
  #|      ]
  #|    },
  #|    "DateTimeInput": {
  #|      "type": "object",
  #|      "allOf": [
  #|        {
  #|          "$ref": "common_types.json#/$defs/Checkable"
  #|        },
  #|        {
  #|          "type": "object",
  #|          "properties": {
  #|            "component": {
  #|              "const": "DateTimeInput"
  #|            },
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The selected date and/or time value in ISO 8601 format. If not yet set, initialize with an empty string."
  #|            },
  #|            "enableDate": {
  #|              "type": "boolean",
  #|              "description": "If true, allows the user to select a date.",
  #|              "default": false
  #|            },
  #|            "enableTime": {
  #|              "type": "boolean",
  #|              "description": "If true, allows the user to select a time.",
  #|              "default": false
  #|            },
  #|            "min": {
  #|              "allOf": [
  #|                {
  #|                  "$ref": "common_types.json#/$defs/DynamicString"
  #|                },
  #|                {
  #|                  "if": {
  #|                    "type": "string"
  #|                  },
  #|                  "then": {
  #|                    "oneOf": [
  #|                      {
  #|                        "format": "date"
  #|                      },
  #|                      {
  #|                        "format": "time"
  #|                      },
  #|                      {
  #|                        "format": "date-time"
  #|                      }
  #|                    ]
  #|                  }
  #|                }
  #|              ],
  #|              "description": "The minimum allowed date/time in ISO 8601 format."
  #|            },
  #|            "max": {
  #|              "allOf": [
  #|                {
  #|                  "$ref": "common_types.json#/$defs/DynamicString"
  #|                },
  #|                {
  #|                  "if": {
  #|                    "type": "string"
  #|                  },
  #|                  "then": {
  #|                    "oneOf": [
  #|                      {
  #|                        "format": "date"
  #|                      },
  #|                      {
  #|                        "format": "time"
  #|                      },
  #|                      {
  #|                        "format": "date-time"
  #|                      }
  #|                    ]
  #|                  }
  #|                }
  #|              ],
  #|              "description": "The maximum allowed date/time in ISO 8601 format."
  #|            },
  #|            "label": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The text label for the input field."
  #|            },
  #|            "weight": {
  #|              "$ref": "#/$defs/Weight"
  #|            }
  #|          },
  #|          "required": ["component", "value"]
  #|        }
  #|      ]
  #|    }
  #|  },
  #|  "functions": {
  #|    "required": {
  #|      "type": "object",
  #|      "description": "Checks that the value is not null, undefined, or empty.",
  #|      "returnType": "validationResult",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "required"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "description": "The value to check."
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "regex": {
  #|      "type": "object",
  #|      "description": "Checks that the value matches a regular expression string.",
  #|      "returnType": "validationResult",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "regex"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString"
  #|            },
  #|            "pattern": {
  #|              "type": "string",
  #|              "description": "The regular expression to search for in the value. Uses the A2UI regex dialect: a portable subset of ECMAScript pattern syntax in Unicode mode with no flags. Matching is case-sensitive, '.' excludes line terminators, and '^' and '$' match only at the ends of the value. Backreferences, lookbehind, named groups and '\\p{...}' are not allowed. Patterns longer than 256 code points or that could backtrack catastrophically are rejected."
  #|            }
  #|          },
  #|          "required": ["value", "pattern"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "length": {
  #|      "type": "object",
  #|      "description": "Checks string length constraints.",
  #|      "returnType": "validationResult",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "length"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString"
  #|            },
  #|            "min": {
  #|              "type": "integer",
  #|              "minimum": 0,
  #|              "description": "The minimum allowed length."
  #|            },
  #|            "max": {
  #|              "type": "integer",
  #|              "minimum": 0,
  #|              "description": "The maximum allowed length."
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "anyOf": [
  #|            {
  #|              "required": ["min"]
  #|            },
  #|            {
  #|              "required": ["max"]
  #|            }
  #|          ],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "numeric": {
  #|      "type": "object",
  #|      "description": "Checks numeric range constraints.",
  #|      "returnType": "validationResult",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "numeric"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber"
  #|            },
  #|            "min": {
  #|              "type": "number",
  #|              "description": "The minimum allowed value."
  #|            },
  #|            "max": {
  #|              "type": "number",
  #|              "description": "The maximum allowed value."
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "anyOf": [
  #|            {
  #|              "required": ["min"]
  #|            },
  #|            {
  #|              "required": ["max"]
  #|            }
  #|          ],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "email": {
  #|      "type": "object",
  #|      "description": "Checks that the value is a valid email address.",
  #|      "returnType": "validationResult",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "email"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString"
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "formatString": {
  #|      "type": "object",
  #|      "description": "Performs string interpolation of data model values and other functions in the catalog functions list and returns the resulting string. The value string can contain interpolated expressions in the `${expression}` format. Supported expression types include: JSON Pointer paths to the data model (e.g., `${/absolute/path}` or `${relative/path}`), and renderer-side function calls (e.g., `${now()}`). Function arguments must be named (e.g., `${formatDate(value:${/currentDate}, format:'MM-dd')}`). To include a literal `${` sequence, escape it as `\\${`.",
  #|      "returnType": "string",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "formatString"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicString"
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "formatNumber": {
  #|      "type": "object",
  #|      "description": "Formats a number with the specified grouping and decimal precision.",
  #|      "returnType": "string",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "formatNumber"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "The number to format."
  #|            },
  #|            "decimals": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "Optional. The number of decimal places to show. Defaults to 0 or 2 depending on locale."
  #|            },
  #|            "grouping": {
  #|              "$ref": "common_types.json#/$defs/DynamicBoolean",
  #|              "description": "Optional. If true, uses locale-specific grouping separators (e.g. '1,000'). If false, returns raw digits (e.g. '1000'). Defaults to true."
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "formatCurrency": {
  #|      "type": "object",
  #|      "description": "Formats a number as a currency string.",
  #|      "returnType": "string",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "formatCurrency"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "The monetary amount."
  #|            },
  #|            "currency": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The ISO 4217 currency code (e.g., 'USD', 'EUR')."
  #|            },
  #|            "decimals": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "Optional. The number of decimal places to show. Defaults to 0 or 2 depending on locale."
  #|            },
  #|            "grouping": {
  #|              "$ref": "common_types.json#/$defs/DynamicBoolean",
  #|              "description": "Optional. If true, uses locale-specific grouping separators (e.g. '1,000'). If false, returns raw digits (e.g. '1000'). Defaults to true."
  #|            }
  #|          },
  #|          "required": ["currency", "value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "formatDate": {
  #|      "type": "object",
  #|      "description": "Formats a timestamp into a string using a pattern.",
  #|      "returnType": "string",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "formatDate"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicValue",
  #|              "description": "The date to format."
  #|            },
  #|            "format": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "A Unicode TR35 date pattern string.\n\nToken Reference:\n- Year: 'yy' (26), 'yyyy' (2026)\n- Month: 'M' (1), 'MM' (01), 'MMM' (Jan), 'MMMM' (January)\n- Day: 'd' (1), 'dd' (01), 'E' (Tue), 'EEEE' (Tuesday)\n- Hour (12h): 'h' (1-12), 'hh' (01-12) - requires 'a' for AM/PM\n- Hour (24h): 'H' (0-23), 'HH' (00-23) - Military Time\n- Minute: 'mm' (00-59)\n- Second: 'ss' (00-59)\n- Period: 'a' (AM/PM)\n\nExamples:\n- 'MMM dd, yyyy' -> 'Jan 16, 2026'\n- 'HH:mm' -> '14:30' (Military)\n- 'h:mm a' -> '2:30 PM'\n- 'EEEE, d MMMM' -> 'Friday, 16 January'"
  #|            }
  #|          },
  #|          "required": ["format", "value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "pluralize": {
  #|      "type": "object",
  #|      "description": "Returns a localized string based on the Common Locale Data Repository (CLDR) plural category of the count (zero, one, two, few, many, other). Requires an 'other' fallback. For English, just use 'one' and 'other'.",
  #|      "returnType": "string",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "pluralize"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicNumber",
  #|              "description": "The numeric value used to determine the plural category."
  #|            },
  #|            "zero": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "String for the 'zero' category (e.g., 0 items)."
  #|            },
  #|            "one": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "String for the 'one' category (e.g., 1 item)."
  #|            },
  #|            "two": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "String for the 'two' category (used in Arabic, Welsh, etc.)."
  #|            },
  #|            "few": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "String for the 'few' category (e.g., small groups in Slavic languages)."
  #|            },
  #|            "many": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "String for the 'many' category (e.g., large groups in various languages)."
  #|            },
  #|            "other": {
  #|              "$ref": "common_types.json#/$defs/DynamicString",
  #|              "description": "The default/fallback string (used for general plural cases)."
  #|            }
  #|          },
  #|          "required": ["value", "other"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "openUrl": {
  #|      "type": "object",
  #|      "description": "Opens the specified URL in a browser or handler (requires user activation). This function has no return value.",
  #|      "returnType": "void",
  #|      "requiresUserActivation": true,
  #|      "properties": {
  #|        "@call": {
  #|          "const": "openUrl"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "url": {
  #|              "description": "The URL to open.",
  #|              "oneOf": [
  #|                {
  #|                  "type": "string",
  #|                  "format": "uri"
  #|                },
  #|                {
  #|                  "$ref": "common_types.json#/$defs/DataBinding"
  #|                },
  #|                {
  #|                  "$ref": "common_types.json#/$defs/FunctionCall"
  #|                }
  #|              ]
  #|            }
  #|          },
  #|          "required": ["url"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "and": {
  #|      "type": "object",
  #|      "description": "Performs a logical AND operation on a list of boolean values.",
  #|      "returnType": "boolean",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "and"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "values": {
  #|              "type": "array",
  #|              "description": "The list of boolean values to evaluate.",
  #|              "items": {
  #|                "$ref": "common_types.json#/$defs/DynamicBoolean"
  #|              },
  #|              "minItems": 2
  #|            }
  #|          },
  #|          "required": ["values"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "or": {
  #|      "type": "object",
  #|      "description": "Performs a logical OR operation on a list of boolean values.",
  #|      "returnType": "boolean",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "or"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "values": {
  #|              "type": "array",
  #|              "description": "The list of boolean values to evaluate.",
  #|              "items": {
  #|                "$ref": "common_types.json#/$defs/DynamicBoolean"
  #|              },
  #|              "minItems": 2
  #|            }
  #|          },
  #|          "required": ["values"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    },
  #|    "not": {
  #|      "type": "object",
  #|      "description": "Performs a logical NOT operation on a boolean value.",
  #|      "returnType": "boolean",
  #|      "properties": {
  #|        "@call": {
  #|          "const": "not"
  #|        },
  #|        "args": {
  #|          "type": "object",
  #|          "properties": {
  #|            "value": {
  #|              "$ref": "common_types.json#/$defs/DynamicBoolean",
  #|              "description": "The boolean value to negate."
  #|            }
  #|          },
  #|          "required": ["value"],
  #|          "unevaluatedProperties": false
  #|        }
  #|      },
  #|      "required": ["@call", "args"]
  #|    }
  #|  },
  #|  "$defs": {
  #|    "anyComponent": {
  #|      "oneOf": [
  #|        {
  #|          "$ref": "#/components/Text"
  #|        },
  #|        {
  #|          "$ref": "#/components/Image"
  #|        },
  #|        {
  #|          "$ref": "#/components/Icon"
  #|        },
  #|        {
  #|          "$ref": "#/components/Video"
  #|        },
  #|        {
  #|          "$ref": "#/components/AudioPlayer"
  #|        },
  #|        {
  #|          "$ref": "#/components/Row"
  #|        },
  #|        {
  #|          "$ref": "#/components/Column"
  #|        },
  #|        {
  #|          "$ref": "#/components/List"
  #|        },
  #|        {
  #|          "$ref": "#/components/Card"
  #|        },
  #|        {
  #|          "$ref": "#/components/Tabs"
  #|        },
  #|        {
  #|          "$ref": "#/components/Modal"
  #|        },
  #|        {
  #|          "$ref": "#/components/Divider"
  #|        },
  #|        {
  #|          "$ref": "#/components/Button"
  #|        },
  #|        {
  #|          "$ref": "#/components/TextField"
  #|        },
  #|        {
  #|          "$ref": "#/components/CheckBox"
  #|        },
  #|        {
  #|          "$ref": "#/components/ChoicePicker"
  #|        },
  #|        {
  #|          "$ref": "#/components/Slider"
  #|        },
  #|        {
  #|          "$ref": "#/components/DateTimeInput"
  #|        }
  #|      ],
  #|      "discriminator": {
  #|        "propertyName": "component"
  #|      }
  #|    },
  #|    "anyFunction": {
  #|      "oneOf": [
  #|        {
  #|          "$ref": "#/functions/required"
  #|        },
  #|        {
  #|          "$ref": "#/functions/regex"
  #|        },
  #|        {
  #|          "$ref": "#/functions/length"
  #|        },
  #|        {
  #|          "$ref": "#/functions/numeric"
  #|        },
  #|        {
  #|          "$ref": "#/functions/email"
  #|        },
  #|        {
  #|          "$ref": "#/functions/formatString"
  #|        },
  #|        {
  #|          "$ref": "#/functions/formatNumber"
  #|        },
  #|        {
  #|          "$ref": "#/functions/formatCurrency"
  #|        },
  #|        {
  #|          "$ref": "#/functions/formatDate"
  #|        },
  #|        {
  #|          "$ref": "#/functions/pluralize"
  #|        },
  #|        {
  #|          "$ref": "#/functions/openUrl"
  #|        },
  #|        {
  #|          "$ref": "#/functions/and"
  #|        },
  #|        {
  #|          "$ref": "#/functions/or"
  #|        },
  #|        {
  #|          "$ref": "#/functions/not"
  #|        }
  #|      ]
  #|    },
  #|    "Weight": {
  #|      "type": "number",
  #|      "description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
  #|    }
  #|  }
  #|}
  #|