52bf0279Enrollment roster#
| Property | Value |
|---|---|
| Service | crossfire |
| Operation | enrollment |
| Method | GET |
| Path | /api/enrollments/{enrollmentId} |
| Authentication | human |
| Success status | 200 |
| Response data | Unpaginated value |
| Request format | json |
| Maximum request body | 2097152 bytes (service default) |
| Permission codes | enrollment.read.owned, enrollment.read.any |
Listed permission codes are alternatives, not token scopes. The service also checks access to the requested records and rejects stale revisions or controller generations.
Path parameters#
object; fields below; unknown fields rejected
| Field path | Representation and constraints |
|---|---|
enrollmentId | lowercase opaque UUID |
Validation#
check.object({ enrollmentId: check.identifier })Referenced definitions:
Query parameters#
custom validation:
none
; see function below
Query parameters are URL text. The validation function below specifies their format, defaults and combinations. Pagination applies only to operations that use it.
Additional checks#
The following checks apply in addition to the field limits.
Constraint on value:
export function none(input: unknown) {
const parsed = listQuery([])(input);
return parsed.ok ? success({}) : parsed;
}Validation#
query.noneReferenced definitions:
Request body#
empty object; unknown fields rejected
Validation#
check.emptyReferenced definitions:
Response data#
object; fields below; unknown fields rejected (
enrollmentDetails
)
| Field path | Representation and constraints |
|---|---|
enrollment | object; fields below; unknown fields rejected (
enrollment
) |
enrollment.owner | object; fields below; unknown fields rejected (
principal
) |
enrollment.owner.principalId | lowercase opaque UUID |
enrollment.owner.matrixUserId | well-formed Matrix user ID; maximum 255 UTF-16 units |
enrollment.owner.kind | human or agent |
enrollment.owner.displayName | string; 1–255 UTF-16 units; well-formed Unicode; no C0/DEL controls |
enrollment.owner.ownerId | lowercase opaque UUID |
enrollment.owner.ownerMatrixId | well-formed Matrix user ID; maximum 255 UTF-16 units |
enrollment.controllerName | string; 1–100 UTF-16 units; well-formed Unicode; no C0/DEL controls |
enrollment.enrollmentId | lowercase opaque UUID |
enrollment.ownerId | lowercase opaque UUID |
enrollment.fleetKey | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
enrollment.verificationCode | string; 12–12 UTF-16 units; well-formed Unicode; no C0/DEL controls |
enrollment.status | pending or approved or rejected or expired |
enrollment.revision | exact JSON integer; 0…9007199254740991 |
enrollment.createdAt | exact JSON integer; 0…9007199254740991 |
enrollment.expiresAt | exact JSON integer; 0…9007199254740991 |
enrollment.decidedByMemberId | lowercase opaque UUID; JSON null permitted |
enrollment.decidedAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
instances | array; 0–100 entries; item: object; fields below; unknown fields rejected (
enrollmentItem
) |
instances[].instanceKey | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
instances[].requestedName | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
instances[].currentName | lowercase name; pattern [a-z][a-z0-9-]{0,39}; JSON null permitted |
instances[].outcome | claimed or existing |
instances[].agentId | lowercase opaque UUID; JSON null permitted |
instances[].coordinationPolicy | object; fields below; unknown fields rejected; constraint: Select unique identities; everyone requires no individual selections (
coordinationPolicy
) |
instances[].coordinationPolicy.wakeMode | validator choice('selected', 'humans', 'everyone') (
wakeMode
) |
instances[].coordinationPolicy.senders | array; 0–2000 entries; item: object; fields below; unknown fields rejected (
matrixWakeSelection
) |
instances[].coordinationPolicy.senders[].matrixUserId | well-formed Matrix user ID; maximum 255 UTF-16 units |
instances[].coordinationPolicy.senders[].includeAgents | boolean |
instances[].coordinationPolicy.permissions | array; 0–1 entries; item: room.agent.invite |
Additional checks#
The following checks apply in addition to the field limits.
Constraint on instances[].coordinationPolicy:
policy => (policy.wakeMode !== 'everyone' || policy.senders.length === 0)
&& new Set(policy.senders.map(sender => sender.matrixUserId)).size === policy.senders.lengthValidation#
res.enrollmentDetailsReferenced definitions:
Response envelope#
A successful JSON response contains data and meta. Replace the data placeholder below with the response fields described above. Errors contain error instead of data.
{
"data": "<value matching the response-data validator>",
"meta": {
"requestId": "00000000-0000-0000-0000-000000000001"
}
}