feat(approvals): add a People page, leave channel approvals unchanged, make a binding's target optional (#2072)
This commit is contained in:
8 files changed
+214
-10
No files matched your search
@@ -365,6 +365,9 @@ export const api = {
|
||||
alerts: <T = unknown>() => request<T>("/api/alerts"),
|
||||
dismissAlert: (id: number) =>
|
||||
request<void>(`/api/alerts/${id}/dismiss`, { method: "POST", parse: false }),
|
||||
people: () => request<Person[]>("/api/people"),
|
||||
/** Replaces the organisation's people with the list. */
|
||||
putPeople: (people: Person[]) => request<Person[]>("/api/people", { method: "PUT", body: people }),
|
||||
identities: <T = unknown>() => request<T>("/api/identities"),
|
||||
identityCreate: <T = unknown>(identity: { display_name: string; kind: string }) =>
|
||||
request<T>("/api/identities", { method: "POST", body: identity }),
|
||||
@@ -678,6 +681,15 @@ export interface Run {
|
||||
result?: unknown;
|
||||
}
|
||||
|
||||
/** A person who may answer approvals, and the identities they answer as. */
|
||||
export interface Person {
|
||||
/** Empty for a new person. */
|
||||
id: string;
|
||||
name: string;
|
||||
authority: boolean;
|
||||
identities: string[];
|
||||
}
|
||||
|
||||
/** A passkey assertion made for one approval request. */
|
||||
export interface ApprovalAssertion {
|
||||
token: string;
|
||||
|
||||
Reference in new issue
Block a user