{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-admin-partnership-collection-data-schema.json",
  "title": "AdminPartnershipCollectionData",
  "description": "Cursor-paginated safe Partnership summaries for the admin collection. `searchAfter` is omitted on the terminal page; no total is returned.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-partnerships-api-openapi.yml#/components/schemas/AdminPartnershipCollectionData",
  "type": "object",
  "required": [
    "items",
    "size"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdminPartnershipSummaryData"
      },
      "description": "Partnership summaries returned in the current page."
    },
    "size": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "maximum": 100,
      "description": "Number of items returned in the current page."
    },
    "searchAfter": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "string"
      },
      "description": "Partnership cursor for the next page, omitted when no more results are available."
    }
  },
  "$defs": {
    "AdminPartnershipSummaryData": {
      "type": "object",
      "description": "Safe administrator Partnership summary. Member/grant identities, Party contact data, persistence versions, and credentials are excluded.",
      "required": [
        "partnershipId",
        "party",
        "memberCount",
        "listingSourceGrantCount",
        "created",
        "updated"
      ],
      "properties": {
        "partnershipId": {
          "type": "string",
          "description": "Stable Partnership identifier."
        },
        "party": {
          "$ref": "#/$defs/PartnershipPartySummaryData"
        },
        "memberCount": {
          "type": "integer",
          "format": "int64",
          "minimum": 0,
          "description": "Number of users in the Partnership."
        },
        "listingSourceGrantCount": {
          "type": "integer",
          "format": "int64",
          "minimum": 0,
          "description": "Number of ListingSource grants in the Partnership."
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "When the Partnership was created."
        },
        "updated": {
          "type": "string",
          "format": "date-time",
          "description": "When the Partnership, its memberships or its listing-source grants last changed."
        }
      }
    },
    "PartnershipPartySummaryData": {
      "type": "object",
      "description": "Party summary embedded in an administrator Partnership result.",
      "required": [
        "partyId",
        "partySlugId",
        "name"
      ],
      "properties": {
        "partyId": {
          "type": "string",
          "description": "Stable Party identifier."
        },
        "partySlugId": {
          "type": "string",
          "description": "Immutable Party slug identifier."
        },
        "name": {
          "type": "string",
          "maxLength": 255,
          "description": "Party name."
        }
      }
    }
  }
}