{
  "components": {
    "schemas": {
      "AggregateRefSchema": {
        "properties": {
          "alias": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alias"
          },
          "field": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "function": {
            "enum": [
              "count",
              "sum",
              "avg",
              "min",
              "max"
            ],
            "title": "Function",
            "type": "string"
          }
        },
        "required": [
          "function"
        ],
        "title": "AggregateRefSchema",
        "type": "object"
      },
      "ApplicationResponse": {
        "description": "Schema for application data in responses.",
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "customDomain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customdomain"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "identityModelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identitymodelid"
          },
          "identitySettings": {
            "additionalProperties": true,
            "title": "Identitysettings",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "name",
          "slug",
          "status",
          "createdBy"
        ],
        "title": "ApplicationResponse",
        "type": "object"
      },
      "AuditEventResponse": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "actorId": {
            "format": "uuid",
            "title": "Actorid",
            "type": "string"
          },
          "actorSubject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actorsubject"
          },
          "actorType": {
            "title": "Actortype",
            "type": "string"
          },
          "applicationId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Applicationid"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "newValue": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Newvalue"
          },
          "oldValue": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Oldvalue"
          },
          "resourceId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resourceid"
          },
          "resourceType": {
            "title": "Resourcetype",
            "type": "string"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "actorType",
          "actorId",
          "applicationId",
          "action",
          "resourceType",
          "resourceId",
          "oldValue",
          "newValue",
          "createdAt"
        ],
        "title": "AuditEventResponse",
        "type": "object"
      },
      "BinaryArithmeticExpressionSchema": {
        "description": "Transport representation of a binary arithmetic expression.",
        "properties": {
          "left": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              }
            ],
            "title": "Left"
          },
          "operator": {
            "enum": [
              "+",
              "-",
              "*",
              "/"
            ],
            "title": "Operator",
            "type": "string"
          },
          "right": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              }
            ],
            "title": "Right"
          }
        },
        "required": [
          "left",
          "operator",
          "right"
        ],
        "title": "BinaryArithmeticExpressionSchema",
        "type": "object"
      },
      "Body_uploadFile": {
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "type": "string"
          }
        },
        "required": [
          "file"
        ],
        "title": "Body_uploadFile",
        "type": "object"
      },
      "CapabilitiesUpdate": {
        "additionalProperties": false,
        "description": "Constrained capability transitions callers may request.",
        "properties": {
          "public_api": {
            "anyOf": [
              {
                "const": "enabled",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Api"
          }
        },
        "title": "CapabilitiesUpdate",
        "type": "object"
      },
      "CompoundJoinOnPredicateSchema": {
        "additionalProperties": false,
        "description": "The only JSON JOIN predicate: a non-empty flat AND of equalities.",
        "properties": {
          "terms": {
            "items": {
              "$ref": "#/components/schemas/JoinEqualityTermSchema"
            },
            "minItems": 1,
            "title": "Terms",
            "type": "array"
          }
        },
        "required": [
          "terms"
        ],
        "title": "CompoundJoinOnPredicateSchema",
        "type": "object"
      },
      "ComputedProjectionSchema": {
        "description": "An expression selected with the required stable response-column alias.",
        "properties": {
          "alias": {
            "title": "Alias",
            "type": "string"
          },
          "expression": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              }
            ],
            "title": "Expression"
          }
        },
        "required": [
          "expression",
          "alias"
        ],
        "title": "ComputedProjectionSchema",
        "type": "object"
      },
      "CreateApplicationRequest": {
        "additionalProperties": false,
        "description": "Schema for application creation requests.",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Slug",
            "type": "string"
          },
          "status": {
            "default": "draft",
            "title": "Status",
            "type": "string"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "title": "CreateApplicationRequest",
        "type": "object"
      },
      "CreateFieldRequest": {
        "description": "Schema for field creation requests.",
        "properties": {
          "defaultValue": {
            "title": "Defaultvalue"
          },
          "isRequired": {
            "default": false,
            "title": "Isrequired",
            "type": "boolean"
          },
          "isUnique": {
            "default": false,
            "title": "Isunique",
            "type": "boolean"
          },
          "label": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Label",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "type": {
            "maxLength": 50,
            "minLength": 1,
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name",
          "label",
          "type"
        ],
        "title": "CreateFieldRequest",
        "type": "object"
      },
      "CreateFormRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "is_default": {
            "default": false,
            "title": "Is Default",
            "type": "boolean"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "mode": {
            "default": "advanced",
            "enum": [
              "simple",
              "advanced"
            ],
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "style_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Style Id"
          },
          "type": {
            "default": "default",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateFormRequest",
        "type": "object"
      },
      "CreateModelRequest": {
        "description": "Schema for model creation requests.",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "isSystem": {
            "default": false,
            "title": "Issystem",
            "type": "boolean"
          },
          "label": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Label",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "pluralLabel": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Plurallabel",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          }
        },
        "required": [
          "name",
          "label",
          "pluralLabel"
        ],
        "title": "CreateModelRequest",
        "type": "object"
      },
      "CreateRecordRequest": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "title": "CreateRecordRequest",
        "type": "object"
      },
      "CreateRuleRequest": {
        "properties": {
          "actions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Actions",
            "type": "array"
          },
          "condition": {
            "additionalProperties": true,
            "title": "Condition",
            "type": "object"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "default": true,
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "phase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RulePhase"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "default": 0,
            "title": "Priority",
            "type": "integer"
          },
          "run_as": {
            "$ref": "#/components/schemas/RuleRunAs",
            "default": "actor"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "trigger": {
            "$ref": "#/components/schemas/RuleTrigger",
            "default": "record_save"
          }
        },
        "required": [
          "name",
          "condition",
          "actions"
        ],
        "title": "CreateRuleRequest",
        "type": "object"
      },
      "FieldRefSchema": {
        "properties": {
          "alias": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alias"
          },
          "fieldName": {
            "title": "Fieldname",
            "type": "string"
          },
          "modelAlias": {
            "title": "Modelalias",
            "type": "string"
          }
        },
        "required": [
          "modelAlias",
          "fieldName"
        ],
        "title": "FieldRefSchema",
        "type": "object"
      },
      "FieldResponse": {
        "description": "Schema for field data in responses.",
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "defaultValue": {
            "title": "Defaultvalue"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isRequired": {
            "title": "Isrequired",
            "type": "boolean"
          },
          "isUnique": {
            "title": "Isunique",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "modelId": {
            "format": "uuid",
            "title": "Modelid",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "modelId",
          "name",
          "label",
          "type",
          "isRequired",
          "isUnique",
          "position"
        ],
        "title": "FieldResponse",
        "type": "object"
      },
      "FileDetailResponse": {
        "properties": {
          "contentType": {
            "title": "Contenttype",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiresat"
          },
          "expiresIn": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiresin"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "lifecycleState": {
            "$ref": "#/components/schemas/FileLifecycleState"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "originalName": {
            "title": "Originalname",
            "type": "string"
          },
          "presignedUrl": {
            "title": "Presignedurl",
            "type": "string"
          },
          "retentionExpiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retentionexpiresat"
          },
          "size": {
            "title": "Size",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "originalName",
          "contentType",
          "size",
          "status",
          "lifecycleState",
          "metadata",
          "presignedUrl"
        ],
        "title": "FileDetailResponse",
        "type": "object"
      },
      "FileLifecycleState": {
        "enum": [
          "servable",
          "scan_pending",
          "quarantined",
          "infected",
          "soft_deleted",
          "retention_expired"
        ],
        "title": "FileLifecycleState",
        "type": "string"
      },
      "FileUploadResponse": {
        "properties": {
          "contentType": {
            "title": "Contenttype",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiresat"
          },
          "expiresIn": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiresin"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "originalName": {
            "title": "Originalname",
            "type": "string"
          },
          "presignedUrl": {
            "title": "Presignedurl",
            "type": "string"
          },
          "size": {
            "title": "Size",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "originalName",
          "contentType",
          "size",
          "status",
          "presignedUrl"
        ],
        "title": "FileUploadResponse",
        "type": "object"
      },
      "FilterGroupSchema": {
        "properties": {
          "combinator": {
            "enum": [
              "and",
              "or"
            ],
            "title": "Combinator",
            "type": "string"
          },
          "rules": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FilterRuleSchema"
                },
                {
                  "$ref": "#/components/schemas/FilterGroupSchema"
                }
              ]
            },
            "title": "Rules",
            "type": "array"
          }
        },
        "required": [
          "combinator",
          "rules"
        ],
        "title": "FilterGroupSchema",
        "type": "object"
      },
      "FilterRuleSchema": {
        "properties": {
          "field": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              }
            ],
            "title": "Field"
          },
          "operator": {
            "enum": [
              "=",
              "!=",
              ">",
              "<",
              ">=",
              "<=",
              "like",
              "ilike",
              "in",
              "not_in",
              "is_null",
              "is_not_null"
            ],
            "title": "Operator",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              },
              {}
            ],
            "title": "Value"
          }
        },
        "required": [
          "field",
          "operator"
        ],
        "title": "FilterRuleSchema",
        "type": "object"
      },
      "FormListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FormResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "FormListResponse",
        "type": "object"
      },
      "FormResponse": {
        "properties": {
          "application_id": {
            "format": "uuid",
            "title": "Application Id",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "created_by": {
            "format": "uuid",
            "title": "Created By",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "is_default": {
            "title": "Is Default",
            "type": "boolean"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "mode": {
            "enum": [
              "simple",
              "advanced"
            ],
            "title": "Mode",
            "type": "string"
          },
          "model_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "style_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Style Id"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "type",
          "layout",
          "style_id",
          "is_default",
          "settings",
          "position",
          "model_id",
          "mode",
          "application_id",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "title": "FormResponse",
        "type": "object"
      },
      "FrontendRuleEventRequest": {
        "properties": {
          "context": {
            "additionalProperties": true,
            "title": "Context",
            "type": "object"
          },
          "event": {
            "additionalProperties": true,
            "title": "Event",
            "type": "object"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "phase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RulePhase"
              },
              {
                "type": "null"
              }
            ]
          },
          "recordId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recordid"
          }
        },
        "required": [
          "event"
        ],
        "title": "FrontendRuleEventRequest",
        "type": "object"
      },
      "FrontendRuleEventResponse": {
        "properties": {
          "blocked": {
            "title": "Blocked",
            "type": "boolean"
          },
          "errors": {
            "items": {
              "type": "string"
            },
            "title": "Errors",
            "type": "array"
          },
          "matchedRuleIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Matchedruleids",
            "type": "array"
          },
          "queuedJobs": {
            "items": {
              "type": "string"
            },
            "title": "Queuedjobs",
            "type": "array"
          },
          "recordUpdates": {
            "additionalProperties": true,
            "title": "Recordupdates",
            "type": "object"
          },
          "responsePatches": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Responsepatches",
            "type": "array"
          },
          "sideEffects": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sideeffects",
            "type": "array"
          }
        },
        "required": [
          "matchedRuleIds",
          "recordUpdates",
          "responsePatches",
          "errors",
          "sideEffects",
          "queuedJobs",
          "blocked"
        ],
        "title": "FrontendRuleEventResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "InvokeServiceRequest": {
        "properties": {
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "method": {
            "title": "Method",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "method",
          "path"
        ],
        "title": "InvokeServiceRequest",
        "type": "object"
      },
      "JobActionType": {
        "enum": [
          "evaluate_rule",
          "invoke_service",
          "rule_call_webservice",
          "send_notification",
          "drain_webhook_retries",
          "aggregate_daily_usage"
        ],
        "title": "JobActionType",
        "type": "string"
      },
      "JoinClauseSchema": {
        "properties": {
          "alias": {
            "title": "Alias",
            "type": "string"
          },
          "modelName": {
            "title": "Modelname",
            "type": "string"
          },
          "onPredicate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompoundJoinOnPredicateSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "relationshipName": {
            "title": "Relationshipname",
            "type": "string"
          },
          "type": {
            "enum": [
              "left",
              "inner",
              "right",
              "full"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "modelName",
          "alias",
          "relationshipName"
        ],
        "title": "JoinClauseSchema",
        "type": "object"
      },
      "JoinEqualityTermSchema": {
        "additionalProperties": false,
        "description": "One equality-only term in a flat compound JOIN ON predicate.",
        "properties": {
          "left": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/JoinParameterRefSchema"
              }
            ],
            "title": "Left"
          },
          "right": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/JoinParameterRefSchema"
              }
            ],
            "title": "Right"
          }
        },
        "required": [
          "left",
          "right"
        ],
        "title": "JoinEqualityTermSchema",
        "type": "object"
      },
      "JoinParameterRefSchema": {
        "additionalProperties": false,
        "description": "Transport representation of a named runtime JOIN parameter.",
        "properties": {
          "parameter": {
            "title": "Parameter",
            "type": "string"
          }
        },
        "required": [
          "parameter"
        ],
        "title": "JoinParameterRefSchema",
        "type": "object"
      },
      "LiteralExpressionSchema": {
        "description": "Transport representation of a literal in a computed expression.",
        "properties": {
          "value": {
            "title": "Value"
          }
        },
        "required": [
          "value"
        ],
        "title": "LiteralExpressionSchema",
        "type": "object"
      },
      "ModelDetailResponse": {
        "description": "Schema for model detail responses including fields.",
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "draftSchemaVersion": {
            "title": "Draftschemaversion",
            "type": "integer"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/FieldResponse"
            },
            "title": "Fields",
            "type": "array"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isSystem": {
            "title": "Issystem",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "pluralLabel": {
            "title": "Plurallabel",
            "type": "string"
          },
          "publishedSchemaVersion": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publishedschemaversion"
          },
          "schemaState": {
            "title": "Schemastate",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "name",
          "label",
          "pluralLabel",
          "isSystem",
          "schemaState",
          "draftSchemaVersion"
        ],
        "title": "ModelDetailResponse",
        "type": "object"
      },
      "ModelResponse": {
        "description": "Schema for model data in responses.",
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "draftSchemaVersion": {
            "title": "Draftschemaversion",
            "type": "integer"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isSystem": {
            "title": "Issystem",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "pluralLabel": {
            "title": "Plurallabel",
            "type": "string"
          },
          "publishedSchemaVersion": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publishedschemaversion"
          },
          "schemaState": {
            "title": "Schemastate",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "name",
          "label",
          "pluralLabel",
          "isSystem",
          "schemaState",
          "draftSchemaVersion"
        ],
        "title": "ModelResponse",
        "type": "object"
      },
      "NotificationChannel": {
        "enum": [
          "email"
        ],
        "title": "NotificationChannel",
        "type": "string"
      },
      "OrderByClauseSchema": {
        "properties": {
          "direction": {
            "default": "asc",
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Direction",
            "type": "string"
          },
          "field": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "type": "string"
              }
            ],
            "title": "Field"
          }
        },
        "required": [
          "field"
        ],
        "title": "OrderByClauseSchema",
        "type": "object"
      },
      "OutboundDestinationGovernanceRequest": {
        "additionalProperties": false,
        "description": "Outbound destination governance update request.",
        "properties": {
          "service_invoke": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutboundDestinationScopeConfigRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "webhook_out": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutboundDestinationScopeConfigRequest"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "OutboundDestinationGovernanceRequest",
        "type": "object"
      },
      "OutboundDestinationGovernanceResponse": {
        "description": "Outbound destination governance response.",
        "properties": {
          "service_invoke": {
            "$ref": "#/components/schemas/OutboundDestinationScopeConfigResponse"
          },
          "webhook_out": {
            "$ref": "#/components/schemas/OutboundDestinationScopeConfigResponse"
          }
        },
        "required": [
          "service_invoke",
          "webhook_out"
        ],
        "title": "OutboundDestinationGovernanceResponse",
        "type": "object"
      },
      "OutboundDestinationScopeConfigRequest": {
        "additionalProperties": false,
        "description": "Per-scope outbound destination governance update.",
        "properties": {
          "allowed_hosts": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowed Hosts"
          },
          "service_calls_per_billing_period": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Service Calls Per Billing Period"
          }
        },
        "title": "OutboundDestinationScopeConfigRequest",
        "type": "object"
      },
      "OutboundDestinationScopeConfigResponse": {
        "description": "Per-scope outbound destination governance response.",
        "properties": {
          "allowed_hosts": {
            "items": {
              "type": "string"
            },
            "title": "Allowed Hosts",
            "type": "array"
          },
          "service_calls_per_billing_period": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Service Calls Per Billing Period"
          }
        },
        "title": "OutboundDestinationScopeConfigResponse",
        "type": "object"
      },
      "PublicCreateNotificationRequest": {
        "properties": {
          "bodyTemplate": {
            "title": "Bodytemplate",
            "type": "string"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannel",
            "default": "email"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "default": true,
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "recipientConfig": {
            "additionalProperties": true,
            "title": "Recipientconfig",
            "type": "object"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "subjectTemplate": {
            "title": "Subjecttemplate",
            "type": "string"
          },
          "triggerEvents": {
            "items": {
              "type": "string"
            },
            "title": "Triggerevents",
            "type": "array"
          }
        },
        "required": [
          "name",
          "subjectTemplate",
          "bodyTemplate",
          "recipientConfig",
          "triggerEvents"
        ],
        "title": "PublicCreateNotificationRequest",
        "type": "object"
      },
      "PublicCreatePageRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isHome": {
            "default": false,
            "title": "Ishome",
            "type": "boolean"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "status": {
            "default": "draft",
            "enum": [
              "draft",
              "published"
            ],
            "title": "Status",
            "type": "string"
          },
          "styleId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Styleid"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "type": {
            "default": "custom",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "title": "PublicCreatePageRequest",
        "type": "object"
      },
      "PublicCreateRelationshipRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "sourceFieldId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sourcefieldid"
          },
          "sourceModelId": {
            "format": "uuid",
            "title": "Sourcemodelid",
            "type": "string"
          },
          "targetFieldId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Targetfieldid"
          },
          "targetModelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Targetmodelid"
          },
          "type": {
            "$ref": "#/components/schemas/RelationshipType"
          }
        },
        "required": [
          "name",
          "type",
          "sourceModelId"
        ],
        "title": "PublicCreateRelationshipRequest",
        "type": "object"
      },
      "PublicCreateScheduledJobRequest": {
        "properties": {
          "actionConfig": {
            "additionalProperties": true,
            "title": "Actionconfig",
            "type": "object"
          },
          "actionType": {
            "$ref": "#/components/schemas/JobActionType"
          },
          "cronExpression": {
            "title": "Cronexpression",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "default": true,
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "cronExpression",
          "actionType"
        ],
        "title": "PublicCreateScheduledJobRequest",
        "type": "object"
      },
      "PublicCreateWebhookRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "title": "Events",
            "type": "array"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Headers",
            "type": "object"
          },
          "isActive": {
            "default": true,
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "retryPolicy": {
            "additionalProperties": true,
            "title": "Retrypolicy",
            "type": "object"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "name",
          "url",
          "events"
        ],
        "title": "PublicCreateWebhookRequest",
        "type": "object"
      },
      "PublicDeriveRelationshipsResponse": {
        "properties": {
          "createdCount": {
            "title": "Createdcount",
            "type": "integer"
          },
          "skippedCount": {
            "title": "Skippedcount",
            "type": "integer"
          }
        },
        "required": [
          "createdCount",
          "skippedCount"
        ],
        "title": "PublicDeriveRelationshipsResponse",
        "type": "object"
      },
      "PublicJobExecutionListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicJobExecutionResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicJobExecutionListResponse",
        "type": "object"
      },
      "PublicJobExecutionResponse": {
        "properties": {
          "completedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completedat"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "firedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Firedat"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "jobId": {
            "format": "uuid",
            "title": "Jobid",
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "scheduledFor": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduledfor"
          },
          "startedAt": {
            "format": "date-time",
            "title": "Startedat",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          }
        },
        "required": [
          "id",
          "jobId",
          "status",
          "startedAt"
        ],
        "title": "PublicJobExecutionResponse",
        "type": "object"
      },
      "PublicNotificationListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicNotificationResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicNotificationListResponse",
        "type": "object"
      },
      "PublicNotificationLogListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicNotificationLogResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicNotificationLogListResponse",
        "type": "object"
      },
      "PublicNotificationLogResponse": {
        "properties": {
          "channel": {
            "title": "Channel",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "notificationId": {
            "format": "uuid",
            "title": "Notificationid",
            "type": "string"
          },
          "providerResponse": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Providerresponse"
          },
          "recipient": {
            "title": "Recipient",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "subject": {
            "title": "Subject",
            "type": "string"
          }
        },
        "required": [
          "id",
          "notificationId",
          "channel",
          "recipient",
          "subject",
          "status"
        ],
        "title": "PublicNotificationLogResponse",
        "type": "object"
      },
      "PublicNotificationResponse": {
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "bodyTemplate": {
            "title": "Bodytemplate",
            "type": "string"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannel"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isActive": {
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "recipientConfig": {
            "additionalProperties": true,
            "title": "Recipientconfig",
            "type": "object"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "subjectTemplate": {
            "title": "Subjecttemplate",
            "type": "string"
          },
          "triggerEvents": {
            "items": {
              "type": "string"
            },
            "title": "Triggerevents",
            "type": "array"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "id",
          "applicationId",
          "name",
          "channel",
          "subjectTemplate",
          "bodyTemplate",
          "recipientConfig",
          "triggerEvents",
          "isActive",
          "settings",
          "createdBy"
        ],
        "title": "PublicNotificationResponse",
        "type": "object"
      },
      "PublicPageListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPageResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicPageListResponse",
        "type": "object"
      },
      "PublicPageResponse": {
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isHome": {
            "title": "Ishome",
            "type": "boolean"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "published"
            ],
            "title": "Status",
            "type": "string"
          },
          "styleId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Styleid"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "id",
          "applicationId",
          "name",
          "slug",
          "type",
          "layout",
          "status",
          "isHome",
          "settings",
          "position",
          "createdBy"
        ],
        "title": "PublicPageResponse",
        "type": "object"
      },
      "PublicRecordActionRequest": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "title": "PublicRecordActionRequest",
        "type": "object"
      },
      "PublicRelationshipListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicRelationshipResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicRelationshipListResponse",
        "type": "object"
      },
      "PublicRelationshipResponse": {
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "sourceFieldId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sourcefieldid"
          },
          "sourceModelId": {
            "format": "uuid",
            "title": "Sourcemodelid",
            "type": "string"
          },
          "targetFieldId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Targetfieldid"
          },
          "targetModelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Targetmodelid"
          },
          "type": {
            "$ref": "#/components/schemas/RelationshipType"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "id",
          "applicationId",
          "name",
          "type",
          "sourceModelId",
          "settings"
        ],
        "title": "PublicRelationshipResponse",
        "type": "object"
      },
      "PublicRenderPageResponse": {
        "properties": {
          "customCss": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customcss"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "pageId": {
            "format": "uuid",
            "title": "Pageid",
            "type": "string"
          },
          "params": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Params"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "style": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Style"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "required": [
          "pageId",
          "name",
          "slug",
          "title",
          "layout",
          "style"
        ],
        "title": "PublicRenderPageResponse",
        "type": "object"
      },
      "PublicScheduledJobListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicScheduledJobResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicScheduledJobListResponse",
        "type": "object"
      },
      "PublicScheduledJobResponse": {
        "properties": {
          "actionConfig": {
            "additionalProperties": true,
            "title": "Actionconfig",
            "type": "object"
          },
          "actionType": {
            "$ref": "#/components/schemas/JobActionType"
          },
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "cronExpression": {
            "title": "Cronexpression",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isActive": {
            "title": "Isactive",
            "type": "boolean"
          },
          "lastRunAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastrunat"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "nextRunAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextrunat"
          },
          "timezone": {
            "default": "UTC",
            "title": "Timezone",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "id",
          "applicationId",
          "name",
          "cronExpression",
          "actionType",
          "actionConfig",
          "isActive",
          "createdBy"
        ],
        "title": "PublicScheduledJobResponse",
        "type": "object"
      },
      "PublicSendNotificationRequest": {
        "properties": {
          "context": {
            "additionalProperties": true,
            "title": "Context",
            "type": "object"
          },
          "linkPath": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Linkpath"
          },
          "linkQuery": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Linkquery",
            "type": "object"
          }
        },
        "title": "PublicSendNotificationRequest",
        "type": "object"
      },
      "PublicSendNotificationResponse": {
        "properties": {
          "logs": {
            "items": {
              "$ref": "#/components/schemas/PublicNotificationLogResponse"
            },
            "title": "Logs",
            "type": "array"
          }
        },
        "required": [
          "logs"
        ],
        "title": "PublicSendNotificationResponse",
        "type": "object"
      },
      "PublicUpdateNotificationRequest": {
        "properties": {
          "bodyTemplate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bodytemplate"
          },
          "channel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotificationChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isactive"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "recipientConfig": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipientconfig"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "subjectTemplate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjecttemplate"
          },
          "triggerEvents": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Triggerevents"
          }
        },
        "title": "PublicUpdateNotificationRequest",
        "type": "object"
      },
      "PublicUpdatePageRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isHome": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ishome"
          },
          "layout": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Layout"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "draft",
                  "published"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "styleId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Styleid"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          }
        },
        "title": "PublicUpdatePageRequest",
        "type": "object"
      },
      "PublicUpdateRelationshipRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelationshipType"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "PublicUpdateRelationshipRequest",
        "type": "object"
      },
      "PublicUpdateScheduledJobRequest": {
        "properties": {
          "actionConfig": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actionconfig"
          },
          "actionType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobActionType"
              },
              {
                "type": "null"
              }
            ]
          },
          "cronExpression": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cronexpression"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isactive"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "PublicUpdateScheduledJobRequest",
        "type": "object"
      },
      "PublicUpdateWebhookRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "events": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Events"
          },
          "headers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Headers"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isactive"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "retryPolicy": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrypolicy"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "title": "PublicUpdateWebhookRequest",
        "type": "object"
      },
      "PublicWebhookDeliveryListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWebhookDeliveryResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicWebhookDeliveryListResponse",
        "type": "object"
      },
      "PublicWebhookDeliveryResponse": {
        "properties": {
          "attempt": {
            "title": "Attempt",
            "type": "integer"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deliveredat"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "event": {
            "title": "Event",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isTest": {
            "title": "Istest",
            "type": "boolean"
          },
          "nextRetryAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextretryat"
          },
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          },
          "responseBody": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsebody"
          },
          "responseStatus": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsestatus"
          },
          "status": {
            "$ref": "#/components/schemas/WebhookDeliveryStatus"
          },
          "webhookId": {
            "format": "uuid",
            "title": "Webhookid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "webhookId",
          "event",
          "payload",
          "status",
          "isTest",
          "attempt"
        ],
        "title": "PublicWebhookDeliveryResponse",
        "type": "object"
      },
      "PublicWebhookListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWebhookResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicWebhookListResponse",
        "type": "object"
      },
      "PublicWebhookResponse": {
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "title": "Events",
            "type": "array"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Headers",
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isActive": {
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "retryPolicy": {
            "additionalProperties": true,
            "title": "Retrypolicy",
            "type": "object"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "id",
          "applicationId",
          "name",
          "url",
          "events",
          "headers",
          "isActive",
          "retryPolicy",
          "createdBy"
        ],
        "title": "PublicWebhookResponse",
        "type": "object"
      },
      "QueryASTSchema": {
        "properties": {
          "fromAlias": {
            "title": "Fromalias",
            "type": "string"
          },
          "fromModel": {
            "title": "Frommodel",
            "type": "string"
          },
          "groupBy": {
            "items": {
              "$ref": "#/components/schemas/FieldRefSchema"
            },
            "title": "Groupby",
            "type": "array"
          },
          "having": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilterGroupSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "joins": {
            "items": {
              "$ref": "#/components/schemas/JoinClauseSchema"
            },
            "title": "Joins",
            "type": "array"
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit"
          },
          "offset": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Offset"
          },
          "orderBy": {
            "items": {
              "$ref": "#/components/schemas/OrderByClauseSchema"
            },
            "title": "Orderby",
            "type": "array"
          },
          "select": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FieldRefSchema"
                },
                {
                  "$ref": "#/components/schemas/AggregateRefSchema"
                },
                {
                  "$ref": "#/components/schemas/ComputedProjectionSchema"
                }
              ]
            },
            "title": "Select",
            "type": "array"
          },
          "where": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilterGroupSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "select",
          "fromModel",
          "fromAlias"
        ],
        "title": "QueryASTSchema",
        "type": "object"
      },
      "QueryExecuteRequest": {
        "properties": {
          "params": {
            "additionalProperties": true,
            "title": "Params",
            "type": "object"
          },
          "query": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QueryASTSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "rawText": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rawtext"
          },
          "savedQueryId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Savedqueryid"
          }
        },
        "title": "QueryExecuteRequest",
        "type": "object"
      },
      "QueryResultResponse": {
        "properties": {
          "columns": {
            "items": {
              "type": "string"
            },
            "title": "Columns",
            "type": "array"
          },
          "rows": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Rows",
            "type": "array"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "columns",
          "rows",
          "total"
        ],
        "title": "QueryResultResponse",
        "type": "object"
      },
      "RecordAuditLogResponse": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "changedAt": {
            "format": "date-time",
            "title": "Changedat",
            "type": "string"
          },
          "changedBy": {
            "format": "uuid",
            "title": "Changedby",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "modelId": {
            "format": "uuid",
            "title": "Modelid",
            "type": "string"
          },
          "newData": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Newdata"
          },
          "oldData": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Olddata"
          },
          "recordId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recordid"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "recordId",
          "applicationId",
          "modelId",
          "action",
          "oldData",
          "newData",
          "changedBy",
          "changedAt"
        ],
        "title": "RecordAuditLogResponse",
        "type": "object"
      },
      "RecordListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/RecordResponse"
            },
            "title": "Items",
            "type": "array"
          },
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "perPage": {
            "title": "Perpage",
            "type": "integer"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "total",
          "page",
          "perPage"
        ],
        "title": "RecordListResponse",
        "type": "object"
      },
      "RecordResponse": {
        "properties": {
          "_resolved": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved"
          },
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "modelId": {
            "format": "uuid",
            "title": "Modelid",
            "type": "string"
          },
          "redirect": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "modelId",
          "data",
          "createdBy"
        ],
        "title": "RecordResponse",
        "type": "object"
      },
      "RelationshipType": {
        "enum": [
          "one_to_one",
          "one_to_many",
          "many_to_one",
          "many_to_many"
        ],
        "title": "RelationshipType",
        "type": "string"
      },
      "RenderFormResponse": {
        "properties": {
          "form_id": {
            "format": "uuid",
            "title": "Form Id",
            "type": "string"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          }
        },
        "required": [
          "form_id",
          "layout"
        ],
        "title": "RenderFormResponse",
        "type": "object"
      },
      "RenderPageResponse": {
        "properties": {
          "custom_css": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Css"
          },
          "layout": {
            "additionalProperties": true,
            "title": "Layout",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_id": {
            "format": "uuid",
            "title": "Page Id",
            "type": "string"
          },
          "params": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Params"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "style": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Style"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "required": [
          "page_id",
          "name",
          "slug",
          "title",
          "layout",
          "style"
        ],
        "title": "RenderPageResponse",
        "type": "object"
      },
      "RuleListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/RuleResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "RuleListResponse",
        "type": "object"
      },
      "RuleLogResponse": {
        "properties": {
          "context": {
            "additionalProperties": true,
            "title": "Context",
            "type": "object"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "executionTimeMs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Executiontimems"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "recordId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recordid"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "ruleId": {
            "format": "uuid",
            "title": "Ruleid",
            "type": "string"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "triggerType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RuleTrigger"
              },
              {
                "type": "null"
              }
            ]
          },
          "triggeredBy": {
            "format": "uuid",
            "title": "Triggeredby",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "ruleId",
          "triggeredBy",
          "context"
        ],
        "title": "RuleLogResponse",
        "type": "object"
      },
      "RulePhase": {
        "enum": [
          "pre_save",
          "post_save",
          "response",
          "background"
        ],
        "title": "RulePhase",
        "type": "string"
      },
      "RuleResponse": {
        "properties": {
          "actions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Actions",
            "type": "array"
          },
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "condition": {
            "additionalProperties": true,
            "title": "Condition",
            "type": "object"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isActive": {
            "title": "Isactive",
            "type": "boolean"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "priority": {
            "title": "Priority",
            "type": "integer"
          },
          "run_as": {
            "$ref": "#/components/schemas/RuleRunAs",
            "default": "actor"
          },
          "settings": {
            "additionalProperties": true,
            "title": "Settings",
            "type": "object"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "trigger": {
            "$ref": "#/components/schemas/RuleTrigger"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "name",
          "condition",
          "actions",
          "trigger",
          "priority",
          "isActive",
          "settings",
          "createdBy"
        ],
        "title": "RuleResponse",
        "type": "object"
      },
      "RuleRunAs": {
        "enum": [
          "actor",
          "app_automation"
        ],
        "title": "RuleRunAs",
        "type": "string"
      },
      "RuleTrigger": {
        "enum": [
          "record_create",
          "record_update",
          "record_save",
          "record_delete",
          "frontend_event",
          "webhook_received",
          "manual",
          "login_succeeded",
          "login_failed"
        ],
        "title": "RuleTrigger",
        "type": "string"
      },
      "SavedQueryCreateRequest": {
        "properties": {
          "ast": {
            "additionalProperties": true,
            "title": "Ast",
            "type": "object"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isPublic": {
            "default": false,
            "title": "Ispublic",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rawText": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rawtext"
          }
        },
        "required": [
          "name",
          "ast"
        ],
        "title": "SavedQueryCreateRequest",
        "type": "object"
      },
      "SavedQueryListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SavedQueryResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "SavedQueryListResponse",
        "type": "object"
      },
      "SavedQueryResponse": {
        "properties": {
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "ast": {
            "additionalProperties": true,
            "title": "Ast",
            "type": "object"
          },
          "builderOnly": {
            "default": false,
            "title": "Builderonly",
            "type": "boolean"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "editableText": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Editabletext"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isPublic": {
            "default": false,
            "title": "Ispublic",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rawText": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rawtext"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "name",
          "ast",
          "createdBy"
        ],
        "title": "SavedQueryResponse",
        "type": "object"
      },
      "SavedQueryUpdateRequest": {
        "properties": {
          "ast": {
            "additionalProperties": true,
            "title": "Ast",
            "type": "object"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isPublic": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ispublic"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rawText": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rawtext"
          }
        },
        "required": [
          "name",
          "ast"
        ],
        "title": "SavedQueryUpdateRequest",
        "type": "object"
      },
      "ScalarFunctionCallSchema": {
        "description": "Transport representation of a supported scalar function call.",
        "properties": {
          "args": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FieldRefSchema"
                },
                {
                  "$ref": "#/components/schemas/LiteralExpressionSchema"
                },
                {
                  "$ref": "#/components/schemas/UnarySignExpressionSchema"
                },
                {
                  "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
                },
                {
                  "$ref": "#/components/schemas/ScalarFunctionCallSchema"
                }
              ]
            },
            "title": "Args",
            "type": "array"
          },
          "function": {
            "enum": [
              "MOD",
              "COALESCE",
              "EPOCH_DAY",
              "DATE_FROM_EPOCH_DAY"
            ],
            "title": "Function",
            "type": "string"
          }
        },
        "required": [
          "function",
          "args"
        ],
        "title": "ScalarFunctionCallSchema",
        "type": "object"
      },
      "SearchRecordResponse": {
        "properties": {
          "_resolved": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved"
          },
          "_score": {
            "title": "Score",
            "type": "number"
          },
          "applicationId": {
            "format": "uuid",
            "title": "Applicationid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "format": "uuid",
            "title": "Createdby",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "modelId": {
            "format": "uuid",
            "title": "Modelid",
            "type": "string"
          },
          "redirect": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect"
          },
          "tenantId": {
            "format": "uuid",
            "title": "Tenantid",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "workspaceId": {
            "format": "uuid",
            "title": "Workspaceid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenantId",
          "workspaceId",
          "applicationId",
          "modelId",
          "data",
          "createdBy",
          "_score"
        ],
        "title": "SearchRecordResponse",
        "type": "object"
      },
      "SearchRecordsRequest": {
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "top_k": {
            "default": 10,
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Top K",
            "type": "integer"
          },
          "vector": {
            "items": {
              "type": "number"
            },
            "minItems": 1,
            "title": "Vector",
            "type": "array"
          }
        },
        "required": [
          "field",
          "vector"
        ],
        "title": "SearchRecordsRequest",
        "type": "object"
      },
      "SearchRecordsResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SearchRecordResponse"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "SearchRecordsResponse",
        "type": "object"
      },
      "StatsResponse": {
        "properties": {
          "result": {
            "additionalProperties": true,
            "title": "Result",
            "type": "object"
          }
        },
        "required": [
          "result"
        ],
        "title": "StatsResponse",
        "type": "object"
      },
      "SubmitFormRequest": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "title": "SubmitFormRequest",
        "type": "object"
      },
      "SubmitFormResponse": {
        "properties": {
          "form_id": {
            "format": "uuid",
            "title": "Form Id",
            "type": "string"
          },
          "record_id": {
            "format": "uuid",
            "title": "Record Id",
            "type": "string"
          },
          "redirect": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "form_id",
          "record_id"
        ],
        "title": "SubmitFormResponse",
        "type": "object"
      },
      "TestRuleContext": {
        "properties": {
          "record": {
            "additionalProperties": true,
            "title": "Record",
            "type": "object"
          },
          "user": {
            "additionalProperties": true,
            "title": "User",
            "type": "object"
          }
        },
        "required": [
          "record"
        ],
        "title": "TestRuleContext",
        "type": "object"
      },
      "TestRuleRequest": {
        "properties": {
          "actions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Actions",
            "type": "array"
          },
          "condition": {
            "additionalProperties": true,
            "title": "Condition",
            "type": "object"
          },
          "context": {
            "$ref": "#/components/schemas/TestRuleContext"
          }
        },
        "required": [
          "condition",
          "actions",
          "context"
        ],
        "title": "TestRuleRequest",
        "type": "object"
      },
      "TestRuleResponse": {
        "properties": {
          "log": {
            "items": {
              "type": "string"
            },
            "title": "Log",
            "type": "array"
          },
          "matched": {
            "title": "Matched",
            "type": "boolean"
          },
          "result": {
            "additionalProperties": true,
            "title": "Result",
            "type": "object"
          }
        },
        "required": [
          "matched",
          "result",
          "log"
        ],
        "title": "TestRuleResponse",
        "type": "object"
      },
      "UnarySignExpressionSchema": {
        "description": "Transport representation of a unary numeric expression.",
        "properties": {
          "expression": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldRefSchema"
              },
              {
                "$ref": "#/components/schemas/LiteralExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/UnarySignExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/BinaryArithmeticExpressionSchema"
              },
              {
                "$ref": "#/components/schemas/ScalarFunctionCallSchema"
              }
            ],
            "title": "Expression"
          },
          "sign": {
            "enum": [
              "+",
              "-"
            ],
            "title": "Sign",
            "type": "string"
          }
        },
        "required": [
          "sign",
          "expression"
        ],
        "title": "UnarySignExpressionSchema",
        "type": "object"
      },
      "UpdateApplicationRequest": {
        "description": "Schema for application update requests.",
        "properties": {
          "capabilities": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CapabilitiesUpdate"
              },
              {
                "type": "null"
              }
            ]
          },
          "customDomain": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customdomain"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "identityModelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identitymodelid"
          },
          "identitySettings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identitysettings"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "staticAssetBindings": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Staticassetbindings"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          }
        },
        "title": "UpdateApplicationRequest",
        "type": "object"
      },
      "UpdateFieldRequest": {
        "description": "Schema for field update requests.",
        "properties": {
          "defaultValue": {
            "title": "Defaultvalue"
          },
          "isRequired": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isrequired"
          },
          "isUnique": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isunique"
          },
          "label": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "type": {
            "anyOf": [
              {
                "maxLength": 50,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          }
        },
        "title": "UpdateFieldRequest",
        "type": "object"
      },
      "UpdateFormRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "is_default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default"
          },
          "layout": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Layout"
          },
          "mode": {
            "anyOf": [
              {
                "enum": [
                  "simple",
                  "advanced"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "style_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Style Id"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          }
        },
        "title": "UpdateFormRequest",
        "type": "object"
      },
      "UpdateModelRequest": {
        "description": "Schema for model update requests.",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "isSystem": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issystem"
          },
          "label": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "pluralLabel": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plurallabel"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          }
        },
        "title": "UpdateModelRequest",
        "type": "object"
      },
      "UpdateRecordRequest": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "title": "UpdateRecordRequest",
        "type": "object"
      },
      "UpdateRuleRequest": {
        "additionalProperties": false,
        "properties": {
          "actions": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actions"
          },
          "condition": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Condition"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isactive"
          },
          "modelId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Modelid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "phase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RulePhase"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priority"
          },
          "run_as": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RuleRunAs"
              },
              {
                "type": "null"
              }
            ]
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RuleTrigger"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "UpdateRuleRequest",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "WebhookDeliveryStatus": {
        "description": "Lifecycle status for an outbound webhook delivery attempt.",
        "enum": [
          "pending",
          "delivered",
          "failed"
        ],
        "title": "WebhookDeliveryStatus",
        "type": "string"
      }
    }
  },
  "info": {
    "title": "MeroFoundry Public API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/public/app/{app_slug}/forms/{form_id}/render": {
      "get": {
        "operationId": "render_public_form_by_slug_api_v1_public_app__app_slug__forms__form_id__render_get",
        "parameters": [
          {
            "in": "path",
            "name": "app_slug",
            "required": true,
            "schema": {
              "title": "App Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "form_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Form Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderFormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Render Public Form By Slug",
        "tags": [
          "forms"
        ]
      }
    },
    "/api/v1/public/app/{app_slug}/forms/{form_id}/submit": {
      "post": {
        "operationId": "submit_public_form_by_slug_api_v1_public_app__app_slug__forms__form_id__submit_post",
        "parameters": [
          {
            "in": "path",
            "name": "app_slug",
            "required": true,
            "schema": {
              "title": "App Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "form_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Form Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitFormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Submit Public Form By Slug",
        "tags": [
          "forms"
        ]
      }
    },
    "/api/v1/public/app/{app_slug}/home": {
      "get": {
        "operationId": "render_public_home_page_api_v1_public_app__app_slug__home_get",
        "parameters": [
          {
            "in": "path",
            "name": "app_slug",
            "required": true,
            "schema": {
              "title": "App Slug",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Render Public Home Page",
        "tags": [
          "pages"
        ]
      }
    },
    "/api/v1/public/app/{app_slug}/{page_path}/render": {
      "get": {
        "operationId": "render_public_page_by_path_api_v1_public_app__app_slug___page_path__render_get",
        "parameters": [
          {
            "in": "path",
            "name": "app_slug",
            "required": true,
            "schema": {
              "title": "App Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_path",
            "required": true,
            "schema": {
              "title": "Page Path",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Render Public Page By Path",
        "tags": [
          "pages"
        ]
      }
    },
    "/api/v1/public/applications": {
      "get": {
        "description": "Lists applications in the API key's workspace. This is a workspace-scoped operation with no application_id path parameter. Requires the `app:read` permission.",
        "operationId": "listApplications",
        "parameters": [
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ApplicationResponse"
                  },
                  "title": "Response Listapplications",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List applications",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new application scoped to the API key's workspace. This is a workspace-scoped operation \u2014 the key does not need to belong to an existing application. Requires the `applications:create` permission.",
        "operationId": "createApplication",
        "parameters": [
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create an application",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{app_id}/pages/{page_id}/render": {
      "get": {
        "operationId": "render_public_page_api_v1_public_applications__app_id__pages__page_id__render_get",
        "parameters": [
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Render Public Page",
        "tags": [
          "pages"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}": {
      "delete": {
        "description": "Archives the application identified by `application_id`, setting its status to 'archived'. The application must be the one the API key is scoped to. Returns 204 No Content on success. Requires the `applications:delete` permission.",
        "operationId": "deleteApplication",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Archive (delete) an application",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns metadata for the application identified by `application_id`, including its name, slug, tenant, and workspace. Requires the `app:read` permission.",
        "operationId": "getApplication",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get application metadata",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Partially updates the application identified by `application_id`. The application must be the one the API key is scoped to. Requires the `applications:update` permission.",
        "operationId": "updateApplication",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApplicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update an application (partial)",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/audit/events": {
      "get": {
        "description": "Lists audit events for the application identified by `application_id`. Requires the `audit:read` permission.",
        "operationId": "listAuditEvents",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "actor_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Actor Type"
            }
          },
          {
            "in": "query",
            "name": "actor_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Actor Id"
            }
          },
          {
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Action"
            }
          },
          {
            "in": "query",
            "name": "date_from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date From"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date To"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuditEventResponse"
                  },
                  "title": "Response Listauditevents",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List audit events",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/files/upload": {
      "post": {
        "description": "Uploads a binary file (`multipart/form-data`, field name `file`) for the application. Returns file metadata including a short-lived presigned download URL. File size and storage limits are enforced via entitlements. Requires the `files:upload` permission.",
        "operationId": "uploadFile",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_uploadFile"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Upload a file",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/files/{file_id}": {
      "delete": {
        "description": "Soft-deletes the file metadata record and removes the object from storage. The file must belong to the current application. Returns 204 No Content on success. Requires the `files:delete` permission.",
        "operationId": "deleteFile",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "File Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a file",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns metadata for the file identified by `file_id`, including content type, size, status, custom metadata, and a short-lived presigned download URL. The file must belong to the current application. Requires the `files:read` permission.",
        "operationId": "getFile",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "File Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDetailResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get file metadata and presigned URL",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/files/{file_id}/download": {
      "get": {
        "description": "Streams the raw binary content of the file identified by `file_id`. Responds with a safe content type and a `Content-Disposition: attachment` header. The file must belong to the current application. Requires the `files:read` permission.",
        "operationId": "downloadFile",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "File Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Download file content",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/forms": {
      "get": {
        "description": "Returns forms scoped to the authenticated application. Requires the `forms:read` permission.",
        "operationId": "listForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List forms",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new form for the application. Requires the `forms:create` permission.",
        "operationId": "createForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a form",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/forms/{form_id}": {
      "delete": {
        "description": "Deletes the form identified by `form_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `forms:delete` permission.",
        "operationId": "deleteForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "form_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Form Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a form",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the form identified by `form_id`. It must belong to the current application. Requires the `forms:read` permission.",
        "operationId": "getForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "form_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Form Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a form",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the form identified by `form_id`. It must belong to the current application. Requires the `forms:update` permission.",
        "operationId": "updateForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "form_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Form Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a form",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/jobs": {
      "get": {
        "description": "Returns jobs scoped to the authenticated application. Requires the `jobs:read` permission.",
        "operationId": "listScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScheduledJobListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List jobs",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new scheduledjob for the application. Requires the `jobs:create` permission.",
        "operationId": "createScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCreateScheduledJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScheduledJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a scheduledjob",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/jobs/{job_id}": {
      "delete": {
        "description": "Deletes the scheduledjob identified by `job_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `jobs:delete` permission.",
        "operationId": "deleteScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a scheduledjob",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the scheduledjob identified by `job_id`. It must belong to the current application. Requires the `jobs:read` permission.",
        "operationId": "getScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScheduledJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a scheduledjob",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the scheduledjob identified by `job_id`. It must belong to the current application. Requires the `jobs:update` permission.",
        "operationId": "updateScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUpdateScheduledJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScheduledJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a scheduledjob",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/jobs/{job_id}/executions": {
      "get": {
        "description": "Returns execution history for the scheduled job identified by `job_id`. It must belong to the current application. Requires the `jobs:read` permission and the `automation_integration` capability.",
        "operationId": "listJobExecutions",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJobExecutionListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List a scheduled job's executions",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/jobs/{job_id}/run": {
      "post": {
        "description": "Executes the scheduled job identified by `job_id` right now, outside its cron schedule. It must belong to the current application. Requires the `jobs:execute` permission and the `automation_integration` capability.",
        "operationId": "runScheduledJob",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJobExecutionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Run a scheduled job immediately",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models": {
      "get": {
        "description": "Returns models scoped to the authenticated application. Requires the `models:read` permission.",
        "operationId": "listModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ModelResponse"
                  },
                  "title": "Response Listmodel",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List models",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new model for the application. Requires the `models:create` permission.",
        "operationId": "createModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelDetailResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a model",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}": {
      "delete": {
        "description": "Deletes the model identified by `model_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `models:delete` permission.",
        "operationId": "deleteModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a model",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the model identified by `model_id`. It must belong to the current application. Requires the `models:read` permission.",
        "operationId": "getModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelDetailResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a model",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the model identified by `model_id`. It must belong to the current application. Requires the `models:update` permission.",
        "operationId": "updateModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelDetailResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a model",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/audit": {
      "get": {
        "description": "Returns the audit trail for the model identified by `model_id`. The model must belong to the application the API key is scoped to. Requires the `audit:read` permission.",
        "operationId": "getModelAudit",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RecordAuditLogResponse"
                  },
                  "title": "Response Getmodelaudit",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a model's audit trail",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/fields": {
      "get": {
        "description": "Returns fields scoped to the authenticated application. Requires the `fields:read` permission.",
        "operationId": "listField",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/FieldResponse"
                  },
                  "title": "Response Listfield",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List fields",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new field for the application. Requires the `fields:create` permission.",
        "operationId": "createField",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFieldRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a field",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/fields/{field_id}": {
      "delete": {
        "description": "Deletes the field identified by `field_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `fields:delete` permission.",
        "operationId": "deleteField",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Field Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a field",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the field identified by `field_id`. It must belong to the current application. Requires the `fields:read` permission.",
        "operationId": "getField",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Field Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a field",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the field identified by `field_id`. It must belong to the current application. Requires the `fields:update` permission.",
        "operationId": "updateField",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Field Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFieldRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a field",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/forms": {
      "get": {
        "description": "Lists forms bound to the specified model within the application. Requires the `forms:read` permission.",
        "operationId": "listModelForms",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List model forms",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new form bound to the specified model. The model must belong to the specified application. Requires the `forms:create` permission.",
        "operationId": "createModelForm",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a form (model-bound)",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/publish": {
      "post": {
        "description": "Publishes the current draft schema version of the model, making it available on the public API. The model must belong to the specified application. Requires the `models:publish` permission.",
        "operationId": "publishModel",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Publish a model schema",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/records": {
      "get": {
        "description": "Returns records scoped to the authenticated application. Requires the `records:read` permission.",
        "operationId": "listRecord",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "per_page",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Per Page",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Sort"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "pattern": "^(asc|desc)$",
              "title": "Order",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "resolve_references",
            "required": false,
            "schema": {
              "default": false,
              "title": "Resolve References",
              "type": "boolean"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List records",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new record for the application. Requires the `records:create` permission.",
        "operationId": "createRecord",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a record",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/records/search": {
      "post": {
        "description": "Returns records ranked by cosine similarity against a published public-API vector field. Only public-API fields from the published schema are returned, and vector field values are never returned. Requires the `records:read` permission.",
        "operationId": "searchRecords",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRecordsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchRecordsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Search records by vector similarity",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/records/{record_id}": {
      "delete": {
        "description": "Deletes the record identified by `record_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `records:delete` permission.",
        "operationId": "deleteRecord",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a record",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the record identified by `record_id`. It must belong to the current application. Requires the `records:read` permission.",
        "operationId": "getRecord",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a record",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the record identified by `record_id`. It must belong to the current application. Requires the `records:update` permission.",
        "operationId": "updateRecord",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a record",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/models/{model_id}/stats": {
      "get": {
        "description": "Returns aggregate stats for records in the model. Use `aggregation=count|sum|avg|min|max`, `fieldName` for field-based aggregations, and additional query parameters as equality filters. Requires the `models:read` permission.",
        "operationId": "getModelStats",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "aggregation",
            "required": false,
            "schema": {
              "default": "count",
              "title": "Aggregation",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "fieldName",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Fieldname"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get aggregate stats for a model",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/notifications": {
      "get": {
        "description": "Returns notifications scoped to the authenticated application. Requires the `notifications:read` permission.",
        "operationId": "listNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicNotificationListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List notifications",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new notification for the application. Requires the `notifications:create` permission.",
        "operationId": "createNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCreateNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicNotificationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a notification",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/notifications/{notification_id}": {
      "delete": {
        "description": "Deletes the notification identified by `notification_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `notifications:delete` permission.",
        "operationId": "deleteNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Notification Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a notification",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the notification identified by `notification_id`. It must belong to the current application. Requires the `notifications:read` permission.",
        "operationId": "getNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Notification Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicNotificationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a notification",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the notification identified by `notification_id`. It must belong to the current application. Requires the `notifications:update` permission.",
        "operationId": "updateNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Notification Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUpdateNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicNotificationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a notification",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/notifications/{notification_id}/logs": {
      "get": {
        "description": "Returns delivery logs for the notification identified by `notification_id`. It must belong to the current application. Requires the `notifications:read` permission and the `automation_integration` capability.",
        "operationId": "listNotificationLogs",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Notification Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicNotificationLogListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List a notification's delivery logs",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/notifications/{notification_id}/send": {
      "post": {
        "description": "Sends the notification identified by `notification_id` using the supplied context. It must belong to the current application. Requires the `notifications:execute` permission and the `automation_integration` capability.",
        "operationId": "sendNotification",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Notification Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicSendNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSendNotificationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Send a notification",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/outbound-destination-governance": {
      "put": {
        "description": "Updates service/webhook outbound destination allow-list governance. Requires the `risky:outbound_destinations:configure` permission, normally granted through the `risky-approval` API-key role.",
        "operationId": "updateOutboundDestinationGovernance",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutboundDestinationGovernanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutboundDestinationGovernanceResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update outbound destination governance",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/pages": {
      "get": {
        "description": "Returns pages scoped to the authenticated application. Requires the `pages:read` permission.",
        "operationId": "listPage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPageListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List pages",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new page for the application. Requires the `pages:create` permission.",
        "operationId": "createPage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCreatePageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a page",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/pages/{page_id}": {
      "delete": {
        "description": "Deletes the page identified by `page_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `pages:delete` permission.",
        "operationId": "deletePage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a page",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the page identified by `page_id`. It must belong to the current application. Requires the `pages:read` permission.",
        "operationId": "getPage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a page",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the page identified by `page_id`. It must belong to the current application. Requires the `pages:update` permission.",
        "operationId": "updatePage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUpdatePageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a page",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/pages/{page_id}/published": {
      "get": {
        "description": "Returns the rendered, published version of the page \u2014 the same rendering an unauthenticated visitor of the published application would receive. Both the application and the page must be published. Requires the `pages:read` permission.",
        "operationId": "getPublishedPage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRenderPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get the published rendering of a page",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/pages/{page_id}/render": {
      "post": {
        "description": "Renders the page's layout (composites expanded, style resolved), matching the admin authoring preview. Works regardless of the page's publish status. Requires the `pages:read` permission.",
        "operationId": "renderPage",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Page Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRenderPageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Render a page",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/queries": {
      "post": {
        "description": "Executes an ad-hoc QueryAST against records in the requested application and returns columns, rows, and total row count. This API-key route uses admin execution semantics, so public saved-query field allow-lists and public row caps do not apply. Requires the `records:read` permission.",
        "operationId": "executeQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryASTSchema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryResultResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Execute an ad-hoc query",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/records/{record_id}/audit": {
      "get": {
        "description": "Returns the audit trail for the record identified by `record_id`. The record must belong to the application the API key is scoped to. Requires the `audit:read` permission.",
        "operationId": "getRecordAudit",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RecordAuditLogResponse"
                  },
                  "title": "Response Getrecordaudit",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a record's audit trail",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/relationships": {
      "get": {
        "description": "Returns relationships scoped to the authenticated application. Requires the `relationships:read` permission.",
        "operationId": "listRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRelationshipListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List relationships",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new relationship for the application. Requires the `relationships:create` permission.",
        "operationId": "createRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCreateRelationshipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRelationshipResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a relationship",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/relationships/derive": {
      "post": {
        "description": "Scans the application's models for `reference`-type fields and creates forward/reverse relationships for any that don't already exist. Requires the `relationships:create` permission.",
        "operationId": "deriveRelationships",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDeriveRelationshipsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Derive relationships from reference fields",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/relationships/{relationship_id}": {
      "delete": {
        "description": "Deletes the relationship identified by `relationship_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `relationships:delete` permission.",
        "operationId": "deleteRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "relationship_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Relationship Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a relationship",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the relationship identified by `relationship_id`. It must belong to the current application. Requires the `relationships:read` permission.",
        "operationId": "getRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "relationship_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Relationship Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRelationshipResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a relationship",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the relationship identified by `relationship_id`. It must belong to the current application. Requires the `relationships:update` permission.",
        "operationId": "updateRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "relationship_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Relationship Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUpdateRelationshipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRelationshipResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a relationship",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/rules": {
      "get": {
        "description": "Returns rules scoped to the authenticated application. Requires the `rules:read` permission.",
        "operationId": "listRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "model_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Model Id"
            }
          },
          {
            "in": "query",
            "name": "is_active",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Is Active"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List rules",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new rule for the application. Requires the `rules:create` permission.",
        "operationId": "createRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRuleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a rule",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/rules/events": {
      "post": {
        "description": "Evaluates automation rules for the given event payload. Supply `event` (arbitrary dict), optional `modelId`, `recordId`, and `phase` (`pre_save` or `post_save`; defaults to `post_save`). Returns matched rule IDs, record update patches, response patches, errors, side effects, queued jobs, and a `blocked` flag. Requires the `rules:execute` permission.",
        "operationId": "evaluateRuleEvent",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FrontendRuleEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrontendRuleEventResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Evaluate a frontend rule event",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/rules/test": {
      "post": {
        "description": "Tests a rule condition and actions against sample data. Requires the `rules:create` permission.",
        "operationId": "testRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestRuleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRuleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Test a rule",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/rules/{rule_id}": {
      "delete": {
        "description": "Deletes the rule identified by `rule_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `rules:delete` permission.",
        "operationId": "deleteRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Rule Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a rule",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the rule identified by `rule_id`. It must belong to the current application. Requires the `rules:read` permission.",
        "operationId": "getRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Rule Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a rule",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the rule identified by `rule_id`. It must belong to the current application. Requires the `rules:update` permission.",
        "operationId": "updateRule",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Rule Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a rule",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/rules/{rule_id}/logs": {
      "get": {
        "description": "Lists execution logs for a rule scoped to the application. Requires the `rules:read` permission.",
        "operationId": "listRuleLogs",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Rule Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RuleLogResponse"
                  },
                  "title": "Response Listrulelogs",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List rule logs",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/saved-queries": {
      "get": {
        "description": "Returns saved-queries scoped to the authenticated application. Requires the `queries:read` permission.",
        "operationId": "listSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedQueryListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List saved-queries",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new savedquery for the application. Requires the `queries:create` permission.",
        "operationId": "createSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedQueryCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedQueryResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a savedquery",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/saved-queries/{saved_query_id}": {
      "delete": {
        "description": "Deletes the savedquery identified by `saved_query_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `queries:delete` permission.",
        "operationId": "deleteSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "saved_query_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Saved Query Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a savedquery",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the savedquery identified by `saved_query_id`. It must belong to the current application. Requires the `queries:read` permission.",
        "operationId": "getSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "saved_query_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Saved Query Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedQueryResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a savedquery",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the savedquery identified by `saved_query_id`. It must belong to the current application. Requires the `queries:update` permission.",
        "operationId": "updateSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "saved_query_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Saved Query Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedQueryUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedQueryResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a savedquery",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/saved-queries/{saved_query_id}/execute": {
      "post": {
        "description": "Executes a stored saved query by id with optional runtime parameters (bound to ':param_name' placeholders in the query's filter values) and returns the columns, rows, and total row count. The saved query is taken from the path; any query/savedQueryId in the request body is ignored. Requires the `queries:read` permission.",
        "operationId": "executeSavedQuery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "saved_query_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Saved Query Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryExecuteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryResultResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Execute a saved query",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/services/{service_id}/invoke/stream": {
      "post": {
        "description": "Invokes an existing service configuration and streams upstream bytes to the API-key client without reframing. Service creation and configuration remain admin/authoring operations. Requires the `services:execute` permission.",
        "operationId": "streamInvokeService",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "service_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Service Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvokeServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Stream invoke a configured service",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/webhooks": {
      "get": {
        "description": "Returns webhooks scoped to the authenticated application. Requires the `webhooks:read` permission.",
        "operationId": "listWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List webhooks",
        "tags": [
          "public"
        ]
      },
      "post": {
        "description": "Creates a new webhook for the application. Requires the `webhooks:create` permission.",
        "operationId": "createWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCreateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create a webhook",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/webhooks/{webhook_id}": {
      "delete": {
        "description": "Deletes the webhook identified by `webhook_id`. It must belong to the current application. Returns 204 No Content on success. Requires the `webhooks:delete` permission.",
        "operationId": "deleteWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Webhook Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete a webhook",
        "tags": [
          "public"
        ]
      },
      "get": {
        "description": "Returns the webhook identified by `webhook_id`. It must belong to the current application. Requires the `webhooks:read` permission.",
        "operationId": "getWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Webhook Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a webhook",
        "tags": [
          "public"
        ]
      },
      "patch": {
        "description": "Updates the webhook identified by `webhook_id`. It must belong to the current application. Requires the `webhooks:update` permission.",
        "operationId": "updateWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Webhook Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update a webhook",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/webhooks/{webhook_id}/deliveries": {
      "get": {
        "description": "Returns delivery attempts for the webhook identified by `webhook_id`. It must belong to the current application. Requires the `webhooks:read` permission and the `automation_integration` capability.",
        "operationId": "listWebhookDeliveries",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Webhook Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookDeliveryListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List a webhook's delivery attempts",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/applications/{application_id}/webhooks/{webhook_id}/redeliver/{delivery_id}": {
      "post": {
        "description": "Re-sends a previous delivery's event/payload to the webhook identified by `webhook_id`. Both the webhook and the delivery identified by `delivery_id` must belong to the current application. There is no dedicated redeliver use-case: this fetches the stored delivery and re-runs the same `DeliverWebhookUseCase` the admin redeliver handler uses, with the delivery's original event and payload. Requires the `webhooks:update` permission and the `automation_integration` capability.",
        "operationId": "redeliverWebhookDelivery",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Webhook Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delivery_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Delivery Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebhookDeliveryResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Redeliver a webhook delivery",
        "tags": [
          "public"
        ]
      }
    },
    "/api/v1/public/apps/{application_id}/models/{model_id}/records": {
      "post": {
        "description": "Create a record as an AUTHENTICATED consumer of this application.\n\nBefore this route existed there was no such path: the generic model route refuses a\nConsumerContext (\"Consumer JWTs do not grant generic record creation\"), so a page-builder\nform could only work if its model was `auth_required: false` -- open to anyone who could\nreach the page. That is why 16 kanban models carry the opt-out in production.\n\nAnonymous intake deliberately stays on the model route, where `auth_required` governs it.\nOne gate, in one place.",
        "operationId": "consumer_create_record_api_v1_public_apps__application_id__models__model_id__records_post",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Model Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Consumer Create Record",
        "tags": [
          "records"
        ]
      }
    },
    "/api/v1/public/apps/{application_id}/records/{record_id}": {
      "delete": {
        "description": "Delete a record as an AUTHENTICATED consumer of this application.\n\nThe admin route rejects a ConsumerContext outright, which is why deleting from a public\napp's own UI returned 403 while the same delete over the admin API returned 204.",
        "operationId": "consumer_delete_record_api_v1_public_apps__application_id__records__record_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Consumer Delete Record",
        "tags": [
          "records"
        ]
      },
      "patch": {
        "description": "Update a record as an AUTHENTICATED consumer of this application.\n\nThis is the BROAD grant: any published field on the record. ``public_record_action``\nremains the narrow one -- declared action keys, declared fields, declared preconditions --\nand stays the right tool when a consumer should be able to change some things and not\nothers. They are not redundant.\n\nWithout this route an edit form without a `public_action` returns 403 to a logged-in\nconsumer, which pushes builders back to `auth_required: false`.",
        "operationId": "consumer_update_record_api_v1_public_apps__application_id__records__record_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Consumer Update Record",
        "tags": [
          "records"
        ]
      }
    },
    "/api/v1/public/apps/{application_id}/records/{record_id}/actions/{action_key}": {
      "post": {
        "operationId": "public_record_action_api_v1_public_apps__application_id__records__record_id__actions__action_key__post",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Application Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Record Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "action_key",
            "required": true,
            "schema": {
              "title": "Action Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecordActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Public Record Action",
        "tags": [
          "records"
        ]
      }
    }
  }
}
