@tai42/api-client 23.0.0 → 25.0.0
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/conversations-client.d.ts +190 -20
- package/dist/client/conversations-client.d.ts.map +1 -1
- package/dist/client/index.d.ts +197 -27
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/marketplace-client.d.ts +3 -3
- package/dist/client/states-client.d.ts +2 -2
- package/dist/client/tools-client.d.ts +2 -2
- package/dist/generated/api-routes.d.ts +12 -0
- package/dist/generated/api-routes.d.ts.map +1 -1
- package/dist/generated/api-routes.js +3 -0
- package/dist/generated/api-routes.js.map +1 -1
- package/dist/generated/openapi-schemas.d.ts +1090 -72
- package/dist/generated/openapi-schemas.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.js +29 -16
- package/dist/generated/openapi-schemas.js.map +1 -1
- package/dist/generated/served-schemas.d.ts +537 -75
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +504 -83
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/schemas/connectors.d.ts +4 -4
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/conversations.d.ts +360 -23
- package/dist/schemas/conversations.d.ts.map +1 -1
- package/dist/schemas/conversations.js +24 -9
- package/dist/schemas/conversations.js.map +1 -1
- package/dist/schemas/interactions.d.ts +47 -9
- package/dist/schemas/interactions.d.ts.map +1 -1
- package/dist/schemas/interactions.js +28 -7
- package/dist/schemas/interactions.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +5 -5
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/marketplace.js +5 -7
- package/dist/schemas/marketplace.js.map +1 -1
- package/dist/schemas/presets.d.ts +2 -2
- package/dist/schemas/served.d.ts +494 -73
- package/dist/schemas/served.d.ts.map +1 -1
- package/dist/schemas/states.d.ts +4 -4
- package/dist/schemas/tools.d.ts +4 -4
- package/dist/tool-runs.d.ts +2 -2
- package/package.json +1 -1
- package/src/generated/api-routes.ts +3 -0
- package/src/generated/openapi-schemas.ts +49 -16
- package/src/generated/served-schemas.ts +506 -83
- package/src/schemas/conversations.ts +24 -9
- package/src/schemas/interactions.ts +28 -7
- package/src/schemas/marketplace.ts +5 -7
|
@@ -34,6 +34,12 @@ export type ConversationMode = z.infer<typeof conversationMode>;
|
|
|
34
34
|
* never send. `merged` and `superseded` are the overlap-policy outcomes: this
|
|
35
35
|
* record's text was carried into (`merged`) or dropped in favour of (`superseded`)
|
|
36
36
|
* a later turn, named by `successor_id`; both are terminal and never send.
|
|
37
|
+
* A send record starts `sending` once it is written and its send has begun, and
|
|
38
|
+
* becomes `outcome_unknown` when the send never reported an outcome (it passed its
|
|
39
|
+
* bound, it was cancelled mid-call, or the process stopped), so the message may or may
|
|
40
|
+
* not have reached the participant; `outcome_unknown` is terminal, never re-sent, and
|
|
41
|
+
* surfaced as loudly as `failed`. A `sending` record is not in the thread index, so no transcript, thread
|
|
42
|
+
* list or search ever shows one.
|
|
37
43
|
*/
|
|
38
44
|
export const conversationDeliveryStatus = openapi.deliveryStatus;
|
|
39
45
|
export type ConversationDeliveryStatus = z.infer<typeof conversationDeliveryStatus>;
|
|
@@ -46,8 +52,10 @@ export type ConversationAnswerStatus = z.infer<typeof conversationAnswerStatus>;
|
|
|
46
52
|
|
|
47
53
|
/**
|
|
48
54
|
* Who authored a record's outgoing side. `client` is the ordinary turn the flow
|
|
49
|
-
* answered; `operator` is a message a human sent into the thread
|
|
50
|
-
*
|
|
55
|
+
* answered; `operator` is a message a human sent into the thread; `send` is a
|
|
56
|
+
* message the platform sent on its own (a notification, an ask, a notice), named
|
|
57
|
+
* by `sent_by`. An `operator` or `send` record answers no message: its text rides
|
|
58
|
+
* `answer` and its `inbound_text` is empty.
|
|
51
59
|
*/
|
|
52
60
|
export const conversationRecordOrigin = openapi.conversationRecordView.shape.origin;
|
|
53
61
|
export type ConversationRecordOrigin = z.infer<typeof conversationRecordOrigin>;
|
|
@@ -90,13 +98,20 @@ export const conversationThreadsPage = openapi.threadSummaryEnvelope;
|
|
|
90
98
|
export type ConversationThreadsPage = z.infer<typeof conversationThreadsPage>;
|
|
91
99
|
|
|
92
100
|
/**
|
|
93
|
-
* One exchange: the visitor's `inbound_text`
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
101
|
+
* One exchange: the visitor's `inbound_text` and the agent's `answer`, plus where
|
|
102
|
+
* that answer's delivery stands. An `operator` or `send` record answers no message,
|
|
103
|
+
* so its `inbound_text` is empty and its text rides `answer`. A send record names
|
|
104
|
+
* what sent it in `sent_by`, and carries `turn_message_id` when it was sent during a
|
|
105
|
+
* turn to that turn's own participant; an ask's send record carries `ask`, and the
|
|
106
|
+
* participant's reply over the channel in `ask_reply`, whose `answer` is `null` for a
|
|
107
|
+
* sensitive ask. `inbound_reply_to` and `ask_reply.reply_to` name the earlier message
|
|
108
|
+
* the visitor's message or the reply quotes, with its text when the thread holds it.
|
|
109
|
+
* `successor_id` names the later turn a `merged` or `superseded` record was folded
|
|
110
|
+
* into, `null` on every other outcome. The delivery bookkeeping fields (`channel`,
|
|
111
|
+
* `our_identity`, `provider_message_id`, `callback_url`, `error`, `attempts`, the
|
|
112
|
+
* per-part `sends`, every `ask` field but `sensitive` and every `ask_reply` field but
|
|
113
|
+
* `answer` and `reply_to`) are ADMIN ONLY — the same door serves a caller-scoped
|
|
114
|
+
* projection that withholds them, read here as `null` (`sends` as an empty list).
|
|
100
115
|
*/
|
|
101
116
|
export const conversationMessage = openapi.conversationRecordView;
|
|
102
117
|
export type ConversationMessage = z.infer<typeof conversationMessage>;
|
|
@@ -119,11 +119,26 @@ export type FormPages = z.infer<typeof formPages>;
|
|
|
119
119
|
* One form field's platform-drawn words (`wording.form.fields[name]`): `choice_label` is
|
|
120
120
|
* the placeholder of the field's picker (its empty-state prompt); `invalid` is the
|
|
121
121
|
* sentence shown when the field's value does not have its declared shape (never for a
|
|
122
|
-
* missing required value)
|
|
122
|
+
* missing required value: that is `required`); `required` is the sentence shown when the
|
|
123
|
+
* field's required value is missing (at the field or anywhere inside it); `true_label` /
|
|
124
|
+
* `false_label` are a boolean field's words for its two values; `length_hint` is the hint
|
|
125
|
+
* under a text control with a maximum length (its `{max}` token is the maximum);
|
|
126
|
+
* `add_item` / `remove_item` / `item_label` / `no_items` are a free-text list field's add
|
|
127
|
+
* button, each item's remove button, each item's label (its `{n}` token is the item's
|
|
128
|
+
* number) and its empty-list line. The inbox reads `choice_label`, `invalid`, `required`,
|
|
129
|
+
* the boolean words (in the readback) and the list words; `length_hint` parses unused.
|
|
123
130
|
*/
|
|
124
131
|
export const fieldWording = z.object({
|
|
125
132
|
choice_label: z.string().nullish(),
|
|
126
133
|
invalid: z.string().nullish(),
|
|
134
|
+
required: z.string().nullish(),
|
|
135
|
+
true_label: z.string().nullish(),
|
|
136
|
+
false_label: z.string().nullish(),
|
|
137
|
+
length_hint: z.string().nullish(),
|
|
138
|
+
add_item: z.string().nullish(),
|
|
139
|
+
remove_item: z.string().nullish(),
|
|
140
|
+
item_label: z.string().nullish(),
|
|
141
|
+
no_items: z.string().nullish(),
|
|
127
142
|
});
|
|
128
143
|
export type FieldWording = z.infer<typeof fieldWording>;
|
|
129
144
|
|
|
@@ -131,9 +146,14 @@ export type FieldWording = z.infer<typeof fieldWording>;
|
|
|
131
146
|
* A form's platform-drawn chrome (`wording.form`): `title` heads the form surface;
|
|
132
147
|
* `open`/`cancel` label the buttons that open and close it; `back` the button that returns
|
|
133
148
|
* to the previous step; `submit` the terminal button of a form with no pages;
|
|
134
|
-
* `review_empty` the review step's line before anything is filled; `
|
|
149
|
+
* `review_empty` the review step's line before anything is filled; `error_line` the one
|
|
150
|
+
* line shown above a refused form in place of a per-field summary; `update_failed` the
|
|
151
|
+
* sentence shown when the form could not update (its optional `{reason}` token is the
|
|
152
|
+
* reaction door's reason); `step_progress` a stepped form's progress line (its `{step}` and
|
|
153
|
+
* `{steps}` tokens are the current step's number and the step count); `fields` carries
|
|
135
154
|
* per-field words keyed by property name. The inbox draws the form inline, so it reads
|
|
136
|
-
* `back`, `submit` and `fields`; `title`/`open`/`cancel
|
|
155
|
+
* `back`, `submit`, `update_failed`, `step_progress` and `fields`; `title`/`open`/`cancel`/
|
|
156
|
+
* `review_empty`/`error_line` parse unused (the inbox shows each error at its field).
|
|
137
157
|
*/
|
|
138
158
|
export const formWording = z.object({
|
|
139
159
|
title: z.string().nullish(),
|
|
@@ -142,6 +162,9 @@ export const formWording = z.object({
|
|
|
142
162
|
back: z.string().nullish(),
|
|
143
163
|
submit: z.string().nullish(),
|
|
144
164
|
review_empty: z.string().nullish(),
|
|
165
|
+
error_line: z.string().nullish(),
|
|
166
|
+
update_failed: z.string().nullish(),
|
|
167
|
+
step_progress: z.string().nullish(),
|
|
145
168
|
fields: z.record(z.string(), fieldWording).nullish(),
|
|
146
169
|
});
|
|
147
170
|
export type FormWording = z.infer<typeof formWording>;
|
|
@@ -201,15 +224,13 @@ export type PageCopy = z.infer<typeof pageCopy>;
|
|
|
201
224
|
|
|
202
225
|
/**
|
|
203
226
|
* The form page's own sentences (`wording.answer_page.form`): `failed` when a send did not
|
|
204
|
-
* land, `network_error` when the browser could not reach the server, `
|
|
205
|
-
*
|
|
206
|
-
* `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
|
|
227
|
+
* land, `network_error` when the browser could not reach the server, `choose_one` for an
|
|
228
|
+
* empty required multi-choice, and `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
|
|
207
229
|
* none of them.
|
|
208
230
|
*/
|
|
209
231
|
export const formPageWording = z.object({
|
|
210
232
|
failed: z.string().nullish(),
|
|
211
233
|
network_error: z.string().nullish(),
|
|
212
|
-
update_failed: z.string().nullish(),
|
|
213
234
|
choose_one: z.string().nullish(),
|
|
214
235
|
date_unavailable: z.string().nullish(),
|
|
215
236
|
});
|
|
@@ -132,9 +132,8 @@ export const marketplaceSearchRow = z.object({
|
|
|
132
132
|
tags: z.array(z.string()),
|
|
133
133
|
trust_tier: z.string(),
|
|
134
134
|
pricing: z.string(),
|
|
135
|
-
// A display-only premium flag: a badge, never a payment surface.
|
|
136
|
-
|
|
137
|
-
premium: z.boolean().nullish(),
|
|
135
|
+
// A display-only premium flag: a badge, never a payment surface.
|
|
136
|
+
premium: z.boolean(),
|
|
138
137
|
latest_version: z.string().nullable(),
|
|
139
138
|
downloads: z.number(),
|
|
140
139
|
updated_at: z.string(),
|
|
@@ -209,9 +208,8 @@ export const marketplacePluginDetail = z.object({
|
|
|
209
208
|
icon_url: z.string().nullable(),
|
|
210
209
|
// Null for a descriptor listing (`source` `spec`): it names no package.
|
|
211
210
|
package: z.string().nullable(),
|
|
212
|
-
// The install-provenance vocabulary (`pypi` / `github` / `spec`).
|
|
213
|
-
|
|
214
|
-
source: marketplaceSource.nullish(),
|
|
211
|
+
// The install-provenance vocabulary (`pypi` / `github` / `spec`).
|
|
212
|
+
source: marketplaceSource,
|
|
215
213
|
description: z.string(),
|
|
216
214
|
readme_md: z.string().nullable(),
|
|
217
215
|
license: z.string().nullable(),
|
|
@@ -225,7 +223,7 @@ export const marketplacePluginDetail = z.object({
|
|
|
225
223
|
trust_tier: z.string(),
|
|
226
224
|
pricing: z.string(),
|
|
227
225
|
// A display-only premium flag: a badge, never a payment surface.
|
|
228
|
-
premium: z.boolean()
|
|
226
|
+
premium: z.boolean(),
|
|
229
227
|
downloads: z.number(),
|
|
230
228
|
latest: marketplaceLatestVersion.nullable(),
|
|
231
229
|
versions: z.array(marketplaceVersion),
|