{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-admin-partnership-details-data-schema.json",
  "title": "AdminPartnershipDetailsData",
  "description": "Administrator Partnership detail. Member and ListingSource reference arrays are ordered by ID and capped at 100 entries; count fields are complete.",
  "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/AdminPartnershipDetailsData",
  "type": "object",
  "required": [
    "partnershipId",
    "party",
    "memberUserIds",
    "listingSourceIds",
    "memberCount",
    "listingSourceGrantCount",
    "created",
    "updated"
  ],
  "properties": {
    "partnershipId": {
      "type": "string",
      "description": "Stable Partnership identifier."
    },
    "party": {
      "$ref": "#/$defs/PartnershipPartySummaryData"
    },
    "memberUserIds": {
      "type": "array",
      "maxItems": 100,
      "uniqueItems": true,
      "description": "Current member User IDs in deterministic ascending ID order. At most 100 references are returned.",
      "items": {
        "type": "string"
      }
    },
    "listingSourceIds": {
      "type": "array",
      "maxItems": 100,
      "uniqueItems": true,
      "description": "Current ListingSource grant IDs in deterministic ascending ID order. At most 100 references are returned.",
      "items": {
        "type": "string"
      }
    },
    "memberCount": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Complete number of current Partnership members."
    },
    "listingSourceGrantCount": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Complete number of current ListingSource grants."
    },
    "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."
    }
  },
  "$defs": {
    "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."
        }
      }
    }
  }
}