@north-light/crouter-api 0.3.197 → 0.3.198
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/dist/api/client.d.ts +2 -2
- package/dist/api/dto/inbox.d.ts +46 -0
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type { CredentialRemovalResultDTO, CredentialResultDTO, InstallCredential
|
|
|
16
16
|
import type { CreateHumanBridgeRequest, HumanBridgeResultDTO, HumanCancelRequest, HumanCancelResultDTO, HumanResolveRequest, HumanResolveResultDTO } from './dto/human.js';
|
|
17
17
|
import type { CancelReviewRequest, CreateReviewRequest, ListReviewsQuery, ReviewCancelResultDTO, ReviewDocumentBaseDTO, ReviewDTO, ReviewListDTO, ReviewSubmitResultDTO } from './dto/reviews.js';
|
|
18
18
|
import type { CreateReviewCommentRequest, EditReviewCommentRequest, ListReviewCommentsQuery, ReadReviewCommentEventsQuery, ReviewCommentActionRequest, ReviewCommentDetailDTO, ReviewCommentEventsDTO, ReviewCommentListDTO, ReviewCommentMutationDTO, ReviewCommentRangeBatchRequest, ReviewCommentRangeBatchResultDTO } from './dto/review-comments.js';
|
|
19
|
-
import type { CancelInboxTicketRequest, CanceledTicketResultDTO, InboxListDTO, InboxPageDTO, InboxPageHistoryDTO, InboxPageRenderDTO, PagesBundleAssetDTO, InboxTicketIdDTO, PageResponsesDTO, PageTicketResultDTO, RespondInboxPageRequest } from './dto/inbox.js';
|
|
19
|
+
import type { CancelInboxTicketRequest, CanceledTicketResultDTO, InboxListDTO, InboxPageDTO, InboxPageHistoryDTO, InboxPageRenderDTO, PagesBundleAssetDTO, InboxPageResponseDTO, InboxTicketIdDTO, PageResponsesDTO, PageTicketResultDTO, RespondInboxPageRequest } from './dto/inbox.js';
|
|
20
20
|
import type { AttentionCountsDTO, AttentionDTO, DashboardDTO, DashboardQuery, HistoryGrepQuery, HistoryGrepResultDTO, HistoryReadQuery, HistoryReadResultDTO, HistorySearchQuery, HistorySearchResultDTO, PruneRequest, PruneResultDTO, RebuildIndexResultDTO, RosterDTO, SnapshotDTO } from './dto/canvas.js';
|
|
21
21
|
import type { CloseWorktreeResultDTO } from './dto/worktree.js';
|
|
22
22
|
import type { BrokerExtensionStateDTO, BrokerGeneratedNameRequest, BrokerGeneratedNameResultDTO, BrokerInboxCursorDirective, BrokerInboxCursorRequest, BrokerModelCommitRequest, BrokerModelCommitResultDTO, BrokerPersonaAckRequest, BrokerSessionBoundRequest, BrokerSessionBoundResultDTO, BrokerSettleDirective, BrokerSettleRequest } from './dto/broker-ops.js';
|
|
@@ -204,7 +204,7 @@ export declare class CrtrClient {
|
|
|
204
204
|
/** Autosave partial page work. Omitted slots are permitted in progress updates. */
|
|
205
205
|
postInboxProgress(ticketId: InboxTicketIdDTO, responses: PageResponsesDTO): Promise<void>;
|
|
206
206
|
/** Get the published response for a resolved page ticket. 404 if pending or canceled. */
|
|
207
|
-
getInboxResponse(ticketId: InboxTicketIdDTO): Promise<
|
|
207
|
+
getInboxResponse(ticketId: InboxTicketIdDTO): Promise<InboxPageResponseDTO>;
|
|
208
208
|
/** The page's body-level HTML payload, for pending, resolved, and canceled
|
|
209
209
|
* tickets alike. The host wraps it and injects the page runtime bundle. */
|
|
210
210
|
renderHumanInboxPage(ticketId: InboxTicketIdDTO): Promise<InboxPageRenderDTO>;
|
package/dist/api/dto/inbox.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface TicketSourceDTO {
|
|
|
5
5
|
sessionName?: string;
|
|
6
6
|
askedBy?: string;
|
|
7
7
|
blockedSince?: IsoTime;
|
|
8
|
+
profileName?: string;
|
|
8
9
|
nodeId?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface ReviewTicketSummaryDTO {
|
|
@@ -28,6 +29,8 @@ export interface PageTicketSummaryDTO {
|
|
|
28
29
|
slot_kinds: string[];
|
|
29
30
|
awaits_response: boolean;
|
|
30
31
|
state?: 'pending' | 'resolved' | 'canceled';
|
|
32
|
+
/** Present only on resolved history entries; the stored one-line answer digest. */
|
|
33
|
+
answer_digest?: string;
|
|
31
34
|
}
|
|
32
35
|
export type InboxTicketSummaryDTO = PageTicketSummaryDTO | ReviewTicketSummaryDTO;
|
|
33
36
|
export interface InboxListDTO {
|
|
@@ -39,6 +42,7 @@ export interface PageSlotDTO {
|
|
|
39
42
|
step: number;
|
|
40
43
|
config: Record<string, unknown>;
|
|
41
44
|
unvalidated?: true;
|
|
45
|
+
display?: true;
|
|
42
46
|
}
|
|
43
47
|
/** The nested protocol object is deliberately camelCase on the wire. */
|
|
44
48
|
export interface PageManifestDTO {
|
|
@@ -131,6 +135,48 @@ export interface PageTicketResultDTO {
|
|
|
131
135
|
summary: string;
|
|
132
136
|
completedAt: IsoTime;
|
|
133
137
|
}
|
|
138
|
+
export interface PageAnswerGroupDTO {
|
|
139
|
+
group: 'option' | 'card' | 'row' | 'column';
|
|
140
|
+
mode: 'single' | 'multi';
|
|
141
|
+
total: number;
|
|
142
|
+
picked: {
|
|
143
|
+
id: string;
|
|
144
|
+
label: string;
|
|
145
|
+
}[];
|
|
146
|
+
}
|
|
147
|
+
export interface PageAnswerCommentDTO {
|
|
148
|
+
anchor: PageCommentAnchorDTO;
|
|
149
|
+
anchorLabel: string;
|
|
150
|
+
text: string;
|
|
151
|
+
}
|
|
152
|
+
export interface PageAnswerSlotDTO {
|
|
153
|
+
id: string;
|
|
154
|
+
kind: string;
|
|
155
|
+
label?: string;
|
|
156
|
+
state: 'answered' | 'unanswered';
|
|
157
|
+
blank: boolean;
|
|
158
|
+
groups: PageAnswerGroupDTO[];
|
|
159
|
+
freetext?: string;
|
|
160
|
+
text?: {
|
|
161
|
+
value: string;
|
|
162
|
+
edited: boolean;
|
|
163
|
+
singleLine?: boolean;
|
|
164
|
+
};
|
|
165
|
+
comments: PageAnswerCommentDTO[];
|
|
166
|
+
raw?: Record<string, unknown>;
|
|
167
|
+
}
|
|
168
|
+
/** The camelCase protocol object shipped only by GET .../response. */
|
|
169
|
+
export interface PageAnswerDTO {
|
|
170
|
+
title: string;
|
|
171
|
+
subtitle?: string;
|
|
172
|
+
completedAt: IsoTime;
|
|
173
|
+
kind: 'answer' | 'acknowledgement';
|
|
174
|
+
digest: string;
|
|
175
|
+
slots: PageAnswerSlotDTO[];
|
|
176
|
+
}
|
|
177
|
+
export interface InboxPageResponseDTO extends PageTicketResultDTO {
|
|
178
|
+
answer: PageAnswerDTO;
|
|
179
|
+
}
|
|
134
180
|
/** `POST /v1/human/inbox/:ticket_id/cancel` body. */
|
|
135
181
|
export interface CancelInboxTicketRequest {
|
|
136
182
|
reason?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/crouter-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.198",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, and the CrtrClient. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|