{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "contract": {
      "type": "string",
      "const": "TenantRuntimeConfig"
    },
    "tenantId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "appId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "environment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "designTokens": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "moduleRefs": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      }
    },
    "pageRefs": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      }
    },
    "featureFlags": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "authBinding": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "auth-provider"
          },
          "providerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "policyRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "kind",
          "providerId"
        ],
        "additionalProperties": false
      }
    },
    "dataBinding": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "data-provider"
              },
              "providerId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "domainRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "kind",
              "providerId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "projection"
              },
              "projectionRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "domainRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "kind",
              "projectionRef"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "sourceMap": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      }
    },
    "warnings": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "menuBundle": {
      "type": "object",
      "properties": {
        "contract": {
          "type": "string",
          "const": "MenuRuntimeBundle"
        },
        "version": {
          "type": "number",
          "const": 1
        },
        "applicationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "sourceVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "contentHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "menus": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "applicationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "surface": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "menuId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "nodes": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "parentNodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "order": {
                          "type": "integer",
                          "minimum": -1000000,
                          "maximum": 1000000
                        },
                        "kind": {
                          "type": "string",
                          "const": "group"
                        },
                        "label": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                              },
                              "additionalProperties": {
                                "type": "string",
                                "minLength": 1
                              }
                            }
                          ]
                        },
                        "iconRef": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "disabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "nodeId",
                        "order",
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "parentNodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "order": {
                          "type": "integer",
                          "minimum": -1000000,
                          "maximum": 1000000
                        },
                        "kind": {
                          "type": "string",
                          "const": "divider"
                        }
                      },
                      "required": [
                        "nodeId",
                        "order",
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "parentNodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "order": {
                          "type": "integer",
                          "minimum": -1000000,
                          "maximum": 1000000
                        },
                        "kind": {
                          "type": "string",
                          "const": "item"
                        },
                        "label": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                              },
                              "additionalProperties": {
                                "type": "string",
                                "minLength": 1
                              }
                            }
                          ]
                        },
                        "iconRef": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "tone": {
                          "type": "string",
                          "enum": [
                            "default",
                            "danger"
                          ]
                        },
                        "disabled": {
                          "type": "boolean"
                        },
                        "behavior": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "navigate"
                                },
                                "page": {
                                  "type": "object",
                                  "properties": {
                                    "applicationId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "pageId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "applicationId",
                                    "pageId"
                                  ],
                                  "additionalProperties": false
                                },
                                "activationId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "input": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "exposure": {
                                          "type": "string",
                                          "const": "client"
                                        },
                                        "value": {
                                          "type": "object",
                                          "propertyNames": {
                                            "type": "string"
                                          },
                                          "additionalProperties": {
                                            "$ref": "#/$defs/__schema0"
                                          }
                                        }
                                      },
                                      "required": [
                                        "exposure",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "exposure": {
                                          "type": "string",
                                          "const": "server"
                                        }
                                      },
                                      "required": [
                                        "exposure"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "page",
                                "activationId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "action"
                                },
                                "actionRef": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "input": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "$ref": "#/$defs/__schema0"
                                  }
                                }
                              },
                              "required": [
                                "kind",
                                "actionRef"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "access": {
                          "type": "object",
                          "properties": {
                            "authenticated": {
                              "default": true,
                              "type": "boolean"
                            },
                            "permissionAllOf": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "permissionAnyOf": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "featureFlags": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "requiredPermission": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "authenticated",
                            "permissionAllOf",
                            "permissionAnyOf",
                            "featureFlags"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "nodeId",
                        "order",
                        "kind",
                        "label",
                        "behavior",
                        "access"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "contributions": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "providerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "parentNodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "order": {
                      "type": "integer",
                      "minimum": -1000000,
                      "maximum": 1000000
                    }
                  },
                  "required": [
                    "providerId",
                    "order"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "applicationId",
              "surface",
              "menuId",
              "nodes",
              "contributions"
            ],
            "additionalProperties": false
          }
        },
        "navigationTargets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "page": {
                "type": "object",
                "properties": {
                  "applicationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "pageId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "applicationId",
                  "pageId"
                ],
                "additionalProperties": false
              },
              "activationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "input": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "exposure": {
                        "type": "string",
                        "const": "client"
                      },
                      "value": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "$ref": "#/$defs/__schema0"
                        }
                      }
                    },
                    "required": [
                      "exposure",
                      "value"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "exposure": {
                        "type": "string",
                        "const": "server"
                      }
                    },
                    "required": [
                      "exposure"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "page",
              "activationId"
            ],
            "additionalProperties": false
          }
        },
        "sourceMap": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "required": [
        "contract",
        "version",
        "applicationId",
        "sourceVersion",
        "contentHash",
        "menus",
        "navigationTargets",
        "sourceMap"
      ],
      "additionalProperties": false
    },
    "applicationConfig": {
      "type": "object",
      "properties": {
        "theme": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "favicon": {
              "type": "object",
              "properties": {
                "light": {
                  "type": "string"
                },
                "dark": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "logo": {
              "type": "object",
              "properties": {
                "light": {
                  "type": "string"
                },
                "dark": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "pwaIcon": {
              "type": "string"
            },
            "form": {
              "type": "object",
              "properties": {
                "variant": {
                  "type": "string",
                  "enum": [
                    "bento",
                    "ghost"
                  ]
                }
              },
              "required": [
                "variant"
              ],
              "additionalProperties": false
            },
            "toast": {
              "type": "object",
              "properties": {
                "position": {
                  "type": "string",
                  "enum": [
                    "top-right",
                    "top-left",
                    "bottom-right",
                    "bottom-left",
                    "top-center",
                    "bottom-center"
                  ]
                }
              },
              "required": [
                "position"
              ],
              "additionalProperties": false
            },
            "icons": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "svg",
                        "image"
                      ]
                    },
                    "hintTextColor": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "empty": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "svg",
                        "image"
                      ]
                    },
                    "hintTextColor": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "views": {
              "type": "object",
              "properties": {
                "form": {
                  "type": "object",
                  "properties": {
                    "toast": {
                      "type": "object",
                      "properties": {
                        "afterCreate": {
                          "type": "boolean"
                        },
                        "afterDelete": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "afterCreate",
                        "afterDelete"
                      ],
                      "additionalProperties": false
                    },
                    "progress": {
                      "type": "string",
                      "enum": [
                        "estimate",
                        "infinite"
                      ]
                    },
                    "onlyResult": {
                      "type": "boolean"
                    },
                    "tabular": {
                      "type": "object",
                      "properties": {
                        "theme": {
                          "type": "string",
                          "enum": [
                            "default",
                            "tentiary",
                            "primary"
                          ]
                        }
                      },
                      "required": [
                        "theme"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "toast",
                    "progress",
                    "onlyResult",
                    "tabular"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "form"
              ],
              "additionalProperties": false
            },
            "loginPage": {
              "type": "object",
              "properties": {
                "background": {
                  "type": "object",
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    },
                    "gradient": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "logo": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "lightUrl": {
                      "type": "string"
                    },
                    "darkUrl": {
                      "type": "string"
                    },
                    "position": {
                      "type": "string",
                      "enum": [
                        "top",
                        "middle",
                        "bottom"
                      ]
                    },
                    "scale": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  },
                  "additionalProperties": false
                },
                "customCss": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "extraLanguageURL": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "string"
              }
            },
            "hideSpaceHeader": {
              "type": "boolean"
            },
            "showSidebarTeamSelector": {
              "type": "boolean"
            },
            "showWorkbenchSidebar": {
              "type": "boolean"
            },
            "workbenchViewTheme": {
              "type": "string",
              "enum": [
                "default",
                "bsd-blue"
              ]
            },
            "defaults": {
              "type": "object",
              "properties": {
                "showFormInImageDetail": {
                  "type": "boolean"
                },
                "darkMode": {
                  "type": "string",
                  "enum": [
                    "light",
                    "dark",
                    "auto"
                  ]
                },
                "language": {
                  "type": "string",
                  "enum": [
                    "en-US",
                    "zh-CN",
                    "ja-JP"
                  ]
                },
                "showDarkModeToggle": {
                  "type": "boolean"
                },
                "showLanguageToggle": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "modules": {
              "type": "object",
              "properties": {
                "monkeysSpaceSidebar": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    }
                  ]
                },
                "monkeysSpaceHeadbar": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "extraInfo": {
                            "type": "boolean"
                          },
                          "displayName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                },
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          "visible": {
                            "type": "boolean"
                          },
                          "disabled": {
                            "type": "boolean"
                          },
                          "icon": {
                            "type": "string"
                          },
                          "showQuickSwitcher": {
                            "type": "boolean"
                          },
                          "showSidebar": {
                            "type": "boolean"
                          },
                          "showContentFrame": {
                            "type": "boolean"
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "extraInfo": {
                                  "type": "boolean"
                                },
                                "displayName": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string",
                                        "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                      },
                                      "additionalProperties": {
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                "visible": {
                                  "type": "boolean"
                                },
                                "disabled": {
                                  "type": "boolean"
                                },
                                "icon": {
                                  "type": "string"
                                },
                                "showQuickSwitcher": {
                                  "type": "boolean"
                                },
                                "showSidebar": {
                                  "type": "boolean"
                                },
                                "showContentFrame": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    }
                  ]
                },
                "settingsSidebar": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "headbar": {
              "type": "object",
              "properties": {
                "theme": {
                  "type": "string",
                  "enum": [
                    "card",
                    "glassy",
                    "ghost"
                  ]
                },
                "navPosition": {
                  "type": "string",
                  "enum": [
                    "left",
                    "center",
                    "right"
                  ]
                },
                "actions": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    }
                  ]
                },
                "profile": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "dark-mode",
                          "language",
                          "settings",
                          "logout"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "number",
                          "const": 1
                        },
                        "sections": {
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "additionalProperties": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                ]
                              },
                              "dividerBefore": {
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                                        },
                                        "kind": {
                                          "type": "string",
                                          "const": "navigation"
                                        },
                                        "ref": {
                                          "type": "string",
                                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "kind",
                                        "ref"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                                        },
                                        "kind": {
                                          "type": "string",
                                          "const": "control"
                                        },
                                        "ref": {
                                          "type": "string",
                                          "enum": [
                                            "dark-mode",
                                            "language"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "kind",
                                        "ref"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                                        },
                                        "kind": {
                                          "type": "string",
                                          "const": "action"
                                        },
                                        "ref": {
                                          "type": "string",
                                          "enum": [
                                            "logout"
                                          ]
                                        },
                                        "tone": {
                                          "type": "string",
                                          "enum": [
                                            "default",
                                            "danger"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "kind",
                                        "ref"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "id",
                              "items"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "version",
                        "sections"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "showTeamQuota": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "kernelLayout": {
              "type": "object",
              "properties": {
                "navigationMode": {
                  "type": "string",
                  "enum": [
                    "sidebar",
                    "topbar"
                  ]
                },
                "allowNavigationModeSwitch": {
                  "type": "boolean"
                },
                "headbar": {
                  "type": "object",
                  "properties": {
                    "theme": {
                      "type": "string",
                      "const": "card"
                    },
                    "layoutMode": {
                      "type": "string",
                      "enum": [
                        "boxed",
                        "full-bleed"
                      ]
                    },
                    "heightPx": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "navPosition": {
                      "type": "string",
                      "enum": [
                        "left",
                        "center",
                        "right"
                      ]
                    },
                    "brandTitle": {
                      "type": "string"
                    },
                    "menuRadius": {
                      "type": "string",
                      "enum": [
                        "default",
                        "none",
                        "sm",
                        "md",
                        "lg",
                        "xl",
                        "full"
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "paginationPosition": {
              "type": "string",
              "enum": [
                "left",
                "right"
              ]
            },
            "listFooter": {
              "type": "object",
              "properties": {
                "showTotal": {
                  "type": "boolean"
                },
                "showPageSize": {
                  "type": "boolean"
                },
                "pageSizeOptions": {
                  "minItems": 1,
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000
                  }
                },
                "paginationMode": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "pages",
                    "compact"
                  ]
                },
                "alignment": {
                  "type": "string",
                  "enum": [
                    "start",
                    "end",
                    "space-between"
                  ]
                },
                "density": {
                  "type": "string",
                  "enum": [
                    "compact",
                    "default",
                    "comfortable"
                  ]
                }
              },
              "additionalProperties": false
            },
            "ugcViewIconOnlyMode": {
              "type": "boolean"
            },
            "workflowPreviewExecutionGrid": {
              "type": "object",
              "properties": {
                "selectionModeDisplayType": {
                  "type": "string",
                  "enum": [
                    "operation-button",
                    "dropdown-menu"
                  ]
                },
                "clickBehavior": {
                  "type": "string",
                  "enum": [
                    "preview",
                    "select",
                    "fill-form",
                    "none"
                  ]
                },
                "showErrorFilter": {
                  "type": "boolean"
                },
                "displayType": {
                  "type": "string",
                  "enum": [
                    "grid",
                    "masonry"
                  ]
                },
                "showDetailButton": {
                  "type": "boolean"
                },
                "aspectRatio": {
                  "type": "string",
                  "enum": [
                    "1:1",
                    "4:3",
                    "3:4",
                    "16:9",
                    "9:16"
                  ]
                }
              },
              "additionalProperties": false
            },
            "workbenchSidebarDefaultOpen": {
              "type": "boolean"
            },
            "workbenchSidebarMoreAction": {
              "type": "boolean"
            },
            "workbenchSidebarApart": {
              "type": "boolean"
            },
            "workbenchSidebarToggleGroupDetail": {
              "type": "boolean"
            },
            "workbenchSidebarViewType": {
              "type": "boolean"
            },
            "workbenchSidebarFormViewEmbed": {
              "type": "boolean"
            },
            "workbenchSidebarModernMode": {
              "type": "boolean"
            },
            "ugc": {
              "type": "object",
              "properties": {
                "onItemClick": {
                  "type": "boolean"
                },
                "subtitle": {
                  "type": "boolean"
                }
              },
              "required": [
                "onItemClick"
              ],
              "additionalProperties": false
            },
            "uniImagePreview": {
              "type": "boolean"
            },
            "imagePreviewStyle": {
              "anyOf": [
                {
                  "type": "boolean",
                  "const": false
                },
                {
                  "type": "string",
                  "enum": [
                    "simple",
                    "normal",
                    "uni"
                  ]
                }
              ]
            },
            "teamAsUser": {
              "type": "boolean"
            },
            "themeMode": {
              "type": "string",
              "enum": [
                "shadow",
                "border"
              ]
            },
            "density": {
              "type": "string",
              "enum": [
                "compact",
                "default",
                "comfortable"
              ]
            },
            "statusStates": {
              "type": "object",
              "properties": {
                "loading": {
                  "type": "object",
                  "properties": {
                    "variant": {
                      "type": "string",
                      "enum": [
                        "spinner",
                        "skeleton"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "empty": {
                  "type": "object",
                  "properties": {
                    "variant": {
                      "type": "string",
                      "enum": [
                        "default",
                        "compact"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "showRetry": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "permission": {
                  "type": "object",
                  "properties": {
                    "showRequestAccess": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "density": {
                  "type": "string",
                  "enum": [
                    "compact",
                    "default",
                    "comfortable"
                  ]
                }
              },
              "additionalProperties": false
            },
            "pageZoom": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "miniMode": {
              "type": "object",
              "properties": {
                "showPreviewViewExecutionResultGrid": {
                  "type": "boolean"
                }
              },
              "required": [
                "showPreviewViewExecutionResultGrid"
              ],
              "additionalProperties": false
            },
            "workflow": {
              "type": "object",
              "properties": {
                "allowConcurrentRuns": {
                  "type": "boolean"
                }
              },
              "required": [
                "allowConcurrentRuns"
              ],
              "additionalProperties": false
            },
            "historyResult": {
              "type": "object",
              "properties": {
                "display": {
                  "type": "boolean"
                }
              },
              "required": [
                "display"
              ],
              "additionalProperties": false
            },
            "uploader": {
              "type": "object",
              "properties": {
                "orientation": {
                  "type": "string",
                  "enum": [
                    "vertical",
                    "horizontal"
                  ]
                },
                "pasteButton": {
                  "type": "boolean"
                },
                "statusText": {
                  "type": "boolean"
                }
              },
              "required": [
                "orientation",
                "pasteButton",
                "statusText"
              ],
              "additionalProperties": false
            },
            "designProjects": {
              "type": "object",
              "properties": {
                "oneOnOne": {
                  "type": "boolean"
                },
                "newTabOpenBoard": {
                  "type": "boolean"
                },
                "defaultShowGrid": {
                  "type": "boolean"
                },
                "createDefaultFrame": {
                  "type": "boolean"
                },
                "showPageMenu": {
                  "type": "boolean"
                },
                "showMainMenu": {
                  "type": "boolean"
                },
                "showStylePanel": {
                  "type": "boolean"
                },
                "showToolbar": {
                  "type": "boolean"
                },
                "toolbarPosition": {
                  "type": "string",
                  "enum": [
                    "bottom",
                    "left"
                  ]
                },
                "showContextMenu": {
                  "type": "boolean"
                },
                "showActionsMenu": {
                  "type": "boolean"
                },
                "showPageAndLayerSidebar": {
                  "type": "boolean"
                },
                "showBoardOperationSidebar": {
                  "type": "boolean"
                },
                "showMiniToolsToolbar": {
                  "type": "boolean"
                },
                "showRightSidebar": {
                  "type": "boolean"
                },
                "showRealtimeDrawing": {
                  "type": "boolean"
                },
                "showWorkflow": {
                  "type": "boolean"
                },
                "showVersionManager": {
                  "type": "boolean"
                },
                "showAgent": {
                  "type": "boolean"
                },
                "AgentTools": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                }
              },
              "required": [
                "oneOnOne",
                "newTabOpenBoard",
                "createDefaultFrame",
                "showPageMenu",
                "showMainMenu",
                "showStylePanel",
                "showToolbar",
                "showContextMenu",
                "showActionsMenu"
              ],
              "additionalProperties": false
            },
            "workbench": {
              "type": "object",
              "properties": {
                "pages": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "definition": {
                        "type": "object",
                        "properties": {
                          "contract": {
                            "type": "string",
                            "const": "PageDefinition"
                          },
                          "pageId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "ownerRepo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "title": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                },
                                "additionalProperties": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            ]
                          },
                          "pageType": {
                            "type": "string",
                            "enum": [
                              "page",
                              "workspace",
                              "view",
                              "record",
                              "action",
                              "overlay",
                              "agent",
                              "process",
                              "log",
                              "chat",
                              "preview",
                              "api",
                              "enhanced",
                              "agent-chat",
                              "agent-config",
                              "agent-log",
                              "design-board",
                              "global-design-board",
                              "iframe"
                            ]
                          },
                          "ownership": {
                            "type": "object",
                            "properties": {
                              "teamId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "creatorRef": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "version": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    ]
                                  },
                                  "ownerRepo": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  }
                                },
                                "required": [
                                  "kind",
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              "studioId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "builtIn": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "builtIn"
                            ],
                            "additionalProperties": false
                          },
                          "record": {
                            "type": "object",
                            "properties": {
                              "createdTimestamp": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "updatedTimestamp": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "deleted": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "deleted"
                            ],
                            "additionalProperties": false
                          },
                          "surface": {
                            "type": "string",
                            "enum": [
                              "page",
                              "workspace",
                              "view",
                              "record",
                              "action",
                              "overlay",
                              "agent"
                            ]
                          },
                          "routeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "routePath": {
                            "type": "string",
                            "pattern": "^\\/(?!\\/)"
                          },
                          "legacyRoutePolicy": {
                            "type": "object",
                            "properties": {
                              "contract": {
                                "type": "string",
                                "const": "LegacyRoutePolicy"
                              },
                              "schemaVersion": {
                                "type": "number",
                                "const": 1
                              },
                              "fallback": {
                                "type": "string",
                                "enum": [
                                  "allowed",
                                  "forbidden"
                                ]
                              },
                              "restoration": {
                                "type": "string",
                                "enum": [
                                  "allowed",
                                  "forbidden"
                                ]
                              }
                            },
                            "required": [
                              "contract",
                              "schemaVersion",
                              "fallback",
                              "restoration"
                            ],
                            "additionalProperties": false
                          },
                          "rendererKey": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "capabilityRef": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "version": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                ]
                              },
                              "ownerRepo": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          "capabilityRefs": {
                            "default": [],
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "version": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  ]
                                },
                                "ownerRepo": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": [
                                "kind",
                                "id"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "workflowRef": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "version": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                ]
                              },
                              "ownerRepo": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          "binding": {
                            "type": "object",
                            "properties": {
                              "sourceRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "ontologyId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "projectionRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "stateRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "additionalProperties": false
                          },
                          "access": {
                            "type": "object",
                            "properties": {
                              "actions": {
                                "default": [],
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "read",
                                    "write",
                                    "execute",
                                    "manage-permissions"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "actions"
                            ],
                            "additionalProperties": false
                          },
                          "input": {
                            "type": "object",
                            "properties": {
                              "schemaRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "schemaRef"
                            ],
                            "additionalProperties": false
                          },
                          "rendererConfig": {
                            "type": "object",
                            "properties": {
                              "schemaRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "value": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "$ref": "#/$defs/__schema0"
                                }
                              }
                            },
                            "required": [
                              "schemaRef",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "navigation": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                    },
                                    "additionalProperties": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                ]
                              },
                              "iconRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "parentPageId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "order": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "hidden": {
                                "default": false,
                                "type": "boolean"
                              },
                              "pinned": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "label",
                              "hidden",
                              "pinned"
                            ],
                            "additionalProperties": false
                          },
                          "visibility": {
                            "type": "object",
                            "properties": {
                              "authenticated": {
                                "default": true,
                                "type": "boolean"
                              },
                              "permissionAllOf": {
                                "default": [],
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "permissionAnyOf": {
                                "default": [],
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "featureFlags": {
                                "default": [],
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "productContexts": {
                                "minItems": 1,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "studio",
                                    "kernel"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "authenticated",
                              "permissionAllOf",
                              "permissionAnyOf",
                              "featureFlags",
                              "productContexts"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "contract",
                          "pageId",
                          "ownerRepo",
                          "title",
                          "pageType",
                          "ownership",
                          "record",
                          "surface",
                          "routeId",
                          "routePath",
                          "rendererKey",
                          "capabilityRef",
                          "capabilityRefs",
                          "binding",
                          "access",
                          "rendererConfig",
                          "navigation",
                          "visibility"
                        ],
                        "additionalProperties": false
                      },
                      "context": {
                        "type": "object",
                        "properties": {
                          "workflow": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "$ref": "#/$defs/__schema0"
                            }
                          },
                          "agent": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "$ref": "#/$defs/__schema0"
                            }
                          },
                          "agentId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "designProject": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "$ref": "#/$defs/__schema0"
                            }
                          },
                          "designMetadataId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "iframeUrl": {
                            "type": "string",
                            "minLength": 1
                          },
                          "info": {
                            "type": "object",
                            "properties": {
                              "displayName": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                    },
                                    "additionalProperties": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                ]
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                    },
                                    "additionalProperties": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                ]
                              },
                              "iconUrl": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": false
                          },
                          "isBuiltinPinned": {
                            "type": "boolean"
                          },
                          "isBuiltinReadonly": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "definition",
                      "context"
                    ],
                    "additionalProperties": false
                  }
                },
                "pageGroups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "pageIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "displayName": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1
                          },
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                            },
                            "additionalProperties": {
                              "type": "string",
                              "minLength": 1
                            }
                          }
                        ]
                      },
                      "isBuiltIn": {
                        "type": "boolean"
                      },
                      "iconUrl": {
                        "type": "string"
                      },
                      "sortIndex": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "presetRelationId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "relationKey": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "studioId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "id",
                      "pageIds",
                      "displayName",
                      "isBuiltIn"
                    ],
                    "additionalProperties": false
                  }
                },
                "catalog": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "defaultEntry": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "quickSwitcherMaxItems": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "defaultOrder": {
                  "type": "object",
                  "properties": {
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "pages": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      }
                    }
                  },
                  "required": [
                    "groups",
                    "pages"
                  ],
                  "additionalProperties": false
                },
                "customers": {
                  "type": "object",
                  "properties": {
                    "dropdownToolsDefault": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "layoutManagerTools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "label": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
                                },
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          "fixed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "studioTabsMode": {
                      "type": "string",
                      "enum": [
                        "dropdown",
                        "tabs"
                      ]
                    },
                    "historyWatermark": {
                      "type": "object",
                      "properties": {
                        "svgUrl": {
                          "type": "string"
                        },
                        "coverage": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "list",
                              "detail",
                              "download"
                            ]
                          }
                        },
                        "maxLongEdgeRatio": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "sizing": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "heightRatio": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "minHeightPx": {
                              "type": "number",
                              "minimum": 0
                            },
                            "maxHeightPx": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "additionalProperties": false
                        },
                        "enhance": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "backgroundLumaThreshold": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "stroke": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "opacity": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "widthRatio": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "blurRatio": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "steps": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "layoutManagerEnabled": {
                      "type": "boolean"
                    },
                    "existingToolsDefault": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "historyColumnsDefault": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 6
                    },
                    "studioOverrides": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "studioName": {
                            "type": "string",
                            "minLength": 1
                          },
                          "dropdownToolsDefault": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "existingToolsDefault": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "historyColumnsDefault": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 6
                          }
                        },
                        "required": [
                          "studioName"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "pages",
                "pageGroups"
              ],
              "additionalProperties": false
            },
            "visionProWorkflows": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "initTeam": {
              "type": "boolean"
            },
            "imageThumbnail": {
              "type": "boolean"
            },
            "pages": {
              "type": "object",
              "properties": {
                "allowPageKeys": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "*"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    }
                  ]
                },
                "defaultPageKey": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "homeEntryEnabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "allowPageKeys"
              ],
              "additionalProperties": false
            },
            "agent": {
              "type": "object",
              "properties": {
                "logo": {
                  "type": "object",
                  "properties": {
                    "light": {
                      "type": "string"
                    },
                    "dark": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "brandDisplayMode": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "logo-only",
                    "logo-name",
                    "name-only"
                  ]
                },
                "density": {
                  "type": "string",
                  "enum": [
                    "compact",
                    "default",
                    "comfortable"
                  ]
                },
                "sidebar": {
                  "type": "object",
                  "properties": {
                    "navigationMode": {
                      "type": "string",
                      "enum": [
                        "default",
                        "session",
                        "trend"
                      ]
                    },
                    "defaultOpen": {
                      "type": "boolean"
                    },
                    "widthPercent": {
                      "type": "integer",
                      "minimum": 10,
                      "maximum": 40
                    },
                    "visibleSections": {
                      "minItems": 1,
                      "maxItems": 7,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "header",
                          "search",
                          "new-session",
                          "sessions",
                          "agents",
                          "groups",
                          "footer"
                        ]
                      }
                    },
                    "groups": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "items": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "title": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                "subtitle": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 240
                                },
                                "imageUrl": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                },
                                "prompt": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 10000
                                },
                                "mediaVariant": {
                                  "type": "string",
                                  "enum": [
                                    "cover",
                                    "cover-with-label",
                                    "logo"
                                  ]
                                },
                                "mediaTreatment": {
                                  "type": "string",
                                  "enum": [
                                    "preserve",
                                    "monochrome-light",
                                    "invert"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "itemAspectRatio": {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "maximum": 10
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "items"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "defaultGroupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "quickStartEnabled": {
                      "type": "boolean"
                    },
                    "quickStartCategories": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1
                          },
                          "icon": {
                            "type": "string",
                            "enum": [
                              "sparkles",
                              "palette",
                              "search",
                              "file-text",
                              "code",
                              "shopping-bag"
                            ]
                          },
                          "sections": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "templates": {
                                  "minItems": 1,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "prompt": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "action": {
                                        "default": "prompt",
                                        "type": "string",
                                        "enum": [
                                          "prompt",
                                          "upload"
                                        ]
                                      },
                                      "icon": {
                                        "type": "string",
                                        "enum": [
                                          "sparkles",
                                          "palette",
                                          "search",
                                          "file-text",
                                          "code",
                                          "shopping-bag"
                                        ]
                                      },
                                      "coverImageUrl": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "accept": {
                                        "default": "*/*",
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "multiple": {
                                        "default": false,
                                        "type": "boolean"
                                      },
                                      "modes": {
                                        "minItems": 1,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "chat",
                                            "work"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "prompt",
                                      "action",
                                      "accept",
                                      "multiple"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "label",
                                "templates"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "sections"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "trendEntryEnabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "navigationMode": {
                  "type": "string",
                  "enum": [
                    "default",
                    "session",
                    "trend"
                  ]
                },
                "quickStartEnabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "landingPage": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "default"
                },
                "headbarMode": {
                  "type": "string",
                  "enum": [
                    "shared",
                    "hidden"
                  ]
                }
              },
              "required": [
                "mode"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "markdown"
                },
                "content": {
                  "type": "string"
                },
                "headbarMode": {
                  "type": "string",
                  "enum": [
                    "shared",
                    "hidden"
                  ]
                }
              },
              "required": [
                "mode",
                "content"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "html"
                },
                "content": {
                  "type": "string"
                },
                "headbarMode": {
                  "type": "string",
                  "enum": [
                    "shared",
                    "hidden"
                  ]
                }
              },
              "required": [
                "mode",
                "content"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "iframe"
                },
                "headbarMode": {
                  "type": "string",
                  "enum": [
                    "shared",
                    "hidden"
                  ]
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "mode",
                "url"
              ],
              "additionalProperties": false
            }
          ]
        },
        "auth": {
          "type": "object",
          "properties": {
            "enabled": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "oidc": {
              "type": "object",
              "properties": {
                "buttonText": {
                  "type": "string"
                },
                "autoSignin": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "password": {
              "type": "object",
              "properties": {
                "registrationEnabled": {
                  "type": "boolean"
                },
                "disableAutoRegister": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "registrationApproval": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "hideAuthToast": {
              "type": "boolean"
            },
            "autoReload": {
              "type": "boolean"
            },
            "defaultOtherTeam": {
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ],
          "additionalProperties": false
        },
        "endpoints": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "additionalProperties": {
            "type": "string"
          }
        },
        "module": {
          "anyOf": [
            {
              "type": "string",
              "const": "*"
            },
            {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            }
          ]
        },
        "behavior": {
          "type": "object",
          "properties": {
            "clearWorkflowFormStorageAfterUpdate": {
              "type": "boolean"
            },
            "autoApproveOAuth": {
              "type": "boolean"
            },
            "rememberWorkflowModelSelection": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "dataManagement": {
          "type": "object",
          "properties": {
            "favoriteOntologyId": {
              "type": "string"
            },
            "pairedOntologyId": {
              "type": "string"
            },
            "galleryOntologyIds": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "galleryOntologyId": {
              "type": "string"
            },
            "dataBrowserDefaultOntologyId": {
              "type": "string"
            },
            "workflowResultOntologyId": {
              "type": "string"
            },
            "homeAdvertisement": {
              "type": "object",
              "properties": {
                "ontologyId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewType": {
                  "type": "string",
                  "enum": [
                    "filter",
                    "container",
                    "share_link"
                  ]
                },
                "teamId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "teamOnly": {
                  "type": "boolean"
                },
                "pageSize": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sortBy": {
                  "type": "string",
                  "enum": [
                    "pin_order",
                    "asset_id",
                    "updated_timestamp",
                    "created_timestamp"
                  ]
                },
                "sortOrder": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                },
                "fieldMap": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "columnIds": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ontologyId"
              ],
              "additionalProperties": false
            },
            "homeShortcutBackground": {
              "type": "object",
              "properties": {
                "ontologyId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewType": {
                  "type": "string",
                  "enum": [
                    "filter",
                    "container",
                    "share_link"
                  ]
                },
                "teamId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "teamOnly": {
                  "type": "boolean"
                },
                "pageSize": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sortBy": {
                  "type": "string",
                  "enum": [
                    "pin_order",
                    "asset_id",
                    "updated_timestamp"
                  ]
                },
                "sortOrder": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                },
                "fieldMap": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "columnIds": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ontologyId"
              ],
              "additionalProperties": false
            },
            "homeTrendAssistant": {
              "type": "object",
              "properties": {
                "ontologyId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewInstanceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewName": {
                  "type": "string"
                },
                "teamId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "designOptionsWorkflowId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "tep": {
                  "type": "object",
                  "properties": {
                    "baseUrl": {
                      "type": "string"
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "runtime": {
                  "type": "object",
                  "properties": {
                    "appId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "tepBaseUrlConfigured": {
                      "type": "boolean"
                    },
                    "tepAuthorizationConfigured": {
                      "type": "boolean"
                    },
                    "tepCookieConfigured": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "appId",
                    "tepBaseUrlConfigured",
                    "tepAuthorizationConfigured",
                    "tepCookieConfigured"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "staticTrendReport": {
              "type": "object",
              "properties": {
                "ontologyId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "viewId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "teamId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": [
                "ontologyId"
              ],
              "additionalProperties": false
            },
            "trendRadar": {
              "type": "object",
              "properties": {
                "products": {
                  "type": "object",
                  "properties": {
                    "ontologyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "viewId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "ontologyId",
                    "viewId"
                  ],
                  "additionalProperties": false
                },
                "hotwords": {
                  "type": "object",
                  "properties": {
                    "ontologyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "viewId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "ontologyId",
                    "viewId"
                  ],
                  "additionalProperties": false
                },
                "brands": {
                  "type": "object",
                  "properties": {
                    "ontologyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "viewId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "ontologyId",
                    "viewId"
                  ],
                  "additionalProperties": false
                },
                "collection": {
                  "type": "object",
                  "properties": {
                    "ontologyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "ontologyId"
                  ],
                  "additionalProperties": false
                },
                "derivedMetrics": {
                  "type": "object",
                  "properties": {
                    "productCountFieldKey": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "salesValueCountFieldKey": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "salesSumFieldKey": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "productCountFieldKey",
                    "salesValueCountFieldKey",
                    "salesSumFieldKey"
                  ],
                  "additionalProperties": false
                },
                "evaluation": {
                  "type": "object",
                  "properties": {
                    "workflowId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "workflowId"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "sharing": {
              "type": "object",
              "properties": {
                "silentViewLinks": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "placement": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "sourceOntology",
                            "ontology"
                          ]
                        },
                        "ontologyId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "parentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "navId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "shareAccess": {
                  "type": "object",
                  "properties": {
                    "publicLinksEnabled": {
                      "type": "boolean"
                    },
                    "passwordGateEnabled": {
                      "type": "boolean"
                    },
                    "passwordAccessTtlSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "defaultViewTreeDelivery": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "auto"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "shareDialog": {
                  "type": "object",
                  "properties": {
                    "uiVersion": {
                      "type": "string",
                      "enum": [
                        "legacy",
                        "simplified"
                      ]
                    },
                    "audience": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "allowed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "user",
                              "team",
                              "public"
                            ]
                          }
                        },
                        "default": {
                          "type": "string",
                          "enum": [
                            "user",
                            "team",
                            "public"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "accessLevel": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "allowed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "read",
                              "write"
                            ]
                          }
                        },
                        "default": {
                          "type": "string",
                          "enum": [
                            "read",
                            "write"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "viewTreeDelivery": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "allowed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "auto"
                            ]
                          }
                        },
                        "default": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "auto"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "personalNotifications": {
                  "type": "object",
                  "properties": {
                    "supported": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "supported"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "kernelRuntime": {
          "type": "object",
          "properties": {
            "integrations": {
              "type": "object",
              "properties": {
                "harbor": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "type": "string"
                    },
                    "projectScopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "authMode": {
                      "type": "string"
                    },
                    "principal": {
                      "type": "string"
                    },
                    "autoSync": {
                      "type": "boolean"
                    },
                    "proxyUrl": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "gitlab": {
                  "type": "object",
                  "properties": {
                    "baseUrl": {
                      "type": "string"
                    },
                    "groupScopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tokenMode": {
                      "type": "string"
                    },
                    "deployProjectPath": {
                      "type": "string"
                    },
                    "deploymentReportsEnabled": {
                      "type": "boolean"
                    },
                    "proxyUrl": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "kubernetes": {
                  "type": "object",
                  "properties": {
                    "accessMode": {
                      "type": "string"
                    },
                    "clusterAlias": {
                      "type": "string"
                    },
                    "agentProjectPath": {
                      "type": "string"
                    },
                    "agentName": {
                      "type": "string"
                    },
                    "namespaceScopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "rolloutObserverEnabled": {
                      "type": "boolean"
                    },
                    "proxyUrl": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        "storage": {
          "type": "object",
          "properties": {
            "presignMode": {
              "type": "string",
              "enum": [
                "frontend",
                "backend",
                "both"
              ]
            },
            "presign": {
              "type": "object",
              "properties": {
                "expiresInSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "buckets": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "preferredUrlPatternId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "urlPatterns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bucket-hostname",
                                "provider-hostname"
                              ]
                            },
                            "hostname": {
                              "type": "string",
                              "minLength": 1
                            },
                            "preferred": {
                              "type": "boolean"
                            },
                            "bucketSegment": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "hostname"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "provider",
                      "preferredUrlPatternId",
                      "urlPatterns"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "expiresInSeconds",
                "buckets"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "monkeyData": {
          "type": "object",
          "properties": {
            "baseUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "theme",
        "auth",
        "endpoints",
        "module",
        "behavior"
      ],
      "additionalProperties": false
    },
    "declarativeRuntime": {
      "type": "object",
      "properties": {
        "contract": {
          "type": "string",
          "const": "DeclarativeRuntimeRolloutCapability"
        },
        "schemaVersion": {
          "type": "number",
          "const": 1
        },
        "state": {
          "type": "string",
          "enum": [
            "disabled",
            "enabled"
          ]
        },
        "apiVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "enabledSurfaces": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "studio",
              "kernel"
            ]
          }
        },
        "generation": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "etag": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contract",
        "schemaVersion",
        "state",
        "apiVersion",
        "enabledSurfaces",
        "generation",
        "etag"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract",
    "tenantId",
    "appId",
    "environment",
    "designTokens",
    "moduleRefs",
    "pageRefs",
    "featureFlags",
    "authBinding",
    "dataBinding",
    "sourceMap",
    "warnings",
    "applicationConfig"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  },
  "$id": "https://schemas.infmonkeys.com/contracts/tenant-runtime-config.schema.json",
  "title": "tenant-runtime-config"
}
