Interfaces

Request

A user's ask for something they lack the permission to do themselves, addressed to one or more targets whose approvers decide per target. The concrete type carries the typed payload.

Fields

completedAt DateTime

When the last target left PENDING; null while the request is open.

createdAt DateTime!

When it was created.

id ID!

The request's id.

permissions [RequestPermission!]!

Union of the targets' permissions plus CANCEL for the requester (same shape as Account.permissions).

requestedBy RequestUser

Who created the request; null when the user no longer exists.

requesterNote String

Free-text note from the requester.

status RequestStatus!

Aggregate of the targets' statuses.

subject RequestSubject

What the request is about, if it has a single identifiable subject.

targets [RequestTarget!]!

Every target with its own status and decision.

type RequestType!

Selects the concrete type and its payload.

updatedAt DateTime!

Last change to the request or any of its targets.