@50arms/plugin-sdk 0.0.0-stage → 0.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -2
- package/dist/card-kit.d.ts +1942 -0
- package/dist/cli.js +6091 -0
- package/dist/publish.d.ts +246 -0
- package/dist/publish.js +6066 -0
- package/dist/vite.d.ts +133 -0
- package/dist/vite.js +303 -0
- package/dist/widgets.d.ts +142 -0
- package/dist/widgets.js +14 -0
- package/package.json +81 -4
|
@@ -0,0 +1,1942 @@
|
|
|
1
|
+
declare module "@danxbot/card-kit@1" {
|
|
2
|
+
import { PagedWindow, SortValue } from '@50arms/ui';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
export { Link, useNavigate } from 'react-router';
|
|
6
|
+
|
|
7
|
+
const BOARD_ID: unique symbol;
|
|
8
|
+
const CARD_ID: unique symbol;
|
|
9
|
+
type BoardId = number & {
|
|
10
|
+
readonly [BOARD_ID]: true;
|
|
11
|
+
};
|
|
12
|
+
type CardId = number & {
|
|
13
|
+
readonly [CARD_ID]: true;
|
|
14
|
+
};
|
|
15
|
+
type CardRef = string;
|
|
16
|
+
const BOARD_REF_NUM: unique symbol;
|
|
17
|
+
const PLAN_REF_NUM: unique symbol;
|
|
18
|
+
type BoardRefNum = number & {
|
|
19
|
+
readonly [BOARD_REF_NUM]: true;
|
|
20
|
+
};
|
|
21
|
+
type PlanRefNum = number & {
|
|
22
|
+
readonly [PLAN_REF_NUM]: true;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
interface ViaKey {
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type CardTypeKey = string;
|
|
31
|
+
type MirrorProviderId = "trello" | "slack" | "asana";
|
|
32
|
+
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
33
|
+
interface RepoProfileCopy {
|
|
34
|
+
shipped: string;
|
|
35
|
+
repo: string;
|
|
36
|
+
}
|
|
37
|
+
type ProfileNameId = string;
|
|
38
|
+
type ProfileName = StatusReason | ProfileNameMessage;
|
|
39
|
+
|
|
40
|
+
type ListType$1 = "and" | "or" | "semicolon";
|
|
41
|
+
interface ListValue<Item> {
|
|
42
|
+
list: readonly Item[];
|
|
43
|
+
type?: ListType$1;
|
|
44
|
+
}
|
|
45
|
+
type StatusReasonId = string;
|
|
46
|
+
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
|
|
47
|
+
interface ProfileNameMessage {
|
|
48
|
+
id: ProfileNameId;
|
|
49
|
+
values: StatusReasonValues;
|
|
50
|
+
}
|
|
51
|
+
type StatusReasonList = ListValue<string | number | StatusReason | ProfileNameMessage>;
|
|
52
|
+
interface StatusReasonLines {
|
|
53
|
+
lines: StatusReason[];
|
|
54
|
+
}
|
|
55
|
+
interface StatusReasonSentences {
|
|
56
|
+
sentences: StatusReason[];
|
|
57
|
+
}
|
|
58
|
+
interface StatusReason {
|
|
59
|
+
id: StatusReasonId;
|
|
60
|
+
values: StatusReasonValues;
|
|
61
|
+
}
|
|
62
|
+
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
63
|
+
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
|
|
64
|
+
type ProvenancePartyKind = "person" | "agent";
|
|
65
|
+
type ResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
|
|
66
|
+
interface ResourceRef {
|
|
67
|
+
type: ResourceType;
|
|
68
|
+
id: string;
|
|
69
|
+
}
|
|
70
|
+
type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
|
|
71
|
+
|
|
72
|
+
type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
73
|
+
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
74
|
+
type IssueProblemType = "design" | "question" | "action" | "decision_review";
|
|
75
|
+
type DecisionOutcome = "answered" | "rejected";
|
|
76
|
+
type IssueDependencyKind = "depends_on" | "conflict_on";
|
|
77
|
+
type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
78
|
+
type IssueAssignmentMode = "automated" | "manual";
|
|
79
|
+
type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
|
|
80
|
+
interface IssueV2 {
|
|
81
|
+
id: CardId;
|
|
82
|
+
ref: CardRef;
|
|
83
|
+
rev: number;
|
|
84
|
+
board_id: BoardId;
|
|
85
|
+
schema_version: number;
|
|
86
|
+
type: CardTypeKey;
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
summary: string | null;
|
|
90
|
+
pull_request_url: string | null;
|
|
91
|
+
risk_score: RiskScore | null;
|
|
92
|
+
risk_reason: string | null;
|
|
93
|
+
risk_raise_reason: string | null;
|
|
94
|
+
start_commit_sha: string | null;
|
|
95
|
+
start_commit_at: string | null;
|
|
96
|
+
start_commit_error: StartCommitError | null;
|
|
97
|
+
start_commit_error_detail: string | null;
|
|
98
|
+
parent_id: CardId | null;
|
|
99
|
+
parent_ref: CardRef | null;
|
|
100
|
+
effort_level: EffortLevelName;
|
|
101
|
+
downward_rung: EffortLevelName | null;
|
|
102
|
+
source_type: string;
|
|
103
|
+
list_id: string | null;
|
|
104
|
+
assigned_agent: string | null;
|
|
105
|
+
priority: number;
|
|
106
|
+
created_at: string;
|
|
107
|
+
updated_at: string;
|
|
108
|
+
deleted_at: string | null;
|
|
109
|
+
ready_at: string | null;
|
|
110
|
+
started_at: string | null;
|
|
111
|
+
completed_at: string | null;
|
|
112
|
+
cancelled_at: string | null;
|
|
113
|
+
archived_at: string | null;
|
|
114
|
+
wake_at: string | null;
|
|
115
|
+
wake_action: "ready" | "review" | null;
|
|
116
|
+
dispatch_id: string | null;
|
|
117
|
+
dispatch_started_at: string | null;
|
|
118
|
+
dispatch_kind: IssueDispatchKind | null;
|
|
119
|
+
assignment_mode: IssueAssignmentMode;
|
|
120
|
+
card_branch: string | null;
|
|
121
|
+
last_commit_sha: string | null;
|
|
122
|
+
card_branch_retired_at: string | null;
|
|
123
|
+
card_branch_retired_reason: string | null;
|
|
124
|
+
card_branch_retired_by: string | null;
|
|
125
|
+
chat_session_uuid: string | null;
|
|
126
|
+
slack_session_uuid: string | null;
|
|
127
|
+
blocked_at: string | null;
|
|
128
|
+
blocked_reason: string | null;
|
|
129
|
+
blocked_by: string | null;
|
|
130
|
+
blocked_via_key_id: number | null;
|
|
131
|
+
blocked_via_key_name: string | null;
|
|
132
|
+
blocked_team_agent_id: number | null;
|
|
133
|
+
open_problem_count: number;
|
|
134
|
+
triage_ice_total: number | null;
|
|
135
|
+
triage_ice_i: number | null;
|
|
136
|
+
triage_ice_c: number | null;
|
|
137
|
+
triage_ice_e: number | null;
|
|
138
|
+
triage_confidence: number | null;
|
|
139
|
+
triage_last_status: string;
|
|
140
|
+
triage_last_explain: string;
|
|
141
|
+
terminal_derived: boolean;
|
|
142
|
+
in_progress_derived: boolean;
|
|
143
|
+
dispatchable_derived: boolean;
|
|
144
|
+
triage_enabled: boolean;
|
|
145
|
+
content_hash: string;
|
|
146
|
+
}
|
|
147
|
+
interface IssueDisplayV2 extends IssueV2 {
|
|
148
|
+
status_derived: IssueStatus$1;
|
|
149
|
+
}
|
|
150
|
+
interface CommentResourceTag {
|
|
151
|
+
tag: string;
|
|
152
|
+
resource_type: ResourceType | null;
|
|
153
|
+
resource_id: string | null;
|
|
154
|
+
}
|
|
155
|
+
interface AuthorV2 {
|
|
156
|
+
name: string;
|
|
157
|
+
kind: "agent" | "person";
|
|
158
|
+
avatar_url: string | null;
|
|
159
|
+
reason: StatusReason | null;
|
|
160
|
+
team_agent_id: number | null;
|
|
161
|
+
}
|
|
162
|
+
type CommentReplyStateName = "sent" | "seen" | "responded";
|
|
163
|
+
type CommentRecipientV2 = {
|
|
164
|
+
kind: "agent";
|
|
165
|
+
by: AuthorV2;
|
|
166
|
+
reachability: CommentReachabilityV2;
|
|
167
|
+
} | {
|
|
168
|
+
kind: "none";
|
|
169
|
+
waiting_on: {
|
|
170
|
+
kind: "plan";
|
|
171
|
+
id: PlanRefNum;
|
|
172
|
+
ref: string;
|
|
173
|
+
name: string;
|
|
174
|
+
} | {
|
|
175
|
+
kind: "card";
|
|
176
|
+
id: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
type CommentReachabilityV2 = {
|
|
180
|
+
state: "listening";
|
|
181
|
+
} | {
|
|
182
|
+
state: "busy";
|
|
183
|
+
} | {
|
|
184
|
+
state: "compacting";
|
|
185
|
+
since: string;
|
|
186
|
+
} | {
|
|
187
|
+
state: "listener_down";
|
|
188
|
+
} | {
|
|
189
|
+
state: "paused_by_agent";
|
|
190
|
+
reason: string;
|
|
191
|
+
} | {
|
|
192
|
+
state: "usage_limit";
|
|
193
|
+
limit: PacingLimit;
|
|
194
|
+
until: string;
|
|
195
|
+
};
|
|
196
|
+
type ReplyRecipientV2 = {
|
|
197
|
+
kind: "agent";
|
|
198
|
+
by: AuthorV2;
|
|
199
|
+
} | Extract<CommentRecipientV2, {
|
|
200
|
+
kind: "none";
|
|
201
|
+
}>;
|
|
202
|
+
interface CommentReplyStateV2 {
|
|
203
|
+
state: CommentReplyStateName;
|
|
204
|
+
recipient: ReplyRecipientV2;
|
|
205
|
+
reply_comment_id: number | null;
|
|
206
|
+
}
|
|
207
|
+
type ChecklistItemStatus$1 = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
|
|
208
|
+
interface ChecklistV2 {
|
|
209
|
+
id: number;
|
|
210
|
+
issue_id: CardId;
|
|
211
|
+
ordinal: number;
|
|
212
|
+
name: string;
|
|
213
|
+
created_at: string;
|
|
214
|
+
updated_at: string;
|
|
215
|
+
deleted_at: string | null;
|
|
216
|
+
}
|
|
217
|
+
interface ChecklistItemV2 {
|
|
218
|
+
id: number;
|
|
219
|
+
checklist_id: number;
|
|
220
|
+
ordinal: number;
|
|
221
|
+
label: string;
|
|
222
|
+
detail: string;
|
|
223
|
+
status: ChecklistItemStatus$1;
|
|
224
|
+
created_at: string;
|
|
225
|
+
updated_at: string;
|
|
226
|
+
deleted_at: string | null;
|
|
227
|
+
}
|
|
228
|
+
interface ChecklistWithItemsV2 extends ChecklistV2 {
|
|
229
|
+
items: ChecklistItemV2[];
|
|
230
|
+
}
|
|
231
|
+
type ThumbnailStatus = "ready" | "not_image" | "failed" | "pending";
|
|
232
|
+
interface IssueAttachmentV2 {
|
|
233
|
+
id: number;
|
|
234
|
+
issue_id: CardId;
|
|
235
|
+
source_type: string;
|
|
236
|
+
external_id: string;
|
|
237
|
+
url: string;
|
|
238
|
+
filename: string;
|
|
239
|
+
mime: string;
|
|
240
|
+
is_primary: boolean;
|
|
241
|
+
thumbnail_status: ThumbnailStatus;
|
|
242
|
+
thumbnail_url: string | null;
|
|
243
|
+
thumbnail_error: string | null;
|
|
244
|
+
created_at: string;
|
|
245
|
+
updated_at: string;
|
|
246
|
+
deleted_at: string | null;
|
|
247
|
+
}
|
|
248
|
+
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
|
|
249
|
+
type GateRoundReviewerKind = "session" | "dispatch" | "person";
|
|
250
|
+
type GateRoundVerdict = "pass" | "fail" | "retry" | "skipped";
|
|
251
|
+
interface GateRoundV2 {
|
|
252
|
+
id: number;
|
|
253
|
+
number: number;
|
|
254
|
+
reviewed_ref: string | null;
|
|
255
|
+
reviewer_kind: GateRoundReviewerKind;
|
|
256
|
+
reviewer_name: string;
|
|
257
|
+
by: AuthorV2;
|
|
258
|
+
via_key: {
|
|
259
|
+
id: number;
|
|
260
|
+
name: string;
|
|
261
|
+
} | null;
|
|
262
|
+
reviewer_dispatch_id: string | null;
|
|
263
|
+
review_grade: EffortLevelName | null;
|
|
264
|
+
model: string | null;
|
|
265
|
+
effort: string | null;
|
|
266
|
+
verdict: GateRoundVerdict;
|
|
267
|
+
summary: string;
|
|
268
|
+
recorded_at: string;
|
|
269
|
+
}
|
|
270
|
+
interface ProvenanceRecordV2 {
|
|
271
|
+
id: number;
|
|
272
|
+
quote: string | null;
|
|
273
|
+
reasoning: string | null;
|
|
274
|
+
source: ProvenanceSourceV2 | null;
|
|
275
|
+
recorded_by: AuthorV2;
|
|
276
|
+
recorded_at: string;
|
|
277
|
+
}
|
|
278
|
+
interface ProvenanceSourceV2 {
|
|
279
|
+
kind: ProvenanceSourceKind;
|
|
280
|
+
ref: string;
|
|
281
|
+
card_id: CardRef | null;
|
|
282
|
+
author: AuthorV2 | null;
|
|
283
|
+
at: string | null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
type QualityGatePhase = "plan" | "code";
|
|
287
|
+
type ControlValue = boolean | string;
|
|
288
|
+
type WorkMarkResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
|
|
289
|
+
interface WorkMarkResource extends ResourceRef {
|
|
290
|
+
type: WorkMarkResourceType;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type ControlSource = "card" | "plan" | "board" | "team" | "system";
|
|
294
|
+
interface ControlFallback {
|
|
295
|
+
readonly value: ControlValue;
|
|
296
|
+
readonly source: Exclude<ControlSource, "card">;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
|
|
300
|
+
interface ActorRef {
|
|
301
|
+
kind: ActorKind;
|
|
302
|
+
name: string;
|
|
303
|
+
reason: StatusReason | ProfileName | null;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type DocsPromotionStatus = "running" | "drafted" | "failed" | "landing" | "landed" | "superseded" | "waiting";
|
|
307
|
+
|
|
308
|
+
type DocsLandStage = "direct" | "resolving" | "needs_person" | "pull_request";
|
|
309
|
+
|
|
310
|
+
type DocsLandWorker = {
|
|
311
|
+
kind: "dispatch";
|
|
312
|
+
dispatch_id: string;
|
|
313
|
+
} | {
|
|
314
|
+
kind: "session";
|
|
315
|
+
session_id: string;
|
|
316
|
+
plan_id: PlanRefNum;
|
|
317
|
+
};
|
|
318
|
+
interface DocsLandWire {
|
|
319
|
+
land_stage: DocsLandStage | null;
|
|
320
|
+
land_conflict_files: string[] | null;
|
|
321
|
+
land_reason: string | null;
|
|
322
|
+
land_worker: DocsLandWorker | null;
|
|
323
|
+
land_problem_ref_num: number | null;
|
|
324
|
+
land_pull_request_url: string | null;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface DocsReviewView extends DocsLandWire {
|
|
328
|
+
plan_id: PlanRefNum;
|
|
329
|
+
repo_name: string;
|
|
330
|
+
attempt: number;
|
|
331
|
+
status: DocsPromotionStatus;
|
|
332
|
+
summary: string;
|
|
333
|
+
head_sha: string;
|
|
334
|
+
change_counts: {
|
|
335
|
+
added: number;
|
|
336
|
+
changed: number;
|
|
337
|
+
removed: number;
|
|
338
|
+
} | null;
|
|
339
|
+
landed_sha: string | null;
|
|
340
|
+
failure_reason: string | null;
|
|
341
|
+
waiting_board_id: BoardRefNum | null;
|
|
342
|
+
approve_solution_id: number;
|
|
343
|
+
withdraw_solution_id: number;
|
|
344
|
+
compare_url: string | null;
|
|
345
|
+
updated_at: string;
|
|
346
|
+
}
|
|
347
|
+
type DecisionRecordKind = "design" | "business_rule" | "architecture" | "other";
|
|
348
|
+
type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
|
|
349
|
+
type DecisionMadeBy = "agent" | "human";
|
|
350
|
+
type DecisionApprovalAction = "approve" | "unapprove";
|
|
351
|
+
|
|
352
|
+
interface DecisionApprovalState {
|
|
353
|
+
approved: boolean;
|
|
354
|
+
by_user_id: number | null;
|
|
355
|
+
by_name: string | null;
|
|
356
|
+
at: string | null;
|
|
357
|
+
}
|
|
358
|
+
interface DecisionRecordPage {
|
|
359
|
+
offset: number;
|
|
360
|
+
target_found: boolean | null;
|
|
361
|
+
}
|
|
362
|
+
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
363
|
+
|
|
364
|
+
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
365
|
+
|
|
366
|
+
interface DesignOptionGroup {
|
|
367
|
+
key: string;
|
|
368
|
+
label: string;
|
|
369
|
+
options: string[];
|
|
370
|
+
multiple: boolean;
|
|
371
|
+
recommended: string[];
|
|
372
|
+
}
|
|
373
|
+
type OptionSelection = Record<string, string[]>;
|
|
374
|
+
|
|
375
|
+
interface SolutionContent {
|
|
376
|
+
title: string;
|
|
377
|
+
body: string;
|
|
378
|
+
pro: string;
|
|
379
|
+
con: string;
|
|
380
|
+
recommended: boolean;
|
|
381
|
+
}
|
|
382
|
+
type DecisionReviewChoiceKind = "accept" | "revert" | "restore" | "reject";
|
|
383
|
+
|
|
384
|
+
interface V2CopyComment {
|
|
385
|
+
author: string;
|
|
386
|
+
text: string;
|
|
387
|
+
metadata: unknown | null;
|
|
388
|
+
answers_decision: V2CopyDecisionRef | null;
|
|
389
|
+
tags: V2CopyCommentTag[];
|
|
390
|
+
team_agent: string | null;
|
|
391
|
+
author_email: string | null;
|
|
392
|
+
created_at: string;
|
|
393
|
+
updated_at: string;
|
|
394
|
+
}
|
|
395
|
+
interface V2CopyDecisionRef {
|
|
396
|
+
problem: number;
|
|
397
|
+
decision: number;
|
|
398
|
+
}
|
|
399
|
+
type V2CopyCommentTag = {
|
|
400
|
+
kind: "problem";
|
|
401
|
+
index: number;
|
|
402
|
+
} | {
|
|
403
|
+
kind: "design";
|
|
404
|
+
index: number;
|
|
405
|
+
} | {
|
|
406
|
+
kind: "decision";
|
|
407
|
+
index: number;
|
|
408
|
+
} | {
|
|
409
|
+
kind: "label";
|
|
410
|
+
text: string;
|
|
411
|
+
};
|
|
412
|
+
interface V2CopyBlobRef {
|
|
413
|
+
sha256: string;
|
|
414
|
+
size: number;
|
|
415
|
+
}
|
|
416
|
+
interface V2CopyAttachment {
|
|
417
|
+
filename: string;
|
|
418
|
+
primary: boolean;
|
|
419
|
+
created_at: string;
|
|
420
|
+
updated_at: string;
|
|
421
|
+
blob: V2CopyBlobRef;
|
|
422
|
+
}
|
|
423
|
+
interface V2CopyDesignRevision {
|
|
424
|
+
revision_no: number;
|
|
425
|
+
target: string;
|
|
426
|
+
design_dir: string;
|
|
427
|
+
source_files: {
|
|
428
|
+
path: string;
|
|
429
|
+
content: string;
|
|
430
|
+
}[];
|
|
431
|
+
option_groups: DesignOptionGroup[];
|
|
432
|
+
checklist: string[];
|
|
433
|
+
browser_check: BrowserCheckStatus;
|
|
434
|
+
browser_check_note: string;
|
|
435
|
+
built_from_commit: string;
|
|
436
|
+
note: string;
|
|
437
|
+
created_by: string;
|
|
438
|
+
created_at: string;
|
|
439
|
+
bundle: {
|
|
440
|
+
blob: V2CopyBlobRef;
|
|
441
|
+
} | null;
|
|
442
|
+
screenshot: {
|
|
443
|
+
blob: V2CopyBlobRef;
|
|
444
|
+
} | null;
|
|
445
|
+
}
|
|
446
|
+
interface V2CopyDesignDecision {
|
|
447
|
+
revision_no: number;
|
|
448
|
+
outcome: DesignDecisionOutcome;
|
|
449
|
+
note: string | null;
|
|
450
|
+
decided_by: string;
|
|
451
|
+
created_at: string;
|
|
452
|
+
retracted_at: string | null;
|
|
453
|
+
options: OptionSelection | null;
|
|
454
|
+
}
|
|
455
|
+
interface V2CopyDesign {
|
|
456
|
+
ref_num: number;
|
|
457
|
+
design_no: number;
|
|
458
|
+
title: string;
|
|
459
|
+
created_by: string;
|
|
460
|
+
created_at: string;
|
|
461
|
+
archived_at: string | null;
|
|
462
|
+
revisions: V2CopyDesignRevision[];
|
|
463
|
+
decisions: V2CopyDesignDecision[];
|
|
464
|
+
}
|
|
465
|
+
interface V2CopyControlOverride {
|
|
466
|
+
key: string;
|
|
467
|
+
value: unknown;
|
|
468
|
+
}
|
|
469
|
+
interface V2CopyAgentNote {
|
|
470
|
+
author: string;
|
|
471
|
+
text: string;
|
|
472
|
+
team_agent: string | null;
|
|
473
|
+
metadata: Record<string, unknown> | null;
|
|
474
|
+
ordinal: number;
|
|
475
|
+
created_at: string;
|
|
476
|
+
updated_at: string;
|
|
477
|
+
}
|
|
478
|
+
interface V2CopyDecisionApproval {
|
|
479
|
+
action: DecisionApprovalAction;
|
|
480
|
+
by_email: string | null;
|
|
481
|
+
by_name: string;
|
|
482
|
+
at: string;
|
|
483
|
+
}
|
|
484
|
+
interface V2CopyDecisionVersion {
|
|
485
|
+
version_no: number;
|
|
486
|
+
action: DecisionRecordAction;
|
|
487
|
+
title: string;
|
|
488
|
+
text: string;
|
|
489
|
+
kind: DecisionRecordKind;
|
|
490
|
+
impact: number;
|
|
491
|
+
confidence: number;
|
|
492
|
+
made_by: DecisionMadeBy;
|
|
493
|
+
made_by_email: string | null;
|
|
494
|
+
made_by_name: string | null;
|
|
495
|
+
made_by_team_agent: string | null;
|
|
496
|
+
provenance: V2CopyProvenanceRecord[];
|
|
497
|
+
author: string;
|
|
498
|
+
team_agent: string | null;
|
|
499
|
+
created_at: string;
|
|
500
|
+
approvals: V2CopyDecisionApproval[];
|
|
501
|
+
}
|
|
502
|
+
interface V2CopyDecisionRecord {
|
|
503
|
+
ref_num: number;
|
|
504
|
+
versions: V2CopyDecisionVersion[];
|
|
505
|
+
}
|
|
506
|
+
interface V2CopyAc {
|
|
507
|
+
title: string;
|
|
508
|
+
checked: boolean;
|
|
509
|
+
}
|
|
510
|
+
interface V2CopyChecklist {
|
|
511
|
+
name: string;
|
|
512
|
+
items: V2CopyChecklistItem[];
|
|
513
|
+
}
|
|
514
|
+
interface V2CopyChecklistItem {
|
|
515
|
+
label: string;
|
|
516
|
+
detail: string;
|
|
517
|
+
status: ChecklistItemStatus$1;
|
|
518
|
+
}
|
|
519
|
+
interface V2CopyDependency {
|
|
520
|
+
kind: IssueDependencyKind;
|
|
521
|
+
target_id: string;
|
|
522
|
+
reason: string;
|
|
523
|
+
}
|
|
524
|
+
interface V2CopyRetro {
|
|
525
|
+
good: string;
|
|
526
|
+
bad: string;
|
|
527
|
+
correctable_danxbot_problem: boolean;
|
|
528
|
+
correctable_danxbot_problem_description: string;
|
|
529
|
+
action_item_ids: string[];
|
|
530
|
+
commits: {
|
|
531
|
+
sha: string;
|
|
532
|
+
subject: string;
|
|
533
|
+
}[];
|
|
534
|
+
tests: V2CopyRetroTest[];
|
|
535
|
+
}
|
|
536
|
+
interface V2CopyRetroTest {
|
|
537
|
+
name: string;
|
|
538
|
+
kind: "group" | "e2e";
|
|
539
|
+
num_tests: number;
|
|
540
|
+
num_assertions: number | null;
|
|
541
|
+
num_passing_tests: number;
|
|
542
|
+
num_passing_assertions: number | null;
|
|
543
|
+
duration_ms: number;
|
|
544
|
+
}
|
|
545
|
+
interface V2CopyMirror {
|
|
546
|
+
target_type: MirrorProviderId;
|
|
547
|
+
target_ref: string;
|
|
548
|
+
target_url: string;
|
|
549
|
+
source_ref: string;
|
|
550
|
+
}
|
|
551
|
+
type SourceMirrorLocation = Record<MirrorProviderId, string | null>;
|
|
552
|
+
interface V2CopyQualityGate {
|
|
553
|
+
gate: string;
|
|
554
|
+
decision_note: string;
|
|
555
|
+
status: QualityGateStatus;
|
|
556
|
+
message: string;
|
|
557
|
+
completed_at: string | null;
|
|
558
|
+
budget_started_at: string;
|
|
559
|
+
rounds: V2CopyGateRound[];
|
|
560
|
+
reviewed_ref: string | null;
|
|
561
|
+
decided_by: string | null;
|
|
562
|
+
owed: boolean;
|
|
563
|
+
}
|
|
564
|
+
type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key">;
|
|
565
|
+
interface V2CopySolution extends SolutionContent {
|
|
566
|
+
removed: boolean;
|
|
567
|
+
design_index: number | null;
|
|
568
|
+
decision_choice: V2CopyDecisionChoice | null;
|
|
569
|
+
steps: V2CopyStep[];
|
|
570
|
+
}
|
|
571
|
+
interface V2CopyDecisionChoice {
|
|
572
|
+
kind: DecisionReviewChoiceKind;
|
|
573
|
+
version_no: number;
|
|
574
|
+
}
|
|
575
|
+
interface V2CopyDecisionReview {
|
|
576
|
+
record_index: number;
|
|
577
|
+
answered_version_no: number | null;
|
|
578
|
+
}
|
|
579
|
+
interface V2CopyStep {
|
|
580
|
+
title: string;
|
|
581
|
+
description: string | null;
|
|
582
|
+
steps: V2CopyStep[];
|
|
583
|
+
}
|
|
584
|
+
interface V2CopyDecision {
|
|
585
|
+
solution_index: number | null;
|
|
586
|
+
outcome: DecisionOutcome;
|
|
587
|
+
freeform: string | null;
|
|
588
|
+
note: string | null;
|
|
589
|
+
decided_by: string;
|
|
590
|
+
decided_at: string;
|
|
591
|
+
retracted_at: string | null;
|
|
592
|
+
provenance: V2CopyProvenanceRecord | null;
|
|
593
|
+
}
|
|
594
|
+
interface V2CopyProvenanceParty {
|
|
595
|
+
kind: ProvenancePartyKind;
|
|
596
|
+
email: string | null;
|
|
597
|
+
team_agent: string | null;
|
|
598
|
+
name: string;
|
|
599
|
+
}
|
|
600
|
+
interface V2CopyProvenanceSource {
|
|
601
|
+
kind: ProvenanceSourceKind;
|
|
602
|
+
ref: string;
|
|
603
|
+
comment_index: number | null;
|
|
604
|
+
problem_index: number | null;
|
|
605
|
+
card_linked: boolean;
|
|
606
|
+
author: V2CopyProvenanceParty | null;
|
|
607
|
+
at: string | null;
|
|
608
|
+
}
|
|
609
|
+
interface V2CopyProvenanceRecord {
|
|
610
|
+
quote: string | null;
|
|
611
|
+
reasoning: string | null;
|
|
612
|
+
source: V2CopyProvenanceSource | null;
|
|
613
|
+
recorded_by: V2CopyProvenanceParty;
|
|
614
|
+
recorded_at: string;
|
|
615
|
+
}
|
|
616
|
+
interface V2CopyProblem {
|
|
617
|
+
ref_num: number;
|
|
618
|
+
statement: string;
|
|
619
|
+
context: string | null;
|
|
620
|
+
type: IssueProblemType;
|
|
621
|
+
summary: string | null;
|
|
622
|
+
design_element: string | null;
|
|
623
|
+
decision_review: V2CopyDecisionReview | null;
|
|
624
|
+
removed: boolean;
|
|
625
|
+
solutions: V2CopySolution[];
|
|
626
|
+
decisions: V2CopyDecision[];
|
|
627
|
+
}
|
|
628
|
+
interface V2CopyIssue {
|
|
629
|
+
id: string;
|
|
630
|
+
parent_id: string | null;
|
|
631
|
+
type: CardTypeKey;
|
|
632
|
+
title: string;
|
|
633
|
+
description: string;
|
|
634
|
+
summary: string | null;
|
|
635
|
+
priority: number;
|
|
636
|
+
effort_level: EffortLevelName | null;
|
|
637
|
+
assigned_agent: string | null;
|
|
638
|
+
ready_at: string | null;
|
|
639
|
+
completed_at: string | null;
|
|
640
|
+
cancelled_at: string | null;
|
|
641
|
+
archived_at: string | null;
|
|
642
|
+
blocked_at: string | null;
|
|
643
|
+
blocked_reason: string | null;
|
|
644
|
+
ac: V2CopyAc[];
|
|
645
|
+
checklists: V2CopyChecklist[];
|
|
646
|
+
comments: V2CopyComment[];
|
|
647
|
+
agent_notes: V2CopyAgentNote[];
|
|
648
|
+
decision_records: V2CopyDecisionRecord[];
|
|
649
|
+
created_tags: V2CopyCommentTag[];
|
|
650
|
+
dependencies: V2CopyDependency[];
|
|
651
|
+
retro: V2CopyRetro | null;
|
|
652
|
+
mirrors: V2CopyMirror[];
|
|
653
|
+
quality_gates: V2CopyQualityGate[];
|
|
654
|
+
problems: V2CopyProblem[];
|
|
655
|
+
triage_enabled: boolean;
|
|
656
|
+
attachments: V2CopyAttachment[];
|
|
657
|
+
designs: V2CopyDesign[];
|
|
658
|
+
list_name: string | null;
|
|
659
|
+
list_type: ListType | null;
|
|
660
|
+
control_overrides: V2CopyControlOverride[];
|
|
661
|
+
unknown_fields: V2CopyUnknownField[];
|
|
662
|
+
}
|
|
663
|
+
interface V2CopyUnknownField {
|
|
664
|
+
path: string;
|
|
665
|
+
value: unknown;
|
|
666
|
+
}
|
|
667
|
+
interface V2CopyPayload {
|
|
668
|
+
schema_version: number;
|
|
669
|
+
issues: V2CopyIssue[];
|
|
670
|
+
source_mirror_location: SourceMirrorLocation;
|
|
671
|
+
blobs: Record<string, string>;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
interface HolderAgentPause {
|
|
675
|
+
reason: string;
|
|
676
|
+
since: string;
|
|
677
|
+
until: string;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
interface AgentIdentity {
|
|
681
|
+
id: number;
|
|
682
|
+
name: string;
|
|
683
|
+
avatar_url: string | null;
|
|
684
|
+
}
|
|
685
|
+
type AssignedAgentKind = "person" | "session" | "worker" | "label";
|
|
686
|
+
|
|
687
|
+
interface UsageTokenCounts {
|
|
688
|
+
input: number;
|
|
689
|
+
output: number;
|
|
690
|
+
cacheRead: number;
|
|
691
|
+
cacheWrite: number;
|
|
692
|
+
}
|
|
693
|
+
interface UsageSlice {
|
|
694
|
+
tokens: UsageTokenCounts;
|
|
695
|
+
costUsd: number;
|
|
696
|
+
}
|
|
697
|
+
interface UsageTotals extends UsageTokenCounts {
|
|
698
|
+
cacheWrite5m: number;
|
|
699
|
+
cacheWrite1h: number;
|
|
700
|
+
cacheWriteUnsplit: number;
|
|
701
|
+
}
|
|
702
|
+
interface UsageModelRow extends UsageSlice {
|
|
703
|
+
model: string | null;
|
|
704
|
+
}
|
|
705
|
+
type UsageKind = "work" | "operator-session" | `gate:${string}` | "triage" | "maintenance" | "chat" | "other";
|
|
706
|
+
interface UsageKindRow extends UsageSlice {
|
|
707
|
+
kind: UsageKind;
|
|
708
|
+
label: string;
|
|
709
|
+
}
|
|
710
|
+
type UsageSubagentTypeKey = "main" | "unknown" | "unattributed" | `agent:${string}`;
|
|
711
|
+
interface UsageSubagentTypeRow extends UsageSlice {
|
|
712
|
+
key: UsageSubagentTypeKey;
|
|
713
|
+
label: string;
|
|
714
|
+
sourceCount: number;
|
|
715
|
+
}
|
|
716
|
+
interface UsageTiming {
|
|
717
|
+
apiMs: number;
|
|
718
|
+
agentMs: number;
|
|
719
|
+
linesAdded: number;
|
|
720
|
+
linesRemoved: number;
|
|
721
|
+
}
|
|
722
|
+
interface UsageActivity {
|
|
723
|
+
activeMinutes: number;
|
|
724
|
+
agentMinutes: number;
|
|
725
|
+
tokens: number;
|
|
726
|
+
costUsd: number;
|
|
727
|
+
tokensPerMinute: number;
|
|
728
|
+
measuredSince: number;
|
|
729
|
+
}
|
|
730
|
+
interface UsageSummary {
|
|
731
|
+
totals: UsageTotals;
|
|
732
|
+
costUsd: number;
|
|
733
|
+
byModel: UsageModelRow[];
|
|
734
|
+
byKind: UsageKindRow[];
|
|
735
|
+
bySubagentType: UsageSubagentTypeRow[];
|
|
736
|
+
dispatchCount: number;
|
|
737
|
+
operatorAttributionSince: number | null;
|
|
738
|
+
timing: UsageTiming;
|
|
739
|
+
timingMeasuredSince: number | null;
|
|
740
|
+
activity: UsageActivity | null;
|
|
741
|
+
}
|
|
742
|
+
type UsageErrorCode = "unattributable_dispatch" | "usage_inconsistent";
|
|
743
|
+
interface UsageError {
|
|
744
|
+
error: {
|
|
745
|
+
code: UsageErrorCode;
|
|
746
|
+
message: string;
|
|
747
|
+
dispatchId: string;
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
type CardUsage = UsageSummary | UsageError | null;
|
|
751
|
+
interface DesignSourceFile {
|
|
752
|
+
path: string;
|
|
753
|
+
content: string;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
interface CommentTagOption extends CommentResourceTag {
|
|
757
|
+
name: string | null;
|
|
758
|
+
card_id: CardRef | null;
|
|
759
|
+
}
|
|
760
|
+
interface RelationPageView {
|
|
761
|
+
readonly limit: number;
|
|
762
|
+
readonly total: number;
|
|
763
|
+
readonly next_cursor: string | null;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
interface DescendantNeedsYouView {
|
|
767
|
+
readonly card_id: CardRef;
|
|
768
|
+
readonly card_title: string;
|
|
769
|
+
readonly card_status: string;
|
|
770
|
+
readonly problems: readonly {
|
|
771
|
+
readonly ref_num: number;
|
|
772
|
+
readonly type: IssueProblemType;
|
|
773
|
+
readonly statement: string;
|
|
774
|
+
readonly created_at: string;
|
|
775
|
+
}[];
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
interface ReadinessBlocker {
|
|
779
|
+
worker_id: string;
|
|
780
|
+
incomplete_count: number;
|
|
781
|
+
items: {
|
|
782
|
+
id: string;
|
|
783
|
+
label: string;
|
|
784
|
+
label_message: StatusReason;
|
|
785
|
+
reason: string;
|
|
786
|
+
reason_message: StatusReason;
|
|
787
|
+
status: string;
|
|
788
|
+
}[];
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
type DispatchKeyRefusal = {
|
|
792
|
+
reason: "role_exceeds_owner";
|
|
793
|
+
missingPermissions: readonly string[];
|
|
794
|
+
} | {
|
|
795
|
+
reason: "owner_terms_not_accepted";
|
|
796
|
+
} | {
|
|
797
|
+
reason: "owner_not_member";
|
|
798
|
+
} | {
|
|
799
|
+
reason: "profile_role_missing";
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
interface DispatchKeyBlocker {
|
|
803
|
+
worker_id: string;
|
|
804
|
+
owner_user_id: number;
|
|
805
|
+
owner_username: string;
|
|
806
|
+
reason: DispatchKeyRefusal["reason"];
|
|
807
|
+
detail: string;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
type PreGateHold = {
|
|
811
|
+
kind: "awaiting_person";
|
|
812
|
+
} | {
|
|
813
|
+
kind: "repo_designs_setting_up";
|
|
814
|
+
plan: {
|
|
815
|
+
id: number;
|
|
816
|
+
name: string;
|
|
817
|
+
};
|
|
818
|
+
} | {
|
|
819
|
+
kind: "repo_designs_off";
|
|
820
|
+
} | {
|
|
821
|
+
kind: "board_needs_repo";
|
|
822
|
+
} | {
|
|
823
|
+
kind: "decided_by_person";
|
|
824
|
+
gate: string;
|
|
825
|
+
decided_by: string;
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
type PickerRouting = "gate" | "queued" | "not_queued" | "skip" | "terminal_or_container";
|
|
829
|
+
interface DispatchableExplainView {
|
|
830
|
+
id: CardRef;
|
|
831
|
+
dispatchable: boolean;
|
|
832
|
+
self_dispatchable: boolean;
|
|
833
|
+
ancestor_blocked: boolean;
|
|
834
|
+
next_pre_gate: string | null;
|
|
835
|
+
pre_gate_hold: PreGateHold | null;
|
|
836
|
+
pre_gate_hold_reason: StatusReason | null;
|
|
837
|
+
blocking_gates: {
|
|
838
|
+
gate: string;
|
|
839
|
+
detail: string;
|
|
840
|
+
}[];
|
|
841
|
+
picker_routing: PickerRouting;
|
|
842
|
+
dispatch_key_blockers: DispatchKeyBlocker[];
|
|
843
|
+
worker_readiness_blockers: ReadinessBlocker[];
|
|
844
|
+
agent_wait: StatusReason | null;
|
|
845
|
+
}
|
|
846
|
+
interface BuildGradeView {
|
|
847
|
+
readonly grade: string;
|
|
848
|
+
readonly model: string;
|
|
849
|
+
readonly effort: string;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
type IssueStatus = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
853
|
+
interface InheritedBlockedViewV2 {
|
|
854
|
+
id: string;
|
|
855
|
+
reason: string;
|
|
856
|
+
}
|
|
857
|
+
interface WaitingOnViewV2 {
|
|
858
|
+
by: string[];
|
|
859
|
+
reason: string;
|
|
860
|
+
timestamp: string;
|
|
861
|
+
}
|
|
862
|
+
interface DependencyPullRequestViewV2 {
|
|
863
|
+
pull_request_url: string;
|
|
864
|
+
merged: boolean;
|
|
865
|
+
holding: boolean;
|
|
866
|
+
branch: string | null;
|
|
867
|
+
}
|
|
868
|
+
interface ConflictEntryViewV2 {
|
|
869
|
+
id: string;
|
|
870
|
+
reason: string;
|
|
871
|
+
}
|
|
872
|
+
interface IceViewV2 {
|
|
873
|
+
total: number | null;
|
|
874
|
+
i: number | null;
|
|
875
|
+
c: number | null;
|
|
876
|
+
e: number | null;
|
|
877
|
+
}
|
|
878
|
+
interface TriageHistoryEntryViewV2 {
|
|
879
|
+
timestamp: string;
|
|
880
|
+
status: string;
|
|
881
|
+
explain: string;
|
|
882
|
+
ice: IceViewV2;
|
|
883
|
+
confidence: number | null;
|
|
884
|
+
}
|
|
885
|
+
interface TriageViewV2 {
|
|
886
|
+
last_status: string;
|
|
887
|
+
last_explain: string;
|
|
888
|
+
ice: IceViewV2;
|
|
889
|
+
confidence: number | null;
|
|
890
|
+
history: TriageHistoryEntryViewV2[];
|
|
891
|
+
}
|
|
892
|
+
interface RetroTestViewV2 {
|
|
893
|
+
name: string;
|
|
894
|
+
kind: "group" | "e2e";
|
|
895
|
+
num_tests: number;
|
|
896
|
+
num_assertions: number | null;
|
|
897
|
+
num_passing_tests: number;
|
|
898
|
+
num_passing_assertions: number | null;
|
|
899
|
+
duration_ms: number;
|
|
900
|
+
}
|
|
901
|
+
interface RetroViewV2 {
|
|
902
|
+
good: string;
|
|
903
|
+
bad: string;
|
|
904
|
+
correctable_danxbot_problem: boolean;
|
|
905
|
+
correctable_danxbot_problem_description: string;
|
|
906
|
+
action_item_ids: string[];
|
|
907
|
+
commits: string[];
|
|
908
|
+
tests: RetroTestViewV2[];
|
|
909
|
+
commit_url_base?: string | null;
|
|
910
|
+
}
|
|
911
|
+
interface AttachmentViewV2 {
|
|
912
|
+
id: number;
|
|
913
|
+
source: SourceOrigin;
|
|
914
|
+
url: string;
|
|
915
|
+
filename: string;
|
|
916
|
+
mime: string;
|
|
917
|
+
is_primary: boolean;
|
|
918
|
+
thumbnail_status: ThumbnailStatus;
|
|
919
|
+
thumbnail_url: string | null;
|
|
920
|
+
thumbnail_error: string | null;
|
|
921
|
+
created_at: string;
|
|
922
|
+
}
|
|
923
|
+
interface AttachmentPreviewV2 {
|
|
924
|
+
id: number;
|
|
925
|
+
url: string;
|
|
926
|
+
thumbnail_url: string | null;
|
|
927
|
+
filename: string;
|
|
928
|
+
mime: string;
|
|
929
|
+
}
|
|
930
|
+
interface AcItemViewV2 {
|
|
931
|
+
check_item_id: string;
|
|
932
|
+
title: string;
|
|
933
|
+
checked: boolean;
|
|
934
|
+
}
|
|
935
|
+
type ChecklistItemStatus = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
|
|
936
|
+
interface ChecklistItemView {
|
|
937
|
+
id: number;
|
|
938
|
+
label: string;
|
|
939
|
+
detail: string;
|
|
940
|
+
status: ChecklistItemStatus;
|
|
941
|
+
}
|
|
942
|
+
interface ChecklistView {
|
|
943
|
+
id: number;
|
|
944
|
+
name: string;
|
|
945
|
+
items: ChecklistItemView[];
|
|
946
|
+
}
|
|
947
|
+
type DesignDecisionOutcome = "rejected" | "approved" | "changes_requested";
|
|
948
|
+
interface ChecklistHistoryViewV2 {
|
|
949
|
+
action: "create" | "rename" | "remove" | "add_item" | "update_item" | "remove_item";
|
|
950
|
+
checklist: string;
|
|
951
|
+
item: string | null;
|
|
952
|
+
changed: "status" | "label" | "detail" | null;
|
|
953
|
+
}
|
|
954
|
+
interface LatestWorkDispatchViewV2 {
|
|
955
|
+
dispatch_id: string;
|
|
956
|
+
started_at_ms: number;
|
|
957
|
+
completed_at_ms: number | null;
|
|
958
|
+
status: string;
|
|
959
|
+
usage_input: number;
|
|
960
|
+
usage_output: number;
|
|
961
|
+
assigned_worker_id: string | null;
|
|
962
|
+
}
|
|
963
|
+
interface ChildAssignmentViewV2 {
|
|
964
|
+
agent: string;
|
|
965
|
+
agent_repo_copy: RepoProfileCopy | null;
|
|
966
|
+
issue_id: string;
|
|
967
|
+
issue_title: string;
|
|
968
|
+
}
|
|
969
|
+
type IssueViewV2 = {
|
|
970
|
+
comments?: undefined | (Array<{
|
|
971
|
+
id: string;
|
|
972
|
+
rev: number;
|
|
973
|
+
author: string;
|
|
974
|
+
by: AuthorV2;
|
|
975
|
+
timestamp: string;
|
|
976
|
+
text: string;
|
|
977
|
+
updated_at: string;
|
|
978
|
+
origin: "" | "trello" | "slack" | "asana" | "danxbot";
|
|
979
|
+
via_key?: undefined | null | ViaKey;
|
|
980
|
+
metadata?: unknown;
|
|
981
|
+
answers_decision_id?: undefined | null | number;
|
|
982
|
+
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; }>;
|
|
983
|
+
resource_tags: Array<CommentResourceTag>;
|
|
984
|
+
reply_to_comment_id: null | number;
|
|
985
|
+
reply_phase: null | "ack" | "reply";
|
|
986
|
+
reply_state: null | CommentReplyStateV2;
|
|
987
|
+
}>);
|
|
988
|
+
checklists?: undefined | Array<ChecklistView>;
|
|
989
|
+
attachments?: undefined | (Array<{
|
|
990
|
+
id: number;
|
|
991
|
+
source: "" | "trello" | "slack" | "asana" | "danxbot";
|
|
992
|
+
url: string;
|
|
993
|
+
filename: string;
|
|
994
|
+
mime: string;
|
|
995
|
+
is_primary: boolean;
|
|
996
|
+
thumbnail_status: "ready" | "not_image" | "failed" | "pending";
|
|
997
|
+
thumbnail_url: null | string;
|
|
998
|
+
thumbnail_error: null | string;
|
|
999
|
+
created_at: string;
|
|
1000
|
+
}>);
|
|
1001
|
+
triage?: undefined | TriageViewV2;
|
|
1002
|
+
title: string;
|
|
1003
|
+
description?: undefined | string;
|
|
1004
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1005
|
+
type: string;
|
|
1006
|
+
priority: number;
|
|
1007
|
+
id: string;
|
|
1008
|
+
parent_id: null | string;
|
|
1009
|
+
rev: number;
|
|
1010
|
+
created_at: number;
|
|
1011
|
+
updated_at: number;
|
|
1012
|
+
assigned_agent: null | string;
|
|
1013
|
+
content_hash: string;
|
|
1014
|
+
retro?: undefined | RetroViewV2;
|
|
1015
|
+
stored_row?: undefined | IssueDisplayV2;
|
|
1016
|
+
stored_checklists?: undefined | Array<ChecklistWithItemsV2>;
|
|
1017
|
+
stored_attachments?: undefined | Array<IssueAttachmentV2>;
|
|
1018
|
+
retro_commit_shas?: undefined | Array<string>;
|
|
1019
|
+
code_gates?: undefined | Array<CodeGateStatus>;
|
|
1020
|
+
deleted_at?: undefined | null | number;
|
|
1021
|
+
dispatchable_derived?: undefined | false | true;
|
|
1022
|
+
blocked?: undefined | null | { at: string; reason: string; by: AuthorV2 | null; };
|
|
1023
|
+
board_id?: undefined | BoardRefNum;
|
|
1024
|
+
ready_at?: undefined | null | string;
|
|
1025
|
+
archived_at?: undefined | null | string;
|
|
1026
|
+
completed_at?: undefined | null | string;
|
|
1027
|
+
cancelled_at?: undefined | null | string;
|
|
1028
|
+
wake_at?: undefined | null | string;
|
|
1029
|
+
wake_action?: undefined | null | "review" | "ready";
|
|
1030
|
+
assigned_agent_name?: undefined | null | string;
|
|
1031
|
+
assigned_agent_team_agent?: undefined | null | AgentIdentity;
|
|
1032
|
+
resolved_list_id?: undefined | string;
|
|
1033
|
+
list_name?: undefined | string;
|
|
1034
|
+
list_color?: undefined | null | string;
|
|
1035
|
+
list_emoji?: undefined | null | string;
|
|
1036
|
+
refs?: undefined | Array<CardRefViewV2>;
|
|
1037
|
+
parent_title?: undefined | null | string;
|
|
1038
|
+
parent_type?: undefined | null | string;
|
|
1039
|
+
parent_created_at?: undefined | null | number;
|
|
1040
|
+
parent_updated_at?: undefined | null | number;
|
|
1041
|
+
parent_blocked?: undefined | null | false | true;
|
|
1042
|
+
parent_open_problem_count?: undefined | null | number;
|
|
1043
|
+
projection_error?: undefined | null | string;
|
|
1044
|
+
summary?: undefined | null | string;
|
|
1045
|
+
pull_request_url?: undefined | null | string;
|
|
1046
|
+
risk_score?: undefined | null | "R0" | "R1" | "R2" | "R3" | "R4";
|
|
1047
|
+
risk_reason?: undefined | null | string;
|
|
1048
|
+
risk_raise_reason?: undefined | null | string;
|
|
1049
|
+
start_commit?: undefined | null | { at: string; sha: string | null; error: "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected" | null; error_detail: string | null; };
|
|
1050
|
+
problem_total?: undefined | number;
|
|
1051
|
+
decision_record_total?: undefined | number;
|
|
1052
|
+
decision_record_page?: undefined | DecisionRecordPage;
|
|
1053
|
+
decision_record_approved_total?: undefined | number;
|
|
1054
|
+
lane_header?: undefined | false | true;
|
|
1055
|
+
design_count?: undefined | number;
|
|
1056
|
+
open_action_count?: undefined | number;
|
|
1057
|
+
open_problem_count?: undefined | number;
|
|
1058
|
+
ac?: undefined | Array<AcItemViewV2>;
|
|
1059
|
+
triage_enabled?: undefined | false | true;
|
|
1060
|
+
dispatch?: undefined | null | { started_at: string | null; };
|
|
1061
|
+
dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
1062
|
+
assignment_mode?: undefined | "manual" | "automated";
|
|
1063
|
+
assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
|
|
1064
|
+
assigned_agent_pause?: undefined | null | HolderAgentPause;
|
|
1065
|
+
assigned_agent_repo_copy?: undefined | null | RepoProfileCopy;
|
|
1066
|
+
latest_work_dispatch?: undefined | null | LatestWorkDispatchViewV2;
|
|
1067
|
+
usage?: undefined | null | UsageSummary | UsageError;
|
|
1068
|
+
effort_level?: undefined | "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1069
|
+
build_grade?: undefined | BuildGradeView;
|
|
1070
|
+
downward_rung?: undefined | null | "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1071
|
+
waiting_on_gate?: undefined | null | WaitingOnViewV2;
|
|
1072
|
+
waiting_on_dep_ids?: undefined | Record<string, number>;
|
|
1073
|
+
dependency_pull_requests?: undefined | Record<string, DependencyPullRequestViewV2>;
|
|
1074
|
+
conflict_on?: undefined | Array<ConflictEntryViewV2>;
|
|
1075
|
+
conflict_on_reverse?: undefined | Array<ConflictEntryViewV2>;
|
|
1076
|
+
conflict_on_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
1077
|
+
conflict_dep_ids?: undefined | Record<string, number>;
|
|
1078
|
+
conflict_on_active_count?: undefined | number;
|
|
1079
|
+
children?: undefined | Array<string>;
|
|
1080
|
+
descendant_ids?: undefined | Array<string>;
|
|
1081
|
+
descendant_needs_you?: undefined | Array<DescendantNeedsYouView>;
|
|
1082
|
+
blocked_descendants?: undefined | Array<InheritedBlockedViewV2>;
|
|
1083
|
+
child_assignments?: undefined | Array<ChildAssignmentViewV2>;
|
|
1084
|
+
ac_total?: undefined | number;
|
|
1085
|
+
ac_done?: undefined | number;
|
|
1086
|
+
ac_items?: undefined | (Array<{ title: string; status: "incomplete" | "failing" | "passing" | "cancelled" | "deferred"; }>);
|
|
1087
|
+
comments_count?: undefined | number;
|
|
1088
|
+
unread_comments_count?: undefined | number;
|
|
1089
|
+
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
1090
|
+
agent_notes_count?: undefined | number;
|
|
1091
|
+
comment_recipient?: undefined | { kind: "agent"; by: AuthorV2; reachability: CommentReachabilityV2; } | { kind: "none"; waiting_on: { kind: "plan"; id: PlanRefNum; ref: string; name: string; } | { kind: "card"; id: string; }; };
|
|
1092
|
+
comment_tags?: undefined | Array<CommentTagOption>;
|
|
1093
|
+
has_retro?: undefined | false | true;
|
|
1094
|
+
primary_attachment?: undefined | null | AttachmentPreviewV2;
|
|
1095
|
+
in_progress_derived?: undefined | false | true;
|
|
1096
|
+
waiting_on?: undefined | false | true;
|
|
1097
|
+
waiting_on_reason?: undefined | null | string;
|
|
1098
|
+
waiting_on_by?: undefined | Array<string>;
|
|
1099
|
+
triage_ice_total?: undefined | null | number;
|
|
1100
|
+
triage_ice_i?: undefined | null | number;
|
|
1101
|
+
triage_ice_c?: undefined | null | number;
|
|
1102
|
+
triage_ice_e?: undefined | null | number;
|
|
1103
|
+
triage_confidence?: undefined | null | number;
|
|
1104
|
+
triage_last_explain?: undefined | string;
|
|
1105
|
+
triage_last_status?: undefined | string;
|
|
1106
|
+
triage_last_decision_at?: undefined | null | string;
|
|
1107
|
+
next_pre_gate?: undefined | null | string;
|
|
1108
|
+
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
1109
|
+
copy_payload?: undefined | V2CopyPayload;
|
|
1110
|
+
copy_issue?: undefined | V2CopyIssue;
|
|
1111
|
+
agent_notes?: undefined | (Array<{
|
|
1112
|
+
id: string;
|
|
1113
|
+
author: string;
|
|
1114
|
+
by: AuthorV2;
|
|
1115
|
+
via_key: null | ViaKey;
|
|
1116
|
+
timestamp: string;
|
|
1117
|
+
updated_at: string;
|
|
1118
|
+
text: string;
|
|
1119
|
+
metadata: unknown;
|
|
1120
|
+
}>);
|
|
1121
|
+
decision_records?: undefined | (Array<{
|
|
1122
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1123
|
+
title: string;
|
|
1124
|
+
kind: "design" | "business_rule" | "architecture" | "other";
|
|
1125
|
+
made_by: "agent" | "human";
|
|
1126
|
+
approved: boolean;
|
|
1127
|
+
impact: number;
|
|
1128
|
+
confidence: number;
|
|
1129
|
+
rev: number;
|
|
1130
|
+
created_at: string;
|
|
1131
|
+
updated_at: string;
|
|
1132
|
+
deleted_at: null | string;
|
|
1133
|
+
author: string;
|
|
1134
|
+
by: AuthorV2;
|
|
1135
|
+
text: string;
|
|
1136
|
+
via_key: null | ViaKey;
|
|
1137
|
+
ref: string;
|
|
1138
|
+
ref_num: number;
|
|
1139
|
+
current_version: number;
|
|
1140
|
+
approval: DecisionApprovalState;
|
|
1141
|
+
record_created_at: string;
|
|
1142
|
+
made_by_user_id: null | number;
|
|
1143
|
+
made_by_name: null | string;
|
|
1144
|
+
made_by_author: AuthorV2;
|
|
1145
|
+
made_by_is_writer: boolean;
|
|
1146
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1147
|
+
comment_count: number;
|
|
1148
|
+
unread_comment_count: number;
|
|
1149
|
+
versions?: undefined | (Array<{
|
|
1150
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1151
|
+
title: string;
|
|
1152
|
+
kind: "design" | "business_rule" | "architecture" | "other";
|
|
1153
|
+
made_by: "agent" | "human";
|
|
1154
|
+
impact: number;
|
|
1155
|
+
confidence: number;
|
|
1156
|
+
id: number;
|
|
1157
|
+
created_at: string;
|
|
1158
|
+
author: string;
|
|
1159
|
+
by: AuthorV2;
|
|
1160
|
+
text: string;
|
|
1161
|
+
via_key: null | ViaKey;
|
|
1162
|
+
ref: string;
|
|
1163
|
+
approval: DecisionApprovalState;
|
|
1164
|
+
made_by_user_id: null | number;
|
|
1165
|
+
made_by_name: null | string;
|
|
1166
|
+
made_by_author: AuthorV2;
|
|
1167
|
+
made_by_is_writer: boolean;
|
|
1168
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1169
|
+
version_no: number;
|
|
1170
|
+
}>);
|
|
1171
|
+
approvals?: undefined | (Array<{
|
|
1172
|
+
action: "approve" | "unapprove";
|
|
1173
|
+
at: string;
|
|
1174
|
+
id: number;
|
|
1175
|
+
ref: string;
|
|
1176
|
+
version_no: number;
|
|
1177
|
+
by_user_id: null | number;
|
|
1178
|
+
by_name: string;
|
|
1179
|
+
}>);
|
|
1180
|
+
}>);
|
|
1181
|
+
decision_record_versions?: undefined | (Array<{
|
|
1182
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1183
|
+
title: string;
|
|
1184
|
+
kind: "design" | "business_rule" | "architecture" | "other";
|
|
1185
|
+
made_by: "agent" | "human";
|
|
1186
|
+
impact: number;
|
|
1187
|
+
confidence: number;
|
|
1188
|
+
id: number;
|
|
1189
|
+
created_at: string;
|
|
1190
|
+
author: string;
|
|
1191
|
+
by: AuthorV2;
|
|
1192
|
+
text: string;
|
|
1193
|
+
via_key: null | ViaKey;
|
|
1194
|
+
ref: string;
|
|
1195
|
+
approval: DecisionApprovalState;
|
|
1196
|
+
made_by_user_id: null | number;
|
|
1197
|
+
made_by_name: null | string;
|
|
1198
|
+
made_by_author: AuthorV2;
|
|
1199
|
+
made_by_is_writer: boolean;
|
|
1200
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1201
|
+
version_no: number;
|
|
1202
|
+
}>);
|
|
1203
|
+
decision_record_approvals?: undefined | (Array<{
|
|
1204
|
+
action: "approve" | "unapprove";
|
|
1205
|
+
at: string;
|
|
1206
|
+
id: number;
|
|
1207
|
+
ref: string;
|
|
1208
|
+
version_no: number;
|
|
1209
|
+
by_user_id: null | number;
|
|
1210
|
+
by_name: string;
|
|
1211
|
+
}>);
|
|
1212
|
+
work_marks?: undefined | Array<{
|
|
1213
|
+
id: number;
|
|
1214
|
+
via_key_id: number;
|
|
1215
|
+
resource: WorkMarkResource;
|
|
1216
|
+
note: string;
|
|
1217
|
+
by: AuthorV2;
|
|
1218
|
+
started_at: string;
|
|
1219
|
+
expires_at: string;
|
|
1220
|
+
}>;
|
|
1221
|
+
designs?: undefined | (Array<{
|
|
1222
|
+
ref_num: number;
|
|
1223
|
+
design_no: number;
|
|
1224
|
+
title: string;
|
|
1225
|
+
created_by: string;
|
|
1226
|
+
created_at: string;
|
|
1227
|
+
archived_at: null | string;
|
|
1228
|
+
review_state: "rejected" | "approved" | "awaiting_review" | "changes_requested";
|
|
1229
|
+
revision_count: number;
|
|
1230
|
+
latest_revision_no: number;
|
|
1231
|
+
chosen_options: null | OptionSelection;
|
|
1232
|
+
comment_count?: undefined | number;
|
|
1233
|
+
unread_comment_count?: undefined | number;
|
|
1234
|
+
revisions?: undefined | (Array<{
|
|
1235
|
+
revision_no: number;
|
|
1236
|
+
target: string;
|
|
1237
|
+
design_dir: string;
|
|
1238
|
+
built_from_commit: string;
|
|
1239
|
+
note: string;
|
|
1240
|
+
created_by: string;
|
|
1241
|
+
created_by_ref: ActorRef;
|
|
1242
|
+
created_at: string;
|
|
1243
|
+
bundle_bytes: null | number;
|
|
1244
|
+
bundle_available: boolean;
|
|
1245
|
+
screenshot_available: boolean;
|
|
1246
|
+
option_groups: Array<DesignOptionGroup>;
|
|
1247
|
+
checklist: Array<string>;
|
|
1248
|
+
browser_check: "checked" | "not_checked" | "not_recorded";
|
|
1249
|
+
browser_check_note: string;
|
|
1250
|
+
source_files?: undefined | Array<DesignSourceFile>;
|
|
1251
|
+
}>);
|
|
1252
|
+
decisions?: undefined | (Array<{
|
|
1253
|
+
decision_id: number;
|
|
1254
|
+
revision_no: number;
|
|
1255
|
+
outcome: "rejected" | "approved" | "changes_requested";
|
|
1256
|
+
note: null | string;
|
|
1257
|
+
decided_by: string;
|
|
1258
|
+
decided_by_ref: ActorRef;
|
|
1259
|
+
created_at: string;
|
|
1260
|
+
options: null | OptionSelection;
|
|
1261
|
+
}>);
|
|
1262
|
+
}>);
|
|
1263
|
+
pull_request_reviews?: undefined | (Array<{
|
|
1264
|
+
id: number;
|
|
1265
|
+
kind: "comment" | "review" | "thread";
|
|
1266
|
+
author_login: string;
|
|
1267
|
+
state: null | "approved" | "changes_requested" | "commented" | "dismissed";
|
|
1268
|
+
body: string;
|
|
1269
|
+
html_url: string;
|
|
1270
|
+
path: null | string;
|
|
1271
|
+
line: null | number;
|
|
1272
|
+
resolved: null | false | true;
|
|
1273
|
+
occurred_at: string;
|
|
1274
|
+
}>);
|
|
1275
|
+
code_review_items?: undefined | Array<{
|
|
1276
|
+
gate_name: string;
|
|
1277
|
+
title: string;
|
|
1278
|
+
description: string;
|
|
1279
|
+
status: string;
|
|
1280
|
+
reasoning: string;
|
|
1281
|
+
}>;
|
|
1282
|
+
children_detail?: undefined | (Array<{
|
|
1283
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1284
|
+
type: undefined | string;
|
|
1285
|
+
priority: undefined | number;
|
|
1286
|
+
name: string;
|
|
1287
|
+
id: string;
|
|
1288
|
+
blocked: boolean;
|
|
1289
|
+
summary: undefined | null | string;
|
|
1290
|
+
open_problem_count: number;
|
|
1291
|
+
waiting_on: boolean;
|
|
1292
|
+
waiting_on_by_card: boolean;
|
|
1293
|
+
waiting_on_ids: Array<string>;
|
|
1294
|
+
conflict_on_ids: Array<string>;
|
|
1295
|
+
board_id: BoardRefNum;
|
|
1296
|
+
}>);
|
|
1297
|
+
plans?: undefined | Array<{
|
|
1298
|
+
id: PlanRefNum;
|
|
1299
|
+
ref: string;
|
|
1300
|
+
name: string;
|
|
1301
|
+
}>;
|
|
1302
|
+
mirrors?: undefined | (Array<{
|
|
1303
|
+
target_type: "trello" | "slack" | "asana";
|
|
1304
|
+
target_url: string;
|
|
1305
|
+
sync_state: "synced" | "out_of_sync" | "error" | "dead" | "unavailable" | "diverged";
|
|
1306
|
+
dead_reason: "" | "deleted" | "archived";
|
|
1307
|
+
source_ref: string;
|
|
1308
|
+
last_error: null | StatusReason;
|
|
1309
|
+
owed: Array<"comments" | "checklists" | "attachments" | "title" | "description" | "status" | "type" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
|
|
1310
|
+
description_unreadable: boolean;
|
|
1311
|
+
target_ref: string;
|
|
1312
|
+
target_label: string;
|
|
1313
|
+
last_synced_at: number;
|
|
1314
|
+
logo_url: string;
|
|
1315
|
+
}>);
|
|
1316
|
+
history?: undefined | (Array<{
|
|
1317
|
+
id: string;
|
|
1318
|
+
timestamp: string;
|
|
1319
|
+
actor: string;
|
|
1320
|
+
actor_ref: ActorRef;
|
|
1321
|
+
via_key: undefined | null | ViaKey;
|
|
1322
|
+
event: "created" | "blocked" | "activity" | "status_change" | "unblocked" | "field_change" | "dependency_added" | "dependency_removed" | "conflict_added" | "conflict_removed";
|
|
1323
|
+
label: undefined | StatusReason;
|
|
1324
|
+
from: undefined | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1325
|
+
to: undefined | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1326
|
+
note: undefined | string;
|
|
1327
|
+
field: undefined | string;
|
|
1328
|
+
value_before: undefined | null | string;
|
|
1329
|
+
value_after: undefined | null | string;
|
|
1330
|
+
target: undefined | string;
|
|
1331
|
+
checklist: undefined | ChecklistHistoryViewV2;
|
|
1332
|
+
}>);
|
|
1333
|
+
controls?: undefined | (Array<{
|
|
1334
|
+
key: string;
|
|
1335
|
+
scope: "board" | "team" | "plan" | "card";
|
|
1336
|
+
scope_id: string;
|
|
1337
|
+
value: null | string | false | true;
|
|
1338
|
+
source: "board" | "team" | "plan" | "card" | "system" | "inherit";
|
|
1339
|
+
base_hash: string;
|
|
1340
|
+
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months";
|
|
1341
|
+
options: null | Array<string>;
|
|
1342
|
+
description: string;
|
|
1343
|
+
system_default: string | false | true;
|
|
1344
|
+
fallback: null | ControlFallback;
|
|
1345
|
+
overridable: boolean;
|
|
1346
|
+
default_changed: boolean;
|
|
1347
|
+
}>);
|
|
1348
|
+
comments_page?: undefined | RelationPageView;
|
|
1349
|
+
agent_notes_page?: undefined | RelationPageView;
|
|
1350
|
+
decision_record_versions_page?: undefined | RelationPageView;
|
|
1351
|
+
decision_record_approvals_page?: undefined | RelationPageView;
|
|
1352
|
+
history_page?: undefined | RelationPageView;
|
|
1353
|
+
problems?: undefined | Array<ProblemViewV2>;
|
|
1354
|
+
subtree?: undefined | Array<IssueViewV2>;
|
|
1355
|
+
quality_gates?: undefined | Array<QualityGateChipV2> | Array<QualityGateViewV2>;
|
|
1356
|
+
};
|
|
1357
|
+
interface QualityGateChipV2 {
|
|
1358
|
+
gate: string;
|
|
1359
|
+
phase: QualityGatePhase;
|
|
1360
|
+
status: "pending" | "pass" | "fail" | "skipped";
|
|
1361
|
+
}
|
|
1362
|
+
type QualityGateViewV2 = {
|
|
1363
|
+
gate: string;
|
|
1364
|
+
decision_note: string;
|
|
1365
|
+
status: "pending" | "pass" | "fail" | "skipped";
|
|
1366
|
+
completed_at: null | string;
|
|
1367
|
+
message: string;
|
|
1368
|
+
reviewed_ref: null | string;
|
|
1369
|
+
decided_by: null | string;
|
|
1370
|
+
budget_started_at: string;
|
|
1371
|
+
rounds: Array<GateRoundV2>;
|
|
1372
|
+
phase: "plan" | "code";
|
|
1373
|
+
};
|
|
1374
|
+
type ProblemViewV2 = {
|
|
1375
|
+
type: "design" | "question" | "action" | "decision_review";
|
|
1376
|
+
open: boolean;
|
|
1377
|
+
ordinal: number;
|
|
1378
|
+
created_at: string;
|
|
1379
|
+
updated_at: string;
|
|
1380
|
+
content_hash: string;
|
|
1381
|
+
summary: null | string;
|
|
1382
|
+
ref_num: number;
|
|
1383
|
+
comment_count: number;
|
|
1384
|
+
unread_comment_count: number;
|
|
1385
|
+
decisions: Array<{
|
|
1386
|
+
id: number;
|
|
1387
|
+
solution_id: null | number;
|
|
1388
|
+
solution_title: null | string;
|
|
1389
|
+
outcome: "answered" | "rejected";
|
|
1390
|
+
freeform: null | string;
|
|
1391
|
+
note: null | string;
|
|
1392
|
+
decided_by: string;
|
|
1393
|
+
decided_by_ref: ActorRef;
|
|
1394
|
+
decided_at: string;
|
|
1395
|
+
retracted_at: null | string;
|
|
1396
|
+
relayed_by_session: null | string;
|
|
1397
|
+
provenance: null | ProvenanceRecordV2;
|
|
1398
|
+
content_hash: string;
|
|
1399
|
+
}>;
|
|
1400
|
+
issue_id: string;
|
|
1401
|
+
feedback_consent: boolean;
|
|
1402
|
+
choice_locked: boolean;
|
|
1403
|
+
docs_review: null | DocsReviewView;
|
|
1404
|
+
docs_land: boolean;
|
|
1405
|
+
needs_person: boolean;
|
|
1406
|
+
statement: string;
|
|
1407
|
+
context: null | string;
|
|
1408
|
+
design_element: null | string;
|
|
1409
|
+
solutions: Array<SolutionViewV2>;
|
|
1410
|
+
decision_review?: undefined | (Array<{
|
|
1411
|
+
problem_ref_num: number;
|
|
1412
|
+
record_ref: string;
|
|
1413
|
+
answered_version_no: null | number;
|
|
1414
|
+
choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
|
|
1415
|
+
versions?: undefined | (Array<{
|
|
1416
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1417
|
+
title: string;
|
|
1418
|
+
kind: "design" | "business_rule" | "architecture" | "other";
|
|
1419
|
+
made_by: "agent" | "human";
|
|
1420
|
+
impact: number;
|
|
1421
|
+
confidence: number;
|
|
1422
|
+
id: number;
|
|
1423
|
+
created_at: string;
|
|
1424
|
+
author: string;
|
|
1425
|
+
by: AuthorV2;
|
|
1426
|
+
text: string;
|
|
1427
|
+
via_key: null | ViaKey;
|
|
1428
|
+
ref: string;
|
|
1429
|
+
approval: DecisionApprovalState;
|
|
1430
|
+
made_by_user_id: null | number;
|
|
1431
|
+
made_by_name: null | string;
|
|
1432
|
+
made_by_author: AuthorV2;
|
|
1433
|
+
made_by_is_writer: boolean;
|
|
1434
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1435
|
+
version_no: number;
|
|
1436
|
+
}>);
|
|
1437
|
+
}>);
|
|
1438
|
+
};
|
|
1439
|
+
type SolutionViewV2 = {
|
|
1440
|
+
title: string;
|
|
1441
|
+
id: number;
|
|
1442
|
+
content_hash: string;
|
|
1443
|
+
body: string;
|
|
1444
|
+
steps_hash: string;
|
|
1445
|
+
steps: Array<{
|
|
1446
|
+
id: number;
|
|
1447
|
+
solution_id: number;
|
|
1448
|
+
parent_step_id: null | number;
|
|
1449
|
+
label: string;
|
|
1450
|
+
title: string;
|
|
1451
|
+
description: null | string;
|
|
1452
|
+
content_hash: string;
|
|
1453
|
+
checked_at: null | string;
|
|
1454
|
+
checked_by: null | string;
|
|
1455
|
+
steps: Array<SolutionStepViewV2>;
|
|
1456
|
+
}>;
|
|
1457
|
+
removed: boolean;
|
|
1458
|
+
pro: string;
|
|
1459
|
+
con: string;
|
|
1460
|
+
recommended: boolean;
|
|
1461
|
+
design?: undefined | (Array<{
|
|
1462
|
+
ref_num: number;
|
|
1463
|
+
design_no: number;
|
|
1464
|
+
title: string;
|
|
1465
|
+
created_by: string;
|
|
1466
|
+
created_at: string;
|
|
1467
|
+
archived_at: null | string;
|
|
1468
|
+
review_state: "rejected" | "approved" | "awaiting_review" | "changes_requested";
|
|
1469
|
+
revision_count: number;
|
|
1470
|
+
latest_revision_no: number;
|
|
1471
|
+
chosen_options: null | OptionSelection;
|
|
1472
|
+
comment_count?: undefined | number;
|
|
1473
|
+
unread_comment_count?: undefined | number;
|
|
1474
|
+
revisions?: undefined | (Array<{
|
|
1475
|
+
revision_no: number;
|
|
1476
|
+
target: string;
|
|
1477
|
+
design_dir: string;
|
|
1478
|
+
built_from_commit: string;
|
|
1479
|
+
note: string;
|
|
1480
|
+
created_by: string;
|
|
1481
|
+
created_by_ref: ActorRef;
|
|
1482
|
+
created_at: string;
|
|
1483
|
+
bundle_bytes: null | number;
|
|
1484
|
+
bundle_available: boolean;
|
|
1485
|
+
screenshot_available: boolean;
|
|
1486
|
+
option_groups: Array<DesignOptionGroup>;
|
|
1487
|
+
checklist: Array<string>;
|
|
1488
|
+
browser_check: "checked" | "not_checked" | "not_recorded";
|
|
1489
|
+
browser_check_note: string;
|
|
1490
|
+
source_files?: undefined | Array<DesignSourceFile>;
|
|
1491
|
+
}>);
|
|
1492
|
+
decisions?: undefined | (Array<{
|
|
1493
|
+
decision_id: number;
|
|
1494
|
+
revision_no: number;
|
|
1495
|
+
outcome: "rejected" | "approved" | "changes_requested";
|
|
1496
|
+
note: null | string;
|
|
1497
|
+
decided_by: string;
|
|
1498
|
+
decided_by_ref: ActorRef;
|
|
1499
|
+
created_at: string;
|
|
1500
|
+
options: null | OptionSelection;
|
|
1501
|
+
}>);
|
|
1502
|
+
}>);
|
|
1503
|
+
};
|
|
1504
|
+
interface SolutionStepViewV2 {
|
|
1505
|
+
id: number;
|
|
1506
|
+
solution_id: number;
|
|
1507
|
+
parent_step_id: number | null;
|
|
1508
|
+
label: string;
|
|
1509
|
+
title: string;
|
|
1510
|
+
description: string | null;
|
|
1511
|
+
content_hash: string;
|
|
1512
|
+
checked_at: string | null;
|
|
1513
|
+
checked_by: string | null;
|
|
1514
|
+
steps: SolutionStepViewV2[];
|
|
1515
|
+
}
|
|
1516
|
+
interface DecisionViewV2 {
|
|
1517
|
+
id: number;
|
|
1518
|
+
solution_id: number | null;
|
|
1519
|
+
solution_title: string | null;
|
|
1520
|
+
outcome: DecisionOutcome;
|
|
1521
|
+
freeform: string | null;
|
|
1522
|
+
note: string | null;
|
|
1523
|
+
decided_by: string;
|
|
1524
|
+
decided_by_ref: ActorRef;
|
|
1525
|
+
decided_at: string;
|
|
1526
|
+
retracted_at: string | null;
|
|
1527
|
+
relayed_by_session: string | null;
|
|
1528
|
+
provenance: ProvenanceRecordV2 | null;
|
|
1529
|
+
content_hash: string;
|
|
1530
|
+
}
|
|
1531
|
+
interface CardRefViewV2 {
|
|
1532
|
+
source: "danxbot" | MirrorProviderId;
|
|
1533
|
+
ref: string;
|
|
1534
|
+
url: string;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
interface CodeGateStatus {
|
|
1538
|
+
gate: string;
|
|
1539
|
+
status: QualityGateStatus;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
type ConnectionState = "connecting" | "connected" | "disconnected";
|
|
1543
|
+
interface LiveQueryResult<T> {
|
|
1544
|
+
data: T | null;
|
|
1545
|
+
loading: boolean;
|
|
1546
|
+
refreshing?: boolean;
|
|
1547
|
+
error: Error | null;
|
|
1548
|
+
connection: ConnectionState;
|
|
1549
|
+
refetch: () => void;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
function useIssueDetail(id: string): LiveQueryResult<IssueViewV2>;
|
|
1553
|
+
|
|
1554
|
+
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
1555
|
+
|
|
1556
|
+
interface ChildProgress {
|
|
1557
|
+
done: number;
|
|
1558
|
+
total: number;
|
|
1559
|
+
}
|
|
1560
|
+
interface CardStatusPresentation {
|
|
1561
|
+
label: string;
|
|
1562
|
+
icon: string;
|
|
1563
|
+
reason: string | null;
|
|
1564
|
+
live: boolean;
|
|
1565
|
+
isContainer: boolean;
|
|
1566
|
+
childProgress: ChildProgress | null;
|
|
1567
|
+
}
|
|
1568
|
+
type SnoozePresentation = {
|
|
1569
|
+
active: false;
|
|
1570
|
+
} | {
|
|
1571
|
+
active: true;
|
|
1572
|
+
wakeAt: string;
|
|
1573
|
+
wakeAction: "ready" | "review";
|
|
1574
|
+
};
|
|
1575
|
+
interface GateBreakdownEntry {
|
|
1576
|
+
gate: string;
|
|
1577
|
+
label: string;
|
|
1578
|
+
status: GateVerdict;
|
|
1579
|
+
}
|
|
1580
|
+
const defaultNewCardPriority: () => number;
|
|
1581
|
+
type GateVerdict = QualityGateViewV2["status"];
|
|
1582
|
+
|
|
1583
|
+
type LifecycleAction = Extract<TransitionAction, "ready" | "unready" | "complete" | "cancel" | "reopen">;
|
|
1584
|
+
|
|
1585
|
+
interface CardEditPatch {
|
|
1586
|
+
title?: string;
|
|
1587
|
+
description?: string;
|
|
1588
|
+
summary?: string | null;
|
|
1589
|
+
pull_request_url?: string | null;
|
|
1590
|
+
priority?: number;
|
|
1591
|
+
type?: CardTypeKey;
|
|
1592
|
+
parent_id?: string | null;
|
|
1593
|
+
effort_level?: EffortLevelName;
|
|
1594
|
+
content_hash?: string;
|
|
1595
|
+
}
|
|
1596
|
+
function editCard(id: string, patch: CardEditPatch): Promise<void>;
|
|
1597
|
+
function transitionCard(id: string, action: LifecycleAction | "unblock" | "archive"): Promise<void>;
|
|
1598
|
+
type PriorityPlacement = {
|
|
1599
|
+
side: "after" | "before";
|
|
1600
|
+
id: string;
|
|
1601
|
+
} | {
|
|
1602
|
+
edge: "top" | "bottom";
|
|
1603
|
+
};
|
|
1604
|
+
interface DetachedDispatch {
|
|
1605
|
+
dispatchId: string;
|
|
1606
|
+
stop: "requested" | "unreachable";
|
|
1607
|
+
}
|
|
1608
|
+
type ProblemCard = Pick<IssueViewV2, "id"> & Partial<Pick<IssueViewV2, "problems" | "open_problem_count">>;
|
|
1609
|
+
|
|
1610
|
+
interface LaneMoveRequest {
|
|
1611
|
+
issueId: string;
|
|
1612
|
+
lane: IssueStatus$1;
|
|
1613
|
+
placement: PriorityPlacement | null;
|
|
1614
|
+
}
|
|
1615
|
+
type BoardMoveResult = {
|
|
1616
|
+
ok: true;
|
|
1617
|
+
reason: null;
|
|
1618
|
+
updatedAt: number;
|
|
1619
|
+
detachedDispatch: DetachedDispatch | null;
|
|
1620
|
+
} | {
|
|
1621
|
+
ok: false;
|
|
1622
|
+
reason: string;
|
|
1623
|
+
updatedAt: null;
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
interface CardMutation {
|
|
1627
|
+
pending: string | null;
|
|
1628
|
+
run: (key: string, failureTitle: string, op: () => Promise<void>) => Promise<boolean>;
|
|
1629
|
+
}
|
|
1630
|
+
function useCardMutation(): CardMutation;
|
|
1631
|
+
|
|
1632
|
+
type PlanWire = number | {
|
|
1633
|
+
name: string;
|
|
1634
|
+
} | null;
|
|
1635
|
+
|
|
1636
|
+
interface NewCardInput {
|
|
1637
|
+
board: BoardRefNum;
|
|
1638
|
+
type: CardTypeKey;
|
|
1639
|
+
title: string;
|
|
1640
|
+
priority: number;
|
|
1641
|
+
plan: PlanWire;
|
|
1642
|
+
description: string;
|
|
1643
|
+
}
|
|
1644
|
+
function createCard(input: NewCardInput): Promise<string>;
|
|
1645
|
+
type HideableLane = "Cancelled" | "Backlog";
|
|
1646
|
+
interface LaneVisibility {
|
|
1647
|
+
isShown: (lane: IssueStatus$1) => boolean;
|
|
1648
|
+
setShown: (lane: HideableLane, shown: boolean) => void;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
type LaneSortField = "title" | "id" | "priority" | "updated_at" | "created_at";
|
|
1652
|
+
type LaneSort = SortValue<LaneSortField>;
|
|
1653
|
+
type LaneSorts = Readonly<Record<IssueStatus$1, LaneSort>>;
|
|
1654
|
+
interface LaneSortState {
|
|
1655
|
+
readonly sorts: LaneSorts;
|
|
1656
|
+
readonly setSort: (lane: IssueStatus$1, sort: LaneSort) => void;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
type BoardScope = {
|
|
1660
|
+
readonly kind: "board";
|
|
1661
|
+
readonly board: BoardRefNum;
|
|
1662
|
+
readonly boards: readonly BoardRefNum[];
|
|
1663
|
+
} | {
|
|
1664
|
+
readonly kind: "plan";
|
|
1665
|
+
readonly planId: number;
|
|
1666
|
+
readonly boards: readonly BoardRefNum[];
|
|
1667
|
+
};
|
|
1668
|
+
type BoardLaneWindows = Readonly<Record<IssueStatus$1, PagedWindow<IssueViewV2>>>;
|
|
1669
|
+
type LaneLeafTotals = Readonly<Record<IssueStatus$1, number | null>>;
|
|
1670
|
+
interface BoardLaneState {
|
|
1671
|
+
readonly scope: BoardScope;
|
|
1672
|
+
readonly windows: BoardLaneWindows;
|
|
1673
|
+
readonly leafTotals: LaneLeafTotals;
|
|
1674
|
+
readonly visibility: LaneVisibility;
|
|
1675
|
+
readonly sorts: LaneSorts;
|
|
1676
|
+
readonly setSort: LaneSortState["setSort"];
|
|
1677
|
+
readonly openCount: number | null;
|
|
1678
|
+
}
|
|
1679
|
+
function useBoardLaneState(scope: BoardScope): BoardLaneState;
|
|
1680
|
+
|
|
1681
|
+
function useCardsOfType(scope: BoardScope, type: string): LiveQueryResult<readonly IssueViewV2[]>;
|
|
1682
|
+
|
|
1683
|
+
function boardCardPath(cardId: string): string;
|
|
1684
|
+
function planCardPath(planId: number, cardId: string, planSearch?: string): string;
|
|
1685
|
+
function planPathFromCard(planId: number, cardSearch?: string): string;
|
|
1686
|
+
|
|
1687
|
+
function CardLink({ id, className, onNavigate }: {
|
|
1688
|
+
id: string;
|
|
1689
|
+
className?: string;
|
|
1690
|
+
onNavigate?: () => void;
|
|
1691
|
+
}): react.JSX.Element;
|
|
1692
|
+
|
|
1693
|
+
function EditableTitle({ card }: {
|
|
1694
|
+
card: IssueViewV2;
|
|
1695
|
+
}): react.JSX.Element;
|
|
1696
|
+
|
|
1697
|
+
function EditableSummary({ card }: {
|
|
1698
|
+
card: IssueViewV2;
|
|
1699
|
+
}): react.JSX.Element;
|
|
1700
|
+
|
|
1701
|
+
function EditableContext({ card }: {
|
|
1702
|
+
card: IssueViewV2;
|
|
1703
|
+
}): react.JSX.Element;
|
|
1704
|
+
|
|
1705
|
+
function ChecklistsSection({ card, mutation }: {
|
|
1706
|
+
card: IssueViewV2;
|
|
1707
|
+
mutation: CardMutation;
|
|
1708
|
+
}): react.JSX.Element;
|
|
1709
|
+
|
|
1710
|
+
interface ProblemAttention {
|
|
1711
|
+
problem: ProblemViewV2;
|
|
1712
|
+
solutions: SolutionViewV2[];
|
|
1713
|
+
removedSolutionIds: ReadonlySet<number>;
|
|
1714
|
+
decisions: DecisionViewV2[];
|
|
1715
|
+
choiceLocked: boolean;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
interface ProblemsSectionProps {
|
|
1719
|
+
card: ProblemCard;
|
|
1720
|
+
problems: ProblemAttention[];
|
|
1721
|
+
canAnswer: boolean;
|
|
1722
|
+
designGatePending: boolean;
|
|
1723
|
+
mutation: CardMutation;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
function ProblemsSection({ cardId, ...rest }: {
|
|
1727
|
+
cardId: IssueViewV2["id"];
|
|
1728
|
+
} & Omit<ProblemsSectionProps, "card">): react.JSX.Element;
|
|
1729
|
+
|
|
1730
|
+
function DependenciesSection({ card, mutation }: {
|
|
1731
|
+
card: IssueViewV2;
|
|
1732
|
+
mutation: CardMutation;
|
|
1733
|
+
}): react.JSX.Element;
|
|
1734
|
+
|
|
1735
|
+
function ChildrenSection({ card }: {
|
|
1736
|
+
card: IssueViewV2;
|
|
1737
|
+
}): react.JSX.Element;
|
|
1738
|
+
|
|
1739
|
+
function ParentField({ card, mutation }: {
|
|
1740
|
+
card: IssueViewV2;
|
|
1741
|
+
mutation: CardMutation;
|
|
1742
|
+
}): react.JSX.Element;
|
|
1743
|
+
|
|
1744
|
+
function PlansField({ card, mutation }: {
|
|
1745
|
+
card: IssueViewV2;
|
|
1746
|
+
mutation: CardMutation;
|
|
1747
|
+
}): react.JSX.Element;
|
|
1748
|
+
|
|
1749
|
+
function GatesSection({ card }: {
|
|
1750
|
+
card: IssueViewV2;
|
|
1751
|
+
}): react.JSX.Element;
|
|
1752
|
+
|
|
1753
|
+
interface ActivityProps {
|
|
1754
|
+
card: IssueViewV2;
|
|
1755
|
+
mutation: CardMutation;
|
|
1756
|
+
onFocusProblem?: (problemRefNum: number) => void;
|
|
1757
|
+
}
|
|
1758
|
+
function ActivityTab(props: ActivityProps): react.JSX.Element;
|
|
1759
|
+
|
|
1760
|
+
type ShownAttachment = AttachmentViewV2 & {
|
|
1761
|
+
pending: boolean;
|
|
1762
|
+
};
|
|
1763
|
+
interface AttachmentActions {
|
|
1764
|
+
attachments: ShownAttachment[];
|
|
1765
|
+
add: (files: readonly File[]) => void;
|
|
1766
|
+
replace: (id: number, file: File) => void;
|
|
1767
|
+
rename: (id: number, filename: string) => void;
|
|
1768
|
+
setCover: (id: number) => void;
|
|
1769
|
+
remove: (id: number) => void;
|
|
1770
|
+
}
|
|
1771
|
+
function useAttachmentActions(card: Pick<IssueViewV2, "id" | "attachments">): AttachmentActions;
|
|
1772
|
+
|
|
1773
|
+
interface AttachmentViewer {
|
|
1774
|
+
open: (attachmentId: number) => void;
|
|
1775
|
+
element: ReactNode;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
function AttachmentsTab({ cardId, actions, viewer, }: {
|
|
1779
|
+
cardId: string;
|
|
1780
|
+
actions: AttachmentActions;
|
|
1781
|
+
viewer: AttachmentViewer;
|
|
1782
|
+
}): react.JSX.Element;
|
|
1783
|
+
|
|
1784
|
+
function RetroTab({ retro }: {
|
|
1785
|
+
retro: RetroViewV2;
|
|
1786
|
+
}): react.JSX.Element;
|
|
1787
|
+
|
|
1788
|
+
interface AttentionZoneProps {
|
|
1789
|
+
card: IssueViewV2;
|
|
1790
|
+
mutation: CardMutation;
|
|
1791
|
+
}
|
|
1792
|
+
function AttentionZone({ card, mutation }: AttentionZoneProps): react.JSX.Element;
|
|
1793
|
+
|
|
1794
|
+
interface CardActionsMenuProps {
|
|
1795
|
+
card: IssueViewV2;
|
|
1796
|
+
mutation: CardMutation;
|
|
1797
|
+
}
|
|
1798
|
+
function CardActionsMenu({ card, mutation }: CardActionsMenuProps): react.JSX.Element;
|
|
1799
|
+
|
|
1800
|
+
interface WorkStateInput {
|
|
1801
|
+
terminal: boolean;
|
|
1802
|
+
container: boolean;
|
|
1803
|
+
assignedAgent: string | null;
|
|
1804
|
+
assignedAgentName: string | null;
|
|
1805
|
+
assignedAgentTeamAgent: {
|
|
1806
|
+
id: number;
|
|
1807
|
+
name: string;
|
|
1808
|
+
avatar_url: string | null;
|
|
1809
|
+
} | null;
|
|
1810
|
+
assignedAgentKind: AssignedAgentKind | null;
|
|
1811
|
+
assignedAgentRepoCopy: RepoProfileCopy | null;
|
|
1812
|
+
assignedAgentPause: HolderAgentPause | null;
|
|
1813
|
+
heldSince: string | null;
|
|
1814
|
+
blocked: {
|
|
1815
|
+
reason: string;
|
|
1816
|
+
by: AuthorV2 | null;
|
|
1817
|
+
at: string;
|
|
1818
|
+
} | null;
|
|
1819
|
+
waitingOn: readonly string[];
|
|
1820
|
+
conflictIds: readonly string[];
|
|
1821
|
+
conflictActive: number;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
interface WorkStateControlProps {
|
|
1825
|
+
cardId: string;
|
|
1826
|
+
input: WorkStateInput;
|
|
1827
|
+
size?: "sm" | "2xs";
|
|
1828
|
+
onOpenHold?: () => void;
|
|
1829
|
+
onOpenDependencies?: () => void;
|
|
1830
|
+
assignee?: boolean;
|
|
1831
|
+
}
|
|
1832
|
+
function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee }: WorkStateControlProps): react.JSX.Element | null;
|
|
1833
|
+
|
|
1834
|
+
interface ControlProps {
|
|
1835
|
+
card: IssueViewV2;
|
|
1836
|
+
mutation: CardMutation;
|
|
1837
|
+
}
|
|
1838
|
+
function PriorityControl({ card, mutation }: ControlProps): react.JSX.Element;
|
|
1839
|
+
function EffortControl({ card, mutation }: ControlProps): react.JSX.Element;
|
|
1840
|
+
function TypeControl({ card, mutation }: ControlProps): react.JSX.Element;
|
|
1841
|
+
function StatusControl({ card, mutation }: ControlProps): react.JSX.Element;
|
|
1842
|
+
|
|
1843
|
+
interface StandardCardPageProps {
|
|
1844
|
+
card: IssueViewV2;
|
|
1845
|
+
mutation: CardMutation;
|
|
1846
|
+
}
|
|
1847
|
+
function StandardCardPage({ card, mutation }: StandardCardPageProps): react.JSX.Element;
|
|
1848
|
+
|
|
1849
|
+
interface CardFaceAc {
|
|
1850
|
+
total: number;
|
|
1851
|
+
byStatus: Record<ChecklistItemStatus, number>;
|
|
1852
|
+
items?: NonNullable<IssueViewV2["ac_items"]>;
|
|
1853
|
+
}
|
|
1854
|
+
interface CardFaceModel {
|
|
1855
|
+
id: string;
|
|
1856
|
+
title: string;
|
|
1857
|
+
type: CardTypeKey;
|
|
1858
|
+
priority: number;
|
|
1859
|
+
statusName: IssueStatus$1;
|
|
1860
|
+
status: CardStatusPresentation;
|
|
1861
|
+
list: CardFaceList | null;
|
|
1862
|
+
to: string;
|
|
1863
|
+
parent: {
|
|
1864
|
+
id: string;
|
|
1865
|
+
title: string | null;
|
|
1866
|
+
to: string;
|
|
1867
|
+
} | null;
|
|
1868
|
+
needsHuman: {
|
|
1869
|
+
questions: number;
|
|
1870
|
+
actions: number;
|
|
1871
|
+
};
|
|
1872
|
+
work: WorkStateInput;
|
|
1873
|
+
snooze: SnoozePresentation;
|
|
1874
|
+
effort: EffortLevelName | null;
|
|
1875
|
+
planGates: readonly GateBreakdownEntry[];
|
|
1876
|
+
codeGates: readonly GateBreakdownEntry[];
|
|
1877
|
+
ac: CardFaceAc;
|
|
1878
|
+
commentsCount: number;
|
|
1879
|
+
unreadCommentsCount: number;
|
|
1880
|
+
hasRetro: boolean;
|
|
1881
|
+
onPullRequest: boolean;
|
|
1882
|
+
childrenCount: number;
|
|
1883
|
+
childrenDetail?: NonNullable<IssueViewV2["children_detail"]>;
|
|
1884
|
+
triage: {
|
|
1885
|
+
lastDecisionAt: string | null;
|
|
1886
|
+
confidence: number | null;
|
|
1887
|
+
iceTotal: number | null;
|
|
1888
|
+
iceI: number | null;
|
|
1889
|
+
iceC: number | null;
|
|
1890
|
+
iceE: number | null;
|
|
1891
|
+
};
|
|
1892
|
+
agent: {
|
|
1893
|
+
childAssignments: readonly ChildAssignmentViewV2[];
|
|
1894
|
+
dispatchKind?: IssueDispatchKind | null;
|
|
1895
|
+
latestWorkDispatch: LatestWorkDispatchViewV2 | null;
|
|
1896
|
+
};
|
|
1897
|
+
usage: CardUsage;
|
|
1898
|
+
createdAt: string | number;
|
|
1899
|
+
updatedAt: string | number;
|
|
1900
|
+
}
|
|
1901
|
+
type CardFaceList = {
|
|
1902
|
+
name: string;
|
|
1903
|
+
id: string;
|
|
1904
|
+
color: string;
|
|
1905
|
+
emoji: string;
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
type CardFaceStatusMark = {
|
|
1909
|
+
kind: "labelled";
|
|
1910
|
+
} | {
|
|
1911
|
+
kind: "lane";
|
|
1912
|
+
laneListId: string | null;
|
|
1913
|
+
};
|
|
1914
|
+
interface CardFaceProps {
|
|
1915
|
+
card: CardFaceModel;
|
|
1916
|
+
renderTitle: (props: {
|
|
1917
|
+
className: string;
|
|
1918
|
+
describedBy: string;
|
|
1919
|
+
}) => ReactNode;
|
|
1920
|
+
trailing?: ReactNode;
|
|
1921
|
+
statusMark: CardFaceStatusMark;
|
|
1922
|
+
cover?: ReactNode;
|
|
1923
|
+
inParentBox?: boolean;
|
|
1924
|
+
}
|
|
1925
|
+
function CardFace({ card, renderTitle, trailing, statusMark, cover, inParentBox }: CardFaceProps): react.JSX.Element;
|
|
1926
|
+
|
|
1927
|
+
function CardBoard({ state, cardPath, }: {
|
|
1928
|
+
state: BoardLaneState;
|
|
1929
|
+
cardPath?: (cardId: string) => string;
|
|
1930
|
+
}): react.JSX.Element;
|
|
1931
|
+
|
|
1932
|
+
type CardViewProps = StandardCardPageProps;
|
|
1933
|
+
interface CardListViewProps {
|
|
1934
|
+
readonly scope: BoardScope;
|
|
1935
|
+
readonly cardPath: (cardId: string) => string;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
function requestBoardMove(req: LaneMoveRequest): Promise<BoardMoveResult>;
|
|
1939
|
+
|
|
1940
|
+
export { ActivityTab, AttachmentsTab, AttentionZone, CardActionsMenu, CardBoard, CardFace, CardLink, ChecklistsSection, ChildrenSection, DependenciesSection, EditableContext, EditableSummary, EditableTitle, EffortControl, GatesSection, ParentField, PlansField, PriorityControl, ProblemsSection, RetroTab, StandardCardPage, StatusControl, TypeControl, WorkStateControl, boardCardPath, createCard, defaultNewCardPriority, editCard, planCardPath, planPathFromCard, requestBoardMove, transitionCard, useAttachmentActions, useBoardLaneState, useIssueDetail as useCard, useCardMutation, useCardsOfType };
|
|
1941
|
+
export type { AttachmentActions, BoardLaneState, BoardMoveResult, BoardScope, CardEditPatch, CardFaceProps, CardListViewProps, CardMutation, CardViewProps, IssueViewV2, LaneMoveRequest, LiveQueryResult, NewCardInput, StandardCardPageProps };
|
|
1942
|
+
}
|