{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cosuno/json-schema/cosuno-custom-catalogs-response-schema.json",
  "title": "CustomCatalogsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cosuno-company-api-openapi.yml#/components/schemas/CustomCatalogsResponse",
  "properties": {
    "customCostGroupCatalogs": {
      "items": {
        "$ref": "#/$defs/CustomCatalog"
      },
      "type": "array",
      "description": "Custom cost group catalogs matching the request."
    },
    "totalRecords": {
      "type": "number",
      "format": "double",
      "description": "Total number of custom cost group catalogs in your company, regardless of `offset` and `limit`."
    }
  },
  "required": [
    "customCostGroupCatalogs",
    "totalRecords"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "CUSTOM_COST_GROUP_CATALOG_STATUS": {
      "type": "string",
      "enum": [
        "active",
        "deactivated"
      ]
    },
    "CustomCatalog": {
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of the custom cost group catalog."
        },
        "name": {
          "type": "string",
          "description": "Display name of the catalog."
        },
        "status": {
          "$ref": "#/$defs/CUSTOM_COST_GROUP_CATALOG_STATUS",
          "description": "Current status of the catalog. Deactivated catalogs can no longer be assigned to new projects."
        },
        "changedByUserId": {
          "type": "string",
          "description": "ID of the user who last changed the catalog."
        },
        "companyId": {
          "type": "string",
          "description": "ID of the company the catalog belongs to."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp at which the catalog was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp at which the catalog was last updated."
        },
        "deletedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Timestamp at which the catalog was deleted, or `null` if the catalog has not been deleted."
        }
      },
      "required": [
        "id",
        "name",
        "status",
        "changedByUserId",
        "companyId",
        "createdAt",
        "updatedAt",
        "deletedAt"
      ],
      "type": "object",
      "additionalProperties": false
    }
  }
}