// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Author } from "../Author";
import type { CodeLocation } from "../thread/CodeLocation";
import type { Embed } from "../thread/Embed";
import type { Verdict } from "./Verdict";
export type Action =
| { "type": "edit"; title: string; target: string }
| { "type": "label"; labels: Array<string> }
| { "type": "lifecycle"; state: { status: "draft" | "open" | "archived" } }
| { "type": "assign"; assignees: Array<Author> }
| { "type": "merge"; revision: string; commit: string }
| {
"type": "review";
revision: string;
summary?: string;
verdict?: Verdict;
labels?: Array<string>;
}
| {
"type": "review.edit";
review: string;
summary?: string;
verdict?: Verdict;
labels?: Array<string>;
embeds?: Array<Embed> | null;
}
| { "type": "review.redact"; review: string }
| {
"type": "review.comment";
review: string;
body: string;
location?: CodeLocation;
replyTo?: string;
embeds?: Array<Embed>;
}
| {
"type": "review.comment.edit";
review: string;
comment: string;
body: string;
embeds?: Array<Embed>;
}
| { "type": "review.comment.redact"; review: string; comment: string }
| {
"type": "review.comment.react";
review: string;
comment: string;
reaction: string;
active: boolean;
}
| { "type": "review.comment.resolve"; review: string; comment: string }
| { "type": "review.comment.unresolve"; review: string; comment: string }
| {
"type": "review.react";
review: string;
reaction: string;
active: boolean;
}
| {
"type": "revision";
description: string;
base: string;
oid: string;
resolves?: Array<[string, string]>;
}
| {
"type": "revision.edit";
revision: string;
description: string;
embeds?: Array<Embed>;
}
| {
"type": "revision.react";
revision: string;
location?: CodeLocation;
reaction: string;
active: boolean;
}
| { "type": "revision.redact"; revision: string }
| {
"type": "revision.comment";
revision: string;
location?: CodeLocation;
body: string;
replyTo?: string;
embeds?: Array<Embed>;
}
| {
"type": "revision.comment.edit";
revision: string;
comment: string;
body: string;
embeds?: Array<Embed>;
}
| { "type": "revision.comment.redact"; revision: string; comment: string }
| {
"type": "revision.comment.react";
revision: string;
comment: string;
reaction: string;
active: boolean;
};