{
  "openapi": "3.0.4",
  "info": {
    "title": "Reply CMP REST API",
    "version": "1",
    "description": "REST API of Reply CMP for API integrations that authenticate with the tenant service account. It contains only the operations a tenant service account can call; access to each operation also depends on the Reply CMP roles assigned to the service account."
  },
  "servers": [
    {
      "url": "https://apis.welkincmp.com"
    }
  ],
  "security": [
    {
      "serviceAccount": []
    }
  ],
  "tags": [
    {
      "name": "Discovery: Resources"
    },
    {
      "name": "Discovery: Inventory refresh"
    },
    {
      "name": "FinOps: Costs"
    },
    {
      "name": "FinOps: Cost spike alerts"
    },
    {
      "name": "FinOps: Allocation groups"
    },
    {
      "name": "FinOps: Budgets"
    },
    {
      "name": "FinOps: Allocation coverage"
    },
    {
      "name": "FinOps: Optimization score"
    },
    {
      "name": "FinOps: Scheduled reports"
    },
    {
      "name": "FinOps: Tagging"
    },
    {
      "name": "Automation: Policies"
    },
    {
      "name": "Monitoring: Metric queries"
    },
    {
      "name": "Monitoring: Dashboards"
    },
    {
      "name": "Monitoring: Alert rules"
    },
    {
      "name": "Provisioning: Deployments"
    },
    {
      "name": "Provisioning: Deployment resources"
    },
    {
      "name": "Provisioning: Module registry"
    },
    {
      "name": "Tenant: Tenant"
    },
    {
      "name": "Tenant: Quotas and rate limits"
    },
    {
      "name": "Tenant: Cloud connections"
    },
    {
      "name": "Tenant: Users"
    },
    {
      "name": "Tenant: Roles and permissions"
    },
    {
      "name": "Tenant: Webhooks"
    }
  ],
  "paths": {
    "/discovery/resource": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourcesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List discovered resources",
        "description": "Returns the resources of the tenant inventory across all connections, with filtering, sorting and paging.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/types": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "summary": "Search supported resource types",
        "description": "Lists provider and resource type pairs known to Reply CMP. This is the supported-type catalog, not the tenant inventory.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourceTypesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": []
      }
    },
    "/discovery/resource/map": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "summary": "Browse the resource inventory map",
        "description": "Returns one aggregated level of the inventory hierarchy. The filters of the resource list apply to every level.",
        "operationId": "IndexResourceMap",
        "parameters": [
          {
            "name": "Level",
            "in": "query",
            "description": "Hierarchy level to return. Each request returns only one level.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DiscoveryMapLevel"
            }
          },
          {
            "name": "Provider",
            "in": "query",
            "description": "Parent provider. Required when requesting connections.",
            "schema": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          {
            "name": "ConnectionId",
            "in": "query",
            "description": "Parent connection identifier. Required from the category level onwards.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "description": "Parent category. Use 'uncategorized' for resources without a category.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ResourceType",
            "in": "query",
            "description": "Parent resource type. Required when requesting resources.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "description": "Sieve filters shared with the Discovery grid.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "description": "Maximum number of resource nodes returned at the leaf level (1-200).",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryMapResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/regex": {
      "post": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegexSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourcesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "List resources matching regular expressions",
        "description": "Returns the resources whose properties match the regular expressions in the request body.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/{id}": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "operationId": "GetDiscoveredResourceById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDiscoveredResourceResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a discovered resource",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/events": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourceEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List inventory change events",
        "description": "Returns the change history of discovered resources.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/tag": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericListResponseOfstring"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List tag keys",
        "description": "Returns the tag keys used across the tenant inventory.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/tag/{key}": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "[^<>%&\\\\?/:]+",
              "type": "string"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericListResponseOfstring"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List values of a tag key",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/search": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ranked",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResourcesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Search resources",
        "description": "Full-text search over names and properties of discovered resources.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/{id}/rollback": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RollbackSuggestionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get rollback suggestions for a resource",
        "description": "Suggests how to revert the latest configuration changes of a resource.",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/resource/{id}/graph": {
      "get": {
        "tags": [
          "Discovery: Resources"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "schema": {
              "format": "int32",
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceGraphResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the relationship graph of a resource",
        "x-cmp-permissions": [
          "Discovery.Resource/Read"
        ]
      }
    },
    "/discovery/connection/{connectionId}": {
      "put": {
        "tags": [
          "Discovery: Inventory refresh"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Request an inventory refresh",
        "description": "Schedules a new discovery run for a cloud connection. The refresh runs asynchronously.\n\nResponse 202: The refresh is scheduled.",
        "x-cmp-permissions": [
          "Discovery.Resource/Write"
        ]
      }
    },
    "/finops/cost/info/{connectionId}": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionFinOpsInfoEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get cost data status of a connection",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/info": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListConnectionsInfoResponse"
                }
              }
            }
          }
        },
        "summary": "List cost data status of all connections",
        "description": "Returns, for each connection, the cost data availability and the time of the latest ingestion.",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/ingest/{connectionId}": {
      "post": {
        "tags": [
          "FinOps: Costs"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Request cost data ingestion",
        "description": "Starts a new ingestion of cost data for a connection.",
        "x-cmp-permissions": [
          "FinOps.Cost/Write"
        ]
      }
    },
    "/finops/cost/query": {
      "post": {
        "tags": [
          "FinOps: Costs"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryInput"
              },
              "example": {
                "type": "Actual",
                "timeFrame": "PreviousMonth",
                "granularity": "Monthly",
                "currency": "DefaultForTenant",
                "dataset": {
                  "select": [
                    "Provider",
                    "ConnectionName"
                  ],
                  "groupBy": [
                    "Provider",
                    "ConnectionName"
                  ],
                  "filter": {
                    "and": [
                      {
                        "column": "Provider",
                        "operator": "Equals",
                        "values": [
                          "Azure",
                          "AWS"
                        ]
                      },
                      {
                        "column": "Cost",
                        "operator": "GreaterThan",
                        "values": [
                          "100"
                        ]
                      }
                    ]
                  },
                  "costGroupingOperator": "Sum"
                },
                "k": {
                  "value": 10,
                  "ordering": "Descending"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Query costs",
        "description": "Aggregates actual or amortized costs over a time frame, with optional grouping, filters, granularity, top-K selection and forecast. This is the query behind the cost analysis views of the portal.\n\nResponse 200: A JSON object with `currency`, `dataStart` and `dataEnd` (the period covered by the available data) and `data`, the result rows: one row per combination of the `groupBy` columns (and time bucket, with a granularity) with the selected columns and the cost.",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/reservations": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListReservationsResponse"
                }
              }
            }
          }
        },
        "summary": "List reservations and commitments",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/reservations/{id}/resources": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "summary": "List the resources whose usage a reservation, Savings Plan or commitment covered",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReservationCoveredResourcesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/metered-resource-types": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "summary": "List resource types with meter-level cost breakdown",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceType"
                  }
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/cost/hidden-costs": {
      "get": {
        "tags": [
          "FinOps: Costs"
        ],
        "summary": "Summarize hidden costs",
        "parameters": [
          {
            "name": "timeFrame",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/QueryInputTimeFrame"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/QueryInputType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HiddenCostsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "description": "Summarizes security, observability, backup, networking and support costs for a period.",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/spike-alert-settings": {
      "get": {
        "tags": [
          "FinOps: Cost spike alerts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostSpikeAlertSettingsEntry"
                }
              }
            }
          }
        },
        "summary": "Get cost spike alert settings",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      },
      "put": {
        "tags": [
          "FinOps: Cost spike alerts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCostSpikeAlertSettingsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostSpikeAlertSettingsEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update cost spike alert settings",
        "x-cmp-permissions": [
          "FinOps.Cost/Write"
        ]
      }
    },
    "/finops/allocation/grouping-options": {
      "put": {
        "tags": [
          "FinOps: Allocation groups"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditGroupingOptionsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Update allocation grouping options",
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/groups": {
      "get": {
        "tags": [
          "FinOps: Allocation groups"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexGroupsResponse"
                }
              }
            }
          }
        },
        "summary": "List allocation groups",
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      },
      "post": {
        "tags": [
          "FinOps: Allocation groups"
        ],
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditGroupRulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchedDiscoveredResourceEntry"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Preview resources matched by allocation rules",
        "description": "Returns the resources that the allocation rules in the request body would assign to a group, without saving them.",
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/groups/{groupId}/rules": {
      "put": {
        "tags": [
          "FinOps: Allocation groups"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditGroupRulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Update the rules of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/groups/{groupId}/owner": {
      "put": {
        "tags": [
          "FinOps: Allocation groups"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditGroupOwnerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Set the owner of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Write",
          "Onboarding.User/Read"
        ]
      }
    },
    "/finops/allocation/groups/{groupId}/budget": {
      "get": {
        "tags": [
          "FinOps: Budgets"
        ],
        "operationId": "GetBudgetDetail",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BudgetDetailEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the budget of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Budget/Read"
        ]
      },
      "post": {
        "tags": [
          "FinOps: Budgets"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddBudgetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BudgetDetailEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create the budget of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Budget/Write"
        ]
      },
      "put": {
        "tags": [
          "FinOps: Budgets"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditBudgetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Update the budget of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Budget/Write"
        ]
      },
      "delete": {
        "tags": [
          "FinOps: Budgets"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete the budget of an allocation group",
        "x-cmp-permissions": [
          "FinOps.Budget/Delete"
        ]
      }
    },
    "/finops/allocation/groups/{groupId}/budget/suggestion": {
      "get": {
        "tags": [
          "FinOps: Budgets"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BudgetSuggestion"
                }
              }
            }
          }
        },
        "summary": "Get a suggested budget for an allocation group",
        "description": "Suggests a budget amount from the historical and forecast costs of the group.",
        "x-cmp-permissions": [
          "FinOps.Budget/Read"
        ]
      }
    },
    "/finops/benchmarks/resources-without-group/count": {
      "get": {
        "tags": [
          "FinOps: Allocation coverage"
        ],
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcesWithoutGroupCountResult"
                }
              }
            }
          }
        },
        "summary": "Count resources without an allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Read",
          "Discovery.Resource/Read"
        ]
      }
    },
    "/finops/benchmarks/resources-without-group": {
      "post": {
        "tags": [
          "FinOps: Allocation coverage"
        ],
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginateResourcesWithoutGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceWithoutGroupItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "List resources without an allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Read",
          "Discovery.Resource/Read"
        ]
      }
    },
    "/finops/benchmarks/resources-in-multiple-groups/count": {
      "get": {
        "tags": [
          "FinOps: Allocation coverage"
        ],
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcesInMultipleGroupsCountResult"
                }
              }
            }
          }
        },
        "summary": "Count resources in more than one allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Read",
          "Discovery.Resource/Read"
        ]
      }
    },
    "/finops/benchmarks/resources-in-multiple-groups": {
      "get": {
        "tags": [
          "FinOps: Allocation coverage"
        ],
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceInMultipleGroupsItem"
                  }
                }
              }
            }
          }
        },
        "summary": "List resources in more than one allocation group",
        "x-cmp-permissions": [
          "FinOps.Allocation/Read",
          "Discovery.Resource/Read"
        ]
      }
    },
    "/finops/optimization-score": {
      "get": {
        "tags": [
          "FinOps: Optimization score"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationScoreSummary"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the optimization score",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/optimization-score/resources": {
      "get": {
        "tags": [
          "FinOps: Optimization score"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/OptimizationScoreResourceSort"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationScoreResourcePage"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List resources assessed by the optimization score",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/optimization-score/history": {
      "get": {
        "tags": [
          "FinOps: Optimization score"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OptimizationScoreHistoryPoint"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the optimization score history",
        "x-cmp-permissions": [
          "FinOps.Cost/Read"
        ]
      }
    },
    "/finops/report": {
      "get": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListReportsResponse"
                }
              }
            }
          }
        },
        "summary": "List scheduled reports",
        "x-cmp-permissions": [
          "FinOps.Report/Read"
        ]
      },
      "post": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReportRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create a scheduled report",
        "x-cmp-permissions": [
          "FinOps.Report/Write"
        ]
      }
    },
    "/finops/report/{id}": {
      "get": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "operationId": "GetReportById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReportResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a scheduled report",
        "x-cmp-permissions": [
          "FinOps.Report/Read"
        ]
      },
      "put": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReportRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update a scheduled report",
        "x-cmp-permissions": [
          "FinOps.Report/Write"
        ]
      },
      "delete": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a scheduled report",
        "x-cmp-permissions": [
          "FinOps.Report/Delete"
        ]
      }
    },
    "/finops/report/{id}/trigger": {
      "post": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TriggerReportRequestBody"
                  }
                ],
                "nullable": true
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Send a scheduled report now",
        "description": "Generates and delivers the report immediately, outside its schedule.",
        "x-cmp-permissions": [
          "FinOps.Report/Write"
        ]
      }
    },
    "/finops/report/events": {
      "get": {
        "tags": [
          "FinOps: Scheduled reports"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListReportEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List report audit events",
        "x-cmp-permissions": [
          "FinOps.Report/Read"
        ]
      }
    },
    "/finops/allocation/tagging/assessment": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Assess the raw tags of the tenant inventory",
        "description": "Per tag key: active resources covered, share of the last-30-day resource cost, distinct and top values, and groups of keys that look like spelling variants of the same dimension.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingAssessment"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      }
    },
    "/finops/allocation/tagging/convention": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Get the tenant tagging convention and its last compliance evaluation",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingConventionEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      },
      "put": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Create or replace the tenant tagging convention",
        "description": "Validates and stores the convention, materializes the normalized tags and returns the compliance summary. No cloud tag is changed.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaggingConventionInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingConventionEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      },
      "delete": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Delete the tenant tagging convention and its normalized tags",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/tagging/convention/suggestion": {
      "post": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Generate a draft tagging convention with AI",
        "description": "Drafts canonical keys, accepted spellings, allowed values and inference rules from the tags and naming of the inventory. Nothing is persisted. Returns 503 when the model gives no valid convention in time.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingConventionSuggestion"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/tagging/convention/preview": {
      "post": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Evaluate a draft tagging convention without saving it",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaggingConventionInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingEvaluationSummary"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/tagging/resources": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "List active resources by normalized-tag status for one canonical key",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/TaggingResourceStatus"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTaggingResourcesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      }
    },
    "/finops/allocation/tagging/remediation": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Export commands that write normalized tags back to the clouds",
        "description": "CSV for every provider, Azure CLI or AWS CLI scripts. Reply CMP never runs them; customers execute them with their own credentials.",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/TaggingRemediationFormat"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      }
    },
    "/finops/allocation/tagging/cloud-changes": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "List resources whose normalized tags differ from their cloud tags",
        "description": "Grouped per resource, with the connection and whether it is read-write (writable). Filter by canonical key and resource name.",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTaggingCloudChangesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      }
    },
    "/finops/allocation/tagging/cloud-changes/runs": {
      "post": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Start writing normalized tags to the clouds in the background",
        "description": "Writes explicit resourceIds (up to 1000) or every pending resource matching the filters, in batches of 100 processed by the FunctionApp; read the progress with runs/latest. Only read-write connections are written; others are reported as skipped. Existing tags are preserved; removeReplacedKeys also deletes the alias keys replaced by canonical keys. GCP labels are supported on Compute Engine instances, disks, images and snapshots and on Cloud Storage buckets. 409 while another run of the tenant is queued or running.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaggingCloudWriteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingWriteRunEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/finops/allocation/tagging/cloud-changes/runs/latest": {
      "get": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Progress of the most recent write to the clouds",
        "description": "Status, counts and the resources that were not written with the reason (at most 500). 404 when the tenant never wrote tags.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingWriteRunEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Read"
        ]
      }
    },
    "/finops/allocation/tagging/cloud-changes/runs/{runId}/stop": {
      "post": {
        "tags": [
          "FinOps: Tagging"
        ],
        "summary": "Stop a write to the clouds",
        "description": "The run stops after the batch in progress; what was written stays written.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingWriteRunEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "FinOps.Allocation/Write"
        ]
      }
    },
    "/automation/policies/definitions/{policyId}": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyVersionEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a policy definition",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/definitions/{policyId}/versions": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexPolicyVersionsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List versions of a policy definition",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/definitions": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexPoliciesResponse"
                }
              }
            }
          }
        },
        "summary": "List policy definitions",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/instances": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          },
          {
            "name": "lifetime",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/PolicyLifetime"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexPolicyInstancesResponse"
                }
              }
            }
          }
        },
        "summary": "List policies",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      },
      "post": {
        "tags": [
          "Automation: Policies"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPolicyInstanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      }
    },
    "/automation/policies/jobs": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "operationId": "ListPolicyJobs",
        "parameters": [
          {
            "name": "lifetime",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/PolicyLifetime"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexPolicyInstanceJobsResponse"
                }
              }
            }
          }
        },
        "summary": "List policy runs",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyInstanceEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      },
      "put": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditPolicyInstanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      },
      "delete": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Delete"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/jobs": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexPolicyInstanceJobsResponse"
                }
              }
            }
          }
        },
        "summary": "List runs of a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/events": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListPolicyEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List policy audit events",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/events": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListPolicyInstanceEventsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List audit events of a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/toggle": {
      "put": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Enable or disable a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/trigger": {
      "put": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dryRun",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Run a policy now",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/approvals": {
      "get": {
        "tags": [
          "Automation: Policies"
        ],
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyInstanceApprovalEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List pending approvals of a policy",
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Read"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/approvals/{batchId}/approve": {
      "put": {
        "tags": [
          "Automation: Policies"
        ],
        "summary": "Approve a batch of policy actions",
        "operationId": "ApprovePolicyCandidateBatch",
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      }
    },
    "/automation/policies/instances/{policyInstanceId}/approvals/{batchId}/reject": {
      "put": {
        "tags": [
          "Automation: Policies"
        ],
        "summary": "Reject a batch of policy actions",
        "operationId": "RejectPolicyCandidateBatch",
        "parameters": [
          {
            "name": "policyInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Automation.PolicyInstance/Write"
        ]
      }
    },
    "/monitoring/query/execute": {
      "post": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteWidgetQueryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MonitoringQueryResult"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Run metric queries",
        "description": "Runs one or more metric queries against the provider monitoring APIs.",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/namespaces": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetricNamespaceEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List metric namespaces",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/metrics": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricNamespace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetricEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List metrics of a namespace",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/workspaces": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List log workspaces",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/dimensions": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricNamespace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metricName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List dimensions of a metric",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/dimension-values": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricNamespace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metricName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dimension",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List values of a metric dimension",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/query/{connectionId}/resources": {
      "get": {
        "tags": [
          "Monitoring: Metric queries"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricNamespace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List resources with metrics",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/dashboard": {
      "get": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMonitoringDashboardsResponse"
                }
              }
            }
          }
        },
        "summary": "List monitoring dashboards",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      },
      "post": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMonitoringDashboardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitoringDashboardEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create a monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Write"
        ]
      }
    },
    "/monitoring/dashboard/{dashboardId}": {
      "get": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitoringDashboardEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      },
      "put": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMonitoringDashboardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitoringDashboardEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update a monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Write"
        ]
      },
      "delete": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Delete"
        ]
      }
    },
    "/monitoring/dashboard/{dashboardId}/default": {
      "put": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Set the default monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Write"
        ]
      },
      "delete": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Unset the default monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Write"
        ]
      }
    },
    "/monitoring/dashboard/{dashboardId}/export": {
      "get": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "dashboardId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Export a monitoring dashboard",
        "description": "Response 200: The dashboard definition as a JSON file, which the import operation accepts.",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/dashboard/import": {
      "post": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyCmpDashboardFile"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitoringDashboardEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Import a monitoring dashboard",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Write"
        ]
      }
    },
    "/monitoring/dashboard/events": {
      "get": {
        "tags": [
          "Monitoring: Dashboards"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMonitoringDashboardEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List monitoring dashboard audit events",
        "x-cmp-permissions": [
          "Monitoring.MonitoringDashboard/Read"
        ]
      }
    },
    "/monitoring/alert-rules": {
      "get": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AlertRuleEntry"
                  }
                }
              }
            }
          }
        },
        "summary": "List alert rules",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Read"
        ]
      },
      "post": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAlertRuleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertRuleEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Create an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Write"
        ]
      }
    },
    "/monitoring/alert-rules/{id}": {
      "get": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertRuleEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Read"
        ]
      },
      "put": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertRuleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertRuleEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Update an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Write"
        ]
      },
      "delete": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Delete an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Delete"
        ]
      }
    },
    "/monitoring/alert-rules/{id}/enabled": {
      "put": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleAlertRuleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertRuleEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Enable or disable an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Write"
        ]
      }
    },
    "/monitoring/alert-rules/{id}/history": {
      "get": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MonitoringAlertHistoryEntry"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the evaluation history of an alert rule",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Read"
        ]
      }
    },
    "/monitoring/alert-rules/{id}/evaluate": {
      "post": {
        "tags": [
          "Monitoring: Alert rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertRuleEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Evaluate an alert rule now",
        "x-cmp-permissions": [
          "Monitoring.AlertRule/Write"
        ]
      }
    },
    "/provisioning/deployment/claim-identity": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Get the tenant provisioning claim identity used by runners",
        "description": "Returns the secretless Microsoft Entra identity that tenant runners use to authenticate to Reply CMP. It is separate from the tenant API service account.",
        "operationId": "GetClaimIdentity",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningClaimIdentityResponse"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      },
      "post": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Create or repair the tenant provisioning claim identity used by runners",
        "description": "Idempotently creates the secretless tenant runner app registration and assigns the Provisioning.Runner application role.",
        "operationId": "EnsureClaimIdentity",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningClaimIdentityResponse"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDeploymentsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List deployments",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      },
      "post": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDeploymentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDeploymentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment/{id}/apply": {
      "put": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dryRun",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Apply a deployment",
        "description": "Starts a plan and apply of the deployment on its configured runner. The operation runs asynchronously; follow it with the operations of the deployment.\n\nResponse 202: The operation is queued.",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Apply"
        ]
      }
    },
    "/provisioning/deployment/{id}": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "operationId": "GetDeploymentById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDeploymentResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      },
      "delete": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Delete"
        ]
      }
    },
    "/provisioning/deployment/search": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ranked",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchDeploymentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Search deployments",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/events": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDeploymentEventsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "List deployment audit events",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/{id}/connection": {
      "put": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkConnectionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Link a cloud connection to a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "operationId": "GetExecutionConfiguration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentExecutionConfigurationEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the runner configuration of a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      },
      "put": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "operationId": "ConfigureExecution",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureExecutionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentExecutionConfigurationEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Configure the runner of a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/options/azure-devops": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Discover Azure DevOps runner options",
        "description": "Lists the organizations, projects, pipelines and service connections available to the selected tenant credential.",
        "operationId": "DiscoverAzureDevOpsExecutionOptions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "credentialId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AzureDevOpsExecutionOptionsEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/callback-connections/azure-devops": {
      "post": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Create or repair the Azure DevOps callback connection",
        "description": "Idempotently creates the workload identity service connection that the runner pipeline uses to authenticate to Reply CMP.",
        "operationId": "EnsureAzureDevOpsCallbackConnection",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnsureAzureDevOpsCallbackConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AzureDevOpsCallbackConnectionEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/callback-environments/github": {
      "post": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Create or verify the GitHub callback environment",
        "description": "Reuses or creates the protected GitHub environment that the runner workflow uses to authenticate to Reply CMP, restricted to the selected branch.",
        "operationId": "EnsureGitHubCallbackEnvironment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnsureGitHubCallbackEnvironmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubCallbackEnvironmentEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Write"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/options/github": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Discover GitHub runner options",
        "description": "Lists the repositories, workflows, refs and environments available to the selected tenant credential.",
        "operationId": "DiscoverGitHubExecutionOptions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "credentialId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "repository",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubExecutionOptionsEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/options/azure-state": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Discover existing Azure state storage",
        "description": "Lists resource groups, storage accounts and containers available through a cloud connection. Blob content is never read.",
        "operationId": "DiscoverAzureStateStorageOptions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connectionId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resourceGroup",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "storageAccount",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AzureStateStorageOptionsEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/{id}/execution/validate-azure-state": {
      "post": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "summary": "Validate existing Azure state storage",
        "description": "Checks the selected storage account and container against the Terraform state protections required by Reply CMP.",
        "operationId": "ValidateAzureStateStorage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateAzureStateStorageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AzureStateStorageValidationEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/{id}/operations": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "operationId": "IndexOperations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListProvisioningOperationsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List operations of a deployment",
        "x-cmp-permissions": [
          "Provisioning.Deployment/Read"
        ]
      }
    },
    "/provisioning/deployment/policies": {
      "get": {
        "tags": [
          "Provisioning: Deployments"
        ],
        "operationId": "IndexPolicyRules",
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListProvisioningPolicyRulesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "List guardrails",
        "x-cmp-permissions": [
          "Provisioning.Guardrail/Read"
        ]
      }
    },
    "/provisioning/resource": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourcesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List deployment resources",
        "x-cmp-permissions": [
          "Provisioning.Resource/Read"
        ]
      },
      "post": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateResourceRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Add a resource to a deployment",
        "x-cmp-permissions": [
          "Provisioning.Resource/Write"
        ]
      }
    },
    "/provisioning/resource/{id}": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "operationId": "GetResourceById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a deployment resource",
        "x-cmp-permissions": [
          "Provisioning.Resource/Read"
        ]
      },
      "put": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResourceRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update a deployment resource",
        "x-cmp-permissions": [
          "Provisioning.Resource/Write"
        ]
      },
      "delete": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Remove a resource from a deployment",
        "x-cmp-permissions": [
          "Provisioning.Resource/Delete"
        ]
      }
    },
    "/provisioning/resource/{id}/rollback": {
      "put": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Roll back a deployment resource",
        "description": "Restores the configuration of the resource to a previous version.",
        "x-cmp-permissions": [
          "Provisioning.Resource/Write"
        ]
      }
    },
    "/provisioning/resource/search": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ranked",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourcesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Search deployment resources",
        "x-cmp-permissions": [
          "Provisioning.Resource/Read"
        ]
      }
    },
    "/provisioning/resource/reference-options": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "summary": "List compatible resources in the same deployment",
        "description": "Returns the outputs of other resources in the deployment that are type-compatible with a module input.",
        "operationId": "GetReferenceOptions",
        "parameters": [
          {
            "name": "deploymentId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "catalogItemVersionId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inputName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currentResourceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resourceRegion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourceReferenceOptionsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Resource/Read"
        ]
      }
    },
    "/provisioning/resource/discovery-reference-options": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "summary": "List compatible discovered resources",
        "description": "Returns active discovered resources, reachable through the cloud connections of the deployment, that can be referenced by a module input.",
        "operationId": "GetDiscoveryReferenceOptions",
        "parameters": [
          {
            "name": "deploymentId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "catalogItemVersionId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inputName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currentResourceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resourceRegion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "selectedDiscoveredResourceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "selectedProviderGivenId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDiscoveryResourceReferenceOptionsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Resource/Read",
          "Discovery.Resource/Read"
        ]
      }
    },
    "/provisioning/resource/events": {
      "get": {
        "tags": [
          "Provisioning: Deployment resources"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResourceEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List deployment resource audit events",
        "x-cmp-permissions": [
          "Provisioning.Resource/Read"
        ]
      }
    },
    "/provisioning/catalog/registrations": {
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Register a module",
        "description": "Registers a tenant-owned Terraform module from a GitHub or Azure DevOps repository and an optional module path.",
        "operationId": "RegisterCatalogItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterCatalogItemRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCatalogItemResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      }
    },
    "/provisioning/catalog/{id}": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "operationId": "GetCatalogItemById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCatalogItemResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a module",
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      },
      "put": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Update a module registration",
        "description": "Updates the source of a tenant-owned module before its first version is submitted.",
        "operationId": "UpdateCatalogItemRegistration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCatalogItemRegistrationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCatalogItemResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      },
      "delete": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "operationId": "DeleteCatalogItem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a module",
        "x-cmp-permissions": [
          "Provisioning.Catalog/Delete"
        ]
      }
    },
    "/provisioning/catalog/credentials": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "List registry credentials",
        "description": "Returns credential metadata only. Secret values are never returned.",
        "operationId": "IndexCredentials",
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCredentialsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      },
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Create a registry credential",
        "description": "Stores the credential value in the secret store of the tenant. The value is never returned.",
        "operationId": "CreateCredential",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCredentialRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      }
    },
    "/provisioning/catalog/credentials/{id}": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Get a registry credential",
        "description": "Returns credential metadata and rotation status without the secret value.",
        "operationId": "GetCredential",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      },
      "put": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Update a registry credential",
        "description": "Updates metadata only. Use the rotate operation to replace the value.",
        "operationId": "UpdateCredential",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCredentialRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      },
      "delete": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Delete a registry credential",
        "description": "Deletes a credential that no module registration or deployment runner references.",
        "operationId": "DeleteCredential",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Delete"
        ]
      }
    },
    "/provisioning/catalog/credentials/{id}/rotate": {
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Rotate a registry credential",
        "description": "Replaces the credential value.",
        "operationId": "RotateCredential",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateCredentialRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      }
    },
    "/provisioning/catalog/credentials/{id}/revoke": {
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Revoke a registry credential",
        "description": "Deletes the credential value and permanently marks the credential as revoked.",
        "operationId": "RevokeCredential",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Delete"
        ]
      }
    },
    "/provisioning/catalog/{catalogItemId}/versions": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "List module versions",
        "description": "Lists version metadata visible to the current tenant; private artifact keys are never returned.",
        "operationId": "IndexVersions",
        "parameters": [
          {
            "name": "catalogItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListVersionsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      },
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Submit a module version from an archive",
        "description": "Validates an uploaded ZIP archive without running Terraform and submits it for approval.",
        "operationId": "CreateVersion",
        "parameters": [
          {
            "name": "catalogItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateCatalogItemVersionForm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      }
    },
    "/provisioning/catalog/{catalogItemId}/versions/from-source": {
      "post": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Submit a module version from its repository",
        "description": "Resolves a ref of the registered repository to a commit, downloads that commit and submits it for approval.",
        "operationId": "CreateVersionFromSource",
        "parameters": [
          {
            "name": "catalogItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCatalogItemVersionFromSourceRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Write"
        ]
      }
    },
    "/provisioning/catalog/versions/{id}": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "summary": "Get a module version",
        "description": "Returns validation and lifecycle metadata without exposing the private artifact key.",
        "operationId": "GetVersion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      }
    },
    "/provisioning/catalog": {
      "get": {
        "tags": [
          "Provisioning: Module registry"
        ],
        "operationId": "IndexCatalogItems",
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          },
          {
            "name": "deployableOnly",
            "in": "query",
            "description": "When true, returns only active modules with an approved version in the same ownership scope.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCatalogItemsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List modules",
        "x-cmp-permissions": [
          "Provisioning.Catalog/Read"
        ]
      }
    },
    "/onboarding/tenant/{id}": {
      "get": {
        "tags": [
          "Tenant: Tenant"
        ],
        "operationId": "GetTenantById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTenantResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the tenant",
        "x-cmp-permissions": [
          "Onboarding.Tenant/Read"
        ]
      }
    },
    "/onboarding/tenant/advisor": {
      "get": {
        "tags": [
          "Tenant: Tenant"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListRecommendationsResponse"
                }
              }
            }
          }
        },
        "summary": "List advisor recommendations",
        "x-cmp-permissions": [
          "Onboarding.Tenant/Read"
        ]
      }
    },
    "/onboarding/tenant/events": {
      "get": {
        "tags": [
          "Tenant: Tenant"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTenantEventsResponse"
                }
              }
            }
          }
        },
        "summary": "List tenant audit events",
        "x-cmp-permissions": [
          "Onboarding.Tenant/Read"
        ]
      }
    },
    "/onboarding/tenant/{tenantId}/quota": {
      "get": {
        "tags": [
          "Tenant: Quotas and rate limits"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantQuotaInfo"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get the tenant quotas",
        "x-cmp-permissions": [
          "Onboarding.Tenant/Read"
        ]
      }
    },
    "/onboarding/tenant/{tenantId}/quota/request-increase": {
      "post": {
        "tags": [
          "Tenant: Quotas and rate limits"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuotaIncreaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Request a quota increase",
        "x-cmp-permissions": [
          "Onboarding.Tenant/Write"
        ]
      }
    },
    "/onboarding/tenant/{tenantId}/quota/rate-limits": {
      "get": {
        "tags": [
          "Tenant: Quotas and rate limits"
        ],
        "summary": "Get the tenant rate limits",
        "description": "Returns the rate limits applied per caller: API requests per user and for the tenant service account, CMP Agent messages and AI report design turns.",
        "operationId": "GetTenantRateLimits",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantRateLimitsInfo"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "x-cmp-permissions": [
          "Onboarding.Tenant/Read"
        ]
      }
    },
    "/onboarding/connection": {
      "get": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListConnectionsResponse"
                }
              }
            }
          }
        },
        "summary": "List cloud connections",
        "x-cmp-permissions": [
          "Onboarding.Connection/Read"
        ]
      },
      "post": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict"
          }
        },
        "summary": "Create a cloud connection",
        "x-cmp-permissions": [
          "Onboarding.Connection/Write"
        ]
      }
    },
    "/onboarding/connection/{id}/secret": {
      "put": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditConnectionSecretRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Update the secret of a cloud connection",
        "description": "Replaces the stored secret and optionally sets or clears the connection's future `expirationDate` (omit or pass `null` for no expiration).",
        "x-cmp-permissions": [
          "Onboarding.Connection/Write"
        ]
      }
    },
    "/onboarding/connection/{id}/permissions": {
      "put": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Switch a cloud connection between read-only and read-write",
        "description": "Refused with `409` while a deployment that uses the connection has an apply in progress.",
        "x-cmp-permissions": [
          "Onboarding.Connection/Write"
        ]
      }
    },
    "/onboarding/connection/{id}": {
      "get": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "operationId": "GetConnectionById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a cloud connection",
        "x-cmp-permissions": [
          "Onboarding.Connection/Read"
        ]
      },
      "delete": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a cloud connection",
        "x-cmp-permissions": [
          "Onboarding.Connection/Delete"
        ]
      }
    },
    "/onboarding/connection/events": {
      "get": {
        "tags": [
          "Tenant: Cloud connections"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListConnectionsEvents"
                }
              }
            }
          }
        },
        "summary": "List cloud connection audit events",
        "x-cmp-permissions": [
          "Onboarding.Connection/Read"
        ]
      }
    },
    "/onboarding/user/{id}": {
      "get": {
        "tags": [
          "Tenant: Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a user",
        "x-cmp-permissions": [
          "Onboarding.User/Read"
        ]
      }
    },
    "/onboarding/user": {
      "get": {
        "tags": [
          "Tenant: Users"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListUsersResponse"
                }
              }
            }
          }
        },
        "summary": "List users",
        "x-cmp-permissions": [
          "Onboarding.User/Read"
        ]
      }
    },
    "/onboarding/authorization/assignments": {
      "get": {
        "tags": [
          "Tenant: Roles and permissions"
        ],
        "parameters": [
          {
            "name": "Filters",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter expression, for example `name@=prod`. See [Filtering, sorting and paging](https://docs.welkincmp.com/reference/api/index.html#filtering-sorting-and-paging)."
          },
          {
            "name": "Sorts",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated sort fields; prefix a field with `-` for descending order."
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Page number, starting at 1."
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "format": "int32",
              "type": "integer"
            },
            "description": "Number of items per page, 25 by default and at most 100."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAssignmentsResponse"
                }
              }
            }
          }
        },
        "summary": "List role assignments",
        "x-cmp-permissions": [
          "Onboarding.Authorization/Read"
        ]
      }
    },
    "/onboarding/authorization/permissions/{userId}": {
      "get": {
        "tags": [
          "Tenant: Roles and permissions"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "List the permissions of a user",
        "x-cmp-permissions": [
          "Onboarding.Authorization/Read"
        ]
      }
    },
    "/onboarding/authorization/assignments/me/permissions": {
      "get": {
        "tags": [
          "Tenant: Roles and permissions"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMyPermissionsResponse"
                }
              }
            }
          }
        },
        "summary": "List the permissions of the caller",
        "description": "Returns the permissions granted to the caller, for example to check the roles assigned to the service account.",
        "x-cmp-permissions": []
      }
    },
    "/onboarding/notifications/webhooks": {
      "get": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookIntegrationEntry"
                  }
                }
              }
            }
          }
        },
        "summary": "List webhooks",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Read"
        ]
      },
      "post": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookIntegrationEntry"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Create a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Write"
        ]
      }
    },
    "/onboarding/notifications/webhooks/ping": {
      "post": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PingWebhookBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingWebhookResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Test a webhook URL",
        "description": "Sends a test message to a URL before the webhook is saved.",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Write"
        ]
      }
    },
    "/onboarding/notifications/webhooks/{id}": {
      "get": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookIntegrationEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Read"
        ]
      },
      "put": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookIntegrationEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Update a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Write"
        ]
      },
      "delete": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Delete a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Write"
        ]
      }
    },
    "/onboarding/notifications/webhooks/{id}/test": {
      "post": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogEntry"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Send a test message to a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Write"
        ]
      }
    },
    "/onboarding/notifications/webhooks/{id}/deliveries": {
      "get": {
        "tags": [
          "Tenant: Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "format": "int32",
              "default": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDeliveryLogEntry"
                  }
                }
              }
            }
          }
        },
        "summary": "List deliveries of a webhook",
        "x-cmp-permissions": [
          "Onboarding.Webhook/Read"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AddBudgetRequest": {
        "required": [
          "amount",
          "startDate",
          "endDate",
          "resetPeriod",
          "alerts"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "format": "int32",
            "type": "integer"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "resetPeriod": {
            "$ref": "#/components/schemas/BudgetResetPeriod"
          },
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BudgetAlert"
            }
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "AddPolicyInstanceRequest": {
        "required": [
          "tenantId",
          "definitionId",
          "name",
          "versionRange",
          "schedule",
          "groups",
          "requiresApproval",
          "configuration"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "definitionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "versionRange": {
            "$ref": "#/components/schemas/SemVersionRange"
          },
          "schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CrontabSchedule"
              }
            ],
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "requiresApproval": {
            "type": "boolean"
          },
          "configuration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "AiReportConfig": {
        "type": "object",
        "properties": {
          "htmlTemplate": {
            "type": "string",
            "nullable": true
          },
          "goal": {
            "type": "string",
            "nullable": true
          },
          "savedToolCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecordedToolCall"
            },
            "nullable": true
          }
        }
      },
      "AlertCondition": {
        "required": [
          "operator",
          "threshold",
          "target"
        ],
        "type": "object",
        "properties": {
          "operator": {
            "$ref": "#/components/schemas/AlertConditionOperator"
          },
          "threshold": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "target": {
            "$ref": "#/components/schemas/AlertEvaluationTarget"
          },
          "evaluationWindowMinutes": {
            "format": "int32",
            "default": 60,
            "type": "integer"
          }
        }
      },
      "AlertConditionOperator": {
        "enum": [
          "Gt",
          "Gte",
          "Lt",
          "Lte",
          "Eq",
          "AnyResult"
        ]
      },
      "AlertEvaluationTarget": {
        "enum": [
          "LastValue",
          "Average",
          "Count"
        ]
      },
      "AlertEventType": {
        "enum": [
          "Fired",
          "Resolved",
          "EvaluationError"
        ]
      },
      "AlertFiringState": {
        "enum": [
          "Unknown",
          "Ok",
          "Firing",
          "NoData",
          "Error"
        ]
      },
      "AlertItem": {
        "required": [
          "name",
          "state",
          "severity",
          "firedAt"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "nullable": true
          },
          "firedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "resourceName": {
            "type": "string",
            "nullable": true
          },
          "portalUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AlertListResult": {
        "required": [
          "connectionId",
          "connectionName",
          "alerts"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertItem"
            }
          }
        }
      },
      "AlertRuleEntry": {
        "required": [
          "id",
          "tenantId",
          "name",
          "description",
          "isEnabled",
          "connectionIds",
          "queryType",
          "queryDefinition",
          "condition",
          "notificationSettings",
          "notificationCooldownMinutes",
          "evaluationIntervalMinutes",
          "sourceDashboardId",
          "firingState",
          "lastEvaluatedAt",
          "firedAt",
          "resolvedAt",
          "lastNotifiedAt",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "connectionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "queryType": {
            "$ref": "#/components/schemas/MonitoringQueryType"
          },
          "queryDefinition": {},
          "condition": {
            "$ref": "#/components/schemas/AlertCondition"
          },
          "notificationSettings": {
            "$ref": "#/components/schemas/NotificationSettings"
          },
          "notificationCooldownMinutes": {
            "format": "int32",
            "type": "integer"
          },
          "evaluationIntervalMinutes": {
            "format": "int32",
            "type": "integer"
          },
          "sourceDashboardId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "firingState": {
            "$ref": "#/components/schemas/AlertFiringState"
          },
          "lastEvaluatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "firedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resolvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastNotifiedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AssignmentType": {
        "type": "string"
      },
      "AsyncOperationEventType": {
        "enum": [
          "Pending",
          "Running",
          "Completed",
          "Failed",
          "Cancelled",
          "AwaitingApproval",
          null
        ]
      },
      "AzureDevOpsCallbackConnectionEntry": {
        "required": [
          "name",
          "created"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "created": {
            "type": "boolean"
          }
        }
      },
      "AzureDevOpsExecutionOptionsEntry": {
        "required": [
          "organizations",
          "projects",
          "pipelines"
        ],
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "pipelines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          }
        }
      },
      "AzureStateStorageOptionsEntry": {
        "required": [
          "subscriptionId",
          "resourceGroups",
          "storageAccounts",
          "containers"
        ],
        "type": "object",
        "properties": {
          "subscriptionId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "storageAccounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "containers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          }
        }
      },
      "AzureStateStorageValidationEntry": {
        "required": [
          "isValid",
          "checks"
        ],
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningStateStorageCheck"
            }
          }
        }
      },
      "BudgetAlert": {
        "required": [
          "trigger",
          "threshold",
          "thresholdType"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "$ref": "#/components/schemas/BudgetAlertTrigger"
          },
          "threshold": {
            "format": "int32",
            "type": "integer"
          },
          "thresholdType": {
            "$ref": "#/components/schemas/BudgetThresholdType"
          },
          "escalate": {
            "type": "boolean",
            "nullable": true
          },
          "triggeredThisPeriod": {
            "type": "boolean"
          }
        }
      },
      "BudgetAlertTrigger": {
        "enum": [
          "Actual",
          "Forecasted"
        ]
      },
      "BudgetDetailEntry": {
        "required": [
          "groupId",
          "tenantId",
          "amount",
          "startDate",
          "endDate",
          "resetPeriod",
          "currentSpending",
          "alerts",
          "notificationSettings",
          "forecastSpend",
          "forecastSource",
          "historicalPeriods"
        ],
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "format": "int32",
            "type": "integer"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "resetPeriod": {
            "$ref": "#/components/schemas/BudgetResetPeriod"
          },
          "currentSpending": {
            "format": "double",
            "type": "number"
          },
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BudgetAlert"
            }
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          },
          "forecastSpend": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "forecastSource": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ForecastSource"
              }
            ],
            "nullable": true
          },
          "historicalPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BudgetPeriodHistory"
            }
          }
        }
      },
      "BudgetEntry": {
        "required": [
          "currentSpending",
          "amount",
          "period"
        ],
        "type": "object",
        "properties": {
          "currentSpending": {
            "format": "double",
            "type": "number"
          },
          "amount": {
            "format": "int32",
            "type": "integer"
          },
          "period": {
            "type": "string"
          }
        }
      },
      "BudgetPeriodHistory": {
        "required": [
          "start",
          "end",
          "label",
          "totalSpend"
        ],
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "label": {
            "type": "string"
          },
          "totalSpend": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "BudgetResetPeriod": {
        "enum": [
          "Monthly",
          "Quarterly",
          "Annually"
        ]
      },
      "BudgetSuggestion": {
        "required": [
          "suggested",
          "conservative",
          "currentSpending",
          "forecastSpend",
          "forecastSource",
          "historicalPeriods"
        ],
        "type": "object",
        "properties": {
          "suggested": {
            "format": "double",
            "type": "number"
          },
          "conservative": {
            "format": "double",
            "type": "number"
          },
          "currentSpending": {
            "format": "double",
            "type": "number"
          },
          "forecastSpend": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "forecastSource": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ForecastSource"
              }
            ],
            "nullable": true
          },
          "historicalPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BudgetPeriodHistory"
            }
          }
        }
      },
      "BudgetThresholdType": {
        "enum": [
          "Percentage",
          "Absolute"
        ]
      },
      "CatalogItemLifecycleStatus": {
        "enum": [
          "Active",
          "Retired"
        ]
      },
      "CatalogItemSourceKind": {
        "enum": [
          "ReplyCmpManaged",
          "AzureDevOps",
          "GitHub"
        ]
      },
      "CatalogItemVersionStatus": {
        "enum": [
          "PendingApproval",
          "Approved",
          "Rejected",
          "Revoked"
        ]
      },
      "CloudProviderConnectionPermissions": {
        "enum": [
          "ReadOnly",
          "ReadWrite"
        ]
      },
      "ConfigureExecutionRequestBody": {
        "required": [
          "runnerKind",
          "runnerConfiguration",
          "stateBackendKind",
          "stateConfiguration"
        ],
        "type": "object",
        "properties": {
          "runnerKind": {
            "$ref": "#/components/schemas/ProvisioningRunnerKind"
          },
          "runnerConfiguration": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "stateBackendKind": {
            "$ref": "#/components/schemas/TerraformStateBackendKind"
          },
          "stateConfiguration": {
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "ConnectionEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "ConnectionFinOpsInfoEntry": {
        "required": [
          "id",
          "tenantId",
          "isProviderCostEnabled",
          "latestAddedCosts",
          "latestUpdatedPredictions",
          "latestUpdatedReservations"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "isProviderCostEnabled": {
            "type": "boolean"
          },
          "latestAddedCosts": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "latestUpdatedPredictions": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "latestUpdatedReservations": {
            "type": "string",
            "format": "date",
            "nullable": true
          }
        }
      },
      "CostSpikeAlertSettingsEntry": {
        "required": [
          "isEnabled",
          "percentageThreshold",
          "absoluteThreshold",
          "detectGroupSpikes",
          "notificationSettings"
        ],
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          },
          "percentageThreshold": {
            "format": "double",
            "type": "number"
          },
          "absoluteThreshold": {
            "format": "double",
            "type": "number"
          },
          "detectGroupSpikes": {
            "type": "boolean"
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "CreateAlertRuleBody": {
        "required": [
          "name",
          "description",
          "connectionIds",
          "queryType",
          "queryDefinition",
          "condition",
          "notificationSettings"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "connectionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "queryType": {
            "$ref": "#/components/schemas/MonitoringQueryType"
          },
          "queryDefinition": {},
          "condition": {
            "$ref": "#/components/schemas/AlertCondition"
          },
          "notificationSettings": {
            "$ref": "#/components/schemas/NotificationSettings"
          },
          "evaluationIntervalMinutes": {
            "format": "int32",
            "default": 5,
            "type": "integer"
          },
          "notificationCooldownMinutes": {
            "format": "int32",
            "default": 30,
            "type": "integer"
          },
          "sourceDashboardId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "CreateCatalogItemVersionForm": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Strict SemVer 2.0.0 version."
          },
          "sourceRef": {
            "type": "string",
            "description": "Immutable VCS ref or tag represented by the uploaded archive."
          },
          "commitSha": {
            "type": "string",
            "description": "Forty- or sixty-four-character source commit hash."
          },
          "terraformVersion": {
            "type": "string",
            "description": "Terraform CLI version constraint recorded for the artifact."
          },
          "terraformVariableName": {
            "type": "string",
            "description": "Root input variable used by the generated wrapper."
          },
          "archive": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IFormFile"
              }
            ],
            "nullable": true
          }
        }
      },
      "CreateCatalogItemVersionFromSourceRequestBody": {
        "required": [
          "version",
          "sourceRef",
          "terraformVersion",
          "terraformVariableName"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Strict SemVer 2.0.0 version."
          },
          "sourceRef": {
            "type": "string",
            "description": "Branch, tag, full ref, or commit to resolve at the registered provider."
          },
          "terraformVersion": {
            "type": "string",
            "description": "Terraform CLI version constraint recorded for the artifact."
          },
          "terraformVariableName": {
            "type": "string",
            "description": "Root input variable used by the generated wrapper."
          }
        }
      },
      "CreateConnectionRequestBody": {
        "required": [
          "name",
          "tenantId",
          "properties"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "properties": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "validateOnly": {
            "type": "boolean",
            "default": false
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Provider"
              }
            ],
            "nullable": true
          }
        }
      },
      "CreateCredentialRequestBody": {
        "required": [
          "name",
          "kind",
          "metadata",
          "secret",
          "nextRotationDueAt"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ProvisioningCredentialKind"
          },
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "secret": {
            "type": "string"
          },
          "nextRotationDueAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "CreateDeploymentRequestBody": {
        "required": [
          "name",
          "region",
          "connectionIds"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "connectionIds": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "CreateMonitoringDashboardRequest": {
        "required": [
          "name",
          "description",
          "layout"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "layout": {
            "$ref": "#/components/schemas/DashboardLayout"
          },
          "isDefault": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "CreateReportRequestBody": {
        "required": [
          "name",
          "description",
          "dataWindow",
          "crontab"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dataWindow": {
            "$ref": "#/components/schemas/ReportDataWindow"
          },
          "crontab": {
            "type": "string"
          },
          "aiContentConfiguration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiReportConfig"
              }
            ],
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "default": true
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "CreateResourceRequestBody": {
        "required": [
          "name",
          "deploymentId",
          "catalogItemId",
          "region",
          "metadata",
          "catalogItemVersionId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "deploymentId": {
            "type": "string",
            "format": "uuid"
          },
          "catalogItemId": {
            "type": "string",
            "format": "uuid"
          },
          "region": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "catalogItemVersionId": {
            "type": "string",
            "format": "uuid"
          },
          "inputReferences": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ResourceInputReference"
            },
            "nullable": true
          }
        }
      },
      "CreateWebhookBody": {
        "required": [
          "name",
          "url",
          "channelType",
          "signingSecret",
          "properties"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "channelType": {
            "$ref": "#/components/schemas/NotificationChannelType"
          },
          "signingSecret": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "CrontabSchedule": {
        "type": "string",
        "description": "Cron expression with five fields: minute, hour, day of month, month and day of week.",
        "example": "0 6 * * 1"
      },
      "Currency": {
        "enum": [
          "ALL",
          "DZD",
          "ARS",
          "AUD",
          "BHD",
          "AMD",
          "BOB",
          "BZD",
          "BND",
          "CAD",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "HRK",
          "CZK",
          "DKK",
          "DOP",
          "ETB",
          "EEK",
          "GTQ",
          "HNL",
          "HKD",
          "HUF",
          "ISK",
          "INR",
          "IDR",
          "IRR",
          "IQD",
          "ILS",
          "JMD",
          "JPY",
          "KZT",
          "JOD",
          "KES",
          "KRW",
          "KWD",
          "KGS",
          "LBP",
          "LVL",
          "LYD",
          "LTL",
          "MOP",
          "MYR",
          "MVR",
          "MXN",
          "MNT",
          "MAD",
          "OMR",
          "NZD",
          "NIO",
          "NOK",
          "PKR",
          "PAB",
          "PYG",
          "PEN",
          "PHP",
          "QAR",
          "RUB",
          "SAR",
          "SGD",
          "VND",
          "ZAR",
          "SEK",
          "CHF",
          "SYP",
          "THB",
          "TTD",
          "AED",
          "TND",
          "MKD",
          "EGP",
          "GBP",
          "USD",
          "UYU",
          "UZS",
          "YER",
          "TWD",
          "ZWL",
          "VEF",
          "RSD",
          "AZN",
          "RON",
          "TRY",
          "BYR",
          "BGN",
          "EUR",
          "UAH",
          "GEL",
          "PLN",
          "BRL"
        ]
      },
      "DashboardLayout": {
        "required": [
          "widgets"
        ],
        "type": "object",
        "properties": {
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WidgetConfiguration"
            }
          },
          "gridColumns": {
            "format": "int32",
            "type": "integer"
          },
          "rowHeight": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "DeploymentEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "DeploymentExecutionConfigurationEntry": {
        "required": [
          "runnerKind",
          "runnerConfiguration",
          "stateBackendKind",
          "stateConfiguration",
          "stateBackendLockedAt",
          "stateKey"
        ],
        "type": "object",
        "properties": {
          "runnerKind": {
            "$ref": "#/components/schemas/ProvisioningRunnerKind"
          },
          "runnerConfiguration": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "stateBackendKind": {
            "$ref": "#/components/schemas/TerraformStateBackendKind"
          },
          "stateConfiguration": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "stateBackendLockedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "stateKey": {
            "type": "string"
          }
        }
      },
      "DeploymentStatus": {
        "enum": [
          "Valid",
          "Error",
          "ReadyForRemoval",
          "NeedsAttention"
        ]
      },
      "DiscoveredResourceCategory": {
        "enum": [
          "Compute",
          "Database",
          "Network",
          "Storage",
          "Other",
          "AI",
          "Container",
          "Analytics",
          "SecurityIdentity",
          "Integration",
          null
        ]
      },
      "DiscoveredResourceEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "discoveredResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "DiscoveryMapLevel": {
        "enum": [
          "Provider",
          "Connection",
          "Category",
          "ResourceType",
          "Resource"
        ]
      },
      "DiscoveryMapNodeResponse": {
        "required": [
          "id",
          "label",
          "level",
          "resourceCount",
          "fullSupportCount",
          "costOnlySupportCount"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/DiscoveryMapLevel"
          },
          "resourceCount": {
            "format": "int32",
            "type": "integer"
          },
          "fullSupportCount": {
            "format": "int32",
            "type": "integer"
          },
          "costOnlySupportCount": {
            "format": "int32",
            "type": "integer"
          },
          "provider": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Provider"
              }
            ],
            "nullable": true
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveredResourceCategory"
              }
            ],
            "nullable": true
          },
          "resourceType": {
            "type": "string",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "hasChildren": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "DiscoveryMapResponse": {
        "required": [
          "level",
          "totalResourceCount",
          "totalNodeCount",
          "isTruncated",
          "data"
        ],
        "type": "object",
        "properties": {
          "level": {
            "$ref": "#/components/schemas/DiscoveryMapLevel"
          },
          "totalResourceCount": {
            "format": "int32",
            "type": "integer"
          },
          "totalNodeCount": {
            "format": "int32",
            "type": "integer"
          },
          "isTruncated": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveryMapNodeResponse"
            }
          }
        }
      },
      "DiscoveryResourceReferenceOption": {
        "required": [
          "discoveredResourceId",
          "name",
          "providerGivenId",
          "resourceType",
          "provider",
          "connectionId",
          "connectionName",
          "connectionAlias",
          "region",
          "isVirtual"
        ],
        "type": "object",
        "properties": {
          "discoveredResourceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "providerGivenId": {
            "type": "string"
          },
          "resourceType": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "connectionAlias": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "isVirtual": {
            "type": "boolean"
          }
        }
      },
      "EditBudgetRequest": {
        "required": [
          "amount",
          "endDate",
          "alerts"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "format": "int32",
            "type": "integer"
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BudgetAlert"
            }
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "EditConnectionSecretRequest": {
        "required": [
          "secret"
        ],
        "type": "object",
        "properties": {
          "secret": {
            "type": "string"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "EditGroupingOptionsRequest": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationTree"
            },
            "nullable": true
          },
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "EditGroupOwnerRequest": {
        "required": [
          "ownerId"
        ],
        "type": "object",
        "properties": {
          "ownerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "EditGroupRulesRequest": {
        "required": [
          "rules"
        ],
        "type": "object",
        "properties": {
          "rules": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "convertedRules": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroupRuleFilter"
              }
            ],
            "nullable": true
          }
        }
      },
      "EditPolicyInstanceRequest": {
        "required": [
          "versionRange",
          "schedule",
          "groups",
          "requiresApproval",
          "configuration"
        ],
        "type": "object",
        "properties": {
          "versionRange": {
            "$ref": "#/components/schemas/SemVersionRange"
          },
          "schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CrontabSchedule"
              }
            ],
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "requiresApproval": {
            "type": "boolean"
          },
          "configuration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "EffectiveTagSource": {
        "enum": [
          "Original",
          "Normalized",
          "Inferred",
          "Default",
          "Unmapped"
        ]
      },
      "EnsureAzureDevOpsCallbackConnectionRequest": {
        "required": [
          "credentialId",
          "organization",
          "project",
          "pipelineDefinitionId"
        ],
        "type": "object",
        "properties": {
          "credentialId": {
            "type": "string",
            "format": "uuid"
          },
          "organization": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "pipelineDefinitionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "connectionName": {
            "type": "string",
            "nullable": true
          },
          "createIfMissing": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "EnsureGitHubCallbackEnvironmentRequest": {
        "required": [
          "credentialId",
          "repository",
          "ref"
        ],
        "type": "object",
        "properties": {
          "credentialId": {
            "type": "string",
            "format": "uuid"
          },
          "repository": {
            "type": "string"
          },
          "ref": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EventType": {
        "enum": [
          "Create",
          "Get",
          "Update",
          "SoftDelete",
          "Restore",
          "HardDelete",
          "Squash",
          "Cancelled",
          "AssignRole",
          "RevokeRole",
          "RecommendationsRefresh",
          "UpdateConnectionPermissions",
          "CreateReport",
          "UpdateReport",
          "DeleteReport",
          "TriggerReport",
          "UpdateQuota",
          "RequestQuotaIncrease",
          "CreateRole",
          "UpdateRole",
          "DeleteRole",
          "AssignSuperuserRole",
          "RevokeSuperuserRole",
          "CostRefresh",
          "UpdateGroupingOptions",
          "RefreshGroups",
          "UpdateGroupRules",
          "UpdateGroupOwner",
          "CreateBudget",
          "UpdateBudget",
          "DeleteBudget",
          "CreatePolicyInstance",
          "GetPolicyInstance",
          "TogglePolicyInstance",
          "UpdatePolicyInstance",
          "DeletePolicyInstance",
          "OptimizationJob",
          "CreateRelationship",
          "SoftDeleteRelationship",
          "RestoreRelationship",
          "UpdateRelationship",
          "Discovery",
          "DiscoveryEnrichment",
          "DiscoveryCategorization",
          "DiscoveryRelationshipInference",
          "ReclassifyDiscovery",
          "EnrichDiscovery",
          "BudgetCreate",
          "BudgetUpdate",
          "BudgetHardDelete",
          "BudgetThresholdAlert",
          "PolicyExecution",
          "CreateExclusion",
          "DeleteExclusion",
          "ApplyDeployment",
          "CreateResource",
          "RestoreResource",
          "UpdateResource",
          "SquashResource",
          "SoftDeleteResource",
          "CancelledResource",
          "CreateDashboard",
          "UpdateDashboard",
          "DeleteDashboard",
          "SetDefaultDashboard",
          "UnsetDefaultDashboard",
          "ShareDashboard",
          "UpdateSharePermission",
          "RevokeShare",
          "CreateSavedQuery",
          "UpdateSavedQuery",
          "DeleteSavedQuery",
          "PinSavedQuery",
          "AlertRuleFired",
          "AlertRuleResolved",
          "AlertRuleEvaluationError",
          "CreateMonitoringDashboard",
          "UpdateMonitoringDashboard",
          "DeleteMonitoringDashboard",
          "SetDefaultMonitoringDashboard",
          "UnsetDefaultMonitoringDashboard",
          "ImportMonitoringDashboard",
          "PolicyApprovalApproved",
          "PolicyApprovalRejected",
          "UpdateTaggingConvention",
          "DeleteTaggingConvention",
          "PushTaggingChanges",
          "WriteTaggingBatch",
          "UpdateRateLimit",
          "RequestRateLimitIncrease",
          "EnableServiceAccountApiAccess",
          "DisableServiceAccountApiAccess",
          "CreateServiceAccountSecret",
          "RevokeServiceAccountSecret",
          "AssignServiceAccountRole",
          "RevokeServiceAccountRole"
        ]
      },
      "ExecuteWidgetQueryRequest": {
        "required": [
          "connectionIds",
          "queryType",
          "queryDefinition"
        ],
        "type": "object",
        "properties": {
          "connectionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "queryType": {
            "$ref": "#/components/schemas/MonitoringQueryType"
          },
          "queryDefinition": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitoringTimeRange"
              }
            ],
            "nullable": true
          }
        }
      },
      "ForecastSource": {
        "enum": [
          "MlPlusFlat",
          "Ml",
          "Linear",
          null
        ]
      },
      "GenericListResponseOfstring": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "GetCatalogItemResponse": {
        "required": [
          "id",
          "tenantId",
          "name",
          "displayName",
          "description",
          "schema",
          "provider",
          "sourceKind",
          "lifecycleStatus",
          "repositoryUrl",
          "repositoryPath",
          "repositoryDefaultRef",
          "credentialId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "schema": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "sourceKind": {
            "$ref": "#/components/schemas/CatalogItemSourceKind"
          },
          "lifecycleStatus": {
            "$ref": "#/components/schemas/CatalogItemLifecycleStatus"
          },
          "repositoryUrl": {
            "type": "string",
            "nullable": true
          },
          "repositoryPath": {
            "type": "string",
            "nullable": true
          },
          "repositoryDefaultRef": {
            "type": "string",
            "nullable": true
          },
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetConnectionResponse": {
        "required": [
          "id",
          "name",
          "type",
          "category",
          "tenantId",
          "properties",
          "permissions",
          "isDeleted",
          "expirationDate",
          "lastDiscoveryCompletedAt",
          "lastCostRefreshCompletedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/Provider"
          },
          "category": {
            "$ref": "#/components/schemas/ProviderType"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "properties": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "permissions": {
            "$ref": "#/components/schemas/CloudProviderConnectionPermissions"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastDiscoveryCompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastCostRefreshCompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isProviderCostEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "discoveryStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AsyncOperationEventType"
              }
            ],
            "nullable": true
          },
          "costRefreshStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AsyncOperationEventType"
              }
            ],
            "nullable": true
          }
        }
      },
      "GetCredentialResponse": {
        "required": [
          "id",
          "tenantId",
          "kind",
          "name",
          "metadata",
          "createdAt",
          "updatedAt",
          "lastRotatedAt",
          "nextRotationDueAt",
          "revokedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/ProvisioningCredentialKind"
          },
          "name": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastRotatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRotationDueAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "GetDeploymentResponse": {
        "required": [
          "id",
          "name",
          "region",
          "status",
          "tenantId",
          "connectionIds",
          "deployedResourcesCount"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/DeploymentStatus"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionIds": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "deployedResourcesCount": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "GetDiscoveredResourceResponse": {
        "required": [
          "id",
          "tenantId",
          "connectionId",
          "connectionName",
          "name",
          "providerGivenId",
          "type",
          "region",
          "category",
          "supportLevel",
          "provider",
          "discoveredOn",
          "deletedOn",
          "provisionedResourceId",
          "properties",
          "typeSpecificProperties",
          "tags"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "providerGivenId": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveredResourceCategory"
              }
            ],
            "nullable": true
          },
          "supportLevel": {
            "$ref": "#/components/schemas/SupportLevel"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "discoveredOn": {
            "type": "string",
            "format": "date-time"
          },
          "deletedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "provisionedResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "properties": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "typeSpecificProperties": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "GetReportResponse": {
        "required": [
          "id",
          "name",
          "description",
          "dataWindow",
          "crontab",
          "isActive",
          "lastExecuted",
          "nextExecution",
          "aiContentConfiguration",
          "notificationSettings"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dataWindow": {
            "$ref": "#/components/schemas/ReportDataWindow"
          },
          "crontab": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "lastExecuted": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextExecution": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "aiContentConfiguration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiReportConfig"
              }
            ],
            "nullable": true
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "GetResourceGraphEdgeResponse": {
        "required": [
          "sourceProviderGivenId",
          "targetProviderGivenId",
          "type"
        ],
        "type": "object",
        "properties": {
          "sourceProviderGivenId": {
            "type": "string"
          },
          "targetProviderGivenId": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/RelationshipType"
          }
        }
      },
      "GetResourceGraphNodeResponse": {
        "required": [
          "id",
          "providerGivenId",
          "name",
          "type",
          "category",
          "supportLevel",
          "provider",
          "isCenter"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "providerGivenId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveredResourceCategory"
              }
            ],
            "nullable": true
          },
          "supportLevel": {
            "$ref": "#/components/schemas/SupportLevel"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "isCenter": {
            "type": "boolean"
          }
        }
      },
      "GetResourceGraphResponse": {
        "required": [
          "nodes",
          "edges"
        ],
        "type": "object",
        "properties": {
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetResourceGraphNodeResponse"
            }
          },
          "edges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetResourceGraphEdgeResponse"
            }
          }
        }
      },
      "GetResourceResponse": {
        "required": [
          "id",
          "name",
          "region",
          "status",
          "tenantId",
          "deploymentId",
          "catalogItemId",
          "catalogItemVersionId",
          "catalogItemVersion",
          "catalogItemName",
          "catalogItemDisplayName",
          "metadata",
          "latestAppliedMetadata",
          "inputReferences",
          "isDeleted"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ResourceStatus"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "deploymentId": {
            "type": "string",
            "format": "uuid"
          },
          "catalogItemId": {
            "type": "string",
            "format": "uuid"
          },
          "catalogItemVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "catalogItemVersion": {
            "type": "string",
            "nullable": true
          },
          "catalogItemName": {
            "type": "string"
          },
          "catalogItemDisplayName": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "latestAppliedMetadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "inputReferences": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ResourceInputReference"
            }
          },
          "isDeleted": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "GetTenantResponse": {
        "required": [
          "id",
          "companyName",
          "owner",
          "ownerEmail",
          "reportingCurrency",
          "disableOn",
          "createdOn"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "ownerEmail": {
            "type": "string"
          },
          "reportingCurrency": {
            "$ref": "#/components/schemas/Currency"
          },
          "disableOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetUserResponse": {
        "required": [
          "id",
          "tenantId",
          "email",
          "displayName",
          "rolesAssigned"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "rolesAssigned": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleAssigned"
            },
            "nullable": true
          }
        }
      },
      "GetVersionResponse": {
        "required": [
          "id",
          "tenantId",
          "catalogItemId",
          "version",
          "status",
          "sourceRef",
          "commitSha",
          "contentSha256",
          "manifestSha256",
          "terraformVersion",
          "terraformVariableName",
          "schemaSnapshot",
          "provider",
          "providerRequirements",
          "validationReport",
          "createdAt",
          "createdBy",
          "submittedAt",
          "submittedBy",
          "approvedAt",
          "approvedBy",
          "rejectedAt",
          "rejectedBy",
          "rejectionReason",
          "revokedAt",
          "revokedBy",
          "revocationReason"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "catalogItemId": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/CatalogItemVersionStatus"
          },
          "sourceRef": {
            "type": "string"
          },
          "commitSha": {
            "type": "string"
          },
          "contentSha256": {
            "type": "string"
          },
          "manifestSha256": {
            "type": "string"
          },
          "terraformVersion": {
            "type": "string"
          },
          "terraformVariableName": {
            "type": "string"
          },
          "schemaSnapshot": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "providerRequirements": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "validationReport": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "submittedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "rejectedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "revokedBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "revocationReason": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "GitHubCallbackEnvironmentEntry": {
        "required": [
          "name",
          "created",
          "immutableOidcSubjectEnabled"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "created": {
            "type": "boolean"
          },
          "immutableOidcSubjectEnabled": {
            "type": "boolean"
          }
        }
      },
      "GitHubExecutionOptionsEntry": {
        "required": [
          "repositories",
          "workflows",
          "refs",
          "environments"
        ],
        "type": "object",
        "properties": {
          "repositories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "workflows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "refs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          },
          "environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningExecutionOption"
            }
          }
        }
      },
      "GridPosition": {
        "type": "object",
        "properties": {
          "x": {
            "format": "int32",
            "type": "integer"
          },
          "y": {
            "format": "int32",
            "type": "integer"
          },
          "w": {
            "format": "int32",
            "type": "integer"
          },
          "h": {
            "format": "int32",
            "type": "integer"
          },
          "minW": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "minH": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          }
        }
      },
      "GroupEntry": {
        "required": [
          "name",
          "owner",
          "dimension",
          "rules"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserEntry"
              }
            ],
            "nullable": true
          },
          "dimension": {
            "$ref": "#/components/schemas/GroupingDimension"
          },
          "rules": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroupRuleFilter"
              }
            ],
            "nullable": true
          }
        }
      },
      "GroupingDimension": {
        "enum": [
          "Organization",
          "Environment",
          "Project"
        ]
      },
      "GroupRuleFilter": {
        "required": [
          "type"
        ],
        "type": "object",
        "anyOf": [
          {
            "$ref": "#/components/schemas/GroupRuleFilterGroupRuleAndFilter"
          },
          {
            "$ref": "#/components/schemas/GroupRuleFilterGroupRuleOrFilter"
          },
          {
            "$ref": "#/components/schemas/GroupRuleFilterGroupRuleComparisonFilter"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "and": "#/components/schemas/GroupRuleFilterGroupRuleAndFilter",
            "or": "#/components/schemas/GroupRuleFilterGroupRuleOrFilter",
            "comparison": "#/components/schemas/GroupRuleFilterGroupRuleComparisonFilter"
          }
        }
      },
      "GroupRuleFilterGroupRuleAndFilter": {
        "required": [
          "filters"
        ],
        "properties": {
          "type": {
            "enum": [
              "and"
            ],
            "type": "string"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupRuleFilter"
            }
          }
        }
      },
      "GroupRuleFilterGroupRuleComparisonFilter": {
        "required": [
          "key",
          "keyOperator"
        ],
        "properties": {
          "type": {
            "enum": [
              "comparison"
            ],
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "keyOperator": {
            "$ref": "#/components/schemas/GroupRuleFilterKeyOperator"
          },
          "valueOperator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroupRuleFilterValueOperator"
              }
            ],
            "nullable": true
          },
          "values": {}
        }
      },
      "GroupRuleFilterGroupRuleOrFilter": {
        "required": [
          "filters"
        ],
        "properties": {
          "type": {
            "enum": [
              "or"
            ],
            "type": "string"
          },
          "filters": {}
        }
      },
      "GroupRuleFilterKeyOperator": {
        "type": "object",
        "required": [
          "type"
        ],
        "description": "How the tag or property key is matched.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Equals",
              "NotEquals",
              "Contains",
              "StartsWith",
              "EndsWith",
              "Exists",
              "NotExists"
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "GroupRuleFilterValueOperator": {
        "type": "object",
        "required": [
          "type"
        ],
        "description": "How the values are matched.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Equals",
              "NotEquals",
              "Contains",
              "StartsWith",
              "EndsWith"
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "HiddenCostCategory": {
        "enum": [
          "Security",
          "Observability",
          "Backup",
          "Networking",
          "Support"
        ]
      },
      "HiddenCostCategorySummary": {
        "required": [
          "category",
          "amount",
          "trend",
          "services"
        ],
        "type": "object",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/HiddenCostCategory"
          },
          "amount": {
            "format": "double",
            "type": "number"
          },
          "trend": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HiddenCostPeriod"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HiddenCostService"
            }
          }
        }
      },
      "HiddenCostDetail": {
        "required": [
          "detail",
          "amount"
        ],
        "type": "object",
        "properties": {
          "detail": {
            "type": "string"
          },
          "amount": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "HiddenCostPeriod": {
        "required": [
          "period",
          "amount"
        ],
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "format": "date"
          },
          "amount": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "HiddenCostService": {
        "required": [
          "provider",
          "service",
          "amount",
          "details",
          "otherDetailsAmount"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "service": {
            "type": "string"
          },
          "amount": {
            "format": "double",
            "type": "number"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HiddenCostDetail"
            }
          },
          "otherDetailsAmount": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "HiddenCostsResponse": {
        "required": [
          "currency",
          "type",
          "start",
          "end",
          "granularity",
          "totalSpend",
          "hiddenSpend",
          "trend",
          "categories"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "type": {
            "$ref": "#/components/schemas/QueryInputType"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "granularity": {
            "$ref": "#/components/schemas/QueryInputGranularity"
          },
          "totalSpend": {
            "format": "double",
            "type": "number"
          },
          "hiddenSpend": {
            "format": "double",
            "type": "number"
          },
          "trend": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HiddenCostTotalPeriod"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HiddenCostCategorySummary"
            }
          }
        }
      },
      "HiddenCostTotalPeriod": {
        "required": [
          "period",
          "totalSpend",
          "hiddenSpend"
        ],
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "format": "date"
          },
          "totalSpend": {
            "format": "double",
            "type": "number"
          },
          "hiddenSpend": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "HttpValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary",
        "nullable": true
      },
      "IndexGroupsItem": {
        "required": [
          "id",
          "name",
          "owner",
          "rules",
          "budget"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserEntry"
              }
            ],
            "nullable": true
          },
          "rules": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroupRuleFilter"
              }
            ],
            "nullable": true
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetEntry"
              }
            ],
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndexGroupsItem"
            },
            "nullable": true
          }
        }
      },
      "IndexGroupsResponse": {
        "required": [
          "organization",
          "environments",
          "projects"
        ],
        "type": "object",
        "properties": {
          "organization": {
            "$ref": "#/components/schemas/IndexGroupsItem"
          },
          "environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndexGroupsItem"
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndexGroupsItem"
            }
          }
        }
      },
      "IndexPoliciesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyMetadata"
            }
          }
        }
      },
      "IndexPolicyInstanceJobsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyInstanceJobEntry"
            }
          }
        }
      },
      "IndexPolicyInstancesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyInstanceEntry"
            }
          }
        }
      },
      "IndexPolicyVersionsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyVersionMetadata"
            }
          }
        }
      },
      "JsonDocument": {
        "description": "Any JSON value."
      },
      "JsonElement": {
        "description": "Any JSON value."
      },
      "LinkConnectionRequestBody": {
        "required": [
          "connectionId",
          "alias"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "alias": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ListAssignmentsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListAssignmentsResponseItem"
            }
          }
        }
      },
      "ListAssignmentsResponseAssignedRole": {
        "required": [
          "name",
          "assignmentType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "assignmentType": {
            "$ref": "#/components/schemas/AssignmentType"
          }
        }
      },
      "ListAssignmentsResponseItem": {
        "required": [
          "id",
          "assignedTo",
          "assignedBy",
          "role"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "assignedTo": {
            "$ref": "#/components/schemas/ListAssignmentsResponseUserItem"
          },
          "assignedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ListAssignmentsResponseUserItem"
              }
            ],
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ListAssignmentsResponseAssignedRole"
          }
        }
      },
      "ListAssignmentsResponseUserItem": {
        "required": [
          "id",
          "name",
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "ListCatalogItemsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetCatalogItemResponse"
            }
          }
        }
      },
      "ListConnectionsEvents": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectionEvent"
            }
          }
        }
      },
      "ListConnectionsInfoResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectionFinOpsInfoEntry"
            }
          }
        }
      },
      "ListConnectionsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetConnectionResponse"
            }
          }
        }
      },
      "ListCredentialsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetCredentialResponse"
            }
          }
        }
      },
      "ListDeploymentEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeploymentEvent"
            }
          }
        }
      },
      "ListDeploymentsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetDeploymentResponse"
            }
          }
        }
      },
      "ListDiscoveryResourceReferenceOptionsResponse": {
        "required": [
          "data",
          "unavailableReason"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveryResourceReferenceOption"
            }
          },
          "unavailableReason": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ListMonitoringDashboardEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitoringDashboardEvent"
            }
          }
        }
      },
      "ListMonitoringDashboardsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitoringDashboardListEntry"
            }
          }
        }
      },
      "ListMyPermissionsResponse": {
        "required": [
          "tenant",
          "system"
        ],
        "type": "object",
        "properties": {
          "tenant": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "system": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ListPolicyEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyEvent"
            }
          }
        }
      },
      "ListPolicyInstanceEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyEvent"
            }
          }
        }
      },
      "ListProvisioningOperationsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningOperationEntry"
            }
          }
        }
      },
      "ListProvisioningPolicyRulesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningPolicyRuleEntry"
            }
          }
        }
      },
      "ListRecommendationsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationEntry"
            }
          }
        }
      },
      "ListReportEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportEvent"
            }
          }
        }
      },
      "ListReportsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetReportResponse"
            }
          }
        }
      },
      "ListReservationsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReservationCostOutput"
            }
          }
        }
      },
      "ListResourceEntryResponse": {
        "required": [
          "id",
          "tenantId",
          "connectionId",
          "connectionName",
          "name",
          "providerGivenId",
          "type",
          "region",
          "category",
          "supportLevel",
          "provider",
          "discoveredOn",
          "deletedOn",
          "provisionedResourceId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "providerGivenId": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveredResourceCategory"
              }
            ],
            "nullable": true
          },
          "supportLevel": {
            "$ref": "#/components/schemas/SupportLevel"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "discoveredOn": {
            "type": "string",
            "format": "date-time"
          },
          "deletedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "provisionedResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "ListResourceEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveredResourceEvent"
            }
          }
        }
      },
      "ListResourceReferenceOptionsResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceReferenceOption"
            }
          }
        }
      },
      "ListResourcesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListResourceEntryResponse"
            }
          }
        }
      },
      "ListResourceTypesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceTypeEntry"
            }
          }
        }
      },
      "ListTaggingCloudChangesResponse": {
        "required": [
          "writableResources",
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "writableResources": {
            "format": "int32",
            "type": "integer"
          },
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingCloudChangeEntry"
            }
          }
        }
      },
      "ListTaggingResourcesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingResourceEntry"
            }
          }
        }
      },
      "ListTenantEventsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantEvent"
            }
          }
        }
      },
      "ListUsersResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetUserResponse"
            }
          }
        }
      },
      "ListVersionsResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetVersionResponse"
            }
          }
        }
      },
      "MetricEntry": {
        "required": [
          "name",
          "displayName",
          "unit"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "aggregations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "intervals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "MetricNamespaceEntry": {
        "required": [
          "name",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          }
        }
      },
      "MonitoringAlertHistoryEntry": {
        "required": [
          "alertRuleId",
          "isFired",
          "eventType",
          "evaluatedValue",
          "message",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "alertRuleId": {
            "type": "string",
            "format": "uuid"
          },
          "isFired": {
            "type": "boolean"
          },
          "eventType": {
            "$ref": "#/components/schemas/AlertEventType"
          },
          "evaluatedValue": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MonitoringDashboardEntry": {
        "required": [
          "id",
          "tenantId",
          "name",
          "description",
          "isDefault",
          "layout",
          "createdAt",
          "createdBy",
          "updatedAt",
          "updatedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "layout": {
            "$ref": "#/components/schemas/DashboardLayout"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          }
        }
      },
      "MonitoringDashboardEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "MonitoringDashboardListEntry": {
        "required": [
          "id",
          "tenantId",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "widgetCount": {
            "format": "int32",
            "type": "integer"
          },
          "queryTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "widgetTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          }
        }
      },
      "MonitoringQueryError": {
        "required": [
          "connectionId",
          "connectionName",
          "message"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "MonitoringQueryResult": {
        "type": "object",
        "properties": {
          "timeseries": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TimeseriesResult"
              }
            ],
            "nullable": true
          },
          "table": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TableResult"
              }
            ],
            "nullable": true
          },
          "stat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StatResult"
              }
            ],
            "nullable": true
          },
          "alertList": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AlertListResult"
              }
            ],
            "nullable": true
          },
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitoringQueryError"
              }
            ],
            "nullable": true
          },
          "isError": {
            "type": "boolean"
          }
        }
      },
      "MonitoringQueryType": {
        "enum": [
          "AzureMetrics",
          "AzureLogAnalytics",
          "AzureAlerts",
          "AzureResourceGraph",
          "AwsMetrics",
          "AwsLogInsights",
          "AwsAlarms",
          "GcpMetrics",
          "GcpAlerts"
        ]
      },
      "MonitoringTimeRange": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "nullable": true
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "NotificationChannelType": {
        "enum": [
          "Email",
          "InApp",
          "Webhook",
          "Teams",
          "PagerDuty"
        ]
      },
      "NotificationSettings": {
        "type": "object",
        "properties": {
          "sendInApp": {
            "type": "boolean",
            "default": true
          },
          "sendEmail": {
            "type": "boolean",
            "default": false
          },
          "emailRecipients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "webhookIntegrationIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "OptimizationKpiMeasurement": {
        "required": [
          "kpi",
          "weight",
          "utilization",
          "efficiency"
        ],
        "type": "object",
        "properties": {
          "kpi": {
            "$ref": "#/components/schemas/UtilizationKpi"
          },
          "weight": {
            "format": "double",
            "type": "number"
          },
          "utilization": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "efficiency": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        }
      },
      "OptimizationKpiSummary": {
        "required": [
          "kpi",
          "efficiency",
          "coverage"
        ],
        "type": "object",
        "properties": {
          "kpi": {
            "$ref": "#/components/schemas/UtilizationKpi"
          },
          "efficiency": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "coverage": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        }
      },
      "OptimizationKpiWeight": {
        "required": [
          "kpi",
          "weight"
        ],
        "type": "object",
        "properties": {
          "kpi": {
            "$ref": "#/components/schemas/UtilizationKpi"
          },
          "weight": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "OptimizationProfile": {
        "enum": [
          "VirtualMachine",
          "Database",
          "Kubernetes",
          "Cache",
          "AppPlatform",
          "ThroughputDatabase"
        ]
      },
      "OptimizationProfileWeights": {
        "required": [
          "profile",
          "aggregation",
          "kpis"
        ],
        "type": "object",
        "properties": {
          "profile": {
            "$ref": "#/components/schemas/OptimizationProfile"
          },
          "aggregation": {
            "$ref": "#/components/schemas/OptimizationScoreAggregation"
          },
          "kpis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptimizationKpiWeight"
            }
          }
        }
      },
      "OptimizationScoreAggregation": {
        "enum": [
          "WeightedMean",
          "Bottleneck"
        ]
      },
      "OptimizationScoreHistoryPoint": {
        "required": [
          "date",
          "score",
          "resources"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "score": {
            "format": "double",
            "type": "number"
          },
          "resources": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "OptimizationScorePolicy": {
        "required": [
          "version",
          "windowDays",
          "targetUtilization",
          "saturationThreshold",
          "profiles"
        ],
        "type": "object",
        "properties": {
          "version": {
            "format": "int32",
            "type": "integer"
          },
          "windowDays": {
            "format": "int32",
            "type": "integer"
          },
          "targetUtilization": {
            "format": "double",
            "type": "number"
          },
          "saturationThreshold": {
            "format": "double",
            "type": "number"
          },
          "profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptimizationProfileWeights"
            }
          }
        }
      },
      "OptimizationScoreResource": {
        "required": [
          "resourceId",
          "connectionId",
          "name",
          "type",
          "provider",
          "region",
          "profile",
          "assessedOn",
          "score",
          "monthlyCost",
          "idleMonthlyCost",
          "targetUtilization",
          "saturationThreshold",
          "saturated",
          "shapeMismatch",
          "kpis"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "profile": {
            "$ref": "#/components/schemas/OptimizationProfile"
          },
          "assessedOn": {
            "type": "string",
            "format": "date"
          },
          "score": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "monthlyCost": {
            "format": "double",
            "type": "number"
          },
          "idleMonthlyCost": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "targetUtilization": {
            "format": "double",
            "type": "number"
          },
          "saturationThreshold": {
            "format": "double",
            "type": "number"
          },
          "saturated": {
            "type": "boolean"
          },
          "shapeMismatch": {
            "type": "boolean"
          },
          "kpis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptimizationKpiMeasurement"
            }
          }
        }
      },
      "OptimizationScoreResourcePage": {
        "required": [
          "items",
          "totalCount"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptimizationScoreResource"
            }
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "OptimizationScoreResourceSort": {
        "enum": [
          "IdleCost",
          "Score",
          "Cost",
          null
        ]
      },
      "OptimizationScoreSummary": {
        "required": [
          "asOf",
          "score",
          "scoreChange",
          "scoreChangeSince",
          "weighting",
          "kpis",
          "assessedResources",
          "unassessedResources",
          "assessedMonthlyCost",
          "unassessedMonthlyCost",
          "idleMonthlyCost",
          "saturatedResources",
          "shapeMismatchedResources",
          "policy"
        ],
        "type": "object",
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "score": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "scoreChange": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "scoreChangeSince": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "weighting": {
            "$ref": "#/components/schemas/OptimizationScoreWeighting"
          },
          "kpis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptimizationKpiSummary"
            }
          },
          "assessedResources": {
            "format": "int32",
            "type": "integer"
          },
          "unassessedResources": {
            "format": "int32",
            "type": "integer"
          },
          "assessedMonthlyCost": {
            "format": "double",
            "type": "number"
          },
          "unassessedMonthlyCost": {
            "format": "double",
            "type": "number"
          },
          "idleMonthlyCost": {
            "format": "double",
            "type": "number"
          },
          "saturatedResources": {
            "format": "int32",
            "type": "integer"
          },
          "shapeMismatchedResources": {
            "format": "int32",
            "type": "integer"
          },
          "policy": {
            "$ref": "#/components/schemas/OptimizationScorePolicy"
          }
        }
      },
      "OptimizationScoreWeighting": {
        "enum": [
          "Cost",
          "ResourceCount"
        ]
      },
      "OrganizationTree": {
        "required": [
          "name",
          "children"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationTree"
            }
          }
        }
      },
      "PaginateResourcesWithoutGroupRequest": {
        "required": [
          "dimensions"
        ],
        "type": "object",
        "properties": {
          "dimensions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupingDimension"
            }
          },
          "page": {
            "format": "int32",
            "default": 1,
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "default": 25,
            "type": "integer"
          }
        }
      },
      "PingWebhookBody": {
        "required": [
          "url",
          "channelType",
          "signingSecret",
          "properties"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "channelType": {
            "$ref": "#/components/schemas/NotificationChannelType"
          },
          "signingSecret": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "PingWebhookResult": {
        "required": [
          "success",
          "httpStatusCode",
          "errorMessage"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "httpStatusCode": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PolicyAction": {
        "enum": [
          "Start",
          "Stop",
          "Terminate",
          "Delete",
          "Scale",
          "Notify",
          "Remediate"
        ]
      },
      "PolicyApprovalStatus": {
        "enum": [
          "Pending",
          "Approved",
          "Rejected"
        ]
      },
      "PolicyCategory": {
        "enum": [
          "Compute",
          "Database",
          "Storage",
          "Network",
          "Generic"
        ]
      },
      "PolicyEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "PolicyInstanceApprovalEntry": {
        "required": [
          "approvalId",
          "batchId",
          "policyInstance",
          "discoveredResourceId",
          "discoveredResourceName",
          "discoveredResourceType",
          "discoveredResourceRegion",
          "plannedAction",
          "plannedPolicyVersion",
          "configurationSnapshot",
          "reason",
          "evidence",
          "requestedAt",
          "status",
          "decidedAt",
          "decidedBy"
        ],
        "type": "object",
        "properties": {
          "approvalId": {
            "type": "string",
            "format": "uuid"
          },
          "batchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "policyInstance": {
            "$ref": "#/components/schemas/PolicyInstanceEntry"
          },
          "discoveredResourceId": {
            "type": "string",
            "format": "uuid"
          },
          "discoveredResourceName": {
            "type": "string"
          },
          "discoveredResourceType": {
            "type": "string"
          },
          "discoveredResourceRegion": {
            "type": "string"
          },
          "plannedAction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PolicyAction"
              }
            ],
            "nullable": true
          },
          "plannedPolicyVersion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemVersion"
              }
            ],
            "nullable": true
          },
          "configurationSnapshot": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "evidence": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/PolicyApprovalStatus"
          },
          "decidedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decidedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          }
        }
      },
      "PolicyInstanceEntry": {
        "required": [
          "id",
          "definitionId",
          "name",
          "active",
          "action",
          "versionRange",
          "schedule",
          "groups",
          "requiresApproval",
          "configuration"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "definitionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "action": {
            "$ref": "#/components/schemas/PolicyAction"
          },
          "versionRange": {
            "$ref": "#/components/schemas/SemVersionRange"
          },
          "schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CrontabSchedule"
              }
            ],
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupEntry"
            },
            "nullable": true
          },
          "requiresApproval": {
            "type": "boolean"
          },
          "configuration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          },
          "lifetime": {
            "$ref": "#/components/schemas/PolicyLifetime"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "closedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "targets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyTargetReference"
            },
            "nullable": true
          }
        }
      },
      "PolicyInstanceJobEntry": {
        "required": [
          "id",
          "connectionId",
          "connectionName",
          "rootGroup",
          "dryRun",
          "caller",
          "scheduledAt",
          "startedAt",
          "completedAt",
          "log",
          "status",
          "resourcesOk",
          "resourcesFailed",
          "resourcesSkipped",
          "scanCreditsUsed",
          "processingCreditsUsed",
          "policyInstanceId",
          "lifetime",
          "approvalExpiresAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string",
            "nullable": true
          },
          "rootGroup": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "caller": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "scheduledAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "log": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "status": {
            "$ref": "#/components/schemas/AsyncOperationEventType"
          },
          "resourcesOk": {
            "format": "int32",
            "type": "integer"
          },
          "resourcesFailed": {
            "format": "int32",
            "type": "integer"
          },
          "resourcesSkipped": {
            "format": "int32",
            "type": "integer"
          },
          "scanCreditsUsed": {
            "format": "int32",
            "type": "integer"
          },
          "processingCreditsUsed": {
            "format": "int32",
            "type": "integer"
          },
          "policyInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "lifetime": {
            "$ref": "#/components/schemas/PolicyLifetime"
          },
          "approvalExpiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "PolicyKind": {
        "enum": [
          "Recommendation",
          "Deterministic",
          "Probabilistic"
        ]
      },
      "PolicyLifetime": {
        "enum": [
          "Reusable",
          "Ephemeral"
        ]
      },
      "PolicyMetadata": {
        "required": [
          "id",
          "name",
          "description",
          "schedulable",
          "categories",
          "kind",
          "action"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "schedulable": {
            "type": "boolean"
          },
          "canRequestApproval": {
            "type": "boolean"
          },
          "supportedTargetKinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyTargetKind"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyCategory"
            }
          },
          "kind": {
            "$ref": "#/components/schemas/PolicyKind"
          },
          "action": {
            "$ref": "#/components/schemas/PolicyAction"
          }
        }
      },
      "PolicyTargetKind": {
        "enum": [
          "DiscoveredResource"
        ]
      },
      "PolicyTargetReference": {
        "required": [
          "kind",
          "reference"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/PolicyTargetKind"
          },
          "reference": {
            "type": "string"
          }
        }
      },
      "PolicyVersionEntry": {
        "required": [
          "id",
          "name",
          "description",
          "version",
          "schema",
          "creditsPerProcessedResource",
          "creditsPerScannedResource",
          "validProviders",
          "schedulable",
          "categories",
          "kind",
          "action",
          "createdAt",
          "deprecatedOn"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "version": {
            "$ref": "#/components/schemas/SemVersion"
          },
          "schema": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonDocument"
              }
            ],
            "nullable": true
          },
          "creditsPerProcessedResource": {
            "format": "int32",
            "type": "integer"
          },
          "creditsPerScannedResource": {
            "format": "int32",
            "type": "integer"
          },
          "validProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          "schedulable": {
            "type": "boolean"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyCategory"
            }
          },
          "kind": {
            "$ref": "#/components/schemas/PolicyKind"
          },
          "action": {
            "$ref": "#/components/schemas/PolicyAction"
          },
          "createdAt": {
            "type": "string",
            "format": "date"
          },
          "deprecatedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          }
        }
      },
      "PolicyVersionMetadata": {
        "required": [
          "changelog",
          "version",
          "creditsPerProcessedResource",
          "creditsPerScannedResource",
          "validProviders",
          "createdAt",
          "deprecatedOn"
        ],
        "type": "object",
        "properties": {
          "changelog": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "$ref": "#/components/schemas/SemVersion"
          },
          "creditsPerProcessedResource": {
            "format": "int32",
            "type": "integer"
          },
          "creditsPerScannedResource": {
            "format": "int32",
            "type": "integer"
          },
          "validProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date"
          },
          "deprecatedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Provider": {
        "enum": [
          "Azure",
          "AWS",
          "GCP",
          "Jira"
        ]
      },
      "ProviderType": {
        "type": "string"
      },
      "ProvisioningClaimIdentityResponse": {
        "required": [
          "applicationObjectId",
          "clientId",
          "principalObjectId",
          "displayName",
          "runnerRoleAssigned",
          "authenticationTenantId",
          "azureDevOpsCallbackConnectionName"
        ],
        "type": "object",
        "properties": {
          "applicationObjectId": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "principalObjectId": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "runnerRoleAssigned": {
            "type": "boolean"
          },
          "authenticationTenantId": {
            "type": "string",
            "format": "uuid"
          },
          "azureDevOpsCallbackConnectionName": {
            "type": "string"
          }
        }
      },
      "ProvisioningCredentialKind": {
        "enum": [
          "AzureDevOpsPersonalAccessToken",
          "GitHubPersonalAccessToken",
          "GitHubApp"
        ]
      },
      "ProvisioningExecutionOption": {
        "required": [
          "value",
          "label"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "ProvisioningOperationEntry": {
        "required": [
          "id",
          "tenantId",
          "deploymentId",
          "operationType",
          "status",
          "runnerKind",
          "stateBackendKind",
          "policyDecision",
          "policyFingerprint",
          "policyOverrideBy",
          "policyOverrideReason",
          "policyOverriddenAt",
          "manifestSha256",
          "planSha256",
          "planJsonSha256",
          "externalRunId",
          "createdAt",
          "updatedAt",
          "startedAt",
          "heartbeatAt",
          "completedAt",
          "expiresAt",
          "failureCode",
          "failureMessage",
          "recoveryResolution",
          "recoveryEvidenceReference",
          "recoveryReason",
          "recoveredBy",
          "recoveredAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "deploymentId": {
            "type": "string",
            "format": "uuid"
          },
          "operationType": {
            "$ref": "#/components/schemas/ProvisioningOperationType"
          },
          "status": {
            "$ref": "#/components/schemas/ProvisioningOperationStatus"
          },
          "runnerKind": {
            "$ref": "#/components/schemas/ProvisioningRunnerKind"
          },
          "stateBackendKind": {
            "$ref": "#/components/schemas/TerraformStateBackendKind"
          },
          "policyDecision": {
            "$ref": "#/components/schemas/ProvisioningPolicyDecision"
          },
          "policyEvaluationResult": {
            "$ref": "#/components/schemas/ProvisioningPolicyEvaluationResult"
          },
          "policyFingerprint": {
            "type": "string",
            "nullable": true
          },
          "policyOverrideBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "policyOverrideReason": {
            "type": "string",
            "nullable": true
          },
          "policyOverriddenAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "manifestSha256": {
            "type": "string",
            "nullable": true
          },
          "planSha256": {
            "type": "string",
            "nullable": true
          },
          "planJsonSha256": {
            "type": "string",
            "nullable": true
          },
          "externalRunId": {
            "type": "string",
            "nullable": true
          },
          "externalRunUrl": {
            "type": "string",
            "nullable": true
          },
          "planSummary": {
            "$ref": "#/components/schemas/ProvisioningPlanSummary"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "heartbeatAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "failureCode": {
            "type": "string",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "recoveryResolution": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProvisioningRecoveryResolution"
              }
            ],
            "nullable": true
          },
          "recoveryEvidenceReference": {
            "type": "string",
            "nullable": true
          },
          "recoveryReason": {
            "type": "string",
            "nullable": true
          },
          "recoveredBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "recoveredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ProvisioningOperationStatus": {
        "enum": [
          "Created",
          "Planning",
          "AwaitingPolicy",
          "AwaitingRunner",
          "Applying",
          "Succeeded",
          "Failed",
          "Cancelled",
          "TimedOut",
          "UnknownOutcome"
        ]
      },
      "ProvisioningOperationType": {
        "enum": [
          "Plan",
          "Apply",
          "Destroy",
          "Refresh"
        ]
      },
      "ProvisioningPlanResourceChange": {
        "required": [
          "address",
          "resourceType",
          "providerName",
          "moduleAddress",
          "actions",
          "actionReason",
          "changedAttributes",
          "omittedChangedAttributeCount",
          "hasSensitiveChanges"
        ],
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "resourceType": {
            "type": "string"
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "moduleAddress": {
            "type": "string",
            "nullable": true
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "actionReason": {
            "type": "string",
            "nullable": true
          },
          "changedAttributes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "omittedChangedAttributeCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "hasSensitiveChanges": {
            "type": "boolean"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "resourceName": {
            "type": "string",
            "nullable": true
          },
          "catalogItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "catalogItemName": {
            "type": "string",
            "nullable": true
          },
          "catalogItemDisplayName": {
            "type": "string",
            "nullable": true
          },
          "catalogItemVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "catalogItemVersion": {
            "type": "string",
            "nullable": true
          },
          "previousCatalogItemVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "previousCatalogItemVersion": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ProvisioningPlanSummary": {
        "required": [
          "totalChanges",
          "createCount",
          "updateCount",
          "deleteCount",
          "replaceCount",
          "readCount",
          "otherCount",
          "isTruncated",
          "omittedResourceCount",
          "resources",
          "violations",
          "omittedViolationCount"
        ],
        "type": "object",
        "properties": {
          "totalChanges": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "createCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "updateCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "deleteCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "replaceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "readCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "otherCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "isTruncated": {
            "type": "boolean"
          },
          "omittedResourceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningPlanResourceChange"
            }
          },
          "violations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningPolicyViolation"
            }
          },
          "omittedViolationCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ProvisioningPolicyDecision": {
        "enum": [
          "NotEvaluated",
          "Allowed",
          "Denied",
          "OverrideAllowed"
        ]
      },
      "ProvisioningPolicyEffect": {
        "enum": [
          "Deny",
          "Warn"
        ]
      },
      "ProvisioningPolicyEvaluationResult": {
        "enum": [
          "NotEvaluated",
          "Passed",
          "WouldViolate"
        ]
      },
      "ProvisioningPolicyRuleEntry": {
        "required": [
          "id",
          "tenantId",
          "name",
          "priority",
          "effect",
          "ruleType",
          "configuration",
          "version",
          "isEnabled",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "effect": {
            "$ref": "#/components/schemas/ProvisioningPolicyEffect"
          },
          "ruleType": {
            "type": "string"
          },
          "configuration": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProvisioningPolicyViolation": {
        "required": [
          "ruleId",
          "ruleName",
          "effect",
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "ruleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ruleName": {
            "type": "string"
          },
          "effect": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "ProvisioningRecoveryResolution": {
        "enum": [
          "StateVerifiedConsistent",
          "StateRestored",
          "ApplyConfirmedSucceeded",
          "ProviderTopologyVerified",
          null
        ]
      },
      "ProvisioningRunnerKind": {
        "enum": [
          "Unconfigured",
          "TenantAzureDevOps",
          "TenantGitHubActions"
        ]
      },
      "ProvisioningStateStorageCheck": {
        "required": [
          "code",
          "label",
          "passed",
          "detail"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "QueryCurrency": {
        "type": "string",
        "enum": [
          "DefaultForTenant",
          "Usd"
        ],
        "description": "Currency of cost amounts. `DefaultForTenant` uses the tenant billing currency."
      },
      "QueryInput": {
        "required": [
          "type",
          "timeFrame"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/QueryCurrency"
          },
          "type": {
            "$ref": "#/components/schemas/QueryInputType"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/QueryInputTimeFrame"
          },
          "granularity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInputGranularity"
              }
            ],
            "nullable": true
          },
          "timePeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInputTimePeriod"
              }
            ],
            "nullable": true
          },
          "dataset": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInputDataset"
              }
            ],
            "nullable": true
          },
          "k": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInputK"
              }
            ],
            "nullable": true
          },
          "includeForecast": {
            "type": "boolean"
          }
        }
      },
      "QueryInputDataset": {
        "type": "object",
        "properties": {
          "select": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuerySelectables"
            },
            "nullable": true
          },
          "filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInputFilter"
              }
            ],
            "nullable": true
          },
          "groupBy": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuerySelectables"
            },
            "nullable": true
          },
          "costGroupingOperator": {
            "default": "Sum"
          }
        }
      },
      "QueryInputFilter": {
        "type": "object",
        "description": "A comparison (`column`, `operator`, `values`), or a combination of filters in a single `and` or `or` property. Combinations can be nested.",
        "properties": {
          "and": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryInputFilter"
            },
            "description": "All the filters must match."
          },
          "or": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryInputFilter"
            },
            "description": "At least one of the filters must match."
          },
          "column": {
            "type": "string",
            "enum": [
              "ConnectionId",
              "ConnectionName",
              "Name",
              "ProviderGivenId",
              "Type",
              "Category",
              "Cost",
              "Group",
              "Tag",
              "Provider",
              "Dimension",
              "CostType",
              "Meter",
              "MeterSubcategory"
            ],
            "description": "Column of a comparison."
          },
          "operator": {
            "type": "string",
            "enum": [
              "Equals",
              "NotEquals",
              "All",
              "GreaterThan",
              "GreaterThanOrEqualTo",
              "LessThan",
              "LessThanOrEqualTo"
            ],
            "description": "Operator of a comparison. On single-valued columns, `Equals` and `NotEquals` with several values match any or none of them. `Group`, `Tag` and `Dimension` accept `Equals` with one value or `All` with several values (all must match). `Cost` accepts every operator except `All`."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Values of a comparison."
          }
        }
      },
      "QueryInputGranularity": {
        "type": "string",
        "enum": [
          "Daily",
          "Weekly",
          "Monthly"
        ],
        "description": "Resolution of the time series. The period must span at least one interval."
      },
      "QueryInputK": {
        "required": [
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "format": "int32",
            "type": "integer"
          },
          "ordering": {
            "default": "Descending"
          }
        }
      },
      "QueryInputTimeFrame": {
        "type": "string",
        "enum": [
          "Last7Days",
          "Last30Days",
          "ThisMonth",
          "ThisQuarter",
          "ThisYear",
          "PreviousMonth",
          "PreviousQuarter",
          "Custom"
        ],
        "description": "Period of the query. `Custom` requires `timePeriod`."
      },
      "QueryInputTimePeriod": {
        "required": [
          "start",
          "end"
        ],
        "type": "object",
        "properties": {
          "start": {
            "format": "date"
          },
          "end": {
            "format": "date"
          }
        }
      },
      "QueryInputType": {
        "type": "string",
        "enum": [
          "Actual",
          "Amortized"
        ],
        "description": "Actual costs as billed, or costs with reservations and savings plans amortized over their term."
      },
      "QuerySelectables": {
        "enum": [
          "None",
          "Id",
          "ConnectionId",
          "ConnectionName",
          "Name",
          "ProviderGivenId",
          "Type",
          "Category",
          "Group",
          "Tag",
          "Provider",
          "Dimension",
          "CostType",
          "Meter",
          "MeterSubcategory"
        ]
      },
      "QuotaDetails": {
        "required": [
          "limit",
          "current"
        ],
        "type": "object",
        "properties": {
          "limit": {
            "format": "int32",
            "type": "integer"
          },
          "current": {
            "format": "int32",
            "type": "integer"
          },
          "available": {
            "format": "int32",
            "type": "integer"
          },
          "isExceeded": {
            "type": "boolean"
          },
          "utilizationPercentage": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "QuotaEntityType": {
        "enum": [
          "Connection",
          "DiscoveredResource",
          "Group",
          "Deployment",
          "ProvisionedResource",
          "Report",
          "User",
          "FinOpsDashboard",
          "FinOpsSavedQuery",
          "PolicyInstance",
          "MonitoringDashboard",
          "AlertRule"
        ]
      },
      "QuotaIncreaseRequest": {
        "required": [
          "entityType",
          "requestedLimit",
          "justification"
        ],
        "type": "object",
        "properties": {
          "entityType": {
            "$ref": "#/components/schemas/QuotaEntityType"
          },
          "requestedLimit": {
            "format": "int32",
            "type": "integer"
          },
          "justification": {
            "type": "string"
          }
        }
      },
      "RateLimitDetails": {
        "required": [
          "limit",
          "windowSeconds"
        ],
        "type": "object",
        "properties": {
          "limit": {
            "format": "int32",
            "type": "integer"
          },
          "windowSeconds": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "RecommendationAffectedResource": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string"
          }
        }
      },
      "RecommendationCategory": {
        "enum": [
          "Security",
          "CostOptimization",
          "Performance",
          "Reliability",
          "OperationalExcellence",
          "Other"
        ]
      },
      "RecommendationEntry": {
        "required": [
          "id",
          "tenantId",
          "connectionId",
          "connectionName",
          "providerGivenId",
          "category",
          "impact",
          "summary",
          "problem",
          "resourcesAffected"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "providerGivenId": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/RecommendationCategory"
          },
          "impact": {
            "$ref": "#/components/schemas/RecommendationImpact"
          },
          "summary": {
            "type": "string"
          },
          "problem": {
            "type": "string",
            "nullable": true
          },
          "resourcesAffected": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationAffectedResource"
            }
          },
          "estimatedMonthlySavingsUsd": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "estimatedMonthlySavings": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "savingsEstimateConfidence": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SavingsEstimateConfidence"
              }
            ],
            "nullable": true
          },
          "savingsEstimateReasoning": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RecommendationImpact": {
        "enum": [
          "High",
          "Medium",
          "Low",
          "None"
        ]
      },
      "RecordedToolCall": {
        "required": [
          "toolName"
        ],
        "type": "object",
        "properties": {
          "toolName": {
            "type": "string"
          },
          "argumentsJson": {
            "type": "string"
          },
          "obsId": {
            "type": "string"
          },
          "interpretation": {
            "type": "string",
            "nullable": true
          },
          "temporal_slice": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          }
        }
      },
      "RegexSearchRequest": {
        "required": [
          "regex"
        ],
        "type": "object",
        "properties": {
          "regex": {
            "type": "string"
          }
        }
      },
      "RegisterCatalogItemRequestBody": {
        "required": [
          "name",
          "displayName",
          "description",
          "provider",
          "sourceKind",
          "repositoryUrl",
          "repositoryPath",
          "repositoryDefaultRef",
          "credentialId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "sourceKind": {
            "$ref": "#/components/schemas/CatalogItemSourceKind"
          },
          "repositoryUrl": {
            "type": "string"
          },
          "repositoryPath": {
            "type": "string",
            "nullable": true
          },
          "repositoryDefaultRef": {
            "type": "string"
          },
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "RelationshipType": {
        "enum": [
          "Uses",
          "AttachedTo",
          "MemberOf",
          "Contains",
          "RoutesTo",
          "Assumes",
          "SecuredBy",
          "DependsOn"
        ]
      },
      "ReplyCmpDashboardFile": {
        "required": [
          "replyCmpDashboardVersion",
          "name",
          "exportedAt",
          "layout"
        ],
        "type": "object",
        "properties": {
          "replyCmpDashboardVersion": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "exportedAt": {
            "type": "string",
            "format": "date-time"
          },
          "layout": {
            "$ref": "#/components/schemas/DashboardLayout"
          }
        }
      },
      "ReportDataWindow": {
        "enum": [
          "Daily",
          "Weekly",
          "Monthly",
          "Quarterly",
          "Yearly"
        ]
      },
      "ReportEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "ReservationCadence": {
        "enum": [
          "Daily",
          "Monthly"
        ]
      },
      "ReservationCostOutput": {
        "required": [
          "id",
          "connectionId",
          "tenantId",
          "provider",
          "paymentStatus",
          "firstDiscovered",
          "costInUsd",
          "costInBillingCurrency",
          "currency",
          "lastPaymentDate",
          "lastUpdated",
          "expectedNextPaymentDate",
          "cadence"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "reservationId": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "paymentStatus": {
            "$ref": "#/components/schemas/ReservationPaymentStatus"
          },
          "firstDiscovered": {
            "type": "string",
            "format": "date"
          },
          "costInUsd": {
            "format": "double",
            "type": "number"
          },
          "costInBillingCurrency": {
            "format": "double",
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "expectedNextPaymentDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cadence": {
            "$ref": "#/components/schemas/ReservationCadence"
          },
          "utilizationPercentage": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unusedCostInUsd": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unusedCostInBillingCurrency": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "utilizationFrom": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "utilizationTo": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "isUnderutilized": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "ReservationCoveredResourceOutput": {
        "required": [
          "providerGivenId",
          "connectionId",
          "firstCoveredDate",
          "lastCoveredDate",
          "coveredDays",
          "amortizedCostInUsd",
          "amortizedCostInBillingCurrency"
        ],
        "type": "object",
        "properties": {
          "providerGivenId": {
            "type": "string"
          },
          "discoveredResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string",
            "nullable": true
          },
          "firstCoveredDate": {
            "type": "string",
            "format": "date"
          },
          "lastCoveredDate": {
            "type": "string",
            "format": "date"
          },
          "coveredDays": {
            "format": "int32",
            "type": "integer"
          },
          "amortizedCostInUsd": {
            "format": "double",
            "type": "number"
          },
          "amortizedCostInBillingCurrency": {
            "format": "double",
            "type": "number"
          },
          "coveredQuantity": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        }
      },
      "ReservationCoveredResourcesResponse": {
        "required": [
          "id",
          "provider",
          "currency",
          "resources"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reservationId": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "from": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "to": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReservationCoveredResourceOutput"
            }
          }
        }
      },
      "ReservationPaymentStatus": {
        "enum": [
          "Undefined",
          "Ongoing",
          "Settled"
        ]
      },
      "ResourceEntry": {
        "required": [
          "id",
          "name",
          "resourceGroup"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "resourceGroup": {
            "type": "string"
          },
          "location": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ResourceInMultipleGroupsItem": {
        "required": [
          "resourceId",
          "resourceName",
          "type",
          "provider",
          "dimension",
          "groups",
          "isDeleted"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceName": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "dimension": {
            "$ref": "#/components/schemas/GroupingDimension"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isDeleted": {
            "type": "boolean"
          }
        }
      },
      "ResourceInputReference": {
        "required": [
          "kind"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ResourceInputReferenceKind"
          },
          "targetResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "outputName": {
            "type": "string",
            "nullable": true
          },
          "discoveredResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "ResourceInputReferenceKind": {
        "enum": [
          "DeploymentOutput",
          "DiscoveryResource"
        ]
      },
      "ResourceReferenceOption": {
        "required": [
          "resourceId",
          "resourceName",
          "catalogItemDisplayName",
          "outputName",
          "semanticType"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceName": {
            "type": "string"
          },
          "catalogItemDisplayName": {
            "type": "string"
          },
          "outputName": {
            "type": "string"
          },
          "semanticType": {
            "type": "string"
          }
        }
      },
      "ResourcesInMultipleGroupsCountResult": {
        "required": [
          "resourcesInMultipleEnvironments",
          "resourcesInMultipleProjects",
          "totalResources"
        ],
        "type": "object",
        "properties": {
          "resourcesInMultipleEnvironments": {
            "format": "int32",
            "type": "integer"
          },
          "resourcesInMultipleProjects": {
            "format": "int32",
            "type": "integer"
          },
          "totalResources": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "ResourceStatus": {
        "enum": [
          "Latest",
          "Draft",
          "Deleted"
        ]
      },
      "ResourcesWithoutGroupCountResult": {
        "required": [
          "resourcesNotInOrganizations",
          "resourcesNotInEnvironments",
          "resourcesNotInProjects",
          "totalResources"
        ],
        "type": "object",
        "properties": {
          "resourcesNotInOrganizations": {
            "format": "int32",
            "type": "integer"
          },
          "resourcesNotInEnvironments": {
            "format": "int32",
            "type": "integer"
          },
          "resourcesNotInProjects": {
            "format": "int32",
            "type": "integer"
          },
          "totalResources": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "ResourceType": {
        "required": [
          "provider",
          "type",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "type": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          }
        }
      },
      "ResourceTypeEntry": {
        "required": [
          "provider",
          "type"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "ResourceWithoutGroupItem": {
        "required": [
          "id",
          "name",
          "type",
          "provider",
          "isDeleted"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "isDeleted": {
            "type": "boolean"
          }
        }
      },
      "RoleAssigned": {
        "required": [
          "name",
          "assignmentType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "assignmentType": {
            "$ref": "#/components/schemas/AssignmentType"
          }
        }
      },
      "RollbackSuggestion": {
        "required": [
          "suggestionType",
          "description",
          "command"
        ],
        "type": "object",
        "properties": {
          "suggestionType": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "command": {
            "type": "string"
          }
        }
      },
      "RollbackSuggestionResponse": {
        "required": [
          "resourceId",
          "resourceType",
          "providerGivenId",
          "suggestions"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceType": {
            "type": "string"
          },
          "providerGivenId": {
            "type": "string"
          },
          "suggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RollbackSuggestion"
            }
          }
        }
      },
      "RotateCredentialRequestBody": {
        "required": [
          "secret",
          "nextRotationDueAt"
        ],
        "type": "object",
        "properties": {
          "secret": {
            "type": "string"
          },
          "nextRotationDueAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SavingsEstimateConfidence": {
        "enum": [
          "High",
          "Medium",
          "Low",
          null
        ]
      },
      "SearchDeploymentEntry": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "SearchDeploymentResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchDeploymentEntry"
            }
          }
        }
      },
      "SearchedDiscoveredResourceEntry": {
        "required": [
          "id",
          "name",
          "type",
          "connectionName",
          "provider"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "connectionName": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          }
        }
      },
      "SearchResourcesResponse": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "data"
        ],
        "type": "object",
        "properties": {
          "page": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchedDiscoveredResourceEntry"
            }
          }
        }
      },
      "SemVersion": {
        "type": "string",
        "description": "Semantic version, for example `1.4.0`.",
        "example": "1.4.0"
      },
      "SemVersionRange": {
        "type": "string",
        "description": "Semantic version range, for example `>=1.2.0 <2.0.0`.",
        "example": ">=1.2.0 <2.0.0"
      },
      "StatResult": {
        "required": [
          "connectionId",
          "connectionName",
          "value",
          "unit",
          "label"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "value": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SupportLevel": {
        "enum": [
          "Full",
          "CostOnly"
        ]
      },
      "TableResult": {
        "required": [
          "connectionId",
          "connectionName",
          "columns",
          "rows"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "array"
            }
          }
        }
      },
      "TaggingAssessment": {
        "required": [
          "totalResources",
          "untaggedResources",
          "totalCost",
          "untaggedCost",
          "keys",
          "variantGroups"
        ],
        "type": "object",
        "properties": {
          "totalResources": {
            "format": "int32",
            "type": "integer"
          },
          "untaggedResources": {
            "format": "int32",
            "type": "integer"
          },
          "totalCost": {
            "format": "double",
            "type": "number"
          },
          "untaggedCost": {
            "format": "double",
            "type": "number"
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagKeyAssessment"
            }
          },
          "variantGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagKeyVariantGroup"
            }
          }
        }
      },
      "TaggingCloudApplyResult": {
        "required": [
          "resourceId",
          "name",
          "status",
          "reason"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/TagWriteStatus"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingCloudChangeEntry": {
        "required": [
          "resourceId",
          "name",
          "type",
          "provider",
          "providerGivenId",
          "connectionId",
          "connectionName",
          "writable",
          "changes"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "providerGivenId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "writable": {
            "type": "boolean"
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingCloudTagChange"
            }
          }
        }
      },
      "TaggingCloudTagChange": {
        "required": [
          "key",
          "value",
          "source",
          "currentKey",
          "currentValue"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/EffectiveTagSource"
          },
          "currentKey": {
            "type": "string",
            "nullable": true
          },
          "currentValue": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingCloudWriteRequest": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "search": {
            "type": "string",
            "nullable": true
          },
          "removeReplacedKeys": {
            "type": "boolean"
          }
        }
      },
      "TaggingConflict": {
        "required": [
          "resourceId",
          "resourceName",
          "taggedValue",
          "inferredValue"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceName": {
            "type": "string"
          },
          "taggedValue": {
            "type": "string"
          },
          "inferredValue": {
            "type": "string"
          }
        }
      },
      "TaggingConventionEntry": {
        "required": [
          "keys",
          "preferInferenceOnConflict",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingConventionKey"
            }
          },
          "preferInferenceOnConflict": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "lastEvaluation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaggingEvaluationSummary"
              }
            ],
            "nullable": true
          }
        }
      },
      "TaggingConventionInput": {
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingConventionKey"
            },
            "nullable": true
          },
          "preferInferenceOnConflict": {
            "type": "boolean"
          }
        }
      },
      "TaggingConventionKey": {
        "required": [
          "key"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingConventionValue"
            }
          },
          "inferenceRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingInferenceRule"
            }
          },
          "nameSearch": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingInferenceSource"
            }
          },
          "defaultValue": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingConventionSuggestion": {
        "required": [
          "keys",
          "notes"
        ],
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingConventionKey"
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TaggingConventionValue": {
        "required": [
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TaggingEvaluationSummary": {
        "required": [
          "evaluatedAt",
          "totalResources",
          "totalCost",
          "score",
          "compliantResources",
          "remediableTags",
          "keys"
        ],
        "type": "object",
        "properties": {
          "evaluatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "totalResources": {
            "format": "int32",
            "type": "integer"
          },
          "totalCost": {
            "format": "double",
            "type": "number"
          },
          "score": {
            "format": "double",
            "type": "number"
          },
          "compliantResources": {
            "format": "int32",
            "type": "integer"
          },
          "remediableTags": {
            "format": "int32",
            "type": "integer"
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingKeyCompliance"
            }
          }
        }
      },
      "TaggingInferenceEffect": {
        "required": [
          "resources",
          "examples"
        ],
        "type": "object",
        "properties": {
          "resources": {
            "format": "int32",
            "type": "integer"
          },
          "examples": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TaggingInferenceOperator": {
        "enum": [
          "Equals",
          "Contains",
          "StartsWith",
          "EndsWith",
          "Regex"
        ]
      },
      "TaggingInferenceRule": {
        "required": [
          "source",
          "operator",
          "pattern",
          "value"
        ],
        "type": "object",
        "properties": {
          "source": {
            "$ref": "#/components/schemas/TaggingInferenceSource"
          },
          "operator": {
            "$ref": "#/components/schemas/TaggingInferenceOperator"
          },
          "pattern": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "TaggingInferenceSource": {
        "enum": [
          "ResourceName",
          "Container",
          "ConnectionName",
          "ResourceType",
          "Region"
        ]
      },
      "TaggingKeyCompliance": {
        "required": [
          "key",
          "required"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "original": {
            "format": "int32",
            "type": "integer"
          },
          "normalized": {
            "format": "int32",
            "type": "integer"
          },
          "inferred": {
            "format": "int32",
            "type": "integer"
          },
          "defaulted": {
            "format": "int32",
            "type": "integer"
          },
          "unmapped": {
            "format": "int32",
            "type": "integer"
          },
          "missing": {
            "format": "int32",
            "type": "integer"
          },
          "conflicting": {
            "format": "int32",
            "type": "integer"
          },
          "conflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingConflict"
            }
          },
          "resourceCoverage": {
            "format": "double",
            "type": "number"
          },
          "costCoverage": {
            "format": "double",
            "type": "number"
          },
          "unmappedValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingUnmappedValue"
            }
          },
          "ruleEffects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingInferenceEffect"
            }
          },
          "nameSearchEffects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingInferenceEffect"
            }
          },
          "missingByContainer": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingMissingGroup"
            }
          }
        }
      },
      "TaggingMissingGroup": {
        "required": [
          "source",
          "name",
          "resources",
          "cost"
        ],
        "type": "object",
        "properties": {
          "source": {
            "$ref": "#/components/schemas/TaggingInferenceSource"
          },
          "name": {
            "type": "string"
          },
          "resources": {
            "format": "int32",
            "type": "integer"
          },
          "cost": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "TaggingRemediationFormat": {
        "enum": [
          "Csv",
          "AzureCli",
          "AwsCli",
          null
        ]
      },
      "TaggingResourceEntry": {
        "required": [
          "id",
          "name",
          "type",
          "connectionName",
          "provider",
          "providerGivenId",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "connectionName": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "providerGivenId": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/TaggingResourceStatus"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "sourceKey": {
            "type": "string",
            "nullable": true
          },
          "sourceValue": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingResourceStatus": {
        "enum": [
          "Original",
          "Normalized",
          "Inferred",
          "Default",
          "Unmapped",
          "Missing"
        ]
      },
      "TaggingUnmappedValue": {
        "required": [
          "value",
          "resources",
          "suggestedValue"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "resources": {
            "format": "int32",
            "type": "integer"
          },
          "suggestedValue": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingWriteRunEntry": {
        "required": [
          "id",
          "status",
          "total",
          "processed",
          "succeeded",
          "skipped",
          "failed",
          "notWritten",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/TaggingWriteRunStatus"
          },
          "total": {
            "format": "int32",
            "type": "integer"
          },
          "processed": {
            "format": "int32",
            "type": "integer"
          },
          "succeeded": {
            "format": "int32",
            "type": "integer"
          },
          "skipped": {
            "format": "int32",
            "type": "integer"
          },
          "failed": {
            "format": "int32",
            "type": "integer"
          },
          "notWritten": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggingCloudApplyResult"
            }
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "search": {
            "type": "string",
            "nullable": true
          },
          "removeReplacedKeys": {
            "type": "boolean"
          },
          "stopRequested": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TaggingWriteRunStatus": {
        "enum": [
          "Queued",
          "Running",
          "Completed",
          "Stopped",
          "Failed"
        ]
      },
      "TagKeyAssessment": {
        "required": [
          "key",
          "resources",
          "resourceShare",
          "cost",
          "costShare",
          "distinctValues",
          "topValues"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "resources": {
            "format": "int32",
            "type": "integer"
          },
          "resourceShare": {
            "format": "double",
            "type": "number"
          },
          "cost": {
            "format": "double",
            "type": "number"
          },
          "costShare": {
            "format": "double",
            "type": "number"
          },
          "distinctValues": {
            "format": "int32",
            "type": "integer"
          },
          "topValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagValueCount"
            }
          }
        }
      },
      "TagKeyVariantGroup": {
        "required": [
          "keys"
        ],
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TagValueCount": {
        "required": [
          "value",
          "resources"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "resources": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "TagWriteStatus": {
        "enum": [
          "Succeeded",
          "Failed",
          "Skipped"
        ]
      },
      "TenantEvent": {
        "required": [
          "tenantId",
          "eventType",
          "initiatedBy",
          "streamId",
          "data"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "initiatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          },
          "initiatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "streamId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ],
            "nullable": true
          }
        }
      },
      "TenantQuotaInfo": {
        "required": [
          "tenantId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "quotas": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/QuotaDetails"
            }
          }
        }
      },
      "TenantRateLimitsInfo": {
        "required": [
          "tenantId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "rateLimits": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/RateLimitDetails"
            }
          }
        }
      },
      "TerraformStateBackendKind": {
        "enum": [
          "Unconfigured",
          "TenantAzureBlob"
        ]
      },
      "TimeseriesDataPoint": {
        "required": [
          "timestamp",
          "value"
        ],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "value": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        }
      },
      "TimeseriesResult": {
        "required": [
          "connectionId",
          "connectionName",
          "series"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "connectionName": {
            "type": "string"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeseriesSeries"
            }
          }
        }
      },
      "TimeseriesSeries": {
        "required": [
          "label",
          "dataPoints"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "dataPoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeseriesDataPoint"
            }
          }
        }
      },
      "ToggleAlertRuleBody": {
        "required": [
          "enabled"
        ],
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        }
      },
      "TriggerReportRequestBody": {
        "required": [
          "periodStart",
          "periodEnd"
        ],
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "UpdateAlertRuleBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "connectionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "queryType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitoringQueryType"
              }
            ],
            "nullable": true
          },
          "queryDefinition": {},
          "condition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AlertCondition"
              }
            ],
            "nullable": true
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          },
          "evaluationIntervalMinutes": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "notificationCooldownMinutes": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "sourceDashboardId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "UpdateCatalogItemRegistrationRequestBody": {
        "required": [
          "displayName",
          "description",
          "repositoryUrl",
          "repositoryPath",
          "repositoryDefaultRef",
          "credentialId"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "repositoryUrl": {
            "type": "string"
          },
          "repositoryPath": {
            "type": "string",
            "nullable": true
          },
          "repositoryDefaultRef": {
            "type": "string"
          },
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "UpdateCredentialRequestBody": {
        "required": [
          "name",
          "metadata",
          "nextRotationDueAt"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "nextRotationDueAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "UpdateMonitoringDashboardRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "layout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DashboardLayout"
              }
            ],
            "nullable": true
          }
        }
      },
      "UpdateReportRequestBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dataWindow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportDataWindow"
              }
            ],
            "nullable": true
          },
          "crontab": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "UpdateResourceRequestBody": {
        "required": [
          "metadata"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "catalogItemVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "inputReferences": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ResourceInputReference"
            },
            "nullable": true
          }
        }
      },
      "UpdateWebhookBody": {
        "required": [
          "name",
          "url",
          "signingSecret",
          "isEnabled",
          "properties"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "signingSecret": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "UpsertCostSpikeAlertSettingsBody": {
        "required": [
          "isEnabled",
          "absoluteThreshold",
          "percentageThreshold",
          "detectGroupSpikes",
          "notificationSettings"
        ],
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          },
          "absoluteThreshold": {
            "format": "double",
            "type": "number"
          },
          "percentageThreshold": {
            "format": "double",
            "type": "number"
          },
          "detectGroupSpikes": {
            "type": "boolean"
          },
          "notificationSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationSettings"
              }
            ],
            "nullable": true
          }
        }
      },
      "User": {
        "required": [
          "id",
          "tenantId",
          "email",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "UserEntry": {
        "required": [
          "id",
          "tenantId",
          "displayName",
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "UtilizationKpi": {
        "enum": [
          "Cpu",
          "Memory",
          "Disk",
          "Throughput"
        ]
      },
      "ValidateAzureStateStorageRequest": {
        "required": [
          "connectionId",
          "subscriptionId",
          "resourceGroupName",
          "storageAccountName",
          "containerName"
        ],
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid"
          },
          "subscriptionId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceGroupName": {
            "type": "string"
          },
          "storageAccountName": {
            "type": "string"
          },
          "containerName": {
            "type": "string"
          }
        }
      },
      "WebhookDeliveryLogEntry": {
        "required": [
          "id",
          "webhookIntegrationId",
          "eventType",
          "status",
          "responseStatusCode",
          "errorMessage",
          "attemptCount",
          "deliveredAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "webhookIntegrationId": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "responseStatusCode": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "attemptCount": {
            "format": "int32",
            "type": "integer"
          },
          "deliveredAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebhookIntegrationEntry": {
        "required": [
          "id",
          "tenantId",
          "name",
          "url",
          "channelType",
          "isEnabled",
          "lastDeliveryStatus",
          "lastDeliveredAt",
          "createdAt",
          "updatedAt",
          "properties"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "channelType": {
            "$ref": "#/components/schemas/NotificationChannelType"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "lastDeliveryStatus": {
            "type": "string",
            "nullable": true
          },
          "lastDeliveredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "WidgetConfiguration": {
        "required": [
          "id",
          "type",
          "position",
          "settings"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "position": {
            "$ref": "#/components/schemas/GridPosition"
          },
          "settings": {
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "WorkspaceEntry": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "resourceId": {
            "type": "string",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "serviceAccount": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Microsoft Entra access token of the tenant service account, requested with the OAuth 2.0 client credentials flow."
      }
    }
  }
}
