
{
  "openapi": "3.1.0",
  "info": {
    "title": "Cambrionix Connect Settings API",
    "description": "The settings service facilitates cross service and organization settings such as Save Queries or Metadata Properties.",
    "version": "1.0"
  },
  "servers": [
    {
      "description": "Cambrionix Connect",
      "url": "/api"
    }
  ],
  "tags": [
    {
      "name": "Metadata Properties",
      "description": "View and manage metadata properties."
    },
    {
      "name": "Queries",
      "description": "View and manage Organization Queries."
    },
    {
      "name": "Version",
      "description": "View the version of the API."
    },
    {
      "name": "Personalization",
      "description": "View and manage Organization User Personalization Settings."
    },
    {
      "name": "Auto Update",
      "description": "View and manage Auto Update Settings."
    }
  ],
  "paths": {
    "/settings/v1/auto-update": {
      "get": {
        "summary": "Get a Auto Update Settings",
        "description": "Get a Auto Update Settings by Organization Id",
        "tags": [
          "Auto Update"
        ],
        "parameters": [],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.AutoUpdate.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAAutoUpdateSettingsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getAAutoUpdateSettings"
      },
      "patch": {
        "summary": "Update a Auto Update Settings",
        "description": "Update a Auto Update Settings by Organization Id",
        "tags": [
          "Auto Update"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAAutoUpdateSettingsRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.AutoUpdate.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAAutoUpdateSettingsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "updateAAutoUpdateSettings"
      }
    },
    "/settings/v1/feature-flags": {
      "get": {
        "summary": "Get organization feature flags (public)",
        "description": "Returns public opt-ins and server-derived eligibility and effective flags. Private rollout keys are never included. The caller must hold both Organization.Settings.FeatureFlags.Read and Organization.Subscriptions.Read; the response is a single document (not field-level auth). Eligibility reflects the internal rollout allowlist; effective usage-based billing is rollout plus public opt-in only, while hub license subscriptions are a private admin toggle. License and billing preconditions are enforced on consuming services.",
        "tags": [
          "Feature flags"
        ],
        "parameters": [],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.FeatureFlags.Read",
              "Organization.Subscriptions.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrganizationFeatureFlagsPublicResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getOrganizationFeatureFlagsPublic"
      },
      "patch": {
        "summary": "Update public organization feature flags",
        "description": "Updates allowlisted public opt-ins. Requires both Organization.Settings.FeatureFlags.Write and Organization.Subscriptions.Update. Usage-based billing opt-in requires an active rollout allowlist (private allowlist) in addition to these permissions.",
        "tags": [
          "Feature flags"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePublicOrganizationFeatureFlagsRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.FeatureFlags.Write",
              "Organization.Subscriptions.Update"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePublicOrganizationFeatureFlagsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "updatePublicOrganizationFeatureFlags"
      }
    },
    "/settings/v1/metadata-properties": {
      "get": {
        "summary": "List Organization Metadata Properties",
        "description": "List all Organization Metadata Properties",
        "tags": [
          "Metadata Properties"
        ],
        "parameters": [
          {
            "description": "Returns only the items that match, written as `(path::operator::value)`, such as `(name::co::Lab)`. Operators are `eq`, `co`, `sw`, `ew`, `gt` and `pr`, and the case-insensitive `ieq`, `ico`, `isw` and `iew`. Combine conditions as `((a)::and::(b))` or `((a)::or::(b))`.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Orders the items, written as `(path::asc)` or `(path::desc)`. Combine orders as `((a)::and::(b))`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The maximum number of items to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Returns the next page: the `_metadata.continuationToken` of the previous response.",
            "in": "query",
            "name": "token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.MetadataProperty.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListOrganizationMetadataPropertiesResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "listOrganizationMetadataProperties"
      }
    },
    "/settings/v1/metadata-properties/{metadataPropertyId}": {
      "get": {
        "summary": "Get a Organization Metadata Property",
        "description": "Get a Organization Metadata Property by Id",
        "tags": [
          "Metadata Properties"
        ],
        "parameters": [
          {
            "name": "metadataPropertyId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "0000005B6D541D50",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "0000005B6D541D50"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.MetadataProperty.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAOrganizationMetadataPropertyResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getAOrganizationMetadataProperty"
      },
      "patch": {
        "summary": "Update a Organization Metadata Property",
        "description": "Update a Organization Metadata Property by Id",
        "tags": [
          "Metadata Properties"
        ],
        "parameters": [
          {
            "name": "metadataPropertyId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "0000005B6D541D50",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "0000005B6D541D50"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAOrganizationMetadataPropertyRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.MetadataProperty.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAOrganizationMetadataPropertyResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "updateAOrganizationMetadataProperty"
      },
      "delete": {
        "summary": "Delete a Organization Metadata Property",
        "description": "Delete a Organization Metadata Property by Id",
        "tags": [
          "Metadata Properties"
        ],
        "parameters": [
          {
            "name": "metadataPropertyId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "0000005B6D541D50",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "0000005B6D541D50"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.MetadataProperty.Delete"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAOrganizationMetadataPropertyResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "deleteAOrganizationMetadataProperty"
      }
    },
    "/settings/v1/metadata-property": {
      "post": {
        "summary": "Create a Organization Metadata Property",
        "description": "Create a new organization metadata property.",
        "tags": [
          "Metadata Properties"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAOrganizationMetadataPropertyRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.MetadataProperty.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAOrganizationMetadataPropertyResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "createAOrganizationMetadataProperty"
      }
    },
    "/settings/v1/personalization": {
      "get": {
        "summary": "Get a Organization User Personalization Settings",
        "description": "Get a Organization User Personalization Settings by Entity Id",
        "tags": [
          "Personalization"
        ],
        "parameters": [],
        "security": [
          {
            "bearerAuth": [
              "Organization.User.Settings.Personalization.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAOrganizationUserPersonalizationSettingsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getAOrganizationUserPersonalizationSettings"
      },
      "patch": {
        "summary": "Update a Organization User Personalization Settings",
        "description": "Update a Organization User Personalization Settings by Entity Id",
        "tags": [
          "Personalization"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAOrganizationUserPersonalizationSettingsRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.User.Settings.Personalization.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAOrganizationUserPersonalizationSettingsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "updateAOrganizationUserPersonalizationSettings"
      }
    },
    "/settings/v1/queries": {
      "get": {
        "summary": "List Organization Queries",
        "description": "List all Organization Queries",
        "tags": [
          "Queries"
        ],
        "parameters": [
          {
            "description": "Returns only the items that match, written as `(path::operator::value)`, such as `(name::co::Lab)`. Operators are `eq`, `co`, `sw`, `ew`, `gt` and `pr`, and the case-insensitive `ieq`, `ico`, `isw` and `iew`. Combine conditions as `((a)::and::(b))` or `((a)::or::(b))`.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Orders the items, written as `(path::asc)` or `(path::desc)`. Combine orders as `((a)::and::(b))`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The maximum number of items to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Returns the next page: the `_metadata.continuationToken` of the previous response.",
            "in": "query",
            "name": "token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.SavedQueries.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Response schema with result and metadata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "_metadata": {
                      "type": "object",
                      "properties": {
                        "continuationToken": {
                          "type": "string"
                        },
                        "limit": {
                          "type": "number"
                        },
                        "total": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false,
                      "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
                      "title": "Connect API Response Metadata"
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OrganizationQuery"
                      }
                    }
                  },
                  "required": [
                    "result"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "listOrganizationQueries"
      }
    },
    "/settings/v1/queries/{queryId}": {
      "get": {
        "summary": "Get a Organization Query",
        "description": "Get a Organization Query by Id",
        "tags": [
          "Queries"
        ],
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "value",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "value"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.SavedQueries.Read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/OrganizationQuery"
                    }
                  },
                  "required": [
                    "result"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getAOrganizationQuery"
      },
      "patch": {
        "summary": "Update a Organization Query",
        "description": "Update a Organization Query by Id",
        "tags": [
          "Queries"
        ],
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "value",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "value"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAOrganizationQueryRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.SavedQueries.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/OrganizationQuery"
                    }
                  },
                  "required": [
                    "result"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "updateAOrganizationQuery"
      },
      "delete": {
        "summary": "Delete a Organization Query",
        "description": "Delete a Organization Query by Id",
        "tags": [
          "Queries"
        ],
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "description": "Path parameter",
            "example": "value",
            "deprecated": false,
            "schema": {
              "type": "string",
              "description": "Path parameter",
              "deprecated": false,
              "example": "value"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.SavedQueries.Delete"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAOrganizationQueryResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "deleteAOrganizationQuery"
      }
    },
    "/settings/v1/query": {
      "post": {
        "summary": "Create a Organization Query",
        "description": "Create a new organization query.",
        "tags": [
          "Queries"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAOrganizationQueryRequest"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [
              "Organization.Settings.SavedQueries.Write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/OrganizationQuery"
                    }
                  },
                  "required": [
                    "result"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "createAOrganizationQuery"
      }
    },
    "/settings/v1/version": {
      "get": {
        "summary": "Get Version",
        "description": "Get the version of the API.",
        "tags": [
          "Version"
        ],
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "operationId": "getVersion"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "description": "Access token from the organization token endpoint, `POST /api/v1/organizations/{organizationId}/oauth2/token` on the Connect host, using the `client_credentials` grant with a service account.",
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "ChangeAuditSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "entity": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "globalService": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "time": {
            "type": "number",
            "minimum": 0
          },
          "user": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "givenName": {
                    "type": "string"
                  },
                  "surname": {
                    "type": "string"
                  }
                },
                "required": [
                  "displayName",
                  "email"
                ],
                "additionalProperties": false,
                "description": "UserDetail"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "time"
        ],
        "additionalProperties": false,
        "description": "ChangeAudit - Used to track changes to an object."
      },
      "CreateAOrganizationMetadataPropertyRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "schema": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "default": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "const": "boolean"
                  }
                },
                "required": [
                  "default",
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "default": {
                    "type": "string"
                  },
                  "enum": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "type": {
                    "type": "string",
                    "const": "string"
                  }
                },
                "required": [
                  "default",
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "default": {
                    "type": "number"
                  },
                  "maximum": {
                    "type": "number"
                  },
                  "minimum": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string",
                    "const": "number"
                  }
                },
                "required": [
                  "default",
                  "type"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "name",
          "schema"
        ],
        "additionalProperties": false
      },
      "CreateAOrganizationMetadataPropertyResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "organization": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "schema": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "boolean"
                          },
                          "type": {
                            "type": "string",
                            "const": "boolean"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "string"
                          },
                          "enum": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "type": {
                            "type": "string",
                            "const": "string"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "number"
                          },
                          "maximum": {
                            "type": "number"
                          },
                          "minimum": {
                            "type": "number"
                          },
                          "type": {
                            "type": "string",
                            "const": "number"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/SharedSchema52"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "organization",
              "schema"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "CreateAOrganizationQueryRequest": {
        "$ref": "#/components/schemas/OrganizationQueryPostPayload",
        "$schema": "https://json-schema.org/draft/2020-12/schema"
      },
      "DeleteAOrganizationMetadataPropertyResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "DeleteAOrganizationQueryResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message",
          "detail"
        ],
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetAAutoUpdateSettingsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "created": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  },
                  "ttl": {
                    "type": "number"
                  },
                  "updated": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  }
                },
                "required": [
                  "created",
                  "updated"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "config": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "release"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "beta"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "custom"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "version"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "mon",
                            "tue",
                            "wed",
                            "thu",
                            "fri",
                            "sat",
                            "sun"
                          ]
                        }
                      },
                      "time": {
                        "type": "string",
                        "pattern": "^(?<hours>[01]\\d|2[0-3]):(?<minutes>[0-5]\\d)$"
                      }
                    },
                    "required": [
                      "days",
                      "time"
                    ],
                    "additionalProperties": false
                  },
                  "versionPolicy": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "error": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "warning": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "error"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "config",
                  "enabled"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "GetAOrganizationMetadataPropertyResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "organization": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "schema": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "boolean"
                          },
                          "type": {
                            "type": "string",
                            "const": "boolean"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "string"
                          },
                          "enum": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "type": {
                            "type": "string",
                            "const": "string"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "number"
                          },
                          "maximum": {
                            "type": "number"
                          },
                          "minimum": {
                            "type": "number"
                          },
                          "type": {
                            "type": "string",
                            "const": "number"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/SharedSchema52"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "organization",
              "schema"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "GetAOrganizationUserPersonalizationSettingsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "created": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  },
                  "ttl": {
                    "type": "number"
                  },
                  "updated": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  }
                },
                "required": [
                  "created",
                  "updated"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "display": {
                    "type": "object",
                    "properties": {
                      "dataView": {
                        "default": "Card",
                        "type": "string",
                        "enum": [
                          "Grid",
                          "Card"
                        ]
                      },
                      "theme": {
                        "type": "string",
                        "enum": [
                          "Light",
                          "Dark",
                          "Default"
                        ]
                      },
                      "units": {
                        "type": "object",
                        "properties": {
                          "memory": {
                            "default": "Binary",
                            "type": "string",
                            "enum": [
                              "Binary",
                              "Decimal"
                            ]
                          },
                          "temperature": {
                            "type": "string",
                            "enum": [
                              "Celsius",
                              "Fahrenheit"
                            ]
                          }
                        },
                        "required": [
                          "memory",
                          "temperature"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "dataView",
                      "theme",
                      "units"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "display"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "GetOrganizationFeatureFlagsPublicResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "type": "object",
            "properties": {
              "effective": {
                "type": "object",
                "properties": {
                  "appleDeviceRestore": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hostComputerEndpointUsage": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hubLicenseSubscriptions": {
                    "default": false,
                    "type": "boolean"
                  },
                  "mcp": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationAnalytics": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationSso": {
                    "default": false,
                    "type": "boolean"
                  },
                  "serviceHealth": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "appleDeviceRestore",
                  "hostComputerEndpointUsage",
                  "hubLicenseSubscriptions",
                  "mcp",
                  "organizationAnalytics",
                  "organizationSso",
                  "serviceHealth",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              },
              "eligibility": {
                "type": "object",
                "properties": {
                  "appleDeviceRestore": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hostComputerEndpointUsage": {
                    "default": true,
                    "type": "boolean"
                  },
                  "hubLicenseSubscriptions": {
                    "default": false,
                    "type": "boolean"
                  },
                  "mcp": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationAnalytics": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationSso": {
                    "default": false,
                    "type": "boolean"
                  },
                  "serviceHealth": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "appleDeviceRestore",
                  "hostComputerEndpointUsage",
                  "hubLicenseSubscriptions",
                  "mcp",
                  "organizationAnalytics",
                  "organizationSso",
                  "serviceHealth",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              },
              "publicOptIns": {
                "type": "object",
                "properties": {
                  "hostComputerEndpointUsage": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "hostComputerEndpointUsage",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "effective",
              "eligibility",
              "publicOptIns"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "GetVersionResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "type": "object",
            "properties": {
              "releaseNotes": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "releaseNotes",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "ListOrganizationMetadataPropertiesResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "organization": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "default": {
                              "type": "boolean"
                            },
                            "type": {
                              "type": "string",
                              "const": "boolean"
                            }
                          },
                          "required": [
                            "default",
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "default": {
                              "type": "string"
                            },
                            "enum": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "type": {
                              "type": "string",
                              "const": "string"
                            }
                          },
                          "required": [
                            "default",
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "default": {
                              "type": "number"
                            },
                            "maximum": {
                              "type": "number"
                            },
                            "minimum": {
                              "type": "number"
                            },
                            "type": {
                              "type": "string",
                              "const": "number"
                            }
                          },
                          "required": [
                            "default",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/SharedSchema52"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "organization",
                "schema"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "OrganizationQuery": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            ]
          },
          "endpoint": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "endpoint",
          "id",
          "name",
          "organization"
        ],
        "additionalProperties": false
      },
      "OrganizationQueryPatchPayload": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            ]
          },
          "endpoint": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "additionalProperties": false
      },
      "OrganizationQueryPostPayload": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            ]
          },
          "endpoint": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "data",
          "endpoint",
          "name"
        ],
        "additionalProperties": false
      },
      "SharedSchema52": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "default": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "properties": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "default": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string",
                          "const": "boolean"
                        }
                      },
                      "required": [
                        "default",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "default": {
                          "type": "string"
                        },
                        "enum": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "string"
                        }
                      },
                      "required": [
                        "default",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "default": {
                          "type": "number"
                        },
                        "maximum": {
                          "type": "number"
                        },
                        "minimum": {
                          "type": "number"
                        },
                        "type": {
                          "type": "string",
                          "const": "number"
                        }
                      },
                      "required": [
                        "default",
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                {
                  "$ref": "#/components/schemas/SharedSchema52"
                }
              ]
            }
          },
          "type": {
            "type": "string",
            "const": "object"
          }
        },
        "required": [
          "default",
          "properties",
          "type"
        ],
        "additionalProperties": false
      },
      "UnauthorizedError": {
        "type": "object",
        "required": [
          "code",
          "message",
          "detail"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              401
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "detail": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateAAutoUpdateSettingsRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "config": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "release"
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "beta"
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "custom"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "version"
                ],
                "additionalProperties": false
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "period": {
            "type": "object",
            "properties": {
              "days": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ]
                }
              },
              "time": {
                "type": "string",
                "pattern": "^(?<hours>[01]\\d|2[0-3]):(?<minutes>[0-5]\\d)$"
              }
            },
            "required": [
              "days",
              "time"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "UpdateAAutoUpdateSettingsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "created": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  },
                  "ttl": {
                    "type": "number"
                  },
                  "updated": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  }
                },
                "required": [
                  "created",
                  "updated"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "config": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "release"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "beta"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "custom"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "version"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "mon",
                            "tue",
                            "wed",
                            "thu",
                            "fri",
                            "sat",
                            "sun"
                          ]
                        }
                      },
                      "time": {
                        "type": "string",
                        "pattern": "^(?<hours>[01]\\d|2[0-3]):(?<minutes>[0-5]\\d)$"
                      }
                    },
                    "required": [
                      "days",
                      "time"
                    ],
                    "additionalProperties": false
                  },
                  "versionPolicy": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "error": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "warning": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "error"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "config",
                  "enabled"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "UpdateAOrganizationMetadataPropertyRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "schema": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "default": {
                        "type": "boolean"
                      },
                      "type": {
                        "type": "string",
                        "const": "boolean"
                      }
                    },
                    "required": [
                      "default",
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "default": {
                        "type": "string"
                      },
                      "enum": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "type": {
                        "type": "string",
                        "const": "string"
                      }
                    },
                    "required": [
                      "default",
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "default": {
                        "type": "number"
                      },
                      "maximum": {
                        "type": "number"
                      },
                      "minimum": {
                        "type": "number"
                      },
                      "type": {
                        "type": "string",
                        "const": "number"
                      }
                    },
                    "required": [
                      "default",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              {
                "$ref": "#/components/schemas/SharedSchema52"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "UpdateAOrganizationMetadataPropertyResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "organization": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "schema": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "boolean"
                          },
                          "type": {
                            "type": "string",
                            "const": "boolean"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "string"
                          },
                          "enum": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "type": {
                            "type": "string",
                            "const": "string"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "default": {
                            "type": "number"
                          },
                          "maximum": {
                            "type": "number"
                          },
                          "minimum": {
                            "type": "number"
                          },
                          "type": {
                            "type": "string",
                            "const": "number"
                          }
                        },
                        "required": [
                          "default",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/SharedSchema52"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "organization",
              "schema"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "UpdateAOrganizationQueryRequest": {
        "$ref": "#/components/schemas/OrganizationQueryPatchPayload",
        "$schema": "https://json-schema.org/draft/2020-12/schema"
      },
      "UpdateAOrganizationUserPersonalizationSettingsRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "display": {
            "type": "object",
            "properties": {
              "dataView": {
                "default": "Card",
                "type": "string",
                "enum": [
                  "Grid",
                  "Card"
                ]
              },
              "theme": {
                "type": "string",
                "enum": [
                  "Light",
                  "Dark",
                  "Default"
                ]
              },
              "units": {
                "type": "object",
                "properties": {
                  "memory": {
                    "default": "Binary",
                    "type": "string",
                    "enum": [
                      "Binary",
                      "Decimal"
                    ]
                  },
                  "temperature": {
                    "type": "string",
                    "enum": [
                      "Celsius",
                      "Fahrenheit"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "display"
        ],
        "additionalProperties": false
      },
      "UpdateAOrganizationUserPersonalizationSettingsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "created": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  },
                  "ttl": {
                    "type": "number"
                  },
                  "updated": {
                    "$ref": "#/components/schemas/ChangeAuditSchema"
                  }
                },
                "required": [
                  "created",
                  "updated"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "display": {
                    "type": "object",
                    "properties": {
                      "dataView": {
                        "default": "Card",
                        "type": "string",
                        "enum": [
                          "Grid",
                          "Card"
                        ]
                      },
                      "theme": {
                        "type": "string",
                        "enum": [
                          "Light",
                          "Dark",
                          "Default"
                        ]
                      },
                      "units": {
                        "type": "object",
                        "properties": {
                          "memory": {
                            "default": "Binary",
                            "type": "string",
                            "enum": [
                              "Binary",
                              "Decimal"
                            ]
                          },
                          "temperature": {
                            "type": "string",
                            "enum": [
                              "Celsius",
                              "Fahrenheit"
                            ]
                          }
                        },
                        "required": [
                          "memory",
                          "temperature"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "dataView",
                      "theme",
                      "units"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "display"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      },
      "UpdatePublicOrganizationFeatureFlagsRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "publicOptIns": {
            "type": "object",
            "properties": {
              "hostComputerEndpointUsage": {
                "type": "boolean"
              },
              "usageBasedBilling": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "publicOptIns"
        ],
        "additionalProperties": false
      },
      "UpdatePublicOrganizationFeatureFlagsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "_metadata": {
            "type": "object",
            "properties": {
              "continuationToken": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "additionalProperties": false,
            "description": "Metadata for paginated responses. This includes total count, limit, and continuation token.",
            "title": "Connect API Response Metadata"
          },
          "result": {
            "type": "object",
            "properties": {
              "effective": {
                "type": "object",
                "properties": {
                  "appleDeviceRestore": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hostComputerEndpointUsage": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hubLicenseSubscriptions": {
                    "default": false,
                    "type": "boolean"
                  },
                  "mcp": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationAnalytics": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationSso": {
                    "default": false,
                    "type": "boolean"
                  },
                  "serviceHealth": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "appleDeviceRestore",
                  "hostComputerEndpointUsage",
                  "hubLicenseSubscriptions",
                  "mcp",
                  "organizationAnalytics",
                  "organizationSso",
                  "serviceHealth",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              },
              "eligibility": {
                "type": "object",
                "properties": {
                  "appleDeviceRestore": {
                    "default": false,
                    "type": "boolean"
                  },
                  "hostComputerEndpointUsage": {
                    "default": true,
                    "type": "boolean"
                  },
                  "hubLicenseSubscriptions": {
                    "default": false,
                    "type": "boolean"
                  },
                  "mcp": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationAnalytics": {
                    "default": false,
                    "type": "boolean"
                  },
                  "organizationSso": {
                    "default": false,
                    "type": "boolean"
                  },
                  "serviceHealth": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "appleDeviceRestore",
                  "hostComputerEndpointUsage",
                  "hubLicenseSubscriptions",
                  "mcp",
                  "organizationAnalytics",
                  "organizationSso",
                  "serviceHealth",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              },
              "publicOptIns": {
                "type": "object",
                "properties": {
                  "hostComputerEndpointUsage": {
                    "default": false,
                    "type": "boolean"
                  },
                  "usageBasedBilling": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "hostComputerEndpointUsage",
                  "usageBasedBilling"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "effective",
              "eligibility",
              "publicOptIns"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "result"
        ],
        "additionalProperties": false
      }
    },
    "responses": {
      "Error": {
        "description": "Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ForbiddenError": {
        "description": "Forbidden: the token is valid but does not allow this request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "UnauthorizedError": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/UnauthorizedError"
            }
          }
        }
      }
    }
  }
}
