{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/adt/refs/heads/main/json-schema/platform-api-access-code-list-schema.json", "title": "AccessCodeList", "description": "List of access codes.", "type": "object", "properties": { "accessCodes": { "type": "array", "description": "Array of access codes.", "items": { "type": "object", "description": "An access code for a security system.", "properties": { "id": { "type": "string", "description": "Unique identifier of the access code.", "example": "code-001" }, "name": { "type": "string", "description": "Display name for the access code.", "example": "Master Code" }, "type": { "type": "string", "description": "Type of access code.", "enum": [ "master", "standard", "temporary", "duress" ], "example": "standard" }, "expiresAt": { "type": "string", "format": "date-time", "description": "Expiration timestamp for temporary codes.", "example": "2025-03-20T23:59:59Z" }, "permissions": { "type": "array", "description": "List of permissions granted by this code.", "items": { "type": "string" } } } } } } }