# Update type by id

`PUT /types/{typeId}`



[Native Object Registry API guide](https://docs.contextual.io/tenants/tenant-apis/native-object-registry-api.md)

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Native Object Registry Api",
    "description": " ",
    "version": "1.20.6"
  },
  "security": [
    {
      "jwt": []
    }
  ],
  "servers": [
    {
      "url": "https://native-object-registry.{tenantId}.my.contextual.io/api/v1",
      "variables": {
        "tenantId": {
          "default": "YOUR-TENANT-ID"
        }
      }
    }
  ],
  "paths": {
    "/types/{typeId}": {
      "put": {
        "tags": [
          "Types"
        ],
        "summary": "Update type by id",
        "parameters": [
          {
            "name": "skipRelationValidation",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "typeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
            }
          },
          {
            "name": "x-if-hash-match",
            "in": "header",
            "required": false
          },
          {
            "name": "x-org-id",
            "in": "header",
            "required": false
          }
        ],
        "deprecated": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "system",
                          "custom"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "pluralName": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "schemaVersion": {
                        "type": "string"
                      },
                      "schema": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "relations": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "typeRef": {
                                      "type": "string"
                                    },
                                    "localField": {
                                      "type": "string"
                                    },
                                    "displayField": {
                                      "type": "string"
                                    },
                                    "searchBy": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "label"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "typeRef",
                                    "localField",
                                    "displayField"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "primaryKey": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "primaryKey"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "display": {
                        "type": "string",
                        "enum": [
                          "default",
                          "pinned",
                          "setting",
                          "component",
                          "security"
                        ]
                      },
                      "defaultListStyle": {
                        "type": "string",
                        "enum": [
                          "table",
                          "card"
                        ]
                      },
                      "uiSchemas": {
                        "type": "object",
                        "properties": {
                          "createStyle": {},
                          "updateStyle": {},
                          "readStyle": {},
                          "systemStyle": {},
                          "duplicateStyle": {},
                          "listStyle": {
                            "type": "object",
                            "properties": {
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "align": {
                                      "type": "string",
                                      "enum": [
                                        "left",
                                        "right",
                                        "center"
                                      ]
                                    },
                                    "width": {
                                      "type": [
                                        "number",
                                        "string"
                                      ]
                                    },
                                    "flex": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "id"
                                  ],
                                  "additionalProperties": {}
                                }
                              },
                              "order": {
                                "type": "object",
                                "properties": {
                                  "orderBy": {
                                    "type": "string"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "asc",
                                      "desc"
                                    ]
                                  }
                                },
                                "required": [
                                  "orderBy",
                                  "direction"
                                ],
                                "additionalProperties": false
                              },
                              "pagination": {
                                "type": "object",
                                "properties": {
                                  "totalCount": {
                                    "type": "string",
                                    "enum": [
                                      "include",
                                      "exclude"
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          },
                          "relatedStyle": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "columns": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "path": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "align": {
                                        "type": "string",
                                        "enum": [
                                          "left",
                                          "right",
                                          "center"
                                        ]
                                      },
                                      "width": {
                                        "type": [
                                          "number",
                                          "string"
                                        ]
                                      },
                                      "flex": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                },
                                "order": {
                                  "type": "object",
                                  "properties": {
                                    "orderBy": {
                                      "type": "string"
                                    },
                                    "direction": {
                                      "type": "string",
                                      "enum": [
                                        "asc",
                                        "desc"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "orderBy",
                                    "direction"
                                  ],
                                  "additionalProperties": false
                                },
                                "pagination": {
                                  "type": "object",
                                  "properties": {
                                    "totalCount": {
                                      "type": "string",
                                      "enum": [
                                        "include",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "typeId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "typeId"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "triggers": {
                        "type": "object",
                        "properties": {
                          "preInsert": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postInsert": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "preUpdate": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postUpdate": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "preDelete": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postDelete": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "preInsert",
                          "postInsert",
                          "preUpdate",
                          "postUpdate",
                          "preDelete",
                          "postDelete"
                        ],
                        "additionalProperties": false
                      },
                      "actions": {
                        "type": "array",
                        "items": {
                          "allOf": [
                            {
                              "anyOf": [
                                {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "system"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "action": {
                                          "type": "string",
                                          "const": "send-to-agent"
                                        },
                                        "agentId": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "name",
                                        "action",
                                        "agentId"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "system"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "action": {
                                          "type": "string",
                                          "const": "echo"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "name",
                                        "action"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ],
                                  "type": "object"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "custom"
                                    },
                                    "ruleSet": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "id": {
                                          "type": "string",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "functions": {
                                          "type": "object",
                                          "propertyNames": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "additionalProperties": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "params": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              },
                                              "block": {
                                                "$ref": "#/components/schemas/__schema0"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "params",
                                              "block"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "block": {
                                                "$ref": "#/components/schemas/__schema0"
                                              }
                                            },
                                            "required": [
                                              "name",
                                              "id",
                                              "block"
                                            ],
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "id",
                                        "rules"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "ruleSet"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "hidden": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "objectType": {
                        "type": "string",
                        "const": "internal"
                      },
                      "features": {
                        "type": "object",
                        "properties": {
                          "auditTrail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "retentionPeriod": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "enabled"
                            ],
                            "additionalProperties": false
                          },
                          "version": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "enabled"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "auditTrail",
                          "version"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "name",
                      "schema",
                      "display",
                      "defaultListStyle",
                      "objectType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "system",
                          "custom"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "pluralName": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "schemaVersion": {
                        "type": "string"
                      },
                      "schema": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "relations": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "typeRef": {
                                      "type": "string"
                                    },
                                    "localField": {
                                      "type": "string"
                                    },
                                    "displayField": {
                                      "type": "string"
                                    },
                                    "searchBy": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "label"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "typeRef",
                                    "localField",
                                    "displayField"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "primaryKey": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "primaryKey"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "display": {
                        "type": "string",
                        "enum": [
                          "default",
                          "pinned",
                          "setting",
                          "component",
                          "security"
                        ]
                      },
                      "defaultListStyle": {
                        "type": "string",
                        "enum": [
                          "table",
                          "card"
                        ]
                      },
                      "uiSchemas": {
                        "type": "object",
                        "properties": {
                          "createStyle": {},
                          "updateStyle": {},
                          "readStyle": {},
                          "systemStyle": {},
                          "duplicateStyle": {},
                          "listStyle": {
                            "type": "object",
                            "properties": {
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "align": {
                                      "type": "string",
                                      "enum": [
                                        "left",
                                        "right",
                                        "center"
                                      ]
                                    },
                                    "width": {
                                      "type": [
                                        "number",
                                        "string"
                                      ]
                                    },
                                    "flex": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "id"
                                  ],
                                  "additionalProperties": {}
                                }
                              },
                              "order": {
                                "type": "object",
                                "properties": {
                                  "orderBy": {
                                    "type": "string"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "asc",
                                      "desc"
                                    ]
                                  }
                                },
                                "required": [
                                  "orderBy",
                                  "direction"
                                ],
                                "additionalProperties": false
                              },
                              "pagination": {
                                "type": "object",
                                "properties": {
                                  "totalCount": {
                                    "type": "string",
                                    "enum": [
                                      "include",
                                      "exclude"
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          },
                          "relatedStyle": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "columns": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "path": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "align": {
                                        "type": "string",
                                        "enum": [
                                          "left",
                                          "right",
                                          "center"
                                        ]
                                      },
                                      "width": {
                                        "type": [
                                          "number",
                                          "string"
                                        ]
                                      },
                                      "flex": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                },
                                "order": {
                                  "type": "object",
                                  "properties": {
                                    "orderBy": {
                                      "type": "string"
                                    },
                                    "direction": {
                                      "type": "string",
                                      "enum": [
                                        "asc",
                                        "desc"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "orderBy",
                                    "direction"
                                  ],
                                  "additionalProperties": false
                                },
                                "pagination": {
                                  "type": "object",
                                  "properties": {
                                    "totalCount": {
                                      "type": "string",
                                      "enum": [
                                        "include",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "typeId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "typeId"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "triggers": {
                        "type": "object",
                        "properties": {
                          "preInsert": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postInsert": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "preUpdate": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postUpdate": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "preDelete": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "postDelete": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "anyOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "send-to-agent"
                                            },
                                            "agentId": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action",
                                            "agentId"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "system"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "action": {
                                              "type": "string",
                                              "const": "echo"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "name",
                                            "action"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom"
                                        },
                                        "ruleSet": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "functions": {
                                              "type": "object",
                                              "propertyNames": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "params": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "params",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "name": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                  },
                                                  "description": {
                                                    "type": "string"
                                                  },
                                                  "block": {
                                                    "$ref": "#/components/schemas/__schema0"
                                                  }
                                                },
                                                "required": [
                                                  "name",
                                                  "id",
                                                  "block"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "id",
                                            "rules"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "ruleSet"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "disabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "preInsert",
                          "postInsert",
                          "preUpdate",
                          "postUpdate",
                          "preDelete",
                          "postDelete"
                        ],
                        "additionalProperties": false
                      },
                      "actions": {
                        "type": "array",
                        "items": {
                          "allOf": [
                            {
                              "anyOf": [
                                {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "system"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "action": {
                                          "type": "string",
                                          "const": "send-to-agent"
                                        },
                                        "agentId": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "name",
                                        "action",
                                        "agentId"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "system"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "action": {
                                          "type": "string",
                                          "const": "echo"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "name",
                                        "action"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ],
                                  "type": "object"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "custom"
                                    },
                                    "ruleSet": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "id": {
                                          "type": "string",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "functions": {
                                          "type": "object",
                                          "propertyNames": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "additionalProperties": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "params": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              },
                                              "block": {
                                                "$ref": "#/components/schemas/__schema0"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "params",
                                              "block"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "block": {
                                                "$ref": "#/components/schemas/__schema0"
                                              }
                                            },
                                            "required": [
                                              "name",
                                              "id",
                                              "block"
                                            ],
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "id",
                                        "rules"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "ruleSet"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "hidden": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "objectType": {
                        "type": "string",
                        "const": "external"
                      },
                      "features": {
                        "type": "object",
                        "properties": {
                          "create": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          },
                          "update": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          },
                          "read": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          },
                          "list": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          },
                          "delete": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          },
                          "duplicate": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "description": {
                                "type": "string"
                              },
                              "functions": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "params",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "block": {
                                      "$ref": "#/components/schemas/__schema0"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "block"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "id",
                              "rules"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "name",
                      "schema",
                      "display",
                      "defaultListStyle",
                      "objectType",
                      "features"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Type"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "Invalid payload provided": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authorization header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid permissions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Type not found",
            "content": {}
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "__schema0": {
        "description": "The published OpenAPI schema does not define this component."
      },
      "Type": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "_metaData": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string",
                    "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                    "description": "An ISO 8601 date time string",
                    "format": "date-time"
                  },
                  "updatedAt": {
                    "type": "string",
                    "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                    "description": "An ISO 8601 date time string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "id",
                  "createdAt"
                ],
                "additionalProperties": false
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "type": {
                "type": "string",
                "enum": [
                  "system",
                  "custom"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "pluralName": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "schemaVersion": {
                "type": "string"
              },
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "relations": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "typeRef": {
                              "type": "string"
                            },
                            "localField": {
                              "type": "string"
                            },
                            "displayField": {
                              "type": "string"
                            },
                            "searchBy": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "field",
                                  "label"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "typeRef",
                            "localField",
                            "displayField"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "primaryKey": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "primaryKey"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              "display": {
                "type": "string",
                "enum": [
                  "default",
                  "pinned",
                  "setting",
                  "component",
                  "security"
                ]
              },
              "defaultListStyle": {
                "type": "string",
                "enum": [
                  "table",
                  "card"
                ]
              },
              "uiSchemas": {
                "type": "object",
                "properties": {
                  "createStyle": {},
                  "updateStyle": {},
                  "readStyle": {},
                  "systemStyle": {},
                  "duplicateStyle": {},
                  "listStyle": {
                    "type": "object",
                    "properties": {
                      "columns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "path": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "align": {
                              "type": "string",
                              "enum": [
                                "left",
                                "right",
                                "center"
                              ]
                            },
                            "width": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "flex": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "order": {
                        "type": "object",
                        "properties": {
                          "orderBy": {
                            "type": "string"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ]
                          }
                        },
                        "required": [
                          "orderBy",
                          "direction"
                        ],
                        "additionalProperties": false
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "totalCount": {
                            "type": "string",
                            "enum": [
                              "include",
                              "exclude"
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "relatedStyle": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "columns": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              },
                              "align": {
                                "type": "string",
                                "enum": [
                                  "left",
                                  "right",
                                  "center"
                                ]
                              },
                              "width": {
                                "type": [
                                  "number",
                                  "string"
                                ]
                              },
                              "flex": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "order": {
                          "type": "object",
                          "properties": {
                            "orderBy": {
                              "type": "string"
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "asc",
                                "desc"
                              ]
                            }
                          },
                          "required": [
                            "orderBy",
                            "direction"
                          ],
                          "additionalProperties": false
                        },
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "totalCount": {
                              "type": "string",
                              "enum": [
                                "include",
                                "exclude"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "typeId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "typeId"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "triggers": {
                "type": "object",
                "properties": {
                  "preInsert": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postInsert": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "preUpdate": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postUpdate": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "preDelete": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postDelete": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "preInsert",
                  "postInsert",
                  "preUpdate",
                  "postUpdate",
                  "preDelete",
                  "postDelete"
                ],
                "additionalProperties": false
              },
              "actions": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "system"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "action": {
                                  "type": "string",
                                  "const": "send-to-agent"
                                },
                                "agentId": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "name",
                                "action",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "system"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "action": {
                                  "type": "string",
                                  "const": "echo"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "name",
                                "action"
                              ],
                              "additionalProperties": false
                            }
                          ],
                          "type": "object"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            },
                            "ruleSet": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "functions": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "params": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "block": {
                                        "$ref": "#/components/schemas/__schema0"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "params",
                                      "block"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "rules": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "block": {
                                        "$ref": "#/components/schemas/__schema0"
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "id",
                                      "block"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "id",
                                "rules"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "ruleSet"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "hidden": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "objectType": {
                "type": "string",
                "const": "internal"
              },
              "features": {
                "type": "object",
                "properties": {
                  "auditTrail": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "retentionPeriod": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  "version": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "auditTrail",
                  "version"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "_metaData",
              "id",
              "type",
              "name",
              "schema",
              "display",
              "defaultListStyle",
              "objectType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "_metaData": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string",
                    "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                    "description": "An ISO 8601 date time string",
                    "format": "date-time"
                  },
                  "updatedAt": {
                    "type": "string",
                    "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                    "description": "An ISO 8601 date time string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "id",
                  "createdAt"
                ],
                "additionalProperties": false
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "type": {
                "type": "string",
                "enum": [
                  "system",
                  "custom"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "pluralName": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "schemaVersion": {
                "type": "string"
              },
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "relations": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "typeRef": {
                              "type": "string"
                            },
                            "localField": {
                              "type": "string"
                            },
                            "displayField": {
                              "type": "string"
                            },
                            "searchBy": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "field",
                                  "label"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "typeRef",
                            "localField",
                            "displayField"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "primaryKey": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "primaryKey"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              "display": {
                "type": "string",
                "enum": [
                  "default",
                  "pinned",
                  "setting",
                  "component",
                  "security"
                ]
              },
              "defaultListStyle": {
                "type": "string",
                "enum": [
                  "table",
                  "card"
                ]
              },
              "uiSchemas": {
                "type": "object",
                "properties": {
                  "createStyle": {},
                  "updateStyle": {},
                  "readStyle": {},
                  "systemStyle": {},
                  "duplicateStyle": {},
                  "listStyle": {
                    "type": "object",
                    "properties": {
                      "columns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "path": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "align": {
                              "type": "string",
                              "enum": [
                                "left",
                                "right",
                                "center"
                              ]
                            },
                            "width": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "flex": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "order": {
                        "type": "object",
                        "properties": {
                          "orderBy": {
                            "type": "string"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ]
                          }
                        },
                        "required": [
                          "orderBy",
                          "direction"
                        ],
                        "additionalProperties": false
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "totalCount": {
                            "type": "string",
                            "enum": [
                              "include",
                              "exclude"
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "relatedStyle": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "columns": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              },
                              "align": {
                                "type": "string",
                                "enum": [
                                  "left",
                                  "right",
                                  "center"
                                ]
                              },
                              "width": {
                                "type": [
                                  "number",
                                  "string"
                                ]
                              },
                              "flex": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "order": {
                          "type": "object",
                          "properties": {
                            "orderBy": {
                              "type": "string"
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "asc",
                                "desc"
                              ]
                            }
                          },
                          "required": [
                            "orderBy",
                            "direction"
                          ],
                          "additionalProperties": false
                        },
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "totalCount": {
                              "type": "string",
                              "enum": [
                                "include",
                                "exclude"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "typeId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "typeId"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "triggers": {
                "type": "object",
                "properties": {
                  "preInsert": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postInsert": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "preUpdate": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postUpdate": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "preDelete": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "postDelete": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "send-to-agent"
                                    },
                                    "agentId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action",
                                    "agentId"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "system"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "echo"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "name",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                },
                                "ruleSet": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "functions": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "params": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "params",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "rules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "block": {
                                            "$ref": "#/components/schemas/__schema0"
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "id",
                                          "block"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "id",
                                    "rules"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "ruleSet"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "preInsert",
                  "postInsert",
                  "preUpdate",
                  "postUpdate",
                  "preDelete",
                  "postDelete"
                ],
                "additionalProperties": false
              },
              "actions": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "system"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "action": {
                                  "type": "string",
                                  "const": "send-to-agent"
                                },
                                "agentId": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "name",
                                "action",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "system"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "action": {
                                  "type": "string",
                                  "const": "echo"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "name",
                                "action"
                              ],
                              "additionalProperties": false
                            }
                          ],
                          "type": "object"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            },
                            "ruleSet": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "functions": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "params": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "block": {
                                        "$ref": "#/components/schemas/__schema0"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "params",
                                      "block"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "rules": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "block": {
                                        "$ref": "#/components/schemas/__schema0"
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "id",
                                      "block"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "id",
                                "rules"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "ruleSet"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "hidden": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "objectType": {
                "type": "string",
                "const": "external"
              },
              "features": {
                "type": "object",
                "properties": {
                  "create": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  },
                  "update": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  },
                  "read": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  },
                  "list": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  },
                  "delete": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  },
                  "duplicate": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "description": {
                        "type": "string"
                      },
                      "functions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "params": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "id",
                            "params",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "description": {
                              "type": "string"
                            },
                            "block": {
                              "$ref": "#/components/schemas/__schema0"
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "block"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "id",
                      "rules"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "_metaData",
              "id",
              "type",
              "name",
              "schema",
              "display",
              "defaultListStyle",
              "objectType",
              "features"
            ],
            "additionalProperties": false
          }
        ]
      },
      "$ErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "string",
              "number"
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {}
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    }
  }
}
```