@tai42/api-client 21.0.0 → 22.0.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/dist/client/backend-client.d.ts +1 -1
- package/dist/client/backup-client.d.ts +2 -2
- package/dist/client/config-client.d.ts +3 -3
- package/dist/client/connectors-client.d.ts +15 -15
- package/dist/client/conversations-client.d.ts +222 -0
- package/dist/client/conversations-client.d.ts.map +1 -1
- package/dist/client/index.d.ts +268 -46
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/manifest-client.d.ts +18 -18
- package/dist/client/profiles-client.d.ts +2 -2
- package/dist/client/states-client.d.ts +1 -1
- package/dist/client/tool-extensions-client.d.ts +2 -2
- package/dist/client/tools-client.d.ts +2 -2
- package/dist/generated/openapi-schemas.d.ts +1228 -15
- package/dist/generated/openapi-schemas.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.js +14 -3
- package/dist/generated/openapi-schemas.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/backup.d.ts +4 -4
- package/dist/schemas/connectors.d.ts +13 -13
- package/dist/schemas/conversations.d.ts +296 -0
- package/dist/schemas/conversations.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +6 -6
- package/dist/schemas/interactions.d.ts +250 -1
- package/dist/schemas/interactions.d.ts.map +1 -1
- package/dist/schemas/interactions.js +158 -2
- package/dist/schemas/interactions.js.map +1 -1
- package/dist/schemas/manifest-mcp.d.ts +2 -2
- package/dist/schemas/profiles.d.ts +2 -2
- package/dist/schemas/states.d.ts +1 -1
- package/dist/schemas/system-kinds.d.ts +3 -3
- package/package.json +3 -3
- package/src/generated/openapi-schemas.ts +36 -3
- package/src/index.ts +10 -0
- package/src/schemas/interactions.ts +181 -2
package/dist/schemas/fleet.d.ts
CHANGED
|
@@ -109,8 +109,8 @@ export type FleetWorkers = z.infer<typeof fleetWorkers>;
|
|
|
109
109
|
* convergence promise).
|
|
110
110
|
*/
|
|
111
111
|
export declare const fleetOutcome: z.ZodEnum<{
|
|
112
|
-
applied: "applied";
|
|
113
112
|
failed: "failed";
|
|
113
|
+
applied: "applied";
|
|
114
114
|
missing: "missing";
|
|
115
115
|
departed: "departed";
|
|
116
116
|
timed_out: "timed_out";
|
|
@@ -130,8 +130,8 @@ export declare const fleetWorkerResult: z.ZodObject<{
|
|
|
130
130
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
outcome: z.ZodEnum<{
|
|
133
|
-
applied: "applied";
|
|
134
133
|
failed: "failed";
|
|
134
|
+
applied: "applied";
|
|
135
135
|
missing: "missing";
|
|
136
136
|
departed: "departed";
|
|
137
137
|
timed_out: "timed_out";
|
|
@@ -164,8 +164,8 @@ export declare const fleetResult: z.ZodObject<{
|
|
|
164
164
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
165
165
|
name: z.ZodString;
|
|
166
166
|
outcome: z.ZodEnum<{
|
|
167
|
-
applied: "applied";
|
|
168
167
|
failed: "failed";
|
|
168
|
+
applied: "applied";
|
|
169
169
|
missing: "missing";
|
|
170
170
|
departed: "departed";
|
|
171
171
|
timed_out: "timed_out";
|
|
@@ -194,8 +194,8 @@ export declare const fleetReloadResult: z.ZodObject<{
|
|
|
194
194
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
195
195
|
name: z.ZodString;
|
|
196
196
|
outcome: z.ZodEnum<{
|
|
197
|
-
applied: "applied";
|
|
198
197
|
failed: "failed";
|
|
198
|
+
applied: "applied";
|
|
199
199
|
missing: "missing";
|
|
200
200
|
departed: "departed";
|
|
201
201
|
timed_out: "timed_out";
|
|
@@ -220,8 +220,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
220
220
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
221
221
|
name: z.ZodString;
|
|
222
222
|
outcome: z.ZodEnum<{
|
|
223
|
-
applied: "applied";
|
|
224
223
|
failed: "failed";
|
|
224
|
+
applied: "applied";
|
|
225
225
|
missing: "missing";
|
|
226
226
|
departed: "departed";
|
|
227
227
|
timed_out: "timed_out";
|
|
@@ -242,8 +242,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
242
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
243
243
|
name: z.ZodString;
|
|
244
244
|
outcome: z.ZodEnum<{
|
|
245
|
-
applied: "applied";
|
|
246
245
|
failed: "failed";
|
|
246
|
+
applied: "applied";
|
|
247
247
|
missing: "missing";
|
|
248
248
|
departed: "departed";
|
|
249
249
|
timed_out: "timed_out";
|
|
@@ -136,7 +136,10 @@ export type FormPageKind = z.infer<typeof formPageKind>;
|
|
|
136
136
|
* instead of, for a review page) its input fields; it defaults to empty, so a page that
|
|
137
137
|
* carries none renders exactly as before. `kind` marks a `review` page — a terminal
|
|
138
138
|
* summary step that shows the readback of entered values and the confirm/submit footer
|
|
139
|
-
* and carries no new input fields; it defaults to `input`.
|
|
139
|
+
* and carries no new input fields; it defaults to `input`. `button_label` is the text of
|
|
140
|
+
* the page's primary button — the one that advances from an input page, or submits from
|
|
141
|
+
* the last — in the sender's words and the end-user's language; absent (`null`), the
|
|
142
|
+
* surface shows its own generic word ("Next"/"Submit"/"Confirm"). All additive: an older
|
|
140
143
|
* payload ({title, fields}) parses unchanged.
|
|
141
144
|
*/
|
|
142
145
|
export declare const formPage: z.ZodObject<{
|
|
@@ -157,6 +160,7 @@ export declare const formPage: z.ZodObject<{
|
|
|
157
160
|
review: "review";
|
|
158
161
|
}>>;
|
|
159
162
|
title: z.ZodString;
|
|
163
|
+
button_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
160
164
|
}, z.core.$strict>;
|
|
161
165
|
export type FormPage = z.infer<typeof formPage>;
|
|
162
166
|
/** The `form` pages list (`format_payload.pages`), safeParsed as a whole by the preview. */
|
|
@@ -178,8 +182,253 @@ export declare const formPages: z.ZodArray<z.ZodObject<{
|
|
|
178
182
|
review: "review";
|
|
179
183
|
}>>;
|
|
180
184
|
title: z.ZodString;
|
|
185
|
+
button_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
181
186
|
}, z.core.$strict>>;
|
|
182
187
|
export type FormPages = z.infer<typeof formPages>;
|
|
188
|
+
/**
|
|
189
|
+
* One form field's platform-drawn words (`wording.form.fields[name]`): `choice_label` is
|
|
190
|
+
* the placeholder of the field's picker (its empty-state prompt).
|
|
191
|
+
*/
|
|
192
|
+
export declare const fieldWording: z.ZodObject<{
|
|
193
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export type FieldWording = z.infer<typeof fieldWording>;
|
|
196
|
+
/**
|
|
197
|
+
* A form's platform-drawn chrome (`wording.form`): `title` heads the form surface;
|
|
198
|
+
* `open`/`cancel` label the buttons that open and close it; `back` the button that returns
|
|
199
|
+
* to the previous step; `submit` the terminal button of a form with no pages;
|
|
200
|
+
* `review_empty` the review step's line before anything is filled; `fields` carries
|
|
201
|
+
* per-field words keyed by property name. The inbox draws the form inline, so it reads
|
|
202
|
+
* `back`, `submit` and `fields`; `title`/`open`/`cancel`/`review_empty` parse unused.
|
|
203
|
+
*/
|
|
204
|
+
export declare const formWording: z.ZodObject<{
|
|
205
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
cancel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
|
+
back: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
review_empty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
212
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
}, z.core.$strip>>>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
export type FormWording = z.infer<typeof formWording>;
|
|
216
|
+
/**
|
|
217
|
+
* A choice list's platform-drawn words (`wording.choice`): `label` is the word on the
|
|
218
|
+
* control that presents the list, `reply_hint` the line under a numbered-text list, and
|
|
219
|
+
* `group_label` the accessible name of a flat group of option buttons. The inbox reads
|
|
220
|
+
* `label` (the select field's label and picker placeholder); the rest parse unused.
|
|
221
|
+
*/
|
|
222
|
+
export declare const choiceWording: z.ZodObject<{
|
|
223
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
group_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type ChoiceWording = z.infer<typeof choiceWording>;
|
|
228
|
+
/**
|
|
229
|
+
* A non-form question's answer controls and refusal sentences (`wording.answer`): `open`
|
|
230
|
+
* labels the control that opens a `confirm`/`external` question's answer page, `confirm`
|
|
231
|
+
* its affirmative control, `decline` its negative control, `submit` the button that sends a
|
|
232
|
+
* typed or picked answer, `reply_hint` the hint in an empty reply input. `rejected` /
|
|
233
|
+
* `rejected_final` are the sentences the end user reads when an answer is refused; the
|
|
234
|
+
* inbox draws neither (web-only). The inbox reads `open`, `confirm`, `decline`, `submit`
|
|
235
|
+
* and `reply_hint` where it draws the matching control.
|
|
236
|
+
*/
|
|
237
|
+
export declare const answerWording: z.ZodObject<{
|
|
238
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
decline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
rejected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
rejected_final: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export type AnswerWording = z.infer<typeof answerWording>;
|
|
247
|
+
/**
|
|
248
|
+
* The lines of a delivery message (`wording.lines`): `answer_link` carries the tappable
|
|
249
|
+
* answer link, `deadline` names the deadline, `reply` tells the end user how to reply, and
|
|
250
|
+
* `options` lists the choices. Drawn by the chat channels; the inbox draws none of them.
|
|
251
|
+
*/
|
|
252
|
+
export declare const lineWording: z.ZodObject<{
|
|
253
|
+
answer_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
255
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export type LineWording = z.infer<typeof lineWording>;
|
|
259
|
+
/** The heading and sentence of one platform-drawn answer page (`wording.answer_page.*`). */
|
|
260
|
+
export declare const pageCopy: z.ZodObject<{
|
|
261
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export type PageCopy = z.infer<typeof pageCopy>;
|
|
265
|
+
/**
|
|
266
|
+
* The form page's own sentences (`wording.answer_page.form`): `failed` when a send did not
|
|
267
|
+
* land, `network_error` when the browser could not reach the server, `update_failed` when a
|
|
268
|
+
* reacting form could not refresh, `choose_one` for an empty required multi-choice, and
|
|
269
|
+
* `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
|
|
270
|
+
* none of them.
|
|
271
|
+
*/
|
|
272
|
+
export declare const formPageWording: z.ZodObject<{
|
|
273
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
export type FormPageWording = z.infer<typeof formPageWording>;
|
|
280
|
+
/**
|
|
281
|
+
* The pages a question's link opens (`wording.answer_page`): `confirm` the confirm page's
|
|
282
|
+
* copy, `done` the already-answered page's, `awaiting` the reply-on-the-channel page's,
|
|
283
|
+
* `submitted` the form page's post-submit copy, and `form` the form page's own
|
|
284
|
+
* validation/error sentences. Drawn by the callback pages; the inbox draws none of them.
|
|
285
|
+
*/
|
|
286
|
+
export declare const answerPageWording: z.ZodObject<{
|
|
287
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
288
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
292
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
awaiting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
submitted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
300
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>>>;
|
|
303
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
304
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type AnswerPageWording = z.infer<typeof answerPageWording>;
|
|
312
|
+
/**
|
|
313
|
+
* A live question card's countdown words (`wording.status.countdown`): `seconds_left` the
|
|
314
|
+
* visible plural line, `one_second_left` the visible singular, and `under_minute` /
|
|
315
|
+
* `under_half_minute` / `under_ten_seconds` the spoken lines at the three thresholds. Drawn
|
|
316
|
+
* by the web widget; the inbox draws no countdown.
|
|
317
|
+
*/
|
|
318
|
+
export declare const countdownWording: z.ZodObject<{
|
|
319
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export type CountdownWording = z.infer<typeof countdownWording>;
|
|
326
|
+
/**
|
|
327
|
+
* In-flight and settled status copy (`wording.status`): `sending` the screen-reader label
|
|
328
|
+
* while a send is in flight, `answered` / `expired` / `closed` the badges once a question
|
|
329
|
+
* settles, `sent` the badge after an ask-less form is submitted, `unavailable` the line
|
|
330
|
+
* when a form's door no longer resolves, and `countdown` the live-countdown words. Drawn by
|
|
331
|
+
* the web widget; the inbox draws none of them.
|
|
332
|
+
*/
|
|
333
|
+
export declare const statusWording: z.ZodObject<{
|
|
334
|
+
sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
answered: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
expired: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
closed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
sent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
countdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
341
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
export type StatusWording = z.infer<typeof statusWording>;
|
|
349
|
+
/**
|
|
350
|
+
* The one catalogue of a send's platform-drawn texts (`format_payload.wording`), grouped
|
|
351
|
+
* by what each word decorates: the form (`form`), the choice list (`choice`), a question's
|
|
352
|
+
* answer controls and refusal sentences (`answer`), the lines of the delivery message
|
|
353
|
+
* (`lines`), the pages a question's link opens (`answer_page`), and in-flight and settled
|
|
354
|
+
* status (`status`). A page's primary button is the one text not here — it is on the page
|
|
355
|
+
* (`pages[].button_label`). Every leaf is the sender's own words in the end-user's
|
|
356
|
+
* language; absent (or `null`), the surface shows its own word.
|
|
357
|
+
*/
|
|
358
|
+
export declare const wording: z.ZodObject<{
|
|
359
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
360
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
cancel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
back: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
review_empty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
367
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
|
+
}, z.core.$strip>>>>;
|
|
369
|
+
}, z.core.$strip>>>;
|
|
370
|
+
choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
371
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
|
+
group_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
|
+
}, z.core.$strip>>>;
|
|
375
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
376
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
decline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
rejected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
rejected_final: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
}, z.core.$strip>>>;
|
|
384
|
+
lines: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
385
|
+
answer_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
+
}, z.core.$strip>>>;
|
|
390
|
+
answer_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
391
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
392
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
394
|
+
}, z.core.$strip>>>;
|
|
395
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
396
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
397
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
+
}, z.core.$strip>>>;
|
|
399
|
+
awaiting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
400
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
}, z.core.$strip>>>;
|
|
403
|
+
submitted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
404
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
}, z.core.$strip>>>;
|
|
407
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
408
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
+
}, z.core.$strip>>>;
|
|
414
|
+
}, z.core.$strip>>>;
|
|
415
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
416
|
+
sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
+
answered: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
+
expired: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
419
|
+
closed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
|
+
sent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
countdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
423
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
}, z.core.$strip>>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type Wording = z.infer<typeof wording>;
|
|
183
432
|
/**
|
|
184
433
|
* When a `form` reacts while it is open (`format_payload.reactions`): the plain,
|
|
185
434
|
* renderer-readable description of WHEN the form calls its reaction handler. Absent ⇒ a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../../src/schemas/interactions.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,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CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -65,12 +65,168 @@ export const formPageKind = openapi.formPage.shape.kind.unwrap();
|
|
|
65
65
|
* instead of, for a review page) its input fields; it defaults to empty, so a page that
|
|
66
66
|
* carries none renders exactly as before. `kind` marks a `review` page — a terminal
|
|
67
67
|
* summary step that shows the readback of entered values and the confirm/submit footer
|
|
68
|
-
* and carries no new input fields; it defaults to `input`.
|
|
68
|
+
* and carries no new input fields; it defaults to `input`. `button_label` is the text of
|
|
69
|
+
* the page's primary button — the one that advances from an input page, or submits from
|
|
70
|
+
* the last — in the sender's words and the end-user's language; absent (`null`), the
|
|
71
|
+
* surface shows its own generic word ("Next"/"Submit"/"Confirm"). All additive: an older
|
|
69
72
|
* payload ({title, fields}) parses unchanged.
|
|
70
73
|
*/
|
|
71
|
-
export const formPage = openapi.formPage
|
|
74
|
+
export const formPage = openapi.formPage.extend({
|
|
75
|
+
button_label: z.string().nullable().default(null),
|
|
76
|
+
});
|
|
72
77
|
/** The `form` pages list (`format_payload.pages`), safeParsed as a whole by the preview. */
|
|
73
78
|
export const formPages = z.array(formPage);
|
|
79
|
+
// The one catalogue of a send's platform-drawn texts (`format_payload.wording`): a
|
|
80
|
+
// question's or a notification's buttons, headings, input hints, message lines,
|
|
81
|
+
// answer-page sentences, refusal sentences, settled-card badges and screen-reader labels,
|
|
82
|
+
// grouped into six chapters. Every leaf is the sender's own words in the end-user's
|
|
83
|
+
// language; absent (or `null`), the surface shows its own generic word. Mirrors the
|
|
84
|
+
// skeleton's `Wording` model member-for-member. A renderer safeParses this off the loose
|
|
85
|
+
// `format_payload`, so a malformed shape falls back to the default words rather than
|
|
86
|
+
// crashing the card (the labels are chrome, never an answer). The Studio inbox draws only
|
|
87
|
+
// the subset of members it has a control for; the rest parse and are ignored.
|
|
88
|
+
/**
|
|
89
|
+
* One form field's platform-drawn words (`wording.form.fields[name]`): `choice_label` is
|
|
90
|
+
* the placeholder of the field's picker (its empty-state prompt).
|
|
91
|
+
*/
|
|
92
|
+
export const fieldWording = z.object({
|
|
93
|
+
choice_label: z.string().nullish(),
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* A form's platform-drawn chrome (`wording.form`): `title` heads the form surface;
|
|
97
|
+
* `open`/`cancel` label the buttons that open and close it; `back` the button that returns
|
|
98
|
+
* to the previous step; `submit` the terminal button of a form with no pages;
|
|
99
|
+
* `review_empty` the review step's line before anything is filled; `fields` carries
|
|
100
|
+
* per-field words keyed by property name. The inbox draws the form inline, so it reads
|
|
101
|
+
* `back`, `submit` and `fields`; `title`/`open`/`cancel`/`review_empty` parse unused.
|
|
102
|
+
*/
|
|
103
|
+
export const formWording = z.object({
|
|
104
|
+
title: z.string().nullish(),
|
|
105
|
+
open: z.string().nullish(),
|
|
106
|
+
cancel: z.string().nullish(),
|
|
107
|
+
back: z.string().nullish(),
|
|
108
|
+
submit: z.string().nullish(),
|
|
109
|
+
review_empty: z.string().nullish(),
|
|
110
|
+
fields: z.record(z.string(), fieldWording).nullish(),
|
|
111
|
+
});
|
|
112
|
+
/**
|
|
113
|
+
* A choice list's platform-drawn words (`wording.choice`): `label` is the word on the
|
|
114
|
+
* control that presents the list, `reply_hint` the line under a numbered-text list, and
|
|
115
|
+
* `group_label` the accessible name of a flat group of option buttons. The inbox reads
|
|
116
|
+
* `label` (the select field's label and picker placeholder); the rest parse unused.
|
|
117
|
+
*/
|
|
118
|
+
export const choiceWording = z.object({
|
|
119
|
+
label: z.string().nullish(),
|
|
120
|
+
reply_hint: z.string().nullish(),
|
|
121
|
+
group_label: z.string().nullish(),
|
|
122
|
+
});
|
|
123
|
+
/**
|
|
124
|
+
* A non-form question's answer controls and refusal sentences (`wording.answer`): `open`
|
|
125
|
+
* labels the control that opens a `confirm`/`external` question's answer page, `confirm`
|
|
126
|
+
* its affirmative control, `decline` its negative control, `submit` the button that sends a
|
|
127
|
+
* typed or picked answer, `reply_hint` the hint in an empty reply input. `rejected` /
|
|
128
|
+
* `rejected_final` are the sentences the end user reads when an answer is refused; the
|
|
129
|
+
* inbox draws neither (web-only). The inbox reads `open`, `confirm`, `decline`, `submit`
|
|
130
|
+
* and `reply_hint` where it draws the matching control.
|
|
131
|
+
*/
|
|
132
|
+
export const answerWording = z.object({
|
|
133
|
+
open: z.string().nullish(),
|
|
134
|
+
confirm: z.string().nullish(),
|
|
135
|
+
decline: z.string().nullish(),
|
|
136
|
+
submit: z.string().nullish(),
|
|
137
|
+
reply_hint: z.string().nullish(),
|
|
138
|
+
rejected: z.string().nullish(),
|
|
139
|
+
rejected_final: z.string().nullish(),
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* The lines of a delivery message (`wording.lines`): `answer_link` carries the tappable
|
|
143
|
+
* answer link, `deadline` names the deadline, `reply` tells the end user how to reply, and
|
|
144
|
+
* `options` lists the choices. Drawn by the chat channels; the inbox draws none of them.
|
|
145
|
+
*/
|
|
146
|
+
export const lineWording = z.object({
|
|
147
|
+
answer_link: z.string().nullish(),
|
|
148
|
+
deadline: z.string().nullish(),
|
|
149
|
+
reply: z.string().nullish(),
|
|
150
|
+
options: z.string().nullish(),
|
|
151
|
+
});
|
|
152
|
+
/** The heading and sentence of one platform-drawn answer page (`wording.answer_page.*`). */
|
|
153
|
+
export const pageCopy = z.object({
|
|
154
|
+
heading: z.string().nullish(),
|
|
155
|
+
text: z.string().nullish(),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* The form page's own sentences (`wording.answer_page.form`): `failed` when a send did not
|
|
159
|
+
* land, `network_error` when the browser could not reach the server, `update_failed` when a
|
|
160
|
+
* reacting form could not refresh, `choose_one` for an empty required multi-choice, and
|
|
161
|
+
* `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
|
|
162
|
+
* none of them.
|
|
163
|
+
*/
|
|
164
|
+
export const formPageWording = z.object({
|
|
165
|
+
failed: z.string().nullish(),
|
|
166
|
+
network_error: z.string().nullish(),
|
|
167
|
+
update_failed: z.string().nullish(),
|
|
168
|
+
choose_one: z.string().nullish(),
|
|
169
|
+
date_unavailable: z.string().nullish(),
|
|
170
|
+
});
|
|
171
|
+
/**
|
|
172
|
+
* The pages a question's link opens (`wording.answer_page`): `confirm` the confirm page's
|
|
173
|
+
* copy, `done` the already-answered page's, `awaiting` the reply-on-the-channel page's,
|
|
174
|
+
* `submitted` the form page's post-submit copy, and `form` the form page's own
|
|
175
|
+
* validation/error sentences. Drawn by the callback pages; the inbox draws none of them.
|
|
176
|
+
*/
|
|
177
|
+
export const answerPageWording = z.object({
|
|
178
|
+
confirm: pageCopy.nullish(),
|
|
179
|
+
done: pageCopy.nullish(),
|
|
180
|
+
awaiting: pageCopy.nullish(),
|
|
181
|
+
submitted: pageCopy.nullish(),
|
|
182
|
+
form: formPageWording.nullish(),
|
|
183
|
+
});
|
|
184
|
+
/**
|
|
185
|
+
* A live question card's countdown words (`wording.status.countdown`): `seconds_left` the
|
|
186
|
+
* visible plural line, `one_second_left` the visible singular, and `under_minute` /
|
|
187
|
+
* `under_half_minute` / `under_ten_seconds` the spoken lines at the three thresholds. Drawn
|
|
188
|
+
* by the web widget; the inbox draws no countdown.
|
|
189
|
+
*/
|
|
190
|
+
export const countdownWording = z.object({
|
|
191
|
+
seconds_left: z.string().nullish(),
|
|
192
|
+
one_second_left: z.string().nullish(),
|
|
193
|
+
under_minute: z.string().nullish(),
|
|
194
|
+
under_half_minute: z.string().nullish(),
|
|
195
|
+
under_ten_seconds: z.string().nullish(),
|
|
196
|
+
});
|
|
197
|
+
/**
|
|
198
|
+
* In-flight and settled status copy (`wording.status`): `sending` the screen-reader label
|
|
199
|
+
* while a send is in flight, `answered` / `expired` / `closed` the badges once a question
|
|
200
|
+
* settles, `sent` the badge after an ask-less form is submitted, `unavailable` the line
|
|
201
|
+
* when a form's door no longer resolves, and `countdown` the live-countdown words. Drawn by
|
|
202
|
+
* the web widget; the inbox draws none of them.
|
|
203
|
+
*/
|
|
204
|
+
export const statusWording = z.object({
|
|
205
|
+
sending: z.string().nullish(),
|
|
206
|
+
answered: z.string().nullish(),
|
|
207
|
+
expired: z.string().nullish(),
|
|
208
|
+
closed: z.string().nullish(),
|
|
209
|
+
sent: z.string().nullish(),
|
|
210
|
+
unavailable: z.string().nullish(),
|
|
211
|
+
countdown: countdownWording.nullish(),
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* The one catalogue of a send's platform-drawn texts (`format_payload.wording`), grouped
|
|
215
|
+
* by what each word decorates: the form (`form`), the choice list (`choice`), a question's
|
|
216
|
+
* answer controls and refusal sentences (`answer`), the lines of the delivery message
|
|
217
|
+
* (`lines`), the pages a question's link opens (`answer_page`), and in-flight and settled
|
|
218
|
+
* status (`status`). A page's primary button is the one text not here — it is on the page
|
|
219
|
+
* (`pages[].button_label`). Every leaf is the sender's own words in the end-user's
|
|
220
|
+
* language; absent (or `null`), the surface shows its own word.
|
|
221
|
+
*/
|
|
222
|
+
export const wording = z.object({
|
|
223
|
+
form: formWording.nullish(),
|
|
224
|
+
choice: choiceWording.nullish(),
|
|
225
|
+
answer: answerWording.nullish(),
|
|
226
|
+
lines: lineWording.nullish(),
|
|
227
|
+
answer_page: answerPageWording.nullish(),
|
|
228
|
+
status: statusWording.nullish(),
|
|
229
|
+
});
|
|
74
230
|
// The form reactions and the form update are hand-written: the spec carries them inside an
|
|
75
231
|
// open `format_payload` and an open reaction `update`.
|
|
76
232
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.js","sourceRoot":"","sources":["../../src/schemas/interactions.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAEtD,iEAAiE;AACjE,iFAAiF;AACjF,+EAA+E;AAC/E,kFAAkF;AAElF,MAAM,CAAC,MAAM,YAAY,GAAG,OAA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ied: "applied";
|
|
115
114
|
failed: "failed";
|
|
115
|
+
applied: "applied";
|
|
116
116
|
missing: "missing";
|
|
117
117
|
departed: "departed";
|
|
118
118
|
timed_out: "timed_out";
|
|
@@ -133,8 +133,8 @@ export declare const reloadConfigResult: z.ZodObject<{
|
|
|
133
133
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
134
|
name: z.ZodString;
|
|
135
135
|
outcome: z.ZodEnum<{
|
|
136
|
-
applied: "applied";
|
|
137
136
|
failed: "failed";
|
|
137
|
+
applied: "applied";
|
|
138
138
|
missing: "missing";
|
|
139
139
|
departed: "departed";
|
|
140
140
|
timed_out: "timed_out";
|
|
@@ -117,8 +117,8 @@ export declare const profileApplyResponse: z.ZodObject<{
|
|
|
117
117
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
outcome: z.ZodEnum<{
|
|
120
|
-
applied: "applied";
|
|
121
120
|
failed: "failed";
|
|
121
|
+
applied: "applied";
|
|
122
122
|
missing: "missing";
|
|
123
123
|
departed: "departed";
|
|
124
124
|
timed_out: "timed_out";
|
|
@@ -139,8 +139,8 @@ export declare const profileApplyResponse: z.ZodObject<{
|
|
|
139
139
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
140
140
|
name: z.ZodString;
|
|
141
141
|
outcome: z.ZodEnum<{
|
|
142
|
-
applied: "applied";
|
|
143
142
|
failed: "failed";
|
|
143
|
+
applied: "applied";
|
|
144
144
|
missing: "missing";
|
|
145
145
|
departed: "departed";
|
|
146
146
|
timed_out: "timed_out";
|
package/dist/schemas/states.d.ts
CHANGED
|
@@ -800,8 +800,8 @@ export declare const pendingSaveRetried: z.ZodObject<{
|
|
|
800
800
|
last_error: z.ZodNullable<z.ZodString>;
|
|
801
801
|
status: z.ZodEnum<{
|
|
802
802
|
running: "running";
|
|
803
|
-
applied: "applied";
|
|
804
803
|
failed: "failed";
|
|
804
|
+
applied: "applied";
|
|
805
805
|
calls: "calls";
|
|
806
806
|
pending: "pending";
|
|
807
807
|
}>;
|
|
@@ -69,8 +69,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
69
69
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
70
70
|
name: z.ZodString;
|
|
71
71
|
outcome: z.ZodEnum<{
|
|
72
|
-
applied: "applied";
|
|
73
72
|
failed: "failed";
|
|
73
|
+
applied: "applied";
|
|
74
74
|
missing: "missing";
|
|
75
75
|
departed: "departed";
|
|
76
76
|
timed_out: "timed_out";
|
|
@@ -91,8 +91,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
91
91
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
name: z.ZodString;
|
|
93
93
|
outcome: z.ZodEnum<{
|
|
94
|
-
applied: "applied";
|
|
95
94
|
failed: "failed";
|
|
95
|
+
applied: "applied";
|
|
96
96
|
missing: "missing";
|
|
97
97
|
departed: "departed";
|
|
98
98
|
timed_out: "timed_out";
|
|
@@ -139,8 +139,8 @@ export declare const mcpReloadResult: z.ZodObject<{
|
|
|
139
139
|
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
140
140
|
name: z.ZodString;
|
|
141
141
|
outcome: z.ZodEnum<{
|
|
142
|
-
applied: "applied";
|
|
143
142
|
failed: "failed";
|
|
143
|
+
applied: "applied";
|
|
144
144
|
missing: "missing";
|
|
145
145
|
departed: "departed";
|
|
146
146
|
timed_out: "timed_out";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"description": "Typed client for the tai42-skeleton HTTP API.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "tai42 <oss@tai42.ai>",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@microsoft/api-extractor": "7.59.2",
|
|
26
26
|
"@types/node": "^22.10.5",
|
|
27
|
-
"@vitest/coverage-v8": "^5.0.
|
|
27
|
+
"@vitest/coverage-v8": "^5.0.4",
|
|
28
28
|
"json-schema-to-zod": "2.8.1",
|
|
29
|
-
"vitest": "^5.0.
|
|
29
|
+
"vitest": "^5.0.4"
|
|
30
30
|
},
|
|
31
31
|
"main": "./dist/index.js",
|
|
32
32
|
"types": "./dist/index.d.ts",
|