{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-paged-result-of-admin-toolkit-response-schema.json",
  "title": "PagedResultOfAdminToolkitResponse",
  "description": "Generic paged result wrapper for API responses.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-admintoolkits-api-openapi.yml#/components/schemas/PagedResultOfAdminToolkitResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdminToolkitResponse"
      },
      "description": "Gets or sets the items in the current page."
    },
    "totalCount": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the total count of items across all pages.",
      "format": "int32"
    },
    "pageNumber": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the current page number (1-based).",
      "format": "int32"
    },
    "pageSize": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the number of items per page.",
      "format": "int32"
    },
    "hasMore": {
      "type": "boolean",
      "description": "Gets a value indicating whether there are more pages available."
    },
    "totalPages": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets the total number of pages.",
      "format": "int32"
    }
  },
  "$defs": {
    "AdminToolkitAssignmentMode": {
      "description": "How assignees may change an admin-assigned toolkit (MCPG-1699).\nExisting rows default to AdminToolkitAssignmentMode.Editable."
    },
    "AdminToolkitEntryResponse": {
      "type": "object",
      "properties": {
        "libraryId": {
          "type": "string",
          "description": "Gets or sets the library identifier.",
          "format": "uuid"
        },
        "selectedToolNames": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "Gets or sets the selected original upstream tool names. Null means all tools."
        }
      },
      "description": "One library's membership in an admin toolkit."
    },
    "AdminToolkitResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or sets the toolkit identifier.",
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "description": "Gets or sets the toolkit name."
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "description": "Gets or sets the optional description."
        },
        "isDraft": {
          "type": "boolean",
          "description": "Gets or sets a value indicating whether this toolkit has zero assignments (draft)."
        },
        "assignmentMode": {
          "description": "Gets or sets the assignment mode (MCPG-1699).",
          "$ref": "#/$defs/AdminToolkitAssignmentMode"
        },
        "entries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdminToolkitEntryResponse"
          },
          "description": "Gets or sets the included servers."
        },
        "userIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "Gets or sets the assigned user identifiers."
        },
        "groupIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "Gets or sets the assigned group identifiers."
        },
        "createdBy": {
          "type": "string",
          "description": "Gets or sets the user who created this toolkit.",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "description": "Gets or sets the creation timestamp.",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "Gets or sets the update timestamp.",
          "format": "date-time"
        }
      },
      "description": "An admin toolkit with entries and assignments (MCPG-1671)."
    }
  }
}