feat: implement final approval gate workflow and checklist

This commit is contained in:
2026-05-22 00:31:48 +03:00
parent 6dcbe0e36c
commit d3990b4019
15 changed files with 1851 additions and 14 deletions
+44
View File
@@ -349,6 +349,40 @@ export type EvidenceUpdateRequest = {
review_status?: string | null;
};
export type FinalApprovalChecklistItemSummary = {
blocker?: string | null;
completed: boolean;
key: string;
title: string;
};
export type FinalApprovalChecklistResponse = {
article_id: string;
blockers?: string[];
can_approve: boolean;
completed_items?: string[];
draft_version?: number | null;
items?: FinalApprovalChecklistItemSummary[];
requested_draft_version?: number | null;
};
export type FinalApprovalPublishingSettings = {
author?: string | null;
content_path?: string | null;
frontmatter?: Record<string, unknown> | null;
publishing_mode?: string | null;
};
export type FinalApprovalRequest = {
draft_version?: number | null;
publishing_settings?: FinalApprovalPublishingSettings | null;
};
export type FinalApprovalResponse = {
article: ArticleSummary;
checklist: FinalApprovalChecklistResponse;
};
export type FinalReviewIssueSummary = {
location: string;
message: string;
@@ -364,6 +398,16 @@ export type FinalReviewIssuesResponse = {
unresolved_issues?: FinalReviewIssueSummary[];
};
export type FinalRevisionRequest = {
draft_version?: number | null;
reason?: string | null;
};
export type FinalRevisionRequestResponse = {
article: ArticleSummary;
checklist: FinalApprovalChecklistResponse;
};
export type HTTPValidationError = {
detail?: ValidationError[];
};