Skip to content

support

client.support manages customer operator access. It grants time-boxed access, lists the tenant’s grants and ends a grant at once.

grants

grants returns every support grant the tenant has made.

grants(): Promise<SupportGrant[]>;

Returns: Every SupportGrant the tenant has made, active and ended.

Records: Nothing. Not a decision.

Errors: no-session, unreachable.

grant

grant gives a customer operator access for up to seven days, with a reason. An Owner calls it after a fresh multi-factor sign-in.

grant(request: { reason: string; until: Date }): Promise<Decided<SupportGrant>>;
ParameterTypeDescription
reasonstringWhy the grant is made.
untildateWhen it ends. At most seven days away.

Returns: A Decided<SupportGrant>.

Records: One decision and one access event.

Who may call it: The Owner role.

Errors: no-session, unreachable, canceled.

end

end ends a grant at once. Every operator session in the tenant ends with it.

end(grantId: string): Promise<Decided<{}>>;
ParameterTypeDescription
grantIdstringThe grant to end.

Returns: A Decided<{}>.

Records: One decision and one access event.

Errors: no-session, unreachable, not-found.

Types

SupportGrant

interface SupportGrant {
grantId: string;
reason: string;
from: Date;
until: Date;
grantedBy: RecipientId;
endedAt?: Date;
uses: number;
}
FieldTypeDescription
grantIdstringIdentifies the grant.
reasonstringWhy it was made.
fromdateWhen it started.
untildateWhen it is due to end.
grantedByRecipientIdThe Owner who made it.
endedAtdate, optionalWhen it ended, if before until.
usesnumberThe count of operator entries and views. Each is an access event that the Owners see.