{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-list-secrets-response-schema.json",
  "title": "list-secrets-response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-secrets-api-openapi.yml#/components/schemas/list-secrets-response",
  "required": [
    "items"
  ],
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/secret-metadata"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/paginated-response"
    }
  ],
  "$defs": {
    "paginated-response": {
      "required": [
        "total"
      ],
      "type": "object",
      "properties": {
        "next_page_token": {
          "type": "string",
          "description": "Token to retrieve the next page. Absent when no more items exist."
        },
        "total": {
          "$ref": "#/$defs/total-count"
        }
      },
      "x-parent": true
    },
    "secret-metadata": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/secret-name"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "$ref": "#/$defs/timestamp"
        },
        "updated_at": {
          "$ref": "#/$defs/timestamp"
        }
      }
    },
    "secret-name": {
      "pattern": "^[a-zA-Z0-9_-]{1,64}$",
      "type": "string"
    },
    "timestamp": {
      "type": "integer",
      "description": "Epoch timestamp in milliseconds since January 1, 1970 UTC.",
      "format": "int64"
    },
    "total-count": {
      "required": [
        "count",
        "type"
      ],
      "type": "object",
      "properties": {
        "count": {
          "minimum": 0,
          "type": "integer",
          "description": "The total number of records across all pages. Might be an exact count, or a lower bound. Refer to the `type` field for the applicable semantics.",
          "format": "int64"
        },
        "type": {
          "$ref": "#/$defs/total-count-type"
        }
      }
    },
    "total-count-type": {
      "type": "string",
      "enum": [
        "AT_LEAST",
        "EXACT"
      ]
    }
  }
}