@appsolutely-io/waypoint 0.0.0-stage → 0.1.1-next.1
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/LICENSE +21 -0
- package/README.md +297 -2
- package/dist/block-reply-r8u-DNmZ.d.cts +181 -0
- package/dist/block-reply-z8El20nD.d.ts +181 -0
- package/dist/blocks-2ABWECKG.js +1 -0
- package/dist/blocks-7453YTYJ.cjs +1 -0
- package/dist/chunk-3KV7TDDR.cjs +3 -0
- package/dist/chunk-4BWV3SEL.cjs +1 -0
- package/dist/chunk-5Q3INHKA.js +1 -0
- package/dist/chunk-5TBO732O.js +1 -0
- package/dist/chunk-6OZSKCPT.cjs +1 -0
- package/dist/chunk-A3YOSFLE.cjs +1 -0
- package/dist/chunk-BRUQ75G3.cjs +1 -0
- package/dist/chunk-C3VS33WJ.js +1 -0
- package/dist/chunk-D2EGPBCX.cjs +1 -0
- package/dist/chunk-D4Q46KWA.js +1 -0
- package/dist/chunk-FBADWFRR.cjs +1 -0
- package/dist/chunk-FQSWQLRW.js +1 -0
- package/dist/chunk-GT6PI4CT.cjs +1 -0
- package/dist/chunk-II26UWZM.cjs +1 -0
- package/dist/chunk-IPI4O4LP.js +1 -0
- package/dist/chunk-JFMVVGGB.js +1 -0
- package/dist/chunk-K73VV7KA.js +1 -0
- package/dist/chunk-L4PFFRDE.js +3 -0
- package/dist/chunk-LLPGVQUT.cjs +1 -0
- package/dist/chunk-M63QOANE.js +1 -0
- package/dist/chunk-MEKDQDSV.js +1 -0
- package/dist/chunk-OEPKPDLD.js +1 -0
- package/dist/chunk-OWT55N6J.js +3 -0
- package/dist/chunk-PFR2J5BV.js +1 -0
- package/dist/chunk-Q7BULGQG.cjs +1 -0
- package/dist/chunk-QFBAOEPD.js +1 -0
- package/dist/chunk-QS3MKZOY.cjs +3 -0
- package/dist/chunk-RZ3AGK3U.cjs +1 -0
- package/dist/chunk-RZZDQWC2.js +1 -0
- package/dist/chunk-S73WZWDP.js +1 -0
- package/dist/chunk-T5XF2R74.js +1 -0
- package/dist/chunk-TCFCSGQ3.js +1 -0
- package/dist/chunk-TODYQ3SG.cjs +1 -0
- package/dist/chunk-TVSQHTK2.cjs +1 -0
- package/dist/chunk-VGGJGRNK.cjs +1 -0
- package/dist/chunk-XSHOLIC7.cjs +1 -0
- package/dist/chunk-XTKUDSDK.cjs +1 -0
- package/dist/chunk-XWDB2LS3.cjs +1 -0
- package/dist/cli.js +3 -0
- package/dist/confirmation-view-5BZ2PP7J.cjs +1 -0
- package/dist/confirmation-view-Z5JHY2F5.js +1 -0
- package/dist/conformance.cjs +1 -0
- package/dist/conformance.d.cts +10 -0
- package/dist/conformance.d.ts +10 -0
- package/dist/conformance.js +1 -0
- package/dist/flow-parser.cjs +1 -0
- package/dist/flow-parser.d.cts +3 -0
- package/dist/flow-parser.d.ts +3 -0
- package/dist/flow-parser.js +1 -0
- package/dist/flows-panel-2SCPYZ3X.js +1 -0
- package/dist/flows-panel-HQYJMOP4.cjs +1 -0
- package/dist/form-extras-RNMBCYV7.cjs +1 -0
- package/dist/form-extras-X3B3JCMH.js +1 -0
- package/dist/form-fill-C32AHxSr.d.cts +653 -0
- package/dist/form-fill-Dp3ut1_Y.d.ts +653 -0
- package/dist/form-session.cjs +1 -0
- package/dist/form-session.d.cts +7 -0
- package/dist/form-session.d.ts +7 -0
- package/dist/form-session.js +1 -0
- package/dist/frame-decoder.cjs +3 -0
- package/dist/frame-decoder.d.cts +5 -0
- package/dist/frame-decoder.d.ts +5 -0
- package/dist/frame-decoder.js +3 -0
- package/dist/generated-C9tbjwK0.d.cts +797 -0
- package/dist/generated-C9tbjwK0.d.ts +797 -0
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.cts +48 -0
- package/dist/hooks/index.d.ts +48 -0
- package/dist/hooks/index.js +1 -0
- package/dist/i18n-WC9f-h_q.d.cts +151 -0
- package/dist/i18n-WC9f-h_q.d.ts +151 -0
- package/dist/index-B5idIFTx.d.cts +34 -0
- package/dist/index-DPzoKXCK.d.ts +34 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +3 -0
- package/dist/intent-BQPPows1.d.cts +154 -0
- package/dist/intent-BuvqEU3Q.d.ts +154 -0
- package/dist/intent.cjs +1 -0
- package/dist/intent.d.cts +2 -0
- package/dist/intent.d.ts +2 -0
- package/dist/intent.js +1 -0
- package/dist/markdown-5NUOCOGY.js +23 -0
- package/dist/markdown-CG7NXI7X.cjs +23 -0
- package/dist/message-actions-ORBVYGNE.cjs +1 -0
- package/dist/message-actions-XNBBFHGW.js +1 -0
- package/dist/messages/en/index.cjs +1 -0
- package/dist/messages/en/index.d.cts +3 -0
- package/dist/messages/en/index.d.ts +3 -0
- package/dist/messages/en/index.js +1 -0
- package/dist/messages/index.cjs +1 -0
- package/dist/messages/index.d.cts +14 -0
- package/dist/messages/index.d.ts +14 -0
- package/dist/messages/index.js +1 -0
- package/dist/messages/zh-Hans/index.cjs +1 -0
- package/dist/messages/zh-Hans/index.d.cts +3 -0
- package/dist/messages/zh-Hans/index.d.ts +3 -0
- package/dist/messages/zh-Hans/index.js +1 -0
- package/dist/on-demand.cjs +1 -0
- package/dist/on-demand.d.cts +56 -0
- package/dist/on-demand.d.ts +56 -0
- package/dist/on-demand.js +1 -0
- package/dist/problem-messages-THONMXFZ.cjs +1 -0
- package/dist/problem-messages-Z5QGO6RE.js +1 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.cts +421 -0
- package/dist/react/index.d.ts +421 -0
- package/dist/react/index.js +1 -0
- package/dist/reads-Bk84x_rt.d.ts +38 -0
- package/dist/reads-DlpCt8dE.d.cts +38 -0
- package/dist/recovery-panel-6EBUMANX.js +3 -0
- package/dist/recovery-panel-EQIIV7TT.cjs +3 -0
- package/dist/reply-controls-HUYHUO3W.js +1 -0
- package/dist/reply-controls-LGY2RKRJ.cjs +1 -0
- package/dist/run-XBABOEXK.js +1 -0
- package/dist/schema.json +2900 -0
- package/dist/skin-antd/index.cjs +1 -0
- package/dist/skin-antd/index.d.cts +30 -0
- package/dist/skin-antd/index.d.ts +30 -0
- package/dist/skin-antd/index.js +1 -0
- package/dist/skin-default/index.cjs +1 -0
- package/dist/skin-default/index.d.cts +42 -0
- package/dist/skin-default/index.d.ts +42 -0
- package/dist/skin-default/index.js +1 -0
- package/dist/step-name-BlgVvshf.d.ts +19 -0
- package/dist/step-name-CB3d3kkP.d.cts +19 -0
- package/dist/storage-commit.cjs +1 -0
- package/dist/storage-commit.d.cts +17 -0
- package/dist/storage-commit.d.ts +17 -0
- package/dist/storage-commit.js +1 -0
- package/dist/stream-reads.cjs +1 -0
- package/dist/stream-reads.d.cts +22 -0
- package/dist/stream-reads.d.ts +22 -0
- package/dist/stream-reads.js +1 -0
- package/dist/styles.css +811 -0
- package/dist/testing/index.cjs +1 -0
- package/dist/testing/index.d.cts +57 -0
- package/dist/testing/index.d.ts +57 -0
- package/dist/testing/index.js +1 -0
- package/docs/examples/message-versions.tsx +74 -0
- package/docs/form-fill-protocol.md +83 -0
- package/docs/message-versions.md +64 -0
- package/docs/plan-protocol.md +83 -0
- package/docs/reply-protocol.md +75 -0
- package/etc/hooks.api.md +2394 -0
- package/etc/index.api.md +2159 -0
- package/etc/messages-en.api.md +13 -0
- package/etc/messages-zh-Hans.api.md +13 -0
- package/etc/messages.api.md +186 -0
- package/etc/react.api.md +2977 -0
- package/etc/skin-antd.api.md +2998 -0
- package/etc/skin-default.api.md +61 -0
- package/etc/testing.api.md +3043 -0
- package/package.json +169 -4
|
@@ -0,0 +1,3043 @@
|
|
|
1
|
+
## API Report File for "@appsolutely-io/waypoint"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ComponentType } from 'react';
|
|
8
|
+
import * as react from 'react';
|
|
9
|
+
import { ReactElement } from 'react';
|
|
10
|
+
import { ReactNode } from 'react';
|
|
11
|
+
import { Ref } from 'react';
|
|
12
|
+
import { RenderResult } from '@testing-library/react';
|
|
13
|
+
|
|
14
|
+
// @public (undocumented)
|
|
15
|
+
export interface ActionEntry {
|
|
16
|
+
// (undocumented)
|
|
17
|
+
available: boolean;
|
|
18
|
+
// (undocumented)
|
|
19
|
+
busy?: boolean;
|
|
20
|
+
countedLabelKey?: MessageKey;
|
|
21
|
+
// (undocumented)
|
|
22
|
+
id: ActionId;
|
|
23
|
+
labelKey: MessageKey;
|
|
24
|
+
labelValues?: Record<string, number>;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
reasonKey?: MessageKey;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
reasonValues?: Record<string, number>;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
schedule?: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// @public (undocumented)
|
|
34
|
+
export type ActionId = "confirm" | "stop" | "decline" | "leave" | "keep" | "status" | "undoSelected" | "continue";
|
|
35
|
+
|
|
36
|
+
// @public (undocumented)
|
|
37
|
+
export function addMessages(en: Record<string, string>, zh: Record<string, string>): void;
|
|
38
|
+
|
|
39
|
+
// @public (undocumented)
|
|
40
|
+
export function asProblem(error: unknown, id: string): Problem;
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
export interface AttachmentPort {
|
|
44
|
+
// (undocumented)
|
|
45
|
+
remove(id: string): MaybePromise<void>;
|
|
46
|
+
// (undocumented)
|
|
47
|
+
upload(data: Uint8Array, context: {
|
|
48
|
+
conversationId: string;
|
|
49
|
+
fileName: string;
|
|
50
|
+
contentType: string;
|
|
51
|
+
}): MaybePromise<{
|
|
52
|
+
id: string;
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export type Block = BlockMarkdown | BlockCard | BlockDetails | BlockList | BlockTable | BlockForm | BlockChoice | BlockButtons | BlockDiff | BlockPlan | BlockRouteLink | BlockNotice | BlockFormFill | ExtensionBlock;
|
|
58
|
+
|
|
59
|
+
// @public
|
|
60
|
+
export type BlockAnswer = Pick<Reply, "kind"> & Record<string, unknown>;
|
|
61
|
+
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export interface BlockButtons {
|
|
64
|
+
// (undocumented)
|
|
65
|
+
answer?: CardAnswer;
|
|
66
|
+
answered?: boolean;
|
|
67
|
+
// (undocumented)
|
|
68
|
+
body: {
|
|
69
|
+
actions: {
|
|
70
|
+
id: string;
|
|
71
|
+
label: string;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
// (undocumented)
|
|
75
|
+
fallback: string;
|
|
76
|
+
// (undocumented)
|
|
77
|
+
id: string;
|
|
78
|
+
// (undocumented)
|
|
79
|
+
type: 'buttons';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
export interface BlockCard {
|
|
84
|
+
// (undocumented)
|
|
85
|
+
answer?: CardAnswer;
|
|
86
|
+
answered?: boolean;
|
|
87
|
+
// (undocumented)
|
|
88
|
+
body: {
|
|
89
|
+
title: string;
|
|
90
|
+
blocks: Block[];
|
|
91
|
+
};
|
|
92
|
+
// (undocumented)
|
|
93
|
+
fallback: string;
|
|
94
|
+
// (undocumented)
|
|
95
|
+
id: string;
|
|
96
|
+
// (undocumented)
|
|
97
|
+
type: 'card';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// @public (undocumented)
|
|
101
|
+
export type BlockCatalogue = Readonly<Record<BlockMessageKey, string>>;
|
|
102
|
+
|
|
103
|
+
// @public (undocumented)
|
|
104
|
+
export interface BlockChoice {
|
|
105
|
+
// (undocumented)
|
|
106
|
+
answer?: CardAnswer;
|
|
107
|
+
answered?: boolean;
|
|
108
|
+
// (undocumented)
|
|
109
|
+
body: {
|
|
110
|
+
mode: 'single' | 'multi' | 'text';
|
|
111
|
+
options: string[];
|
|
112
|
+
};
|
|
113
|
+
// (undocumented)
|
|
114
|
+
fallback: string;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
id: string;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
type: 'choice';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// @public
|
|
122
|
+
export interface BlockDetails {
|
|
123
|
+
// (undocumented)
|
|
124
|
+
answer?: CardAnswer;
|
|
125
|
+
answered?: boolean;
|
|
126
|
+
body: {
|
|
127
|
+
summary: string;
|
|
128
|
+
blocks: Block[];
|
|
129
|
+
};
|
|
130
|
+
fallback: string;
|
|
131
|
+
id: string;
|
|
132
|
+
type: 'details';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export interface BlockDiff {
|
|
137
|
+
// (undocumented)
|
|
138
|
+
answer?: CardAnswer;
|
|
139
|
+
answered?: boolean;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
body: {
|
|
142
|
+
before: unknown;
|
|
143
|
+
after: unknown;
|
|
144
|
+
};
|
|
145
|
+
// (undocumented)
|
|
146
|
+
fallback: string;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
id: string;
|
|
149
|
+
// (undocumented)
|
|
150
|
+
type: 'diff';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
export interface BlockForm {
|
|
155
|
+
// (undocumented)
|
|
156
|
+
answer?: CardAnswer;
|
|
157
|
+
answered?: boolean;
|
|
158
|
+
// (undocumented)
|
|
159
|
+
body: {
|
|
160
|
+
fields: {
|
|
161
|
+
name: string;
|
|
162
|
+
label: string;
|
|
163
|
+
required?: boolean;
|
|
164
|
+
value?: string;
|
|
165
|
+
}[];
|
|
166
|
+
};
|
|
167
|
+
// (undocumented)
|
|
168
|
+
fallback: string;
|
|
169
|
+
// (undocumented)
|
|
170
|
+
id: string;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
type: 'form';
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
export interface BlockFormFill {
|
|
177
|
+
// (undocumented)
|
|
178
|
+
answer?: CardAnswer;
|
|
179
|
+
answered?: boolean;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
body: {
|
|
182
|
+
requestId: string;
|
|
183
|
+
values: {
|
|
184
|
+
[k: string]: FormFillValue;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
// (undocumented)
|
|
188
|
+
fallback: string;
|
|
189
|
+
// (undocumented)
|
|
190
|
+
id: string;
|
|
191
|
+
// (undocumented)
|
|
192
|
+
type: 'form.fill';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// @public (undocumented)
|
|
196
|
+
export interface BlockList {
|
|
197
|
+
// (undocumented)
|
|
198
|
+
answer?: CardAnswer;
|
|
199
|
+
answered?: boolean;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
body: {
|
|
202
|
+
items: string[];
|
|
203
|
+
};
|
|
204
|
+
// (undocumented)
|
|
205
|
+
fallback: string;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
id: string;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
type: 'list';
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// @public (undocumented)
|
|
213
|
+
export interface BlockMarkdown {
|
|
214
|
+
// (undocumented)
|
|
215
|
+
answer?: CardAnswer;
|
|
216
|
+
answered?: boolean;
|
|
217
|
+
// (undocumented)
|
|
218
|
+
body: {
|
|
219
|
+
text: string;
|
|
220
|
+
};
|
|
221
|
+
// (undocumented)
|
|
222
|
+
fallback: string;
|
|
223
|
+
// (undocumented)
|
|
224
|
+
id: string;
|
|
225
|
+
// (undocumented)
|
|
226
|
+
type: 'markdown';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// @public (undocumented)
|
|
230
|
+
export type BlockMessageKey = "chat.block.required" | "chat.block.requiredMissing" | "chat.block.answerMissing" | "chat.block.empty" | "chat.block.tierLow" | "chat.block.tierSensitive" | "chat.block.undoCompareAndSet" | "chat.block.undoArchiveCreated" | "chat.block.undoInverse" | "chat.block.status" | "chat.block.outcomeDone" | "chat.block.outcomeFailed" | "chat.block.retryable" | "chat.block.notRetryable" | "chat.block.state.proposed" | "chat.block.state.awaiting-confirmation" | "chat.block.state.running" | "chat.block.state.undoing" | "chat.block.state.completed" | "chat.block.state.submitted" | "chat.block.state.undone" | "chat.block.state.needs-attention" | "chat.block.state.cancelled" | "chat.block.run" | "chat.block.runMissing" | "chat.block.favourite" | "chat.block.flowLoading" | "chat.block.flowsLoading" | "chat.block.flowsEmpty" | "chat.block.answered" | "chat.block.answeredWith";
|
|
231
|
+
|
|
232
|
+
// @public (undocumented)
|
|
233
|
+
export interface BlockNotice {
|
|
234
|
+
// (undocumented)
|
|
235
|
+
answer?: CardAnswer;
|
|
236
|
+
answered?: boolean;
|
|
237
|
+
// (undocumented)
|
|
238
|
+
body: {
|
|
239
|
+
text: string;
|
|
240
|
+
tone?: 'info' | 'warning' | 'error';
|
|
241
|
+
};
|
|
242
|
+
// (undocumented)
|
|
243
|
+
fallback: string;
|
|
244
|
+
// (undocumented)
|
|
245
|
+
id: string;
|
|
246
|
+
// (undocumented)
|
|
247
|
+
type: 'notice';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
export interface BlockPlan {
|
|
252
|
+
// (undocumented)
|
|
253
|
+
answer?: CardAnswer;
|
|
254
|
+
answered?: boolean;
|
|
255
|
+
// (undocumented)
|
|
256
|
+
body: {
|
|
257
|
+
planId: string;
|
|
258
|
+
};
|
|
259
|
+
// (undocumented)
|
|
260
|
+
fallback: string;
|
|
261
|
+
// (undocumented)
|
|
262
|
+
id: string;
|
|
263
|
+
// (undocumented)
|
|
264
|
+
type: 'plan';
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// @public (undocumented)
|
|
268
|
+
export interface BlockReply {
|
|
269
|
+
answered: ReadonlySet<string>;
|
|
270
|
+
isAnswered(block: Pick<Block, "id" | "answered">, messageId?: string): boolean;
|
|
271
|
+
reply(block: Pick<Block, "id">, answer: BlockAnswer, messageId?: string): Promise<ReplyOutcome | void>;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// @public (undocumented)
|
|
275
|
+
export interface BlockRouteLink {
|
|
276
|
+
// (undocumented)
|
|
277
|
+
answer?: CardAnswer;
|
|
278
|
+
answered?: boolean;
|
|
279
|
+
// (undocumented)
|
|
280
|
+
body: {
|
|
281
|
+
label: string;
|
|
282
|
+
route: string;
|
|
283
|
+
};
|
|
284
|
+
// (undocumented)
|
|
285
|
+
fallback: string;
|
|
286
|
+
// (undocumented)
|
|
287
|
+
id: string;
|
|
288
|
+
// (undocumented)
|
|
289
|
+
type: 'route-link';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// @public
|
|
293
|
+
export interface BlockSummary {
|
|
294
|
+
// (undocumented)
|
|
295
|
+
answered: boolean;
|
|
296
|
+
// (undocumented)
|
|
297
|
+
id: string;
|
|
298
|
+
// (undocumented)
|
|
299
|
+
type: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// @public (undocumented)
|
|
303
|
+
export interface BlockTable {
|
|
304
|
+
// (undocumented)
|
|
305
|
+
answer?: CardAnswer;
|
|
306
|
+
answered?: boolean;
|
|
307
|
+
// (undocumented)
|
|
308
|
+
body: {
|
|
309
|
+
columns: string[];
|
|
310
|
+
rows: unknown[][];
|
|
311
|
+
};
|
|
312
|
+
// (undocumented)
|
|
313
|
+
fallback: string;
|
|
314
|
+
// (undocumented)
|
|
315
|
+
id: string;
|
|
316
|
+
// (undocumented)
|
|
317
|
+
type: 'table';
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// @public (undocumented)
|
|
321
|
+
export type BuiltinFlowTab = "favourites" | "most-used" | "recent" | "presets";
|
|
322
|
+
|
|
323
|
+
// @public (undocumented)
|
|
324
|
+
export interface ButtonProps {
|
|
325
|
+
// (undocumented)
|
|
326
|
+
"aria-busy"?: boolean;
|
|
327
|
+
// (undocumented)
|
|
328
|
+
"aria-controls"?: string;
|
|
329
|
+
// (undocumented)
|
|
330
|
+
"aria-current"?: "page";
|
|
331
|
+
// (undocumented)
|
|
332
|
+
"aria-describedby"?: string;
|
|
333
|
+
// (undocumented)
|
|
334
|
+
"aria-disabled"?: boolean;
|
|
335
|
+
"aria-expanded"?: boolean;
|
|
336
|
+
"aria-pressed"?: boolean;
|
|
337
|
+
// (undocumented)
|
|
338
|
+
"aria-selected"?: boolean;
|
|
339
|
+
// (undocumented)
|
|
340
|
+
"data-action"?: string;
|
|
341
|
+
// (undocumented)
|
|
342
|
+
children?: ReactNode;
|
|
343
|
+
// (undocumented)
|
|
344
|
+
disabled?: boolean;
|
|
345
|
+
// (undocumented)
|
|
346
|
+
id?: string;
|
|
347
|
+
// (undocumented)
|
|
348
|
+
label?: string;
|
|
349
|
+
// (undocumented)
|
|
350
|
+
onPress?(): void;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
role?: "tab";
|
|
353
|
+
// (undocumented)
|
|
354
|
+
tabIndex?: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// @public (undocumented)
|
|
358
|
+
export interface CanonicalRequest {
|
|
359
|
+
// (undocumented)
|
|
360
|
+
body: string;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
digest: string;
|
|
363
|
+
// (undocumented)
|
|
364
|
+
headers: {
|
|
365
|
+
[k: string]: string;
|
|
366
|
+
};
|
|
367
|
+
// (undocumented)
|
|
368
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
369
|
+
// (undocumented)
|
|
370
|
+
path: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// @public (undocumented)
|
|
374
|
+
export function canTransition(from: PlanState, to: PlanState): boolean;
|
|
375
|
+
|
|
376
|
+
// @public (undocumented)
|
|
377
|
+
export const CAPABILITIES: readonly ["plans", "flows", "widgets", "step-up", "scheduled", "form-fill", "plan-recovery", "plan-leave", "plan-keep", "reply-stop"];
|
|
378
|
+
|
|
379
|
+
// @public (undocumented)
|
|
380
|
+
export type Capability = (typeof CAPABILITIES)[number];
|
|
381
|
+
|
|
382
|
+
// @public
|
|
383
|
+
export type CardAnswer = {
|
|
384
|
+
kind: 'action';
|
|
385
|
+
clientReplyId: string;
|
|
386
|
+
blockId: string;
|
|
387
|
+
actionId: string;
|
|
388
|
+
} | {
|
|
389
|
+
kind: 'form';
|
|
390
|
+
clientReplyId: string;
|
|
391
|
+
blockId: string;
|
|
392
|
+
values?: {};
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// @public
|
|
396
|
+
export function cardReplyId(conversationId: string, messageId: string, blockId: string, answer: BlockAnswer): string;
|
|
397
|
+
|
|
398
|
+
// @public
|
|
399
|
+
export function catalogueFor(locale?: string): {
|
|
400
|
+
catalogue: "en" | "zh";
|
|
401
|
+
lang: string;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
// @public (undocumented)
|
|
405
|
+
export interface CheckboxProps {
|
|
406
|
+
// (undocumented)
|
|
407
|
+
checked: boolean;
|
|
408
|
+
// (undocumented)
|
|
409
|
+
describedBy?: string;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
disabled?: boolean;
|
|
412
|
+
// (undocumented)
|
|
413
|
+
invalid?: boolean;
|
|
414
|
+
// (undocumented)
|
|
415
|
+
label: string;
|
|
416
|
+
// (undocumented)
|
|
417
|
+
onChange(checked: boolean): void;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// @public (undocumented)
|
|
421
|
+
export interface ClientConfig {
|
|
422
|
+
// (undocumented)
|
|
423
|
+
accountId: string;
|
|
424
|
+
// (undocumented)
|
|
425
|
+
beforeSend?: (reply: Reply) => MaybePromise<Reply | false | void>;
|
|
426
|
+
// (undocumented)
|
|
427
|
+
contributions?: readonly ComposerContribution[];
|
|
428
|
+
// (undocumented)
|
|
429
|
+
conversationId: string;
|
|
430
|
+
// (undocumented)
|
|
431
|
+
feedback?: FeedbackPort;
|
|
432
|
+
// (undocumented)
|
|
433
|
+
flowOperations?: readonly string[];
|
|
434
|
+
// (undocumented)
|
|
435
|
+
flowSource?: FlowSource;
|
|
436
|
+
// (undocumented)
|
|
437
|
+
formSession?: FormSession;
|
|
438
|
+
// (undocumented)
|
|
439
|
+
plans?: RunnerPorts & {
|
|
440
|
+
resume?(id: string): Promise<PlanRecord>;
|
|
441
|
+
retryUndo?(id: string): Promise<PlanRecord>;
|
|
442
|
+
};
|
|
443
|
+
// (undocumented)
|
|
444
|
+
platform: PlatformPorts;
|
|
445
|
+
// (undocumented)
|
|
446
|
+
reads?: ReadPorts;
|
|
447
|
+
// (undocumented)
|
|
448
|
+
storage?: StoragePort;
|
|
449
|
+
// (undocumented)
|
|
450
|
+
tabs?: readonly FlowTab[];
|
|
451
|
+
// (undocumented)
|
|
452
|
+
transport: TransportPort;
|
|
453
|
+
// (undocumented)
|
|
454
|
+
versions?: MessageVersionPort;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
// @public (undocumented)
|
|
458
|
+
export interface ClientSnapshot {
|
|
459
|
+
// (undocumented)
|
|
460
|
+
announcement: number;
|
|
461
|
+
// (undocumented)
|
|
462
|
+
capabilities: readonly Capability[];
|
|
463
|
+
confirmationRefusal?: {
|
|
464
|
+
token: string;
|
|
465
|
+
problemId: string;
|
|
466
|
+
};
|
|
467
|
+
// (undocumented)
|
|
468
|
+
conversation: Conversation | null;
|
|
469
|
+
// (undocumented)
|
|
470
|
+
conversationId: string;
|
|
471
|
+
// (undocumented)
|
|
472
|
+
conversationUnavailable: boolean;
|
|
473
|
+
// (undocumented)
|
|
474
|
+
draft: string;
|
|
475
|
+
// (undocumented)
|
|
476
|
+
flows: Partial<Record<string, FlowSummary[]>>;
|
|
477
|
+
// (undocumented)
|
|
478
|
+
flowTab: string;
|
|
479
|
+
// (undocumented)
|
|
480
|
+
flowTabs: readonly FlowTab[];
|
|
481
|
+
// (undocumented)
|
|
482
|
+
hints: readonly string[];
|
|
483
|
+
// (undocumented)
|
|
484
|
+
intentAlert: IntentAlert | null;
|
|
485
|
+
intentNotice: IntentNotice | null;
|
|
486
|
+
intentOverlays: Readonly<Record<string, IntentOverlay>>;
|
|
487
|
+
// (undocumented)
|
|
488
|
+
observerFailures: number;
|
|
489
|
+
// (undocumented)
|
|
490
|
+
pending: readonly PendingSend[];
|
|
491
|
+
// (undocumented)
|
|
492
|
+
plan: PlanRecord | null;
|
|
493
|
+
planReadOnly?: boolean;
|
|
494
|
+
// (undocumented)
|
|
495
|
+
problem: Problem | null;
|
|
496
|
+
// (undocumented)
|
|
497
|
+
protocol: string | null;
|
|
498
|
+
// (undocumented)
|
|
499
|
+
replyState: ReplyState;
|
|
500
|
+
restored: readonly RestoredMessage[];
|
|
501
|
+
// (undocumented)
|
|
502
|
+
sending: boolean;
|
|
503
|
+
// (undocumented)
|
|
504
|
+
status: string;
|
|
505
|
+
streamUnavailable: boolean;
|
|
506
|
+
toolSteps: readonly ToolStep[];
|
|
507
|
+
withdrawing: readonly string[];
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// @public (undocumented)
|
|
511
|
+
export interface ComposerContribution {
|
|
512
|
+
// (undocumented)
|
|
513
|
+
evaluate(context: {
|
|
514
|
+
draft: string;
|
|
515
|
+
conversationId: string;
|
|
516
|
+
}): MaybePromise<{
|
|
517
|
+
hold?: string;
|
|
518
|
+
hint?: string;
|
|
519
|
+
payload?: unknown;
|
|
520
|
+
}>;
|
|
521
|
+
// (undocumented)
|
|
522
|
+
id: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// @public (undocumented)
|
|
526
|
+
export type ConfirmationCatalogue = Readonly<Record<ConfirmationMessageKey, string>>;
|
|
527
|
+
|
|
528
|
+
// @public (undocumented)
|
|
529
|
+
export interface ConfirmationItem {
|
|
530
|
+
// (undocumented)
|
|
531
|
+
after?: string;
|
|
532
|
+
// (undocumented)
|
|
533
|
+
before?: string;
|
|
534
|
+
// (undocumented)
|
|
535
|
+
label: string;
|
|
536
|
+
// (undocumented)
|
|
537
|
+
note?: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// @public (undocumented)
|
|
541
|
+
export type ConfirmationMessageKey = "chat.confirmation.heading" | "chat.confirmation.apply" | "chat.confirmation.schedule" | "chat.confirmation.applyCount" | "chat.confirmation.scheduleCount" | "chat.confirmation.unavailable" | "chat.confirmation.expired" | "chat.confirmation.used" | "chat.confirmation.changed" | "chat.confirmation.mismatch" | "chat.confirmation.irreversible" | "chat.confirmation.before" | "chat.confirmation.after" | "chat.confirmation.refresh" | "chat.confirmation.verifications" | "chat.confirmation.expires" | "chat.confirmation.showAll";
|
|
542
|
+
|
|
543
|
+
// @public
|
|
544
|
+
export function confirmationOf(plan: PlanRecord | null | undefined, conversationId: string | undefined): ConfirmationRecord | undefined;
|
|
545
|
+
|
|
546
|
+
// @public
|
|
547
|
+
export interface ConfirmationRecord {
|
|
548
|
+
// (undocumented)
|
|
549
|
+
actionLabel?: string;
|
|
550
|
+
// (undocumented)
|
|
551
|
+
conversationId: string;
|
|
552
|
+
// (undocumented)
|
|
553
|
+
expiresAt: string;
|
|
554
|
+
// (undocumented)
|
|
555
|
+
heading: string;
|
|
556
|
+
// (undocumented)
|
|
557
|
+
irreversible: boolean;
|
|
558
|
+
items: ConfirmationItem[];
|
|
559
|
+
// (undocumented)
|
|
560
|
+
planId: string;
|
|
561
|
+
// (undocumented)
|
|
562
|
+
revision: number;
|
|
563
|
+
// (undocumented)
|
|
564
|
+
schedule?: ConfirmationSchedule;
|
|
565
|
+
// (undocumented)
|
|
566
|
+
token: string;
|
|
567
|
+
// (undocumented)
|
|
568
|
+
undo: string;
|
|
569
|
+
// (undocumented)
|
|
570
|
+
verificationCount: number;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// @public (undocumented)
|
|
574
|
+
export interface ConfirmationSchedule {
|
|
575
|
+
// (undocumented)
|
|
576
|
+
end: string | null;
|
|
577
|
+
// (undocumented)
|
|
578
|
+
endText: string;
|
|
579
|
+
// (undocumented)
|
|
580
|
+
start: string | null;
|
|
581
|
+
// (undocumented)
|
|
582
|
+
startText: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// @public (undocumented)
|
|
586
|
+
export function ConfirmSheet(input: {
|
|
587
|
+
title: string;
|
|
588
|
+
body: string;
|
|
589
|
+
busy?: boolean;
|
|
590
|
+
onProceed(): void;
|
|
591
|
+
onCancel(): void;
|
|
592
|
+
}): react.JSX.Element | null;
|
|
593
|
+
|
|
594
|
+
// @public (undocumented)
|
|
595
|
+
export interface ContractAssertions {
|
|
596
|
+
// (undocumented)
|
|
597
|
+
equal(actual: unknown, expected: unknown): void;
|
|
598
|
+
// (undocumented)
|
|
599
|
+
ok(value: unknown): void;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// @public (undocumented)
|
|
603
|
+
export interface ContractSuite {
|
|
604
|
+
// (undocumented)
|
|
605
|
+
assert: ContractAssertions;
|
|
606
|
+
// (undocumented)
|
|
607
|
+
test(name: string, run: () => Promise<void>): void;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// @public (undocumented)
|
|
611
|
+
export type Conversation = {
|
|
612
|
+
[k: string]: unknown;
|
|
613
|
+
} & {
|
|
614
|
+
protocol: string;
|
|
615
|
+
id: string;
|
|
616
|
+
title: string;
|
|
617
|
+
messages: Message[];
|
|
618
|
+
replyOverdueAt?: number | null;
|
|
619
|
+
replyStatus?: 'expected' | 'unavailable' | 'failed' | 'complete';
|
|
620
|
+
mode?: 'form-fill';
|
|
621
|
+
subject?: FormSubject;
|
|
622
|
+
parentConversationId?: string;
|
|
623
|
+
field?: string;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
// @public (undocumented)
|
|
627
|
+
export function ConversationRail(input: ConversationRailProps): react.JSX.Element;
|
|
628
|
+
|
|
629
|
+
// @public (undocumented)
|
|
630
|
+
export interface ConversationRailProps {
|
|
631
|
+
// (undocumented)
|
|
632
|
+
conversations: readonly ConversationSummary[];
|
|
633
|
+
onChoose?(): void;
|
|
634
|
+
// (undocumented)
|
|
635
|
+
source?: ConversationSource;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
// @public (undocumented)
|
|
639
|
+
export class ConversationReadError extends Error {
|
|
640
|
+
constructor(conversationId: string, status: number, problem?: unknown);
|
|
641
|
+
// (undocumented)
|
|
642
|
+
readonly conversationId: string;
|
|
643
|
+
readonly problem?: Problem;
|
|
644
|
+
// (undocumented)
|
|
645
|
+
readonly status: number;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// @public (undocumented)
|
|
649
|
+
export type ConversationReadResult = {
|
|
650
|
+
kind: "loaded";
|
|
651
|
+
conversationId: string;
|
|
652
|
+
conversation: Conversation;
|
|
653
|
+
} | {
|
|
654
|
+
kind: "missing";
|
|
655
|
+
conversationId: string;
|
|
656
|
+
status: 404 | 410;
|
|
657
|
+
} | {
|
|
658
|
+
kind: "unavailable" | "superseded";
|
|
659
|
+
conversationId: string;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
// @public (undocumented)
|
|
663
|
+
export interface ConversationSource {
|
|
664
|
+
// (undocumented)
|
|
665
|
+
create(input: CreateConversation): MaybePromise<Conversation>;
|
|
666
|
+
// (undocumented)
|
|
667
|
+
list(subjectKey?: string): MaybePromise<ConversationSummary[]>;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
// @public (undocumented)
|
|
671
|
+
export interface ConversationSummary {
|
|
672
|
+
// (undocumented)
|
|
673
|
+
field?: string;
|
|
674
|
+
// (undocumented)
|
|
675
|
+
id: string;
|
|
676
|
+
// (undocumented)
|
|
677
|
+
mode?: "form-fill";
|
|
678
|
+
// (undocumented)
|
|
679
|
+
parentConversationId?: string;
|
|
680
|
+
// (undocumented)
|
|
681
|
+
subject?: FormSubject;
|
|
682
|
+
// (undocumented)
|
|
683
|
+
title: string;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
// @public (undocumented)
|
|
687
|
+
export type CreateConversation = {
|
|
688
|
+
[k: string]: unknown;
|
|
689
|
+
} & {
|
|
690
|
+
protocol: string;
|
|
691
|
+
title: string;
|
|
692
|
+
mode?: 'form-fill';
|
|
693
|
+
subject?: FormSubject;
|
|
694
|
+
parentConversationId?: string;
|
|
695
|
+
field?: string;
|
|
696
|
+
clientCreationId?: string;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
// @public (undocumented)
|
|
700
|
+
export function createFormatter(locale?: string): FormatMessage;
|
|
701
|
+
|
|
702
|
+
// @public (undocumented)
|
|
703
|
+
export function createMemoryStorage(asynchronous?: boolean): StoragePort;
|
|
704
|
+
|
|
705
|
+
// @public (undocumented)
|
|
706
|
+
export function createPlanRunner(ports: RunnerPorts): PlanRunner;
|
|
707
|
+
|
|
708
|
+
// @public
|
|
709
|
+
export function createScriptedTransport(now?: () => number): {
|
|
710
|
+
transport: TransportPort;
|
|
711
|
+
enqueue: (turn: ScriptedTurn) => void;
|
|
712
|
+
emit: (id: string, event: TransportEvent) => void;
|
|
713
|
+
activeStreams: () => number;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
// @public (undocumented)
|
|
717
|
+
export function createTestPlatform(): PlatformPorts;
|
|
718
|
+
|
|
719
|
+
// @public (undocumented)
|
|
720
|
+
export function createWaypointClient(config: ClientConfig): WaypointClient;
|
|
721
|
+
|
|
722
|
+
// @public (undocumented)
|
|
723
|
+
export const darkTheme: ResolvedTheme;
|
|
724
|
+
|
|
725
|
+
// @public (undocumented)
|
|
726
|
+
export interface DecisionVersions {
|
|
727
|
+
// (undocumented)
|
|
728
|
+
decisionResolution: number;
|
|
729
|
+
// (undocumented)
|
|
730
|
+
evidence: number;
|
|
731
|
+
// (undocumented)
|
|
732
|
+
winner: number;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
// @public (undocumented)
|
|
736
|
+
export const DEFAULT_FLOW_TABS: readonly BuiltinFlowTab[];
|
|
737
|
+
|
|
738
|
+
// @public (undocumented)
|
|
739
|
+
export function defaultProblemText(problem: Problem, format: FormatMessage): {
|
|
740
|
+
text: string;
|
|
741
|
+
action?: ReactNode;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
// @public (undocumented)
|
|
745
|
+
export function defineAccessibilityContract(suite: ContractSuite, skin?: Skin): void;
|
|
746
|
+
|
|
747
|
+
// @public (undocumented)
|
|
748
|
+
export function defineFormFillContract(suite: ContractSuite, skin?: Skin): void;
|
|
749
|
+
|
|
750
|
+
// @public (undocumented)
|
|
751
|
+
export function defineOverrideContract(suite: ContractSuite, skin?: Skin): void;
|
|
752
|
+
|
|
753
|
+
// @public (undocumented)
|
|
754
|
+
export function defineSkinContract(suite: ContractSuite, skin?: Skin): void;
|
|
755
|
+
|
|
756
|
+
// @public (undocumented)
|
|
757
|
+
export function defineWidgetContract(suite: ContractSuite, skin?: Skin): void;
|
|
758
|
+
|
|
759
|
+
// @public (undocumented)
|
|
760
|
+
export interface DrawerProps {
|
|
761
|
+
// (undocumented)
|
|
762
|
+
children?: ReactNode;
|
|
763
|
+
closeLabel?: string;
|
|
764
|
+
focusInto?(element: HTMLElement): void;
|
|
765
|
+
// (undocumented)
|
|
766
|
+
label: string;
|
|
767
|
+
// (undocumented)
|
|
768
|
+
onClose(): void;
|
|
769
|
+
// (undocumented)
|
|
770
|
+
open: boolean;
|
|
771
|
+
restoreFocus?(element: HTMLElement): void;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// @public (undocumented)
|
|
775
|
+
export const english: {
|
|
776
|
+
readonly "form.valid": "Valid";
|
|
777
|
+
readonly "form.invalid": "Invalid";
|
|
778
|
+
readonly "form.title": "Fill this form";
|
|
779
|
+
readonly "form.closeHint": "Closing discards this fill; the reply stays in the conversation.";
|
|
780
|
+
readonly "form.generate": "Generate draft";
|
|
781
|
+
readonly "form.references": "Reference links";
|
|
782
|
+
readonly "form.attachment": "Private attachment";
|
|
783
|
+
readonly "form.regenerate": "Regenerate {field}";
|
|
784
|
+
readonly "form.replace": "Replace your edit?";
|
|
785
|
+
readonly "form.marker": "Form";
|
|
786
|
+
readonly "form.filter": "Filter by topic";
|
|
787
|
+
readonly "form.all": "All topics";
|
|
788
|
+
readonly "form.threads": "Sub-threads";
|
|
789
|
+
readonly "form.return": "Back to form or record";
|
|
790
|
+
readonly "form.unlinked": "Saved, not linked";
|
|
791
|
+
readonly "form.toolsLoading": "Draft tools are still loading.";
|
|
792
|
+
readonly "form.toolsFailed": "Draft tools couldn't load. Retry first.";
|
|
793
|
+
readonly "form.fixFirst": "Fix the highlighted fields first.";
|
|
794
|
+
readonly "form.number": "Enter a number.";
|
|
795
|
+
readonly "form.editInForm": "Edit this value in the form.";
|
|
796
|
+
readonly "form.imagesNow": "Images can't be attached right now.";
|
|
797
|
+
readonly "form.imagesHere": "Images can't be attached here.";
|
|
798
|
+
readonly "chat.title": "Conversation";
|
|
799
|
+
readonly "chat.empty": "Start a conversation";
|
|
800
|
+
readonly "chat.message": "Message";
|
|
801
|
+
readonly "chat.send": "Send";
|
|
802
|
+
readonly "chat.sending": "Sending";
|
|
803
|
+
readonly "chat.pendingSending": "Sending…";
|
|
804
|
+
readonly "chat.pendingFailed": "Not sent";
|
|
805
|
+
readonly "chat.planUnavailable": "The plan's steps could not be loaded.";
|
|
806
|
+
readonly "chat.arrival": "New reply";
|
|
807
|
+
readonly "chat.arrivalExcerpt": "New reply: {excerpt}";
|
|
808
|
+
readonly "chat.arrivalFailed": "A reply could not be completed.";
|
|
809
|
+
readonly "chat.arrivalMany": "{count} new replies. Latest: {excerpt}";
|
|
810
|
+
readonly "chat.arrivalManyPlain": "{count} new replies";
|
|
811
|
+
readonly "chat.arrivalManyFailed": "{count} new replies; {failed} could not be completed.";
|
|
812
|
+
readonly "chat.arrivalAllFailed": "{count} replies could not be completed.";
|
|
813
|
+
readonly "chat.transcript": "Messages";
|
|
814
|
+
readonly "chat.outlineItem": "{role}, message {position}: {excerpt}";
|
|
815
|
+
readonly "chat.outlineItemPlain": "{role}, message {position}";
|
|
816
|
+
readonly "chat.roleUser": "You";
|
|
817
|
+
readonly "chat.roleAssistant": "Assistant";
|
|
818
|
+
readonly "chat.messageLoading": "Loading message…";
|
|
819
|
+
readonly "chat.messageUnavailable": "This message cannot be shown right now.";
|
|
820
|
+
readonly "chat.changesTo": "changes to";
|
|
821
|
+
readonly "chat.stepName": "Change {index}";
|
|
822
|
+
readonly "chat.stepNamed": "{name} {index}";
|
|
823
|
+
readonly "chat.fieldName": "Value {index}";
|
|
824
|
+
readonly "chat.scrollRegion": "Scrollable content";
|
|
825
|
+
readonly "chat.conversationReadFailed": "This conversation could not be loaded.";
|
|
826
|
+
readonly "chat.conversationsFailed": "Your conversations could not be loaded.";
|
|
827
|
+
readonly "chat.messagesUnavailable": "Some messages cannot be shown right now.";
|
|
828
|
+
readonly unsupportedContent: "Some content cannot be shown here. Contact the site administrator.";
|
|
829
|
+
readonly "chat.failure": "The request could not be completed.";
|
|
830
|
+
readonly "chat.update": "This chat needs an update.";
|
|
831
|
+
readonly "chat.conversationUnavailable": "This conversation is unavailable. Reload to continue; this does not stop a server turn.";
|
|
832
|
+
readonly "chat.reload": "Reload conversation";
|
|
833
|
+
readonly "chat.retry": "Retry";
|
|
834
|
+
readonly "chat.withdraw": "Withdraw";
|
|
835
|
+
readonly "chat.restored": "Withdrawn messages";
|
|
836
|
+
readonly "chat.restoredEdit": "Edit";
|
|
837
|
+
readonly "chat.restoredDiscard": "Discard";
|
|
838
|
+
readonly "chat.dismiss": "Dismiss";
|
|
839
|
+
readonly "chat.latest": "Back to latest";
|
|
840
|
+
readonly "chat.latestNew": "{count, plural, one {Back to latest, # new reply} other {Back to latest, # new replies}}";
|
|
841
|
+
readonly "chat.outline": "Message outline";
|
|
842
|
+
readonly "chat.outlineFilter": "Filter messages";
|
|
843
|
+
readonly "chat.outlineMatches": "{count, plural, =0 {No messages match} one {# message matches} other {# messages match}}";
|
|
844
|
+
readonly "chat.outlineSearching": "Searching…";
|
|
845
|
+
readonly "chat.rail": "Conversations";
|
|
846
|
+
readonly "chat.close": "Close";
|
|
847
|
+
readonly "chat.quota": "Usage";
|
|
848
|
+
readonly "chat.actions": "Actions";
|
|
849
|
+
readonly "chat.panels": "Extra panels";
|
|
850
|
+
readonly "chat.submit": "Submit";
|
|
851
|
+
readonly "chat.confirm": "Confirm";
|
|
852
|
+
readonly "chat.cancel": "Cancel";
|
|
853
|
+
readonly "chat.stop": "Stop";
|
|
854
|
+
readonly "chat.planChanged": "The plan changed; confirm again.";
|
|
855
|
+
readonly "chat.stopped": "The plan was stopped. Start a new plan to continue.";
|
|
856
|
+
readonly "chat.scheduleUnavailable": "Scheduling is unavailable in this chat.";
|
|
857
|
+
readonly "chat.start": "Start time";
|
|
858
|
+
readonly "chat.end": "End time";
|
|
859
|
+
readonly "chat.view": "View change";
|
|
860
|
+
readonly "chat.irreversible": "Cannot be undone";
|
|
861
|
+
readonly "chat.stepUp": "{count, plural, one {# verification prompt} other {# verification prompts}}";
|
|
862
|
+
readonly "chat.stepUpLabel": "Verification code";
|
|
863
|
+
readonly "chat.plan": "Plan";
|
|
864
|
+
readonly "chat.favourite": "Favourite";
|
|
865
|
+
readonly "chat.run": "Run";
|
|
866
|
+
readonly "chat.flows": "Saved requests";
|
|
867
|
+
readonly "flow.favourites": "Favourites";
|
|
868
|
+
readonly "flow.most-used": "Most used";
|
|
869
|
+
readonly "flow.recent": "Recent";
|
|
870
|
+
readonly "flow.presets": "Presets";
|
|
871
|
+
readonly "reply.writing": "Writing";
|
|
872
|
+
readonly "reply.stopped": "Stopped";
|
|
873
|
+
readonly "chat.sources": "Sources ({count})";
|
|
874
|
+
readonly "chat.source": "Source {index}: {title}";
|
|
875
|
+
readonly "reply.unavailable": "Reply unavailable";
|
|
876
|
+
readonly "reply.failed": "Reply failed";
|
|
877
|
+
readonly "reply.overdue": "Reply overdue";
|
|
878
|
+
readonly "chat.loading": "Loading";
|
|
879
|
+
readonly "chat.before": "Before";
|
|
880
|
+
readonly "chat.after": "After";
|
|
881
|
+
readonly "chat.undo": "Undo";
|
|
882
|
+
readonly "chat.verify": "Verification required";
|
|
883
|
+
readonly "chat.startupLoading": "Loading this conversation…";
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
// @public (undocumented)
|
|
887
|
+
export interface ExecutionAcceptance {
|
|
888
|
+
// (undocumented)
|
|
889
|
+
executionId: string;
|
|
890
|
+
// (undocumented)
|
|
891
|
+
fence: number;
|
|
892
|
+
// (undocumented)
|
|
893
|
+
planId: string;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// @public (undocumented)
|
|
897
|
+
export interface ExtensionBlock {
|
|
898
|
+
// (undocumented)
|
|
899
|
+
answer?: CardAnswer;
|
|
900
|
+
answered?: boolean;
|
|
901
|
+
// (undocumented)
|
|
902
|
+
body: unknown;
|
|
903
|
+
// (undocumented)
|
|
904
|
+
fallback: string;
|
|
905
|
+
// (undocumented)
|
|
906
|
+
id: string;
|
|
907
|
+
// (undocumented)
|
|
908
|
+
type: string;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
// @public
|
|
912
|
+
export interface FeedbackInput extends MessageVersionInput {
|
|
913
|
+
rating: "positive" | "negative";
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
// @public
|
|
917
|
+
export interface FeedbackPort {
|
|
918
|
+
send(input: FeedbackInput): MaybePromise<void>;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
// @public (undocumented)
|
|
922
|
+
export function FieldAdornment(input: FieldAdornmentProps): react.JSX.Element;
|
|
923
|
+
|
|
924
|
+
// @public (undocumented)
|
|
925
|
+
export interface FieldAdornmentProps {
|
|
926
|
+
// (undocumented)
|
|
927
|
+
children: ReactNode;
|
|
928
|
+
// (undocumented)
|
|
929
|
+
disabled?: boolean;
|
|
930
|
+
// (undocumented)
|
|
931
|
+
label: string;
|
|
932
|
+
// (undocumented)
|
|
933
|
+
onRegenerate(): void;
|
|
934
|
+
reason?: string;
|
|
935
|
+
// (undocumented)
|
|
936
|
+
slots?: Slots;
|
|
937
|
+
wrapper?: (element: HTMLDivElement | null) => void;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
// @public (undocumented)
|
|
941
|
+
export interface FinalHistory {
|
|
942
|
+
contradictedAfterSeal?: string[];
|
|
943
|
+
// (undocumented)
|
|
944
|
+
keptFact: KeptFact;
|
|
945
|
+
// (undocumented)
|
|
946
|
+
relation?: 'keptElsewhere' | 'leaveCompletedByKeep' | 'leaveCoveredByKeep';
|
|
947
|
+
// (undocumented)
|
|
948
|
+
requestedTargetApplied?: boolean;
|
|
949
|
+
// (undocumented)
|
|
950
|
+
winner: IntentWinner;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
// @public (undocumented)
|
|
954
|
+
export type Flow = {
|
|
955
|
+
[k: string]: unknown;
|
|
956
|
+
} & {
|
|
957
|
+
format: '1.0';
|
|
958
|
+
id: string;
|
|
959
|
+
title: string;
|
|
960
|
+
kind: 'structured' | 'prompt';
|
|
961
|
+
parameters: FlowParameter[];
|
|
962
|
+
steps?: {
|
|
963
|
+
operation: string;
|
|
964
|
+
arguments: {};
|
|
965
|
+
}[];
|
|
966
|
+
tags: string[];
|
|
967
|
+
body: string;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
// @public (undocumented)
|
|
971
|
+
export interface FlowParameter {
|
|
972
|
+
// (undocumented)
|
|
973
|
+
default?: unknown;
|
|
974
|
+
// (undocumented)
|
|
975
|
+
label: string;
|
|
976
|
+
// (undocumented)
|
|
977
|
+
name: string;
|
|
978
|
+
// (undocumented)
|
|
979
|
+
required: boolean;
|
|
980
|
+
// (undocumented)
|
|
981
|
+
type: 'string' | 'number' | 'boolean';
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// @public (undocumented)
|
|
985
|
+
export interface FlowSource {
|
|
986
|
+
// (undocumented)
|
|
987
|
+
list(tab: FlowTab): MaybePromise<FlowSummary[]>;
|
|
988
|
+
// (undocumented)
|
|
989
|
+
load?(id: string): MaybePromise<Flow>;
|
|
990
|
+
// (undocumented)
|
|
991
|
+
run(id: string, values: Record<string, unknown>, document?: Flow): MaybePromise<{
|
|
992
|
+
conversationId: string;
|
|
993
|
+
plan?: PlanRecord;
|
|
994
|
+
}>;
|
|
995
|
+
// (undocumented)
|
|
996
|
+
setFavourite(id: string, favourite: boolean): MaybePromise<void>;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
// @public (undocumented)
|
|
1000
|
+
export interface FlowSummary {
|
|
1001
|
+
// (undocumented)
|
|
1002
|
+
favourite?: boolean;
|
|
1003
|
+
// (undocumented)
|
|
1004
|
+
id: string;
|
|
1005
|
+
// (undocumented)
|
|
1006
|
+
lastRunAt?: number;
|
|
1007
|
+
// (undocumented)
|
|
1008
|
+
runCount?: number;
|
|
1009
|
+
// (undocumented)
|
|
1010
|
+
title: string;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
// @public (undocumented)
|
|
1014
|
+
export type FlowTab = BuiltinFlowTab | {
|
|
1015
|
+
id: string;
|
|
1016
|
+
labelKey: string;
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
// @public (undocumented)
|
|
1020
|
+
export function flowTabId(tab: FlowTab): string;
|
|
1021
|
+
|
|
1022
|
+
// @public
|
|
1023
|
+
export const FORM_SESSION_UNAVAILABLE: {
|
|
1024
|
+
readonly code: "retryable";
|
|
1025
|
+
readonly id: "form-session-load";
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
// @public (undocumented)
|
|
1029
|
+
export type FormatMessage = (key: MessageKey, values?: MessageValues) => string;
|
|
1030
|
+
|
|
1031
|
+
// @public (undocumented)
|
|
1032
|
+
export type FormCatalogue = Readonly<Record<FormMessageKey, string>>;
|
|
1033
|
+
|
|
1034
|
+
// @public (undocumented)
|
|
1035
|
+
export interface FormDraft {
|
|
1036
|
+
// (undocumented)
|
|
1037
|
+
edited: boolean;
|
|
1038
|
+
// (undocumented)
|
|
1039
|
+
label: string;
|
|
1040
|
+
localInvalid?: true;
|
|
1041
|
+
// (undocumented)
|
|
1042
|
+
localText?: string;
|
|
1043
|
+
// (undocumented)
|
|
1044
|
+
replacement?: {
|
|
1045
|
+
value: unknown;
|
|
1046
|
+
validation: FormValidation;
|
|
1047
|
+
revision: number;
|
|
1048
|
+
fill?: string;
|
|
1049
|
+
};
|
|
1050
|
+
// (undocumented)
|
|
1051
|
+
revision: number;
|
|
1052
|
+
// (undocumented)
|
|
1053
|
+
validation?: FormValidation;
|
|
1054
|
+
// (undocumented)
|
|
1055
|
+
value: unknown;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
// @public (undocumented)
|
|
1059
|
+
export interface FormField {
|
|
1060
|
+
// (undocumented)
|
|
1061
|
+
label: string;
|
|
1062
|
+
// (undocumented)
|
|
1063
|
+
name: string;
|
|
1064
|
+
// (undocumented)
|
|
1065
|
+
tier: "low" | "sensitive" | "human-only";
|
|
1066
|
+
// (undocumented)
|
|
1067
|
+
value: unknown;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// @public (undocumented)
|
|
1071
|
+
export interface FormFillField {
|
|
1072
|
+
// (undocumented)
|
|
1073
|
+
label: string;
|
|
1074
|
+
// (undocumented)
|
|
1075
|
+
name: string;
|
|
1076
|
+
// (undocumented)
|
|
1077
|
+
tier: 'low';
|
|
1078
|
+
// (undocumented)
|
|
1079
|
+
value: unknown;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
// @public (undocumented)
|
|
1083
|
+
export function FormFillFields(input: FormFillFieldsProps): react.JSX.Element;
|
|
1084
|
+
|
|
1085
|
+
// @public (undocumented)
|
|
1086
|
+
export interface FormFillFieldsProps {
|
|
1087
|
+
// (undocumented)
|
|
1088
|
+
onRegenerate(field: string): void;
|
|
1089
|
+
// (undocumented)
|
|
1090
|
+
renderField?: (props: {
|
|
1091
|
+
name: string;
|
|
1092
|
+
label: string;
|
|
1093
|
+
value: unknown;
|
|
1094
|
+
onChange(value: unknown): void;
|
|
1095
|
+
invalid: boolean;
|
|
1096
|
+
describedBy: string;
|
|
1097
|
+
}) => ReactNode;
|
|
1098
|
+
// (undocumented)
|
|
1099
|
+
session: FormSession;
|
|
1100
|
+
// (undocumented)
|
|
1101
|
+
slots?: Slots;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
// @public (undocumented)
|
|
1105
|
+
export function FormFillPopup(input: FormFillPopupProps): react.JSX.Element;
|
|
1106
|
+
|
|
1107
|
+
// @public (undocumented)
|
|
1108
|
+
export interface FormFillPopupProps {
|
|
1109
|
+
// (undocumented)
|
|
1110
|
+
attachments?: PrivateAttachmentPort;
|
|
1111
|
+
// (undocumented)
|
|
1112
|
+
field?: string;
|
|
1113
|
+
// (undocumented)
|
|
1114
|
+
onClose(): void;
|
|
1115
|
+
// (undocumented)
|
|
1116
|
+
open: boolean;
|
|
1117
|
+
// (undocumented)
|
|
1118
|
+
session: FormSession;
|
|
1119
|
+
// (undocumented)
|
|
1120
|
+
source?: ConversationSource;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// @public (undocumented)
|
|
1124
|
+
export interface FormFillRequest {
|
|
1125
|
+
// (undocumented)
|
|
1126
|
+
attachments: string[];
|
|
1127
|
+
// (undocumented)
|
|
1128
|
+
field?: string;
|
|
1129
|
+
// (undocumented)
|
|
1130
|
+
fields: [FormFillField, ...FormFillField[]];
|
|
1131
|
+
// (undocumented)
|
|
1132
|
+
references: string[];
|
|
1133
|
+
// (undocumented)
|
|
1134
|
+
requestId: string;
|
|
1135
|
+
// (undocumented)
|
|
1136
|
+
text: string;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
// @public (undocumented)
|
|
1140
|
+
export interface FormFillValue {
|
|
1141
|
+
// (undocumented)
|
|
1142
|
+
label?: string;
|
|
1143
|
+
// (undocumented)
|
|
1144
|
+
validation: FormValidation;
|
|
1145
|
+
// (undocumented)
|
|
1146
|
+
value: unknown;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
// @public (undocumented)
|
|
1150
|
+
export interface FormMaterial {
|
|
1151
|
+
// (undocumented)
|
|
1152
|
+
attachments?: string[];
|
|
1153
|
+
// (undocumented)
|
|
1154
|
+
field?: string;
|
|
1155
|
+
// (undocumented)
|
|
1156
|
+
references?: string[];
|
|
1157
|
+
// (undocumented)
|
|
1158
|
+
text: string;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
// @public (undocumented)
|
|
1162
|
+
export type FormMessageKey = "form.generating" | "form.ready" | "form.attention" | "form.reverted" | "form.revert" | "form.revertWait" | "form.suggested" | "form.replaceIt" | "form.keepMine" | "form.attach" | "form.remove" | "form.uploading" | "form.attached" | "form.attachFailed" | "form.removeFailed" | "form.onlyImages" | "form.busy" | "form.unusable";
|
|
1163
|
+
|
|
1164
|
+
// @public (undocumented)
|
|
1165
|
+
export interface FormSession {
|
|
1166
|
+
// (undocumented)
|
|
1167
|
+
begin(material: FormMaterial): FormFillRequest;
|
|
1168
|
+
// (undocumented)
|
|
1169
|
+
cancel(): void;
|
|
1170
|
+
// (undocumented)
|
|
1171
|
+
cancelReplacement(field: string): void;
|
|
1172
|
+
// (undocumented)
|
|
1173
|
+
dispose(): void;
|
|
1174
|
+
// (undocumented)
|
|
1175
|
+
edit(field: string, value: unknown): void;
|
|
1176
|
+
failRequest(requestId: string): void;
|
|
1177
|
+
// (undocumented)
|
|
1178
|
+
getSnapshot(): FormSnapshot;
|
|
1179
|
+
markEdited(field: string, text: string): void;
|
|
1180
|
+
// (undocumented)
|
|
1181
|
+
receive(body: unknown): boolean;
|
|
1182
|
+
// (undocumented)
|
|
1183
|
+
replace(field: string, revision: number): boolean;
|
|
1184
|
+
revert(fill: string): boolean;
|
|
1185
|
+
// (undocumented)
|
|
1186
|
+
subscribe(listener: () => void): () => void;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
// @public (undocumented)
|
|
1190
|
+
export interface FormSessionConfig {
|
|
1191
|
+
// (undocumented)
|
|
1192
|
+
fields: readonly FormField[];
|
|
1193
|
+
// (undocumented)
|
|
1194
|
+
ids(): string;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
// @public (undocumented)
|
|
1198
|
+
export interface FormSnapshot {
|
|
1199
|
+
// (undocumented)
|
|
1200
|
+
fields: Readonly<Record<string, FormDraft>>;
|
|
1201
|
+
fills?: readonly {
|
|
1202
|
+
id: string;
|
|
1203
|
+
fields: readonly string[];
|
|
1204
|
+
}[];
|
|
1205
|
+
// (undocumented)
|
|
1206
|
+
pending: boolean;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// @public (undocumented)
|
|
1210
|
+
export type FormSubject = {
|
|
1211
|
+
[k: string]: unknown;
|
|
1212
|
+
} & {
|
|
1213
|
+
key: string;
|
|
1214
|
+
resource: string;
|
|
1215
|
+
label: string;
|
|
1216
|
+
route: string;
|
|
1217
|
+
state: 'pending' | 'bound' | 'unlinked';
|
|
1218
|
+
record?: string;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
// @public (undocumented)
|
|
1222
|
+
export interface FormValidation {
|
|
1223
|
+
// (undocumented)
|
|
1224
|
+
guidance?: string;
|
|
1225
|
+
// (undocumented)
|
|
1226
|
+
messages: string[];
|
|
1227
|
+
// (undocumented)
|
|
1228
|
+
status: 'valid' | 'invalid';
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
// @public (undocumented)
|
|
1232
|
+
export type Frame = FrameMessageStart | FrameTextDelta | FrameBlock | FramePlanDraft | FramePlanFinal | FramePlanStep | FrameToolCall | FramePlanningRead | FrameMessageEnd | FrameStale | FrameProblem;
|
|
1233
|
+
|
|
1234
|
+
// @public (undocumented)
|
|
1235
|
+
export interface FrameBlock {
|
|
1236
|
+
// (undocumented)
|
|
1237
|
+
block: Block;
|
|
1238
|
+
// (undocumented)
|
|
1239
|
+
messageId: string;
|
|
1240
|
+
// (undocumented)
|
|
1241
|
+
protocol: string;
|
|
1242
|
+
// (undocumented)
|
|
1243
|
+
sequence: number;
|
|
1244
|
+
// (undocumented)
|
|
1245
|
+
type: 'block';
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
// @public (undocumented)
|
|
1249
|
+
export interface FrameMessageEnd {
|
|
1250
|
+
// (undocumented)
|
|
1251
|
+
messageId: string;
|
|
1252
|
+
// (undocumented)
|
|
1253
|
+
protocol: string;
|
|
1254
|
+
// (undocumented)
|
|
1255
|
+
sequence: number;
|
|
1256
|
+
// (undocumented)
|
|
1257
|
+
status: 'completed' | 'failed' | 'unavailable' | 'stopped';
|
|
1258
|
+
// (undocumented)
|
|
1259
|
+
type: 'message.end';
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
// @public (undocumented)
|
|
1263
|
+
export interface FrameMessageStart {
|
|
1264
|
+
// (undocumented)
|
|
1265
|
+
messageId: string;
|
|
1266
|
+
// (undocumented)
|
|
1267
|
+
protocol: string;
|
|
1268
|
+
// (undocumented)
|
|
1269
|
+
role: 'user' | 'assistant';
|
|
1270
|
+
// (undocumented)
|
|
1271
|
+
sequence: number;
|
|
1272
|
+
// (undocumented)
|
|
1273
|
+
type: 'message.start';
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// @public (undocumented)
|
|
1277
|
+
export interface FramePlanDraft {
|
|
1278
|
+
// (undocumented)
|
|
1279
|
+
messageId: string;
|
|
1280
|
+
// (undocumented)
|
|
1281
|
+
plan: ImmediateDraft;
|
|
1282
|
+
// (undocumented)
|
|
1283
|
+
protocol: string;
|
|
1284
|
+
// (undocumented)
|
|
1285
|
+
sequence: number;
|
|
1286
|
+
// (undocumented)
|
|
1287
|
+
type: 'plan.draft';
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
// @public (undocumented)
|
|
1291
|
+
export interface FramePlanFinal {
|
|
1292
|
+
// (undocumented)
|
|
1293
|
+
messageId: string;
|
|
1294
|
+
// (undocumented)
|
|
1295
|
+
plan: ImmediatePlan | TimedPlan;
|
|
1296
|
+
// (undocumented)
|
|
1297
|
+
protocol: string;
|
|
1298
|
+
// (undocumented)
|
|
1299
|
+
sequence: number;
|
|
1300
|
+
// (undocumented)
|
|
1301
|
+
type: 'plan.final';
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
// @public (undocumented)
|
|
1305
|
+
export interface FramePlanningRead {
|
|
1306
|
+
// (undocumented)
|
|
1307
|
+
planId: string;
|
|
1308
|
+
// (undocumented)
|
|
1309
|
+
protocol: string;
|
|
1310
|
+
// (undocumented)
|
|
1311
|
+
sequence: number;
|
|
1312
|
+
// (undocumented)
|
|
1313
|
+
stepId: string;
|
|
1314
|
+
// (undocumented)
|
|
1315
|
+
template: ReadTemplate;
|
|
1316
|
+
// (undocumented)
|
|
1317
|
+
type: 'planning-read';
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
// @public (undocumented)
|
|
1321
|
+
export interface FramePlanStep {
|
|
1322
|
+
// (undocumented)
|
|
1323
|
+
outcome: Outcome;
|
|
1324
|
+
// (undocumented)
|
|
1325
|
+
planId: string;
|
|
1326
|
+
// (undocumented)
|
|
1327
|
+
protocol: string;
|
|
1328
|
+
// (undocumented)
|
|
1329
|
+
sequence: number;
|
|
1330
|
+
// (undocumented)
|
|
1331
|
+
type: 'plan.step';
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
// @public (undocumented)
|
|
1335
|
+
export interface FrameProblem {
|
|
1336
|
+
// (undocumented)
|
|
1337
|
+
problem: Problem;
|
|
1338
|
+
// (undocumented)
|
|
1339
|
+
protocol: string;
|
|
1340
|
+
// (undocumented)
|
|
1341
|
+
sequence: number;
|
|
1342
|
+
// (undocumented)
|
|
1343
|
+
type: 'problem';
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
// @public (undocumented)
|
|
1347
|
+
export interface FrameStale {
|
|
1348
|
+
// (undocumented)
|
|
1349
|
+
protocol: string;
|
|
1350
|
+
// (undocumented)
|
|
1351
|
+
reads: ('conversation' | 'conversations' | 'plans' | 'flows')[];
|
|
1352
|
+
// (undocumented)
|
|
1353
|
+
sequence: number;
|
|
1354
|
+
// (undocumented)
|
|
1355
|
+
type: 'stale';
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
// @public (undocumented)
|
|
1359
|
+
export interface FrameTextDelta {
|
|
1360
|
+
// (undocumented)
|
|
1361
|
+
messageId: string;
|
|
1362
|
+
// (undocumented)
|
|
1363
|
+
protocol: string;
|
|
1364
|
+
// (undocumented)
|
|
1365
|
+
sequence: number;
|
|
1366
|
+
// (undocumented)
|
|
1367
|
+
text: string;
|
|
1368
|
+
// (undocumented)
|
|
1369
|
+
type: 'text.delta';
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
// @public (undocumented)
|
|
1373
|
+
export interface FrameToolCall {
|
|
1374
|
+
// (undocumented)
|
|
1375
|
+
call: ToolCall;
|
|
1376
|
+
// (undocumented)
|
|
1377
|
+
protocol: string;
|
|
1378
|
+
// (undocumented)
|
|
1379
|
+
sequence: number;
|
|
1380
|
+
// (undocumented)
|
|
1381
|
+
type: 'tool.call';
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
// @public (undocumented)
|
|
1385
|
+
export interface ImmediateDraft {
|
|
1386
|
+
// (undocumented)
|
|
1387
|
+
id: string;
|
|
1388
|
+
// (undocumented)
|
|
1389
|
+
kind: 'immediate';
|
|
1390
|
+
// (undocumented)
|
|
1391
|
+
stage: 'draft';
|
|
1392
|
+
// (undocumented)
|
|
1393
|
+
steps: (Step & {
|
|
1394
|
+
[k: string]: unknown;
|
|
1395
|
+
})[];
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
// @public (undocumented)
|
|
1399
|
+
export interface ImmediatePlan {
|
|
1400
|
+
// (undocumented)
|
|
1401
|
+
digest: string;
|
|
1402
|
+
// (undocumented)
|
|
1403
|
+
id: string;
|
|
1404
|
+
// (undocumented)
|
|
1405
|
+
kind: 'immediate';
|
|
1406
|
+
// (undocumented)
|
|
1407
|
+
stage: 'final';
|
|
1408
|
+
// (undocumented)
|
|
1409
|
+
steps: (Step & {
|
|
1410
|
+
[k: string]: unknown;
|
|
1411
|
+
})[];
|
|
1412
|
+
// (undocumented)
|
|
1413
|
+
stepUpCount: number;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
// @public (undocumented)
|
|
1417
|
+
export interface InputProps {
|
|
1418
|
+
// (undocumented)
|
|
1419
|
+
describedBy?: string;
|
|
1420
|
+
// (undocumented)
|
|
1421
|
+
disabled?: boolean;
|
|
1422
|
+
// (undocumented)
|
|
1423
|
+
invalid?: boolean;
|
|
1424
|
+
// (undocumented)
|
|
1425
|
+
label: string;
|
|
1426
|
+
// (undocumented)
|
|
1427
|
+
onChange(value: string): void;
|
|
1428
|
+
required?: boolean;
|
|
1429
|
+
// (undocumented)
|
|
1430
|
+
type?: string;
|
|
1431
|
+
// (undocumented)
|
|
1432
|
+
value: string;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
// @public (undocumented)
|
|
1436
|
+
export type IntentAlert = {
|
|
1437
|
+
serial: number;
|
|
1438
|
+
action: "checkStatus" | "retry" | "signIn" | "hostGuidance" | "wait";
|
|
1439
|
+
} | {
|
|
1440
|
+
serial: number;
|
|
1441
|
+
restoreFocus: true;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
// @public (undocumented)
|
|
1445
|
+
export type IntentCause = 'user' | 'connection-lost' | 'renewal-refused' | 'step-failed' | 'step-up-failed' | 'identity-lost' | 'attribution-missing' | 'plan-changed' | 'adapter-configuration';
|
|
1446
|
+
|
|
1447
|
+
// @public (undocumented)
|
|
1448
|
+
export type IntentFailure = "offline" | "sign-in" | "forbidden" | "rate-limited" | "timeout" | "connection-lost";
|
|
1449
|
+
|
|
1450
|
+
// @public (undocumented)
|
|
1451
|
+
export type IntentKind = 'stop' | 'cancel-initial' | 'cancel-review' | 'leave' | 'keep';
|
|
1452
|
+
|
|
1453
|
+
// @public (undocumented)
|
|
1454
|
+
export type IntentNotice = Omit<PlanIntentReply, "slotVersion"> & {
|
|
1455
|
+
resolvedSlotVersion: number;
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
// @public
|
|
1459
|
+
export interface IntentOverlay {
|
|
1460
|
+
// (undocumented)
|
|
1461
|
+
delivery: "sending" | "uncertain" | "not-sent";
|
|
1462
|
+
// (undocumented)
|
|
1463
|
+
kind: IntentKind;
|
|
1464
|
+
// (undocumented)
|
|
1465
|
+
lastProblem?: {
|
|
1466
|
+
key: string;
|
|
1467
|
+
cause: IntentFailure;
|
|
1468
|
+
};
|
|
1469
|
+
// (undocumented)
|
|
1470
|
+
ownRun: boolean;
|
|
1471
|
+
// (undocumented)
|
|
1472
|
+
planId: string;
|
|
1473
|
+
// (undocumented)
|
|
1474
|
+
producer: "user" | "automatic";
|
|
1475
|
+
// (undocumented)
|
|
1476
|
+
request: IntentRequest;
|
|
1477
|
+
// (undocumented)
|
|
1478
|
+
retryAt?: number;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
// @public (undocumented)
|
|
1482
|
+
export interface IntentRequest {
|
|
1483
|
+
// (undocumented)
|
|
1484
|
+
acknowledgment?: LeaveAcknowledgment;
|
|
1485
|
+
// (undocumented)
|
|
1486
|
+
capturedRound: number;
|
|
1487
|
+
// (undocumented)
|
|
1488
|
+
cause: IntentCause;
|
|
1489
|
+
// (undocumented)
|
|
1490
|
+
correlation: string;
|
|
1491
|
+
// (undocumented)
|
|
1492
|
+
expectedSlotVersion: number;
|
|
1493
|
+
// (undocumented)
|
|
1494
|
+
kind: IntentKind;
|
|
1495
|
+
// (undocumented)
|
|
1496
|
+
payload?: string;
|
|
1497
|
+
// (undocumented)
|
|
1498
|
+
planId: string;
|
|
1499
|
+
// (undocumented)
|
|
1500
|
+
review?: 'forward-only' | 'end-retention';
|
|
1501
|
+
// (undocumented)
|
|
1502
|
+
target: IntentTarget;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
// @public (undocumented)
|
|
1506
|
+
export interface IntentTarget {
|
|
1507
|
+
// (undocumented)
|
|
1508
|
+
id: string;
|
|
1509
|
+
// (undocumented)
|
|
1510
|
+
type: 'generation' | 'review' | 'execution';
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
// @public (undocumented)
|
|
1514
|
+
export interface IntentWinner {
|
|
1515
|
+
// (undocumented)
|
|
1516
|
+
cause: IntentCause;
|
|
1517
|
+
// (undocumented)
|
|
1518
|
+
kind: WinnerKind;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
// @public (undocumented)
|
|
1522
|
+
export function isSafeUrl(url: string | null | undefined, extraSchemes?: readonly string[]): boolean;
|
|
1523
|
+
|
|
1524
|
+
// @public (undocumented)
|
|
1525
|
+
export interface KeepChangesReview {
|
|
1526
|
+
// (undocumented)
|
|
1527
|
+
acknowledgment: LeaveAcknowledgment;
|
|
1528
|
+
// (undocumented)
|
|
1529
|
+
remaining: number;
|
|
1530
|
+
// (undocumented)
|
|
1531
|
+
review: "forward-only" | "end-retention";
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
// @public (undocumented)
|
|
1535
|
+
export type KeepChangesReviewResult = KeepChangesReview | {
|
|
1536
|
+
disabled: KeepDisabledReason;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
// @public (undocumented)
|
|
1540
|
+
export type KeepDisabledReason = "loading" | "intentUnavailable" | "capabilityMissing" | "keepNoDecision" | "sealed" | "keepBlockedActive" | "keepBlockedUnknown";
|
|
1541
|
+
|
|
1542
|
+
// @public (undocumented)
|
|
1543
|
+
export interface KeepSheet {
|
|
1544
|
+
// (undocumented)
|
|
1545
|
+
messages: ViewMessage[];
|
|
1546
|
+
// (undocumented)
|
|
1547
|
+
onCancel(): void;
|
|
1548
|
+
// (undocumented)
|
|
1549
|
+
onProceed(): void;
|
|
1550
|
+
// (undocumented)
|
|
1551
|
+
proceed: {
|
|
1552
|
+
available: boolean;
|
|
1553
|
+
reasonKey?: ViewMessage["key"];
|
|
1554
|
+
};
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
// @public
|
|
1558
|
+
export function keepSheet(review: {
|
|
1559
|
+
review: "forward-only" | "end-retention";
|
|
1560
|
+
remaining: number;
|
|
1561
|
+
}, view: PlanView): KeepSheetView;
|
|
1562
|
+
|
|
1563
|
+
// @public (undocumented)
|
|
1564
|
+
export interface KeepSheetView {
|
|
1565
|
+
// (undocumented)
|
|
1566
|
+
messages: ViewMessage[];
|
|
1567
|
+
// (undocumented)
|
|
1568
|
+
proceed: {
|
|
1569
|
+
available: boolean;
|
|
1570
|
+
reasonKey?: MessageKey;
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
// @public (undocumented)
|
|
1575
|
+
export interface KeptFact {
|
|
1576
|
+
// (undocumented)
|
|
1577
|
+
actorCause: IntentCause;
|
|
1578
|
+
// (undocumented)
|
|
1579
|
+
keepEffect: 'forward-closed' | 'decision-closed' | 'retention-ended' | 'leave-completed';
|
|
1580
|
+
// (undocumented)
|
|
1581
|
+
round: number;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
// @public (undocumented)
|
|
1585
|
+
export interface LeaveAcknowledgment {
|
|
1586
|
+
// (undocumented)
|
|
1587
|
+
decisionResolutionVersion: number;
|
|
1588
|
+
// (undocumented)
|
|
1589
|
+
evidenceDigest: string;
|
|
1590
|
+
// (undocumented)
|
|
1591
|
+
evidenceVersion: number;
|
|
1592
|
+
// (undocumented)
|
|
1593
|
+
sourceDecisionKey: string;
|
|
1594
|
+
// (undocumented)
|
|
1595
|
+
unknownCount: number;
|
|
1596
|
+
// (undocumented)
|
|
1597
|
+
winnerVersion: number;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
// @public (undocumented)
|
|
1601
|
+
export const lightTheme: {
|
|
1602
|
+
readonly background: "#ffffff";
|
|
1603
|
+
readonly foreground: "#18212f";
|
|
1604
|
+
readonly muted: "#526071";
|
|
1605
|
+
readonly accent: "#245ad1";
|
|
1606
|
+
readonly border: "#ccd4df";
|
|
1607
|
+
readonly surface: "#f2f5f9";
|
|
1608
|
+
readonly danger: "#b42318";
|
|
1609
|
+
readonly space: "0.75rem";
|
|
1610
|
+
readonly radius: "0.5rem";
|
|
1611
|
+
readonly fontSize: "1rem";
|
|
1612
|
+
readonly fontFamily: "system-ui, sans-serif";
|
|
1613
|
+
readonly shadow: "0 0.25rem 1rem #0002";
|
|
1614
|
+
readonly motion: "120ms";
|
|
1615
|
+
readonly space1: "0.25rem";
|
|
1616
|
+
readonly space2: "0.5rem";
|
|
1617
|
+
readonly fontSizeSm: "0.875rem";
|
|
1618
|
+
readonly fontSizeLg: "1.125rem";
|
|
1619
|
+
readonly motionFast: "80ms";
|
|
1620
|
+
readonly motionSlow: "200ms";
|
|
1621
|
+
readonly easing: "cubic-bezier(0.2, 0, 0, 1)";
|
|
1622
|
+
readonly focusRing: "#245ad1";
|
|
1623
|
+
readonly controlBorder: "#6b7889";
|
|
1624
|
+
readonly success: "#1a7f37";
|
|
1625
|
+
readonly warning: "#8a5c00";
|
|
1626
|
+
};
|
|
1627
|
+
|
|
1628
|
+
// @public
|
|
1629
|
+
export function loadFormSession(config: FormSessionConfig): Promise<FormSession>;
|
|
1630
|
+
|
|
1631
|
+
// @public (undocumented)
|
|
1632
|
+
export interface ManifestEntry {
|
|
1633
|
+
// (undocumented)
|
|
1634
|
+
fields: {
|
|
1635
|
+
[k: string]: 'low' | 'sensitive' | 'human-only';
|
|
1636
|
+
};
|
|
1637
|
+
// (undocumented)
|
|
1638
|
+
filterable: string[];
|
|
1639
|
+
// (undocumented)
|
|
1640
|
+
id: string;
|
|
1641
|
+
// (undocumented)
|
|
1642
|
+
kind: 'read' | 'planning-read' | 'update' | 'create' | 'action' | 'bulk';
|
|
1643
|
+
// (undocumented)
|
|
1644
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH';
|
|
1645
|
+
// (undocumented)
|
|
1646
|
+
path: string;
|
|
1647
|
+
// (undocumented)
|
|
1648
|
+
permission: string;
|
|
1649
|
+
// (undocumented)
|
|
1650
|
+
resource: string;
|
|
1651
|
+
// (undocumented)
|
|
1652
|
+
returns: string[];
|
|
1653
|
+
// (undocumented)
|
|
1654
|
+
undo: string;
|
|
1655
|
+
// (undocumented)
|
|
1656
|
+
view: string;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
// @public (undocumented)
|
|
1660
|
+
export interface MarkdownImagePolicy {
|
|
1661
|
+
// (undocumented)
|
|
1662
|
+
allow?: (url: string) => boolean;
|
|
1663
|
+
// (undocumented)
|
|
1664
|
+
origin?: string;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
// @public (undocumented)
|
|
1668
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
1669
|
+
|
|
1670
|
+
// @public (undocumented)
|
|
1671
|
+
export interface Message {
|
|
1672
|
+
// (undocumented)
|
|
1673
|
+
blocks: Block[];
|
|
1674
|
+
// (undocumented)
|
|
1675
|
+
clientMessageId?: string;
|
|
1676
|
+
// (undocumented)
|
|
1677
|
+
content: string;
|
|
1678
|
+
// (undocumented)
|
|
1679
|
+
createdAt: number;
|
|
1680
|
+
// (undocumented)
|
|
1681
|
+
id: string;
|
|
1682
|
+
// (undocumented)
|
|
1683
|
+
role: 'user' | 'assistant';
|
|
1684
|
+
sources?: Source[];
|
|
1685
|
+
// (undocumented)
|
|
1686
|
+
status?: 'writing' | 'completed' | 'failed' | 'unavailable' | 'stopped';
|
|
1687
|
+
// (undocumented)
|
|
1688
|
+
versionCount?: number;
|
|
1689
|
+
// (undocumented)
|
|
1690
|
+
versionIndex?: number;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
// @public (undocumented)
|
|
1694
|
+
export type MessageKey = keyof typeof english | keyof RecoveryCatalogue | keyof ConfirmationCatalogue | keyof BlockCatalogue | keyof ProblemCatalogue | keyof ReplyCatalogue | keyof FormCatalogue;
|
|
1695
|
+
|
|
1696
|
+
// @public (undocumented)
|
|
1697
|
+
export type MessageValues = Record<string, string | number | boolean>;
|
|
1698
|
+
|
|
1699
|
+
// @public (undocumented)
|
|
1700
|
+
export interface MessageVersionInput {
|
|
1701
|
+
// (undocumented)
|
|
1702
|
+
clientReplyId: string;
|
|
1703
|
+
// (undocumented)
|
|
1704
|
+
conversationId: string;
|
|
1705
|
+
// (undocumented)
|
|
1706
|
+
messageId: string;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
// @public (undocumented)
|
|
1710
|
+
export interface MessageVersionPort {
|
|
1711
|
+
// (undocumented)
|
|
1712
|
+
edit(input: MessageVersionInput & {
|
|
1713
|
+
content: string;
|
|
1714
|
+
}): MaybePromise<void>;
|
|
1715
|
+
// (undocumented)
|
|
1716
|
+
regenerate(input: MessageVersionInput): MaybePromise<void>;
|
|
1717
|
+
// (undocumented)
|
|
1718
|
+
select(input: MessageVersionInput & {
|
|
1719
|
+
index: number;
|
|
1720
|
+
}): MaybePromise<void>;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
// @public (undocumented)
|
|
1724
|
+
export interface Negotiated {
|
|
1725
|
+
// (undocumented)
|
|
1726
|
+
agreementId?: string;
|
|
1727
|
+
// (undocumented)
|
|
1728
|
+
capabilities: string[];
|
|
1729
|
+
// (undocumented)
|
|
1730
|
+
protocol: string;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
// @public (undocumented)
|
|
1734
|
+
export interface Negotiation {
|
|
1735
|
+
// (undocumented)
|
|
1736
|
+
offer?: NegotiationOfferWire;
|
|
1737
|
+
// (undocumented)
|
|
1738
|
+
protocol: string;
|
|
1739
|
+
// (undocumented)
|
|
1740
|
+
supported: string[];
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
// @public
|
|
1744
|
+
export interface NegotiationOffer {
|
|
1745
|
+
// (undocumented)
|
|
1746
|
+
capabilities: readonly string[];
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
// @public (undocumented)
|
|
1750
|
+
export interface NegotiationOfferWire {
|
|
1751
|
+
// (undocumented)
|
|
1752
|
+
capabilities: string[];
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
// @public
|
|
1756
|
+
export function noticeMessages(notice: IntentNotice): ViewMessage[];
|
|
1757
|
+
|
|
1758
|
+
// @public (undocumented)
|
|
1759
|
+
export interface Outcome {
|
|
1760
|
+
// (undocumented)
|
|
1761
|
+
attributed: boolean;
|
|
1762
|
+
reason?: string;
|
|
1763
|
+
retryable?: boolean;
|
|
1764
|
+
// (undocumented)
|
|
1765
|
+
status: number;
|
|
1766
|
+
// (undocumented)
|
|
1767
|
+
stepId: string;
|
|
1768
|
+
// (undocumented)
|
|
1769
|
+
version?: string;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
// @public
|
|
1773
|
+
export type PartData = {
|
|
1774
|
+
[N in PartName]: N extends keyof PartDataMap ? PartDataMap[N] : undefined;
|
|
1775
|
+
};
|
|
1776
|
+
|
|
1777
|
+
// @public
|
|
1778
|
+
export interface PartDataMap {
|
|
1779
|
+
// (undocumented)
|
|
1780
|
+
bubble: {
|
|
1781
|
+
message: PartMessage & {
|
|
1782
|
+
content: string;
|
|
1783
|
+
blocks: BlockSummary[];
|
|
1784
|
+
};
|
|
1785
|
+
} | {
|
|
1786
|
+
pending: PartPending;
|
|
1787
|
+
};
|
|
1788
|
+
// (undocumented)
|
|
1789
|
+
composer: {
|
|
1790
|
+
sending: boolean;
|
|
1791
|
+
};
|
|
1792
|
+
// (undocumented)
|
|
1793
|
+
confirmation: {
|
|
1794
|
+
confirmation: ConfirmationRecord;
|
|
1795
|
+
};
|
|
1796
|
+
// (undocumented)
|
|
1797
|
+
confirmBar: {
|
|
1798
|
+
view: PlanView;
|
|
1799
|
+
actions: ActionEntry[];
|
|
1800
|
+
};
|
|
1801
|
+
// (undocumented)
|
|
1802
|
+
failedSendControls: {
|
|
1803
|
+
pending: PartPending;
|
|
1804
|
+
};
|
|
1805
|
+
// (undocumented)
|
|
1806
|
+
messageActions: {
|
|
1807
|
+
message: PartMessage;
|
|
1808
|
+
};
|
|
1809
|
+
// (undocumented)
|
|
1810
|
+
planNode: {
|
|
1811
|
+
view: PlanView;
|
|
1812
|
+
};
|
|
1813
|
+
// (undocumented)
|
|
1814
|
+
recoveryActions: {
|
|
1815
|
+
actions: ActionEntry[];
|
|
1816
|
+
};
|
|
1817
|
+
// (undocumented)
|
|
1818
|
+
recoveryPanel: {
|
|
1819
|
+
view: PlanView;
|
|
1820
|
+
};
|
|
1821
|
+
// (undocumented)
|
|
1822
|
+
stepRow: {
|
|
1823
|
+
step: PartStep;
|
|
1824
|
+
};
|
|
1825
|
+
// (undocumented)
|
|
1826
|
+
stepStatusRow: {
|
|
1827
|
+
step: StepStatus;
|
|
1828
|
+
};
|
|
1829
|
+
// (undocumented)
|
|
1830
|
+
stepUpPrompt: {
|
|
1831
|
+
stepUpCount: number;
|
|
1832
|
+
};
|
|
1833
|
+
// (undocumented)
|
|
1834
|
+
widgetFrame: {
|
|
1835
|
+
block: BlockSummary;
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
// @public
|
|
1840
|
+
export interface PartMessage {
|
|
1841
|
+
// (undocumented)
|
|
1842
|
+
id: string;
|
|
1843
|
+
// (undocumented)
|
|
1844
|
+
role: Message["role"];
|
|
1845
|
+
// (undocumented)
|
|
1846
|
+
status?: Message["status"];
|
|
1847
|
+
// (undocumented)
|
|
1848
|
+
versionCount?: number;
|
|
1849
|
+
// (undocumented)
|
|
1850
|
+
versionIndex?: number;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
// @public (undocumented)
|
|
1854
|
+
export type PartName = "bubble" | "composer" | "transcript" | "replyRow" | "stepRow" | "planNode" | "widgetFrame" | "confirmBar" | "confirmation" | "topBar" | "rail" | "flowTabs" | "quotaStrip" | "failedSendControls" | "emptyState" | "messageActions" | "extraPanels" | "actionBar" | "stepUpPrompt" | "fieldAdornment" | "recoveryPanel" | "stepStatusRow" | "recoveryActions";
|
|
1855
|
+
|
|
1856
|
+
// @public (undocumented)
|
|
1857
|
+
export const partNames: readonly PartName[];
|
|
1858
|
+
|
|
1859
|
+
// @public
|
|
1860
|
+
export interface PartPending {
|
|
1861
|
+
// (undocumented)
|
|
1862
|
+
content: string;
|
|
1863
|
+
// (undocumented)
|
|
1864
|
+
failure: {
|
|
1865
|
+
code: Problem["code"];
|
|
1866
|
+
} | null;
|
|
1867
|
+
// (undocumented)
|
|
1868
|
+
id: string;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
// @public (undocumented)
|
|
1872
|
+
export interface PartProps<N extends PartName = PartName> {
|
|
1873
|
+
"aria-disabled"?: boolean;
|
|
1874
|
+
// (undocumented)
|
|
1875
|
+
children?: ReactNode;
|
|
1876
|
+
data?: PartData[N];
|
|
1877
|
+
describedBy?: string;
|
|
1878
|
+
// (undocumented)
|
|
1879
|
+
disabled?: boolean;
|
|
1880
|
+
// (undocumented)
|
|
1881
|
+
inputRef?: Ref<HTMLTextAreaElement>;
|
|
1882
|
+
// (undocumented)
|
|
1883
|
+
label?: string;
|
|
1884
|
+
// (undocumented)
|
|
1885
|
+
onChange?: (value: string) => void;
|
|
1886
|
+
// (undocumented)
|
|
1887
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLTextAreaElement>;
|
|
1888
|
+
// (undocumented)
|
|
1889
|
+
onPress?: () => void;
|
|
1890
|
+
// (undocumented)
|
|
1891
|
+
value?: string;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
// @public
|
|
1895
|
+
export type PartStep = Pick<Step, "id" | "operation" | "resource" | "view" | "tier" | "undo" | "stepUp">;
|
|
1896
|
+
|
|
1897
|
+
// @public (undocumented)
|
|
1898
|
+
export interface PatchFlow {
|
|
1899
|
+
// (undocumented)
|
|
1900
|
+
favourite: boolean;
|
|
1901
|
+
// (undocumented)
|
|
1902
|
+
flowId: string;
|
|
1903
|
+
// (undocumented)
|
|
1904
|
+
protocol: string;
|
|
1905
|
+
// (undocumented)
|
|
1906
|
+
title: string;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
// @public (undocumented)
|
|
1910
|
+
export interface PendingSend {
|
|
1911
|
+
// (undocumented)
|
|
1912
|
+
content: string;
|
|
1913
|
+
// (undocumented)
|
|
1914
|
+
extensions?: Record<string, unknown>;
|
|
1915
|
+
// (undocumented)
|
|
1916
|
+
failure: Problem | null;
|
|
1917
|
+
// (undocumented)
|
|
1918
|
+
id: string;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
// @public (undocumented)
|
|
1922
|
+
export type Plan = ImmediateDraft | ImmediatePlan | TimedPlan;
|
|
1923
|
+
|
|
1924
|
+
// @public (undocumented)
|
|
1925
|
+
export interface PlanCommand {
|
|
1926
|
+
// (undocumented)
|
|
1927
|
+
action: 'stop' | 'heartbeat' | 'resume' | 'retry-undo';
|
|
1928
|
+
// (undocumented)
|
|
1929
|
+
planId: string;
|
|
1930
|
+
// (undocumented)
|
|
1931
|
+
protocol: string;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
// @public
|
|
1935
|
+
export function PlanDiagram(props: PlanDiagramProps): react.JSX.Element;
|
|
1936
|
+
|
|
1937
|
+
// @public (undocumented)
|
|
1938
|
+
export interface PlanDiagramProps {
|
|
1939
|
+
changesShown?: boolean;
|
|
1940
|
+
// (undocumented)
|
|
1941
|
+
record: PlanRecord;
|
|
1942
|
+
// (undocumented)
|
|
1943
|
+
slots?: Slots;
|
|
1944
|
+
view?: PlanView | null;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
// @public (undocumented)
|
|
1948
|
+
export interface PlanIntentReply {
|
|
1949
|
+
// (undocumented)
|
|
1950
|
+
capturedRound: number;
|
|
1951
|
+
// (undocumented)
|
|
1952
|
+
correlation: string;
|
|
1953
|
+
// (undocumented)
|
|
1954
|
+
count?: number;
|
|
1955
|
+
// (undocumented)
|
|
1956
|
+
dispositionApplied?: boolean;
|
|
1957
|
+
// (undocumented)
|
|
1958
|
+
effectiveRound: number;
|
|
1959
|
+
// (undocumented)
|
|
1960
|
+
finalHistory?: FinalHistory;
|
|
1961
|
+
// (undocumented)
|
|
1962
|
+
forwardClosed?: boolean;
|
|
1963
|
+
// (undocumented)
|
|
1964
|
+
keys: string[];
|
|
1965
|
+
// (undocumented)
|
|
1966
|
+
kind: IntentKind;
|
|
1967
|
+
// (undocumented)
|
|
1968
|
+
phase: RecoveryPhase;
|
|
1969
|
+
// (undocumented)
|
|
1970
|
+
planId: string;
|
|
1971
|
+
// (undocumented)
|
|
1972
|
+
replacement?: IntentTarget;
|
|
1973
|
+
// (undocumented)
|
|
1974
|
+
requestedTargetApplied?: boolean;
|
|
1975
|
+
// (undocumented)
|
|
1976
|
+
requestKey?: 'requestAlreadyStopped' | 'requestTargetStopped';
|
|
1977
|
+
// (undocumented)
|
|
1978
|
+
resolvedTarget?: string;
|
|
1979
|
+
// (undocumented)
|
|
1980
|
+
result: 'applied' | 'replaced' | 'already-closed' | 'already-stopped' | 'defeated' | 'superseded' | 'needs-review' | 'conflict' | 'unavailable' | 'invalid-target' | 'refused' | 'kept' | 'already-kept' | 'sealed';
|
|
1981
|
+
// (undocumented)
|
|
1982
|
+
safetyApplied?: boolean;
|
|
1983
|
+
// (undocumented)
|
|
1984
|
+
savedDisposition?: {
|
|
1985
|
+
phase: 'left-known' | 'left-unconfirmed';
|
|
1986
|
+
count: number;
|
|
1987
|
+
};
|
|
1988
|
+
// (undocumented)
|
|
1989
|
+
slotVersion: number;
|
|
1990
|
+
// (undocumented)
|
|
1991
|
+
winner?: IntentWinner;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
// @public
|
|
1995
|
+
export interface PlanLabels {
|
|
1996
|
+
// (undocumented)
|
|
1997
|
+
field?(resource: string, field: string): string | undefined;
|
|
1998
|
+
// (undocumented)
|
|
1999
|
+
resource?(resource: string): string | undefined;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
// @public
|
|
2003
|
+
export class PlanReadRefused extends Error {
|
|
2004
|
+
constructor();
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
// @public (undocumented)
|
|
2008
|
+
export interface PlanRecord {
|
|
2009
|
+
// (undocumented)
|
|
2010
|
+
confirmation?: ConfirmationRecord;
|
|
2011
|
+
// (undocumented)
|
|
2012
|
+
id: string;
|
|
2013
|
+
// (undocumented)
|
|
2014
|
+
outcomes: Outcome[];
|
|
2015
|
+
// (undocumented)
|
|
2016
|
+
plan: Plan;
|
|
2017
|
+
// (undocumented)
|
|
2018
|
+
protocol: string;
|
|
2019
|
+
// (undocumented)
|
|
2020
|
+
reason?: string;
|
|
2021
|
+
// (undocumented)
|
|
2022
|
+
recovery?: RecoveryView;
|
|
2023
|
+
// (undocumented)
|
|
2024
|
+
state: PlanState;
|
|
2025
|
+
// (undocumented)
|
|
2026
|
+
undoPlanId?: string;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
// @public (undocumented)
|
|
2030
|
+
export interface PlanRunner {
|
|
2031
|
+
// (undocumented)
|
|
2032
|
+
dispose(): void;
|
|
2033
|
+
interrupt?(): void;
|
|
2034
|
+
// (undocumented)
|
|
2035
|
+
run(id: string, confirmedDigest: string, acceptance?: ExecutionAcceptance): Promise<void>;
|
|
2036
|
+
// (undocumented)
|
|
2037
|
+
stop(id?: string): void;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
// @public (undocumented)
|
|
2041
|
+
export type PlanState = 'proposed' | 'awaiting-confirmation' | 'running' | 'undoing' | 'completed' | 'submitted' | 'undone' | 'needs-attention' | 'cancelled';
|
|
2042
|
+
|
|
2043
|
+
// @public (undocumented)
|
|
2044
|
+
export interface PlanView {
|
|
2045
|
+
// (undocumented)
|
|
2046
|
+
actions: ActionEntry[];
|
|
2047
|
+
// (undocumented)
|
|
2048
|
+
alert: PlanViewAlert | null;
|
|
2049
|
+
// (undocumented)
|
|
2050
|
+
conversationUnavailable: boolean;
|
|
2051
|
+
// (undocumented)
|
|
2052
|
+
intent: {
|
|
2053
|
+
kind: IntentKind;
|
|
2054
|
+
status: IntentOverlay["delivery"];
|
|
2055
|
+
} | null;
|
|
2056
|
+
// (undocumented)
|
|
2057
|
+
lines: ViewMessage[];
|
|
2058
|
+
// (undocumented)
|
|
2059
|
+
notice: ViewMessage[];
|
|
2060
|
+
// (undocumented)
|
|
2061
|
+
pending: readonly IntentKind[];
|
|
2062
|
+
// (undocumented)
|
|
2063
|
+
planId: string;
|
|
2064
|
+
readOnly?: true;
|
|
2065
|
+
status: PlanViewStatus | null;
|
|
2066
|
+
// (undocumented)
|
|
2067
|
+
steps: StepStatus[];
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
// @public
|
|
2071
|
+
export function planView(input: PlanViewInput): PlanView | null;
|
|
2072
|
+
|
|
2073
|
+
// @public (undocumented)
|
|
2074
|
+
export interface PlanViewAlert {
|
|
2075
|
+
// (undocumented)
|
|
2076
|
+
action?: "checkStatus" | "retry" | "signIn" | "hostGuidance" | "wait";
|
|
2077
|
+
// (undocumented)
|
|
2078
|
+
message?: ViewMessage;
|
|
2079
|
+
// (undocumented)
|
|
2080
|
+
restoreFocus?: true;
|
|
2081
|
+
// (undocumented)
|
|
2082
|
+
retryAvailable: boolean;
|
|
2083
|
+
// (undocumented)
|
|
2084
|
+
retryReasonKey?: MessageKey;
|
|
2085
|
+
// (undocumented)
|
|
2086
|
+
retryValues?: Record<string, number>;
|
|
2087
|
+
// (undocumented)
|
|
2088
|
+
serial: number;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
// @public (undocumented)
|
|
2092
|
+
export interface PlanViewInput {
|
|
2093
|
+
// (undocumented)
|
|
2094
|
+
alert: IntentAlert | null;
|
|
2095
|
+
// (undocumented)
|
|
2096
|
+
capabilities: readonly string[];
|
|
2097
|
+
// (undocumented)
|
|
2098
|
+
conversationId: string;
|
|
2099
|
+
// (undocumented)
|
|
2100
|
+
conversationUnavailable: boolean;
|
|
2101
|
+
// (undocumented)
|
|
2102
|
+
keepReview: KeepChangesReviewResult;
|
|
2103
|
+
// (undocumented)
|
|
2104
|
+
notice: IntentNotice | null;
|
|
2105
|
+
// (undocumented)
|
|
2106
|
+
now: number;
|
|
2107
|
+
// (undocumented)
|
|
2108
|
+
overlay: IntentOverlay | undefined;
|
|
2109
|
+
// (undocumented)
|
|
2110
|
+
pending: readonly IntentKind[];
|
|
2111
|
+
// (undocumented)
|
|
2112
|
+
plan: PlanRecord | null;
|
|
2113
|
+
// (undocumented)
|
|
2114
|
+
readOnly?: boolean;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
// @public (undocumented)
|
|
2118
|
+
export interface PlanViewStatus {
|
|
2119
|
+
// (undocumented)
|
|
2120
|
+
attention: boolean;
|
|
2121
|
+
// (undocumented)
|
|
2122
|
+
dataStatus: string;
|
|
2123
|
+
// (undocumented)
|
|
2124
|
+
label: ViewMessage;
|
|
2125
|
+
// (undocumented)
|
|
2126
|
+
result?: "kept";
|
|
2127
|
+
// (undocumented)
|
|
2128
|
+
tone: Tone;
|
|
2129
|
+
// (undocumented)
|
|
2130
|
+
wireState: PlanState;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
// @public (undocumented)
|
|
2134
|
+
export interface PlatformPorts {
|
|
2135
|
+
// (undocumented)
|
|
2136
|
+
clock: {
|
|
2137
|
+
now(): number;
|
|
2138
|
+
setTimeout(fn: () => void, ms: number): unknown;
|
|
2139
|
+
clearTimeout(handle: unknown): void;
|
|
2140
|
+
};
|
|
2141
|
+
// (undocumented)
|
|
2142
|
+
ids(): string;
|
|
2143
|
+
// (undocumented)
|
|
2144
|
+
online(): boolean;
|
|
2145
|
+
subscribeOnline?(listener: (online: boolean) => void): () => void;
|
|
2146
|
+
subscribeVisibility?(listener: (visible: boolean) => void): () => void;
|
|
2147
|
+
// (undocumented)
|
|
2148
|
+
visibility(): boolean;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
// @public (undocumented)
|
|
2152
|
+
export interface PrimitiveComponents {
|
|
2153
|
+
// (undocumented)
|
|
2154
|
+
button: ComponentType<ButtonProps>;
|
|
2155
|
+
checkbox?: ComponentType<CheckboxProps>;
|
|
2156
|
+
// (undocumented)
|
|
2157
|
+
datePicker: ComponentType<InputProps>;
|
|
2158
|
+
// (undocumented)
|
|
2159
|
+
drawer: ComponentType<DrawerProps>;
|
|
2160
|
+
// (undocumented)
|
|
2161
|
+
input: ComponentType<InputProps>;
|
|
2162
|
+
// (undocumented)
|
|
2163
|
+
textarea: ComponentType<PartProps>;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
// @public (undocumented)
|
|
2167
|
+
export interface PrivateAttachmentPort {
|
|
2168
|
+
// (undocumented)
|
|
2169
|
+
remove(reference: string): Promise<void>;
|
|
2170
|
+
// (undocumented)
|
|
2171
|
+
upload(file: File): Promise<string>;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
// @public (undocumented)
|
|
2175
|
+
export interface Problem {
|
|
2176
|
+
// (undocumented)
|
|
2177
|
+
code: 'update-required' | 'in-doubt' | 'replaced' | 'retryable' | 'refused' | 'closed' | 'full' | 'declined' | 'unavailable' | 'sign-in' | 'rate-limited' | 'step-up-cancelled' | 'mismatch' | 'invalid-read' | 'invalid-plan' | 'needs-attention' | 'stopped' | 'plan-changed' | 'agreement-expired';
|
|
2178
|
+
confirmation?: {
|
|
2179
|
+
reason: 'expired' | 'used' | 'stale' | 'mismatch' | 'missing';
|
|
2180
|
+
};
|
|
2181
|
+
// (undocumented)
|
|
2182
|
+
id: string;
|
|
2183
|
+
// (undocumented)
|
|
2184
|
+
retryAfter?: number;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
// @public (undocumented)
|
|
2188
|
+
export type ProblemCatalogue = Readonly<Record<ProblemMessageKey, string>>;
|
|
2189
|
+
|
|
2190
|
+
// @public (undocumented)
|
|
2191
|
+
export type ProblemMessageKey = "chat.problem.signIn" | "chat.problem.retryable" | "chat.problem.rateLimited" | "chat.problem.refused" | "chat.problem.closed" | "chat.problem.full" | "chat.problem.declined" | "chat.problem.unavailable" | "chat.problem.stepUp" | "chat.problem.invalid" | "chat.problem.mismatch" | "chat.problem.agreement" | "chat.problem.inDoubt" | "chat.problem.replaced" | "chat.problem.needsAttention" | "chat.problem.answered" | "chat.problem.details" | "chat.problem.code" | "chat.problem.reference" | "chat.problem.refresh";
|
|
2192
|
+
|
|
2193
|
+
// @public
|
|
2194
|
+
export interface ReaderRequestContext {
|
|
2195
|
+
// (undocumented)
|
|
2196
|
+
agreementId: string;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
// @public (undocumented)
|
|
2200
|
+
export interface ReadPorts {
|
|
2201
|
+
// (undocumented)
|
|
2202
|
+
manifest: readonly ManifestEntry[];
|
|
2203
|
+
// (undocumented)
|
|
2204
|
+
planning?: {
|
|
2205
|
+
template(planId: string, stepId: string): MaybePromise<ReadTemplate | null>;
|
|
2206
|
+
request(template: ReadTemplate): Promise<{
|
|
2207
|
+
rows: Record<string, unknown>;
|
|
2208
|
+
versions: Record<string, string>;
|
|
2209
|
+
}>;
|
|
2210
|
+
};
|
|
2211
|
+
// (undocumented)
|
|
2212
|
+
request(call: ToolCall): Promise<unknown>;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
// @public
|
|
2216
|
+
export function readProblem(error: unknown, id: string): Problem;
|
|
2217
|
+
|
|
2218
|
+
// @public (undocumented)
|
|
2219
|
+
export interface ReadTemplate {
|
|
2220
|
+
// (undocumented)
|
|
2221
|
+
fields: string[];
|
|
2222
|
+
// (undocumented)
|
|
2223
|
+
method: 'GET';
|
|
2224
|
+
// (undocumented)
|
|
2225
|
+
path: string;
|
|
2226
|
+
// (undocumented)
|
|
2227
|
+
rows: string[];
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
// @public (undocumented)
|
|
2231
|
+
export type RecoveryCatalogue = Readonly<Record<RecoveryMessageKey, string>>;
|
|
2232
|
+
|
|
2233
|
+
// @public (undocumented)
|
|
2234
|
+
export type RecoveryMessageKey = "chat.recovery.heading" | "chat.recovery.updateToControl" | "chat.recovery.stopping" | "chat.recovery.cancelling" | "chat.recovery.leavePending" | "chat.recovery.currentRunning" | "chat.recovery.currentStopped" | "chat.recovery.cancelledNoChanges" | "chat.recovery.leftKnown" | "chat.recovery.leftUnconfirmed" | "chat.recovery.keptKnown" | "chat.recovery.done" | "chat.recovery.notDone" | "chat.recovery.unknown" | "chat.recovery.stopped" | "chat.recovery.capabilityMissing" | "chat.recovery.intentPendingReason" | "chat.recovery.refreshConversation" | "chat.recovery.hostGuidance" | "chat.recovery.checkIntentStatus" | "chat.recovery.checkSavedChoice" | "chat.recovery.checkKeepStatus" | "chat.recovery.keepChanges" | "chat.recovery.leave" | "chat.recovery.confirmKeepForwardOnly" | "chat.recovery.confirmEndRetention" | "chat.recovery.keepReasonActive" | "chat.recovery.keepReasonUnknown" | "chat.recovery.keepReasonUnavailable" | "chat.recovery.keepReasonChanged" | "chat.recovery.keepReasonPreview" | "chat.recovery.keepReasonNoSource" | "chat.recovery.alreadyKept" | "chat.recovery.stopNotSent" | "chat.recovery.stopNotSentElsewhere" | "chat.recovery.stopUnconfirmed" | "chat.recovery.cancelNotSent" | "chat.recovery.cancelUnconfirmed" | "chat.recovery.reviewCancelNotSent" | "chat.recovery.reviewCancelUnconfirmed" | "chat.recovery.leaveNotSent" | "chat.recovery.leaveUnconfirmed" | "chat.recovery.keepNotSent" | "chat.recovery.keepUnconfirmed" | "chat.recovery.requestAlreadyStopped" | "chat.recovery.requestTargetStopped" | "chat.recovery.requestedIntentApplied" | "chat.recovery.requestedIntentNotApplied" | "chat.recovery.intentSuperseded" | "chat.recovery.intentTargetChanged" | "chat.recovery.alreadyClosedByWinner" | "chat.recovery.alreadyStoppedNeedsDecision" | "chat.recovery.cancelStarted" | "chat.recovery.stoppedNoChanges" | "chat.recovery.initialTargetSettled" | "chat.recovery.initialTargetStopped" | "chat.recovery.reviewTargetSettled" | "chat.recovery.reviewTargetStopped" | "chat.recovery.planClosedKept" | "chat.recovery.keptForwardClosed" | "chat.recovery.keptAlready" | "chat.recovery.leaveCompletedByKeep" | "chat.recovery.leaveCoveredByKeep" | "chat.recovery.leaveNeedsReview" | "chat.recovery.leaveSafetyNeedsReview" | "chat.recovery.laterReceiptAfterKeep" | "chat.recovery.undoSelected" | "chat.recovery.continue" | "chat.recovery.statusProposal" | "chat.recovery.statusCompleted" | "chat.recovery.stepsNotKnownYet" | "chat.recovery.stepsUnknown" | "chat.recovery.stepsNotDone" | "chat.recovery.laterReportAfterKeep" | "chat.recovery.reportedDifferently" | "chat.recovery.notAvailableYet" | "chat.recovery.actionLoading" | "chat.recovery.retryAfterSeconds" | "chat.recovery.keepPending" | "chat.recovery.keepRemainingSteps" | "chat.recovery.signInRequired" | "chat.recovery.requestRefused" | "chat.recovery.acknowledgmentAhead" | "chat.recovery.cancelCoveredByLeaveSafety" | "chat.recovery.cancelCoveredByStopNoChanges" | "chat.recovery.cancelDefeatedByStop" | "chat.recovery.choiceReplacedByStop" | "chat.recovery.initialTargetClosed" | "chat.recovery.keepDefeatedByWinner" | "chat.recovery.leaveDefeatedByWinner" | "chat.recovery.leaveNoDecision" | "chat.recovery.leaveSafetyAlreadyStopped" | "chat.recovery.reopenedEvidence" | "chat.recovery.winnerStopUser" | "chat.recovery.winnerStopConnection" | "chat.recovery.winnerStopRenewal" | "chat.recovery.winnerStopStep" | "chat.recovery.winnerStopStepUp" | "chat.recovery.winnerStopIdentity" | "chat.recovery.winnerStopAttribution" | "chat.recovery.winnerStopChanged" | "chat.recovery.winnerStopAdapter" | "chat.recovery.winnerCancel" | "chat.recovery.winnerLeave" | "chat.recovery.winnerKeep" | "chat.recovery.stepStatusChanged" | "chat.recovery.stepNotKnownYet";
|
|
2235
|
+
|
|
2236
|
+
// @public
|
|
2237
|
+
export function RecoveryPanel(props: {
|
|
2238
|
+
view: PlanView;
|
|
2239
|
+
onPress(id: ActionId | "retry"): void;
|
|
2240
|
+
slots?: Slots;
|
|
2241
|
+
sheet?: KeepSheet | null;
|
|
2242
|
+
hide?: readonly ActionId[];
|
|
2243
|
+
}): react.JSX.Element;
|
|
2244
|
+
|
|
2245
|
+
// @public (undocumented)
|
|
2246
|
+
export type RecoveryPhase = 'proposal' | 'initial-review' | 'forward-active' | 'readback' | 'completed' | 'cancelled' | 'left-known' | 'left-unconfirmed' | 'left-reopened';
|
|
2247
|
+
|
|
2248
|
+
// @public (undocumented)
|
|
2249
|
+
export interface RecoveryView {
|
|
2250
|
+
contradictedAfterSeal?: string[];
|
|
2251
|
+
// (undocumented)
|
|
2252
|
+
conversationId: string;
|
|
2253
|
+
// (undocumented)
|
|
2254
|
+
decisionKey?: string;
|
|
2255
|
+
// (undocumented)
|
|
2256
|
+
evidenceDigest?: string;
|
|
2257
|
+
// (undocumented)
|
|
2258
|
+
executionId?: string;
|
|
2259
|
+
// (undocumented)
|
|
2260
|
+
generation: string;
|
|
2261
|
+
// (undocumented)
|
|
2262
|
+
phase: RecoveryPhase | (string & {});
|
|
2263
|
+
// (undocumented)
|
|
2264
|
+
profile: 'plan-recovery-v1' | (string & {});
|
|
2265
|
+
// (undocumented)
|
|
2266
|
+
remaining?: number;
|
|
2267
|
+
// (undocumented)
|
|
2268
|
+
reviewId?: string;
|
|
2269
|
+
// (undocumented)
|
|
2270
|
+
revision: number;
|
|
2271
|
+
// (undocumented)
|
|
2272
|
+
round: number;
|
|
2273
|
+
// (undocumented)
|
|
2274
|
+
sealed?: boolean;
|
|
2275
|
+
// (undocumented)
|
|
2276
|
+
slots: {
|
|
2277
|
+
stop: number;
|
|
2278
|
+
'cancel-initial': number;
|
|
2279
|
+
'cancel-review': number;
|
|
2280
|
+
leave: number;
|
|
2281
|
+
keep: number;
|
|
2282
|
+
};
|
|
2283
|
+
// (undocumented)
|
|
2284
|
+
steps?: {
|
|
2285
|
+
stepId: string;
|
|
2286
|
+
truth: 'done' | 'not-done' | 'unknown';
|
|
2287
|
+
}[];
|
|
2288
|
+
// (undocumented)
|
|
2289
|
+
unknownCount?: number;
|
|
2290
|
+
// (undocumented)
|
|
2291
|
+
versions: DecisionVersions;
|
|
2292
|
+
// (undocumented)
|
|
2293
|
+
winner?: IntentWinner;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
// @public (undocumented)
|
|
2297
|
+
export function renderWithWaypoint(element: ReactElement, options: {
|
|
2298
|
+
client: WaypointClient;
|
|
2299
|
+
skin?: Skin;
|
|
2300
|
+
}): RenderResult;
|
|
2301
|
+
|
|
2302
|
+
// @public (undocumented)
|
|
2303
|
+
export type Reply = ReplyMessage | ReplyConfirm | ReplyForm | ReplyAction | ReplyToolResult | ReplyPlanValues | ReplyFormFill | ReplyStop;
|
|
2304
|
+
|
|
2305
|
+
// @public (undocumented)
|
|
2306
|
+
export interface ReplyAction {
|
|
2307
|
+
// (undocumented)
|
|
2308
|
+
actionId: string;
|
|
2309
|
+
// (undocumented)
|
|
2310
|
+
blockId: string;
|
|
2311
|
+
// (undocumented)
|
|
2312
|
+
clientReplyId: string;
|
|
2313
|
+
// (undocumented)
|
|
2314
|
+
kind: 'action';
|
|
2315
|
+
// (undocumented)
|
|
2316
|
+
protocol: string;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
// @public (undocumented)
|
|
2320
|
+
export type ReplyCatalogue = Readonly<Record<ReplyMessageKey, string>>;
|
|
2321
|
+
|
|
2322
|
+
// @public (undocumented)
|
|
2323
|
+
export interface ReplyConfirm {
|
|
2324
|
+
// (undocumented)
|
|
2325
|
+
clientReplyId: string;
|
|
2326
|
+
// (undocumented)
|
|
2327
|
+
confirmationToken: string;
|
|
2328
|
+
// (undocumented)
|
|
2329
|
+
digest?: string;
|
|
2330
|
+
// (undocumented)
|
|
2331
|
+
kind: 'confirm';
|
|
2332
|
+
// (undocumented)
|
|
2333
|
+
planId: string;
|
|
2334
|
+
// (undocumented)
|
|
2335
|
+
protocol: string;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
// @public (undocumented)
|
|
2339
|
+
export interface ReplyDecline {
|
|
2340
|
+
// (undocumented)
|
|
2341
|
+
clientReplyId: string;
|
|
2342
|
+
// (undocumented)
|
|
2343
|
+
kind: 'decline';
|
|
2344
|
+
// (undocumented)
|
|
2345
|
+
planId: string;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
// @public
|
|
2349
|
+
export interface ReplyDelivery {
|
|
2350
|
+
// (undocumented)
|
|
2351
|
+
acceptance?: ExecutionAcceptance;
|
|
2352
|
+
// (undocumented)
|
|
2353
|
+
id: string;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
// @public (undocumented)
|
|
2357
|
+
export interface ReplyForm {
|
|
2358
|
+
// (undocumented)
|
|
2359
|
+
blockId: string;
|
|
2360
|
+
// (undocumented)
|
|
2361
|
+
clientReplyId: string;
|
|
2362
|
+
// (undocumented)
|
|
2363
|
+
kind: 'form';
|
|
2364
|
+
// (undocumented)
|
|
2365
|
+
protocol: string;
|
|
2366
|
+
// (undocumented)
|
|
2367
|
+
values: {};
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
// @public (undocumented)
|
|
2371
|
+
export interface ReplyFormFill {
|
|
2372
|
+
// (undocumented)
|
|
2373
|
+
clientReplyId: string;
|
|
2374
|
+
// (undocumented)
|
|
2375
|
+
kind: 'form-fill';
|
|
2376
|
+
// (undocumented)
|
|
2377
|
+
protocol: string;
|
|
2378
|
+
// (undocumented)
|
|
2379
|
+
request: FormFillRequest;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
// @public (undocumented)
|
|
2383
|
+
export type ReplyInput = Reply extends infer R ? R extends {
|
|
2384
|
+
protocol: string;
|
|
2385
|
+
} ? Omit<R, "protocol"> & {
|
|
2386
|
+
protocol?: string;
|
|
2387
|
+
} : never : never;
|
|
2388
|
+
|
|
2389
|
+
// @public (undocumented)
|
|
2390
|
+
export interface ReplyMessage {
|
|
2391
|
+
// (undocumented)
|
|
2392
|
+
clientMessageId: string;
|
|
2393
|
+
// (undocumented)
|
|
2394
|
+
clientReplyId: string;
|
|
2395
|
+
// (undocumented)
|
|
2396
|
+
content: string;
|
|
2397
|
+
// (undocumented)
|
|
2398
|
+
kind: 'message';
|
|
2399
|
+
// (undocumented)
|
|
2400
|
+
protocol: string;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
// @public (undocumented)
|
|
2404
|
+
export type ReplyMessageKey = "chat.reply.stop" | "chat.reply.keepWaiting" | "chat.tool.working" | "chat.tool.running" | "chat.tool.done" | "chat.tool.failed" | "chat.tool.show" | "chat.tool.hide" | "chat.message.actions" | "chat.message.copy" | "chat.message.copied" | "chat.message.copyFailed" | "chat.message.regenerate" | "chat.message.edit" | "chat.message.editLabel" | "chat.message.resend" | "chat.message.good" | "chat.message.bad" | "chat.message.previous" | "chat.message.next" | "chat.message.version";
|
|
2405
|
+
|
|
2406
|
+
// @public
|
|
2407
|
+
export type ReplyOutcome = {
|
|
2408
|
+
accepted: true;
|
|
2409
|
+
} | {
|
|
2410
|
+
accepted: false;
|
|
2411
|
+
problem?: Problem;
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
// @public (undocumented)
|
|
2415
|
+
export interface ReplyPlanValues {
|
|
2416
|
+
// (undocumented)
|
|
2417
|
+
clientReplyId: string;
|
|
2418
|
+
// (undocumented)
|
|
2419
|
+
kind: 'plan.values';
|
|
2420
|
+
// (undocumented)
|
|
2421
|
+
planId: string;
|
|
2422
|
+
// (undocumented)
|
|
2423
|
+
protocol: string;
|
|
2424
|
+
// (undocumented)
|
|
2425
|
+
steps: {
|
|
2426
|
+
stepId: string;
|
|
2427
|
+
rows: {};
|
|
2428
|
+
versions: {
|
|
2429
|
+
[k: string]: string;
|
|
2430
|
+
};
|
|
2431
|
+
}[];
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
// @public (undocumented)
|
|
2435
|
+
export function replyRow(input: {
|
|
2436
|
+
messages: readonly Message[];
|
|
2437
|
+
pending: readonly PendingSend[];
|
|
2438
|
+
now: number;
|
|
2439
|
+
askedAt?: number;
|
|
2440
|
+
overdueAt?: number;
|
|
2441
|
+
heldUntil?: number;
|
|
2442
|
+
unavailable?: boolean;
|
|
2443
|
+
failed?: boolean;
|
|
2444
|
+
streamLost?: boolean;
|
|
2445
|
+
activityAt?: number;
|
|
2446
|
+
}): ReplyState;
|
|
2447
|
+
|
|
2448
|
+
// @public (undocumented)
|
|
2449
|
+
export type ReplyState = "none" | "writing" | "unavailable" | "failed" | "overdue";
|
|
2450
|
+
|
|
2451
|
+
// @public
|
|
2452
|
+
export interface ReplyStop {
|
|
2453
|
+
// (undocumented)
|
|
2454
|
+
clientReplyId: string;
|
|
2455
|
+
// (undocumented)
|
|
2456
|
+
kind: 'stop';
|
|
2457
|
+
// (undocumented)
|
|
2458
|
+
messageId: string;
|
|
2459
|
+
// (undocumented)
|
|
2460
|
+
protocol: string;
|
|
2461
|
+
versionIndex?: number;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
// @public (undocumented)
|
|
2465
|
+
export interface ReplyToolResult {
|
|
2466
|
+
// (undocumented)
|
|
2467
|
+
callId: string;
|
|
2468
|
+
// (undocumented)
|
|
2469
|
+
clientReplyId: string;
|
|
2470
|
+
// (undocumented)
|
|
2471
|
+
kind: 'tool-result';
|
|
2472
|
+
// (undocumented)
|
|
2473
|
+
problem?: Problem;
|
|
2474
|
+
// (undocumented)
|
|
2475
|
+
protocol: string;
|
|
2476
|
+
// (undocumented)
|
|
2477
|
+
result: unknown;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
// @public (undocumented)
|
|
2481
|
+
export type RequiredThemeToken = "background" | "foreground" | "muted" | "accent" | "border" | "surface" | "danger" | "space" | "radius" | "fontSize" | "fontFamily" | "shadow" | "motion";
|
|
2482
|
+
|
|
2483
|
+
// @public
|
|
2484
|
+
export type ResolvedTheme = {
|
|
2485
|
+
[K in ThemeToken]: string;
|
|
2486
|
+
};
|
|
2487
|
+
|
|
2488
|
+
// @public (undocumented)
|
|
2489
|
+
export interface RestoredMessage {
|
|
2490
|
+
// (undocumented)
|
|
2491
|
+
content: string;
|
|
2492
|
+
// (undocumented)
|
|
2493
|
+
id: string;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
// @public (undocumented)
|
|
2497
|
+
export interface RunFlow {
|
|
2498
|
+
// (undocumented)
|
|
2499
|
+
flowId: string;
|
|
2500
|
+
// (undocumented)
|
|
2501
|
+
protocol: string;
|
|
2502
|
+
// (undocumented)
|
|
2503
|
+
values: {};
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
// @public (undocumented)
|
|
2507
|
+
export interface RunnerPorts {
|
|
2508
|
+
// (undocumented)
|
|
2509
|
+
clock?: PlatformPorts["clock"];
|
|
2510
|
+
heartbeat(id: string, acceptance?: ExecutionAcceptance): Promise<void>;
|
|
2511
|
+
// (undocumented)
|
|
2512
|
+
heartbeatMs?: number;
|
|
2513
|
+
intent?(request: IntentRequest): Promise<PlanIntentReply>;
|
|
2514
|
+
interrupted?(id: string, cause: IntentCause): Promise<void>;
|
|
2515
|
+
// (undocumented)
|
|
2516
|
+
onRecord?(record: PlanRecord): void;
|
|
2517
|
+
read(id: string, context?: ReaderRequestContext): Promise<PlanRecord>;
|
|
2518
|
+
// (undocumented)
|
|
2519
|
+
request(request: CanonicalRequest, context: StepContext): Promise<void>;
|
|
2520
|
+
signal?: ScopeSignal;
|
|
2521
|
+
// (undocumented)
|
|
2522
|
+
stepUp?(planId: string, stepId: string): Promise<string | null>;
|
|
2523
|
+
// @deprecated (undocumented)
|
|
2524
|
+
stop?(id: string): Promise<PlanRecord>;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
// @public (undocumented)
|
|
2528
|
+
export interface ScopeSignal {
|
|
2529
|
+
// (undocumented)
|
|
2530
|
+
readonly aborted: boolean;
|
|
2531
|
+
// (undocumented)
|
|
2532
|
+
addEventListener(type: "abort", listener: () => void, options?: {
|
|
2533
|
+
once?: boolean;
|
|
2534
|
+
}): void;
|
|
2535
|
+
// (undocumented)
|
|
2536
|
+
removeEventListener(type: "abort", listener: () => void): void;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
// @public (undocumented)
|
|
2540
|
+
export interface ScriptedTurn {
|
|
2541
|
+
// (undocumented)
|
|
2542
|
+
blocks?: Block[];
|
|
2543
|
+
// (undocumented)
|
|
2544
|
+
content?: string;
|
|
2545
|
+
// (undocumented)
|
|
2546
|
+
events?: TransportEvent[];
|
|
2547
|
+
// (undocumented)
|
|
2548
|
+
problem?: Problem;
|
|
2549
|
+
writing?: boolean;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
// @public (undocumented)
|
|
2553
|
+
export const simplifiedChinese: Record<keyof typeof english, string>;
|
|
2554
|
+
|
|
2555
|
+
// @public (undocumented)
|
|
2556
|
+
export type Skin = Partial<Omit<WaypointProviderProps, "client" | "children">>;
|
|
2557
|
+
|
|
2558
|
+
// @public (undocumented)
|
|
2559
|
+
export type Slots = {
|
|
2560
|
+
[N in PartName]?: (props: PartProps<N>) => ReactNode;
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
// @public (undocumented)
|
|
2564
|
+
export interface Source {
|
|
2565
|
+
// (undocumented)
|
|
2566
|
+
id: string;
|
|
2567
|
+
// (undocumented)
|
|
2568
|
+
title: string;
|
|
2569
|
+
// (undocumented)
|
|
2570
|
+
url: string;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
// @public (undocumented)
|
|
2574
|
+
export const standardWidgets: readonly WidgetRegistration[];
|
|
2575
|
+
|
|
2576
|
+
// @public (undocumented)
|
|
2577
|
+
export interface Step {
|
|
2578
|
+
// (undocumented)
|
|
2579
|
+
after?: {};
|
|
2580
|
+
// (undocumented)
|
|
2581
|
+
before?: {};
|
|
2582
|
+
// (undocumented)
|
|
2583
|
+
fields: string[];
|
|
2584
|
+
// (undocumented)
|
|
2585
|
+
id: string;
|
|
2586
|
+
// (undocumented)
|
|
2587
|
+
operation: string;
|
|
2588
|
+
// (undocumented)
|
|
2589
|
+
planningRead?: ReadTemplate;
|
|
2590
|
+
// (undocumented)
|
|
2591
|
+
request?: CanonicalRequest;
|
|
2592
|
+
// (undocumented)
|
|
2593
|
+
resource: string;
|
|
2594
|
+
// (undocumented)
|
|
2595
|
+
rows: string[];
|
|
2596
|
+
// (undocumented)
|
|
2597
|
+
stepUp: boolean;
|
|
2598
|
+
// (undocumented)
|
|
2599
|
+
tier: 'low' | 'sensitive';
|
|
2600
|
+
// (undocumented)
|
|
2601
|
+
undo: string;
|
|
2602
|
+
// (undocumented)
|
|
2603
|
+
view: string;
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
// @public (undocumented)
|
|
2607
|
+
export interface StepContext {
|
|
2608
|
+
// (undocumented)
|
|
2609
|
+
headers: Record<string, string>;
|
|
2610
|
+
// (undocumented)
|
|
2611
|
+
planId: string;
|
|
2612
|
+
signal?: ScopeSignal;
|
|
2613
|
+
// (undocumented)
|
|
2614
|
+
stepId: string;
|
|
2615
|
+
// (undocumented)
|
|
2616
|
+
stepUpCode?: string;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
// @public
|
|
2620
|
+
export function stepName(t: FormatMessage, labels: PlanLabels | undefined, step: {
|
|
2621
|
+
index: number;
|
|
2622
|
+
resource?: string;
|
|
2623
|
+
}): string;
|
|
2624
|
+
|
|
2625
|
+
// @public (undocumented)
|
|
2626
|
+
export interface StepStatus {
|
|
2627
|
+
index: number;
|
|
2628
|
+
// (undocumented)
|
|
2629
|
+
lateReport?: "contradicted";
|
|
2630
|
+
// (undocumented)
|
|
2631
|
+
resource?: string;
|
|
2632
|
+
// (undocumented)
|
|
2633
|
+
stepId: string;
|
|
2634
|
+
// (undocumented)
|
|
2635
|
+
textKey: MessageKey;
|
|
2636
|
+
// (undocumented)
|
|
2637
|
+
truth: "done" | "not-done" | "unknown";
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
// @public (undocumented)
|
|
2641
|
+
export interface StoragePort {
|
|
2642
|
+
compareAndSet?(key: string, expected: string | null, value: string): MaybePromise<boolean>;
|
|
2643
|
+
// (undocumented)
|
|
2644
|
+
get(key: string): MaybePromise<string | null>;
|
|
2645
|
+
// (undocumented)
|
|
2646
|
+
remove(key: string): MaybePromise<void>;
|
|
2647
|
+
// (undocumented)
|
|
2648
|
+
set(key: string, value: string): MaybePromise<void>;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
// @public (undocumented)
|
|
2652
|
+
export type Theme = {
|
|
2653
|
+
[K in RequiredThemeToken]: string;
|
|
2654
|
+
} & {
|
|
2655
|
+
[K in Exclude<ThemeToken, RequiredThemeToken>]?: string;
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
// @public (undocumented)
|
|
2659
|
+
export function themeProperties(theme: Partial<ResolvedTheme>): Record<string, string>;
|
|
2660
|
+
|
|
2661
|
+
// @public
|
|
2662
|
+
export type ThemeToken = keyof typeof lightTheme;
|
|
2663
|
+
|
|
2664
|
+
// @public
|
|
2665
|
+
export type ThemeTokensHook = () => {
|
|
2666
|
+
tokens: Partial<ResolvedTheme>;
|
|
2667
|
+
scheme: "light" | "dark";
|
|
2668
|
+
} | undefined;
|
|
2669
|
+
|
|
2670
|
+
// @public (undocumented)
|
|
2671
|
+
export interface TimedPlan {
|
|
2672
|
+
// (undocumented)
|
|
2673
|
+
end: string | null;
|
|
2674
|
+
// (undocumented)
|
|
2675
|
+
id: string;
|
|
2676
|
+
// (undocumented)
|
|
2677
|
+
kind: 'timed';
|
|
2678
|
+
// (undocumented)
|
|
2679
|
+
start: string | null;
|
|
2680
|
+
// (undocumented)
|
|
2681
|
+
values: {
|
|
2682
|
+
[k: string]: {
|
|
2683
|
+
[k: string]: unknown;
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
// @public (undocumented)
|
|
2689
|
+
export type Tone = "neutral" | "progress" | "warning" | "success";
|
|
2690
|
+
|
|
2691
|
+
// @public (undocumented)
|
|
2692
|
+
export interface ToolCall {
|
|
2693
|
+
// (undocumented)
|
|
2694
|
+
id: string;
|
|
2695
|
+
label?: string;
|
|
2696
|
+
// (undocumented)
|
|
2697
|
+
method: string;
|
|
2698
|
+
// (undocumented)
|
|
2699
|
+
operation: string;
|
|
2700
|
+
// (undocumented)
|
|
2701
|
+
path: string;
|
|
2702
|
+
// (undocumented)
|
|
2703
|
+
query?: {
|
|
2704
|
+
[k: string]: string;
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
// @public
|
|
2709
|
+
export interface ToolStep {
|
|
2710
|
+
// (undocumented)
|
|
2711
|
+
id: string;
|
|
2712
|
+
label?: string;
|
|
2713
|
+
// (undocumented)
|
|
2714
|
+
status: "running" | "done" | "failed";
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
// @public (undocumented)
|
|
2718
|
+
export type TransportEvent = {
|
|
2719
|
+
type: "status";
|
|
2720
|
+
status: "connecting" | "open" | "reconnecting" | "unavailable";
|
|
2721
|
+
} | {
|
|
2722
|
+
type: "frame";
|
|
2723
|
+
frame: Frame;
|
|
2724
|
+
}
|
|
2725
|
+
/** A hint that the conversation changed; it is never applied as content. */
|
|
2726
|
+
| {
|
|
2727
|
+
type: "invalidate";
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
// @public (undocumented)
|
|
2731
|
+
export interface TransportPort {
|
|
2732
|
+
negotiate(supported: readonly string[], offer?: NegotiationOffer): Promise<{
|
|
2733
|
+
protocol: string;
|
|
2734
|
+
capabilities: string[];
|
|
2735
|
+
agreementId?: string;
|
|
2736
|
+
}>;
|
|
2737
|
+
// (undocumented)
|
|
2738
|
+
read(conversationId: string, context?: ReaderRequestContext): Promise<Conversation>;
|
|
2739
|
+
// (undocumented)
|
|
2740
|
+
send(reply: Reply & {
|
|
2741
|
+
extensions?: Record<string, unknown>;
|
|
2742
|
+
}, conversationId: string, context?: ReaderRequestContext): Promise<ReplyDelivery>;
|
|
2743
|
+
// (undocumented)
|
|
2744
|
+
subscribe(conversationId: string, listener: (event: TransportEvent) => void, context?: ReaderRequestContext): () => void;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
// @public
|
|
2748
|
+
export function useBlockReply(client?: WaypointClient): BlockReply;
|
|
2749
|
+
|
|
2750
|
+
// @public (undocumented)
|
|
2751
|
+
export function useComposer(client?: WaypointClient): {
|
|
2752
|
+
draft: string;
|
|
2753
|
+
sending: boolean;
|
|
2754
|
+
hints: readonly string[];
|
|
2755
|
+
setDraft: (value: string) => Promise<void>;
|
|
2756
|
+
send: () => Promise<void>;
|
|
2757
|
+
retry: (id: string) => Promise<void>;
|
|
2758
|
+
withdraw: (id: string) => Promise<void>;
|
|
2759
|
+
dismiss: (id: string) => Promise<void>;
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
// @public (undocumented)
|
|
2763
|
+
export function useConversation(client?: WaypointClient): {
|
|
2764
|
+
conversationId: string;
|
|
2765
|
+
conversation: Conversation | null;
|
|
2766
|
+
refresh: () => Promise<ConversationReadResult>;
|
|
2767
|
+
editMessage: (messageId: string, content: string) => Promise<void>;
|
|
2768
|
+
regenerate: (messageId: string) => Promise<void>;
|
|
2769
|
+
selectVersion: (messageId: string, index: number) => Promise<void>;
|
|
2770
|
+
switchConversation: (id: string) => Promise<ConversationReadResult>;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
// @public (undocumented)
|
|
2774
|
+
export function useFlows(client?: WaypointClient): {
|
|
2775
|
+
flows: Partial<Record<string, FlowSummary[]>>;
|
|
2776
|
+
tab: string;
|
|
2777
|
+
load: () => Promise<void>;
|
|
2778
|
+
select: (tab: FlowTab) => void;
|
|
2779
|
+
setFavourite: (id: string, favourite: boolean) => Promise<void>;
|
|
2780
|
+
run: (id: string, values: Record<string, unknown>) => Promise<string | void>;
|
|
2781
|
+
};
|
|
2782
|
+
|
|
2783
|
+
// @public (undocumented)
|
|
2784
|
+
export function useFormFill(session: FormSession): FormSnapshot;
|
|
2785
|
+
|
|
2786
|
+
// @public (undocumented)
|
|
2787
|
+
export function usePlan(client?: WaypointClient): {
|
|
2788
|
+
plan: PlanRecord | null;
|
|
2789
|
+
setPlan: (plan: PlanRecord) => void;
|
|
2790
|
+
reply: (reply: ReplyInput) => Promise<boolean>;
|
|
2791
|
+
view: PlanView | null;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
// @public
|
|
2795
|
+
export function usePlanView(client?: WaypointClient): {
|
|
2796
|
+
view: PlanView | null;
|
|
2797
|
+
press: (id: ActionId | "retry") => void;
|
|
2798
|
+
sheet: KeepSheet | null;
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
// @public (undocumented)
|
|
2802
|
+
export function useWaypointClient(): WaypointClient;
|
|
2803
|
+
|
|
2804
|
+
// @public
|
|
2805
|
+
export function useWaypointMessage(messageId: string, client?: WaypointClient): Message | undefined;
|
|
2806
|
+
|
|
2807
|
+
// @public
|
|
2808
|
+
export function useWaypointSelector<T>(selector: (snapshot: ClientSnapshot) => T, isEqual?: (a: T, b: T) => boolean, client?: WaypointClient): T;
|
|
2809
|
+
|
|
2810
|
+
// @public (undocumented)
|
|
2811
|
+
export function useWaypointSnapshot(client?: WaypointClient): ClientSnapshot;
|
|
2812
|
+
|
|
2813
|
+
// @public (undocumented)
|
|
2814
|
+
export function versionWalk(message: {
|
|
2815
|
+
versionIndex?: number | null;
|
|
2816
|
+
versionCount?: number | null;
|
|
2817
|
+
}): {
|
|
2818
|
+
index: number;
|
|
2819
|
+
count: number;
|
|
2820
|
+
previous: number | null;
|
|
2821
|
+
next: number | null;
|
|
2822
|
+
} | null;
|
|
2823
|
+
|
|
2824
|
+
// @public (undocumented)
|
|
2825
|
+
export interface ViewMessage {
|
|
2826
|
+
// (undocumented)
|
|
2827
|
+
key: MessageKey;
|
|
2828
|
+
// (undocumented)
|
|
2829
|
+
values?: Record<string, number>;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
// @public (undocumented)
|
|
2833
|
+
export function WaypointChat(props: WaypointChatProps): react.JSX.Element;
|
|
2834
|
+
|
|
2835
|
+
// @public (undocumented)
|
|
2836
|
+
export interface WaypointChatProps extends Partial<Omit<WaypointProviderProps, "children">> {
|
|
2837
|
+
// (undocumented)
|
|
2838
|
+
conversations?: readonly ConversationSummary[];
|
|
2839
|
+
// (undocumented)
|
|
2840
|
+
conversationSource?: ConversationSource;
|
|
2841
|
+
// (undocumented)
|
|
2842
|
+
features?: readonly Capability[];
|
|
2843
|
+
// (undocumented)
|
|
2844
|
+
layout?: "panel" | "page" | "floating" | "sheet";
|
|
2845
|
+
// (undocumented)
|
|
2846
|
+
onStop?: () => void;
|
|
2847
|
+
// (undocumented)
|
|
2848
|
+
quota?: ReactNode;
|
|
2849
|
+
// (undocumented)
|
|
2850
|
+
shortcuts?: {
|
|
2851
|
+
focusComposer?: string | false;
|
|
2852
|
+
send?: string | false;
|
|
2853
|
+
global?: boolean;
|
|
2854
|
+
};
|
|
2855
|
+
// (undocumented)
|
|
2856
|
+
slots?: Slots;
|
|
2857
|
+
// (undocumented)
|
|
2858
|
+
suggestions?: readonly string[];
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
// @public (undocumented)
|
|
2862
|
+
export interface WaypointClient {
|
|
2863
|
+
canChangeVersions(): boolean;
|
|
2864
|
+
// (undocumented)
|
|
2865
|
+
canKeepChanges(id?: string): boolean;
|
|
2866
|
+
canPrepareFlow(): boolean;
|
|
2867
|
+
canRetryReply(): boolean;
|
|
2868
|
+
canSendFeedback(): boolean;
|
|
2869
|
+
canStopReply(): boolean;
|
|
2870
|
+
checkIntentStatus(id?: string): Promise<void>;
|
|
2871
|
+
checkKeepStatus(id?: string): Promise<void>;
|
|
2872
|
+
checkSavedChoice(id?: string): Promise<void>;
|
|
2873
|
+
// (undocumented)
|
|
2874
|
+
confirmPlan(): Promise<void>;
|
|
2875
|
+
declinePlan(): Promise<void>;
|
|
2876
|
+
discardRestored(id: string): Promise<void>;
|
|
2877
|
+
// (undocumented)
|
|
2878
|
+
dismiss(id: string): Promise<void>;
|
|
2879
|
+
// (undocumented)
|
|
2880
|
+
dispose(): void;
|
|
2881
|
+
// (undocumented)
|
|
2882
|
+
editMessage(messageId: string, content: string): Promise<void>;
|
|
2883
|
+
editRestored(id: string): Promise<void>;
|
|
2884
|
+
// (undocumented)
|
|
2885
|
+
getSnapshot(): ClientSnapshot;
|
|
2886
|
+
keepChanges(review: KeepChangesReviewResult): Promise<void>;
|
|
2887
|
+
keepChangesReview(id?: string): KeepChangesReviewResult;
|
|
2888
|
+
keepWaiting(): void;
|
|
2889
|
+
leavePlan(id?: string): Promise<void>;
|
|
2890
|
+
// (undocumented)
|
|
2891
|
+
loadFlows(): Promise<void>;
|
|
2892
|
+
// (undocumented)
|
|
2893
|
+
on(listener: (event: WaypointEvent) => void): () => void;
|
|
2894
|
+
prepareFlow(id?: string): Promise<Flow | void>;
|
|
2895
|
+
readPlan(id?: string): Promise<void>;
|
|
2896
|
+
// (undocumented)
|
|
2897
|
+
ready: Promise<void>;
|
|
2898
|
+
// (undocumented)
|
|
2899
|
+
refresh(): Promise<ConversationReadResult>;
|
|
2900
|
+
// (undocumented)
|
|
2901
|
+
regenerate(messageId: string): Promise<void>;
|
|
2902
|
+
// (undocumented)
|
|
2903
|
+
reply(reply: ReplyInput): Promise<boolean>;
|
|
2904
|
+
replyOutcome(reply: ReplyInput): Promise<ReplyOutcome>;
|
|
2905
|
+
// (undocumented)
|
|
2906
|
+
report(problem: Problem): void;
|
|
2907
|
+
// (undocumented)
|
|
2908
|
+
resumePlan(): Promise<void>;
|
|
2909
|
+
// (undocumented)
|
|
2910
|
+
retry(id: string): Promise<void>;
|
|
2911
|
+
// (undocumented)
|
|
2912
|
+
retryIntent(id?: string): Promise<void>;
|
|
2913
|
+
retryReply(): Promise<void>;
|
|
2914
|
+
// (undocumented)
|
|
2915
|
+
retryUndo(): Promise<void>;
|
|
2916
|
+
runFlow(id: string, values: Record<string, unknown>): Promise<string | void>;
|
|
2917
|
+
// (undocumented)
|
|
2918
|
+
runPlan(id: string, confirmedDigest: string): Promise<void>;
|
|
2919
|
+
// (undocumented)
|
|
2920
|
+
selectFlowTab(tab: FlowTab): void;
|
|
2921
|
+
// (undocumented)
|
|
2922
|
+
selectVersion(messageId: string, index: number): Promise<void>;
|
|
2923
|
+
// (undocumented)
|
|
2924
|
+
send(): Promise<void>;
|
|
2925
|
+
sendFeedback(messageId: string, rating: FeedbackInput["rating"]): Promise<boolean>;
|
|
2926
|
+
// (undocumented)
|
|
2927
|
+
setDraft(value: string): Promise<void>;
|
|
2928
|
+
// (undocumented)
|
|
2929
|
+
setFavourite(id: string, favourite: boolean): Promise<void>;
|
|
2930
|
+
// (undocumented)
|
|
2931
|
+
setPlan(plan: PlanRecord): void;
|
|
2932
|
+
// (undocumented)
|
|
2933
|
+
stopPlan(id?: string): void;
|
|
2934
|
+
stopReply(): Promise<void>;
|
|
2935
|
+
// (undocumented)
|
|
2936
|
+
subscribe(listener: () => void): () => void;
|
|
2937
|
+
// (undocumented)
|
|
2938
|
+
switchConversation(id: string): Promise<ConversationReadResult>;
|
|
2939
|
+
// (undocumented)
|
|
2940
|
+
withdraw(id: string): Promise<void>;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
// @public (undocumented)
|
|
2944
|
+
export type WaypointEvent = {
|
|
2945
|
+
type: "send" | "reply";
|
|
2946
|
+
conversationId: string;
|
|
2947
|
+
replyId: string;
|
|
2948
|
+
} | {
|
|
2949
|
+
type: "plan.state";
|
|
2950
|
+
planId: string;
|
|
2951
|
+
} | {
|
|
2952
|
+
type: "problem";
|
|
2953
|
+
problemId: string;
|
|
2954
|
+
} | {
|
|
2955
|
+
type: "transport.status";
|
|
2956
|
+
conversationId: string;
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
// @public (undocumented)
|
|
2960
|
+
export type WaypointProtocol = Problem | Negotiation | NegotiationOfferWire | Negotiated | CanonicalRequest | ReadTemplate | Step | ImmediateDraft | ImmediatePlan | TimedPlan | Plan | PlanState | Outcome | ConfirmationItem | ConfirmationSchedule | ConfirmationRecord | PlanRecord | RecoveryPhase | IntentKind | WinnerKind | IntentCause | IntentWinner | RecoveryView | IntentTarget | IntentRequest | PlanIntentReply | ExecutionAcceptance | ReplyDecline | CardAnswer | BlockMarkdown | BlockCard | BlockDetails | BlockList | BlockTable | BlockForm | BlockChoice | BlockButtons | BlockDiff | BlockPlan | BlockRouteLink | BlockNotice | ExtensionBlock | Block | Message | Source | Conversation | ReplyMessage | ReplyConfirm | ReplyForm | ReplyAction | ReplyToolResult | ReplyPlanValues | Reply | ReplyStop | ManifestEntry | ToolCall | FrameMessageStart | FrameTextDelta | FrameBlock | FramePlanDraft | FramePlanFinal | FramePlanStep | FrameToolCall | FramePlanningRead | FrameMessageEnd | FrameStale | FrameProblem | Frame | FlowParameter | Flow | CreateConversation | PlanCommand | RunFlow | PatchFlow | FormSubject | FormValidation | FormFillValue | FormFillField | FormFillRequest | BlockFormFill | ReplyFormFill | LeaveAcknowledgment | DecisionVersions | KeptFact | FinalHistory;
|
|
2961
|
+
|
|
2962
|
+
// @public (undocumented)
|
|
2963
|
+
export function WaypointProvider(props: WaypointProviderProps): react.JSX.Element;
|
|
2964
|
+
|
|
2965
|
+
// @public (undocumented)
|
|
2966
|
+
export interface WaypointProviderProps {
|
|
2967
|
+
// (undocumented)
|
|
2968
|
+
children?: ReactNode;
|
|
2969
|
+
// (undocumented)
|
|
2970
|
+
client: WaypointClient;
|
|
2971
|
+
colorScheme?: "light" | "dark";
|
|
2972
|
+
// (undocumented)
|
|
2973
|
+
dir?: "ltr" | "rtl";
|
|
2974
|
+
// (undocumented)
|
|
2975
|
+
extraUrlSchemes?: readonly string[];
|
|
2976
|
+
// (undocumented)
|
|
2977
|
+
flowTabLabel?: (labelKey: string) => string;
|
|
2978
|
+
// (undocumented)
|
|
2979
|
+
format?: FormatMessage;
|
|
2980
|
+
// (undocumented)
|
|
2981
|
+
locale?: string;
|
|
2982
|
+
// (undocumented)
|
|
2983
|
+
markdownImages?: MarkdownImagePolicy;
|
|
2984
|
+
messageExcerpt?: (message: Message) => string | undefined;
|
|
2985
|
+
// (undocumented)
|
|
2986
|
+
parts?: {
|
|
2987
|
+
[N in PartName]?: ComponentType<PartProps<N>>;
|
|
2988
|
+
};
|
|
2989
|
+
planLabels?: PlanLabels;
|
|
2990
|
+
// (undocumented)
|
|
2991
|
+
primitives?: Partial<PrimitiveComponents>;
|
|
2992
|
+
problemText?: (problem: Problem, context?: {
|
|
2993
|
+
answeredElsewhere: boolean;
|
|
2994
|
+
}) => {
|
|
2995
|
+
text: string;
|
|
2996
|
+
action?: ReactNode;
|
|
2997
|
+
};
|
|
2998
|
+
// (undocumented)
|
|
2999
|
+
renderers?: {
|
|
3000
|
+
markdown?: ComponentType<{
|
|
3001
|
+
text: string;
|
|
3002
|
+
}>;
|
|
3003
|
+
};
|
|
3004
|
+
theme?: Partial<Theme>;
|
|
3005
|
+
useThemeTokens?: ThemeTokensHook;
|
|
3006
|
+
// (undocumented)
|
|
3007
|
+
widgets?: readonly WidgetRegistration[];
|
|
3008
|
+
// (undocumented)
|
|
3009
|
+
wrapper?: ComponentType<{
|
|
3010
|
+
children?: ReactNode;
|
|
3011
|
+
colorScheme: "light" | "dark";
|
|
3012
|
+
tokens: Theme;
|
|
3013
|
+
tokenSource?: "host" | "waypoint";
|
|
3014
|
+
}>;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
// @public (undocumented)
|
|
3018
|
+
export function Widget(props: WidgetProps): react.JSX.Element;
|
|
3019
|
+
|
|
3020
|
+
// @public (undocumented)
|
|
3021
|
+
export interface WidgetProps {
|
|
3022
|
+
// (undocumented)
|
|
3023
|
+
block: Block;
|
|
3024
|
+
// (undocumented)
|
|
3025
|
+
disabled: boolean;
|
|
3026
|
+
// (undocumented)
|
|
3027
|
+
onReply: (reply: Pick<Reply, "kind"> & Record<string, unknown>) => void;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
// @public (undocumented)
|
|
3031
|
+
export interface WidgetRegistration {
|
|
3032
|
+
// (undocumented)
|
|
3033
|
+
render: ComponentType<WidgetProps>;
|
|
3034
|
+
// (undocumented)
|
|
3035
|
+
type: string;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
// @public (undocumented)
|
|
3039
|
+
export type WinnerKind = 'stop' | 'cancel-initial' | 'cancel-review' | 'leave' | 'keep';
|
|
3040
|
+
|
|
3041
|
+
// (No @packageDocumentation comment for this package)
|
|
3042
|
+
|
|
3043
|
+
```
|