# apple/device-management architecture

> Architecture diagram of the GitHub repository apple/device-management, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apple/device-management
- Repository: https://github.com/apple/device-management

## Overview

This repository is a catalog of Apple device-management schemas, not a running management service. The principal workflow is a schema consumer consulting definitions for MDM messages or Declarative Device Management declarations, status, and protocol data. It also publishes selected OpenAPI specifications, other management formats, and examples associated with schema items. The README documents these offerings and the examples relationship; no source excerpts were provided, so the graph shows only those documented relationships, not internal execution or service calls.

Main entry points: [`examples`](https://github.com/apple/device-management/tree/release/examples) (Schema Examples), [`mdm/commands`](https://github.com/apple/device-management/tree/release/mdm/commands) (MDM Commands), [`mdm/checkin`](https://github.com/apple/device-management/tree/release/mdm/checkin) (Check-in Requests), [`mdm/profiles`](https://github.com/apple/device-management/tree/release/mdm/profiles) (MDM Profiles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mdm["MDM Schemas"]
  node_commands["MDM Commands"]
  node_checkin["Check-in Requests"]
  node_profiles["MDM Profiles"]
  node_errors["MDM Errors"]
end

subgraph group_ddm["Declarative Management"]
  node_declarations["Declarations"]
  node_status["Status Items"]
  node_protocol["DDM Protocol"]
end

subgraph group_services["Service Specifications"]
  node_openapi["OpenAPI Specs"]
  node_other["Other Formats"]
end

subgraph group_support["Schema Support"]
  node_schema_definition["YAML Schema Definition<br/>[schema.yaml]"]
  node_examples["Schema Examples"]
end

node_consumer(("Schema Consumer"))

node_consumer -->|"consults"| node_commands
node_consumer -->|"consults"| node_checkin
node_consumer -->|"consults"| node_profiles
node_consumer -->|"consults"| node_errors
node_consumer -->|"consults"| node_declarations
node_consumer -->|"consults"| node_status
node_consumer -->|"consults"| node_protocol
node_consumer -->|"consults"| node_openapi
node_consumer -->|"consults"| node_other
node_consumer -->|"consults"| node_schema_definition
node_consumer -->|"consults"| node_examples
node_examples -->|"mirrors schema"| node_commands
node_examples -->|"mirrors schema"| node_checkin
node_examples -->|"mirrors schema"| node_profiles
node_examples -->|"mirrors schema"| node_errors
node_examples -->|"mirrors schema"| node_declarations
node_examples -->|"mirrors schema"| node_status
node_examples -->|"mirrors schema"| node_protocol
node_examples -->|"mirrors schema"| node_other

click node_commands "https://github.com/apple/device-management/tree/release/mdm/commands"
click node_checkin "https://github.com/apple/device-management/tree/release/mdm/checkin"
click node_profiles "https://github.com/apple/device-management/tree/release/mdm/profiles"
click node_errors "https://github.com/apple/device-management/tree/release/mdm/errors"
click node_declarations "https://github.com/apple/device-management/tree/release/declarative/declarations"
click node_status "https://github.com/apple/device-management/tree/release/declarative/status"
click node_protocol "https://github.com/apple/device-management/tree/release/declarative/protocol"
click node_openapi "https://github.com/apple/device-management/tree/release/openapi"
click node_other "https://github.com/apple/device-management/tree/release/other"
click node_schema_definition "https://github.com/apple/device-management/blob/release/docs/schema.yaml"
click node_examples "https://github.com/apple/device-management/tree/release/examples"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_commands,node_checkin,node_profiles,node_errors toneBlue
class node_declarations,node_status,node_protocol toneAmber
class node_openapi,node_other toneMint
class node_schema_definition,node_examples toneRose
class node_consumer toneIndigo
```

## Components

### MDM Schemas

- [MDM Commands](https://github.com/apple/device-management/tree/release/mdm/commands): `mdm/commands`
- [Check-in Requests](https://github.com/apple/device-management/tree/release/mdm/checkin): `mdm/checkin`
- [MDM Profiles](https://github.com/apple/device-management/tree/release/mdm/profiles): `mdm/profiles`
- [MDM Errors](https://github.com/apple/device-management/tree/release/mdm/errors): `mdm/errors`

### Declarative Management

- [Declarations](https://github.com/apple/device-management/tree/release/declarative/declarations): `declarative/declarations`
- [Status Items](https://github.com/apple/device-management/tree/release/declarative/status): `declarative/status`
- [DDM Protocol](https://github.com/apple/device-management/tree/release/declarative/protocol): `declarative/protocol`

### Service Specifications

- [OpenAPI Specs](https://github.com/apple/device-management/tree/release/openapi): `openapi`
- [Other Formats](https://github.com/apple/device-management/tree/release/other): `other`

### Schema Support

- [YAML Schema Definition](https://github.com/apple/device-management/blob/release/docs/schema.yaml): `docs/schema.yaml`
- [Schema Examples](https://github.com/apple/device-management/tree/release/examples): `examples`

### Other components

- **Schema Consumer**

## Connections

- Schema Consumer → MDM Commands: consults (evidence: `README.md`)
- Schema Consumer → Check-in Requests: consults (evidence: `README.md`)
- Schema Consumer → MDM Profiles: consults (evidence: `README.md`)
- Schema Consumer → MDM Errors: consults (evidence: `README.md`)
- Schema Consumer → Declarations: consults (evidence: `README.md`)
- Schema Consumer → Status Items: consults (evidence: `README.md`)
- Schema Consumer → DDM Protocol: consults (evidence: `README.md`)
- Schema Consumer → OpenAPI Specs: consults (evidence: `README.md`)
- Schema Consumer → Other Formats: consults (evidence: `README.md`)
- Schema Consumer → YAML Schema Definition: consults (evidence: `README.md`)
- Schema Consumer → Schema Examples: consults (evidence: `README.md`)
- Schema Examples → MDM Commands: mirrors schema (evidence: `README.md`)
- Schema Examples → Check-in Requests: mirrors schema (evidence: `README.md`)
- Schema Examples → MDM Profiles: mirrors schema (evidence: `README.md`)
- Schema Examples → MDM Errors: mirrors schema (evidence: `README.md`)
- Schema Examples → Declarations: mirrors schema (evidence: `README.md`)
- Schema Examples → Status Items: mirrors schema (evidence: `README.md`)
- Schema Examples → DDM Protocol: mirrors schema (evidence: `README.md`)
- Schema Examples → Other Formats: mirrors schema (evidence: `README.md`)
