{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-list-workload-identity-bindings-response-schema.json",
  "title": "list-workload-identity-bindings-response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-service-accounts-api-openapi.yml#/components/schemas/list-workload-identity-bindings-response",
  "required": [
    "items"
  ],
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/workload-identity-binding"
      }
    }
  },
  "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
    },
    "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"
      ]
    },
    "workload-identity-binding": {
      "required": [
        "created_at",
        "provider_name",
        "subject",
        "uuid"
      ],
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "description": "The identifier of the binding.",
          "format": "uuid"
        },
        "provider_name": {
          "maxLength": 63,
          "type": "string",
          "description": "The name of the workload identity provider the binding belongs to."
        },
        "subject": {
          "maxLength": 512,
          "pattern": "^[^*]+(?:[:/]\\*)?$",
          "type": "string",
          "description": "The `sub` claim the binding matches. A trailing `*` makes it a prefix match."
        },
        "condition": {
          "maxLength": 2048,
          "type": "string",
          "description": "A CEL expression over the token's claims that must evaluate to `true`. Absent when the binding matches on the subject alone."
        },
        "created_at": {
          "$ref": "#/$defs/timestamp"
        },
        "last_used_at": {
          "description": "When a token was last exchanged through the binding. Absent when it was never used.",
          "allOf": [
            {
              "$ref": "#/$defs/timestamp"
            }
          ]
        }
      }
    }
  }
}