@tai42/api-client 21.0.0 → 22.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/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export { apiPathPrefixes, apiRoutes, buildPath } from './generated/api-routes';
17
17
  export { API_KEY_HEADER } from './headers';
18
18
  export type { ApiConfig, RequestOptions } from './http';
19
19
  export { apiDownload, apiRequest, apiText } from './http';
20
- export type { AnswerFormat, ApiConversationRouteCreate, ApplyResult, AttachmentMediaItem, AttachmentMediaKind, AuthCapabilities, AuthRoute, BackendInfo, BackupDocument, BackupImportReport, BackupNewApiKeys, BackupSectionReport, ChannelConversationRouteCreate, Channels, ChannelTemplate, ClaimLinkCreated, CompletedOrigin, ConnectionView, ConnectorCategoryView, ConnectorRef, ConsumerLink, ConsumerRow, ConversationAnswerStatus, ConversationConfigDeleted, ConversationConfigs, ConversationConfigWritten, ConversationDeliveryStatus, ConversationDoor, ConversationFailedMessages, ConversationMessage, ConversationMessageSearchPage, ConversationMode, ConversationPersonDeleted, ConversationRecordOrigin, ConversationRoute, ConversationRouteCreate, ConversationRouteDeleted, ConversationRoutes, ConversationRouteView, ConversationRouteWritten, ConversationTargetKind, ConversationThread, ConversationThreadDeleted, ConversationThreadMessageSent, ConversationThreadMode, ConversationThreadModeState, ConversationThreadsPage, ConversationTranscriptPage, DashboardMetrics, DiscoveredServer, DisplayBlock, DisplayBlockKind, Extension, FleetOutcome, FleetReloadResult, FleetReportFanout, FleetResult, FleetWorker, FleetWorkerResult, FleetWorkers, FolderRecord, FormData, FormOption, FormPage, FormPageKind, FormPages, FormReactions, FormUpdate, FreshLife, GrantLevel, HeldPendingSave, HookList, HookParams, HookRegister, HookSubject, Interaction, InteractionAnswered, InteractionCancelled, InteractionMediaItem, InteractionReaction, InteractionsPage, InviteRow, InvokeMemberActionResult, KindStatus, LoginFormField, LoginMethod, LoginMethods, LoginResult, LogoutResult, ManifestMcpEntry, MarketplaceAdvisory, MarketplaceDelivery, MarketplaceInstalled, MarketplaceInstalledCompat, MarketplaceInstalledPlugin, MarketplaceInstallPreview, MarketplaceInstallResult, MarketplaceItem, MarketplaceLatestVersion, MarketplaceMountedRoute, MarketplacePluginDetail, MarketplacePreviewCollision, MarketplacePreviewItem, MarketplacePreviewPublicRoute, MarketplacePreviewRoute, MarketplaceRequiredEnvVar, MarketplaceRouteDecl, MarketplaceRoutesDecl, MarketplaceSearchGroup, MarketplaceSearchKind, MarketplaceSearchPage, MarketplaceSearchRow, MarketplaceSource, MarketplaceUninstallResult, MarketplaceUpgradeAllResult, MarketplaceUpgradeAllRow, MarketplaceVersion, McpEnvRef, McpEnvRefs, McpReloadResult, MediaKind, MemberActionCatalog, MemberActionDescriptor, MemberActionScope, MemberDirectory, MemberPrincipalState, MemberRow, MeProjection, Notification, Notifications, OAuthCompleteResult, ObservabilityCapabilities, ParkedCallerAsk, ParkedStatus, PatternEntry, PendingSave, PendingSaveRetried, PendingSavesPage, PendingSaveStatus, PolicyBody, PolicyVersion, PresetBody, PresetDetail, PresetExtensionElement, PresetRecord, PresetReferees, PresetRenamed, PresetValidation, PresetVersion, PresetVersionTags, PreviousProfileName, Principal, PrincipalKind, PrincipalRef, ProviderCatalogResponse, ProviderMutationResult, ProviderView, ReactionEvent, ReactionEventKind, RecordSearchPage, RecycleEntry, RecycleRoll, RecycleStop, ReloadConfigResult, RemoveProviderResult, ResolvedSpanValue, RoleAuditEvent, RoleBody, RoleGrants, RoleVersion, RoleVersions, RouteAction, RouteEntry, Run, RunAnswer, RunSpan, RunSpanOutline, RunTrace, RunTraceOutline, ScheduleCreate, ScheduleListRow, ScheduleRecord, ServedConstants, SettingsProfileName, SettingsSchema, SetupBody, SetupResult, SpanKind, StateAttach, StateAttached, StateAttachment, StateAttachmentUpdated, StateBinding, StateConsumers, StateDeclaration, StateDeclarationSaved, StateDetached, StateDetail, StateFoldReport, StateInjection, StateListItem, StateRecord, StateRegimeRule, StateRetentionPruned, StateStats, StateSubject, StateTemplateDocument, StateTemplateListItem, StateTemplateParameter, StateTemplateTrace, StateUpdate, StorageInfo, StorageResourceStat, StudioPluginListingEntry, SubjectPage, SubjectRow, SubMcpEntry, SubMcpMount, TargetConversationConfig, TemplateDeclarations, TemplatedText, TemplateJq, TemplateJqApplyResult, TemplateJqResult, TemplateReconcile, TokensPayload, ToolExtensions, ToolExtensionsApplyResult, ToolMediaResult, ToolMetaOverlay, ToolMetaRecord, ToolSchema, ToolTagEntry, TranscriptOrder, TriggerAuth, TriggerLinkCreated, TriggerLinkDeleted, TriggerLinkList, TriggerLinkRecord, ValidateConditionResult, VisitOutcome, WorkerKind, WorkerLastOp, WorkerState, WriteEntry, WritesPage, } from './schemas';
20
+ export type { AnswerFormat, AnswerPageWording, AnswerWording, ApiConversationRouteCreate, ApplyResult, AttachmentMediaItem, AttachmentMediaKind, AuthCapabilities, AuthRoute, BackendInfo, BackupDocument, BackupImportReport, BackupNewApiKeys, BackupSectionReport, ChannelConversationRouteCreate, Channels, ChannelTemplate, ChoiceWording, ClaimLinkCreated, CompletedOrigin, ConnectionView, ConnectorCategoryView, ConnectorRef, ConsumerLink, ConsumerRow, ConversationAnswerStatus, ConversationConfigDeleted, ConversationConfigs, ConversationConfigWritten, ConversationDeliveryStatus, ConversationDoor, ConversationFailedMessages, ConversationMessage, ConversationMessageSearchPage, ConversationMode, ConversationPersonDeleted, ConversationRecordOrigin, ConversationRoute, ConversationRouteCreate, ConversationRouteDeleted, ConversationRoutes, ConversationRouteView, ConversationRouteWritten, ConversationTargetKind, ConversationThread, ConversationThreadDeleted, ConversationThreadMessageSent, ConversationThreadMode, ConversationThreadModeState, ConversationThreadsPage, ConversationTranscriptPage, CountdownWording, DashboardMetrics, DiscoveredServer, DisplayBlock, DisplayBlockKind, Extension, FieldWording, FleetOutcome, FleetReloadResult, FleetReportFanout, FleetResult, FleetWorker, FleetWorkerResult, FleetWorkers, FolderRecord, FormData, FormOption, FormPage, FormPageKind, FormPages, FormReactions, FormUpdate, FormWording, FreshLife, GrantLevel, HeldPendingSave, HookList, HookParams, HookRegister, HookSubject, Interaction, InteractionAnswered, InteractionCancelled, InteractionMediaItem, InteractionReaction, InteractionsPage, InviteRow, InvokeMemberActionResult, KindStatus, LineWording, LoginFormField, LoginMethod, LoginMethods, LoginResult, LogoutResult, ManifestMcpEntry, MarketplaceAdvisory, MarketplaceDelivery, MarketplaceInstalled, MarketplaceInstalledCompat, MarketplaceInstalledPlugin, MarketplaceInstallPreview, MarketplaceInstallResult, MarketplaceItem, MarketplaceLatestVersion, MarketplaceMountedRoute, MarketplacePluginDetail, MarketplacePreviewCollision, MarketplacePreviewItem, MarketplacePreviewPublicRoute, MarketplacePreviewRoute, MarketplaceRequiredEnvVar, MarketplaceRouteDecl, MarketplaceRoutesDecl, MarketplaceSearchGroup, MarketplaceSearchKind, MarketplaceSearchPage, MarketplaceSearchRow, MarketplaceSource, MarketplaceUninstallResult, MarketplaceUpgradeAllResult, MarketplaceUpgradeAllRow, MarketplaceVersion, McpEnvRef, McpEnvRefs, McpReloadResult, MediaKind, MemberActionCatalog, MemberActionDescriptor, MemberActionScope, MemberDirectory, MemberPrincipalState, MemberRow, MeProjection, Notification, Notifications, OAuthCompleteResult, ObservabilityCapabilities, PageCopy, ParkedCallerAsk, ParkedStatus, PatternEntry, PendingSave, PendingSaveRetried, PendingSavesPage, PendingSaveStatus, PolicyBody, PolicyVersion, PresetBody, PresetDetail, PresetExtensionElement, PresetRecord, PresetReferees, PresetRenamed, PresetValidation, PresetVersion, PresetVersionTags, PreviousProfileName, Principal, PrincipalKind, PrincipalRef, ProviderCatalogResponse, ProviderMutationResult, ProviderView, ReactionEvent, ReactionEventKind, RecordSearchPage, RecycleEntry, RecycleRoll, RecycleStop, ReloadConfigResult, RemoveProviderResult, ResolvedSpanValue, RoleAuditEvent, RoleBody, RoleGrants, RoleVersion, RoleVersions, RouteAction, RouteEntry, Run, RunAnswer, RunSpan, RunSpanOutline, RunTrace, RunTraceOutline, ScheduleCreate, ScheduleListRow, ScheduleRecord, ServedConstants, SettingsProfileName, SettingsSchema, SetupBody, SetupResult, SpanKind, StateAttach, StateAttached, StateAttachment, StateAttachmentUpdated, StateBinding, StateConsumers, StateDeclaration, StateDeclarationSaved, StateDetached, StateDetail, StateFoldReport, StateInjection, StateListItem, StateRecord, StateRegimeRule, StateRetentionPruned, StateStats, StateSubject, StateTemplateDocument, StateTemplateListItem, StateTemplateParameter, StateTemplateTrace, StateUpdate, StatusWording, StorageInfo, StorageResourceStat, StudioPluginListingEntry, SubjectPage, SubjectRow, SubMcpEntry, SubMcpMount, TargetConversationConfig, TemplateDeclarations, TemplatedText, TemplateJq, TemplateJqApplyResult, TemplateJqResult, TemplateReconcile, TokensPayload, ToolExtensions, ToolExtensionsApplyResult, ToolMediaResult, ToolMetaOverlay, ToolMetaRecord, ToolSchema, ToolTagEntry, TranscriptOrder, TriggerAuth, TriggerLinkCreated, TriggerLinkDeleted, TriggerLinkList, TriggerLinkRecord, ValidateConditionResult, VisitOutcome, Wording, WorkerKind, WorkerLastOp, WorkerState, WriteEntry, WritesPage, } from './schemas';
21
21
  export { runAnswer, servedConstants, servedDocumentsJson, servedVectors } from './schemas';
22
22
  export * as schemas from './schemas';
23
23
  export type { SseFrame } from './sse';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACnF,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,8BAA8B,EAC9B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,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e,EACf,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,cAAc,EACd,UAAU,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,UAAU,GACX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EA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B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAwCnF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AASlB,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAyP1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAStD,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAwCnF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AASlB,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAmQ1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAStD,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
@@ -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`. Both are additive: an older
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,YAAY;;;;;;;EAAuB,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,mGAAmG;AACnG,eAAO,MAAM,SAAS;;;;;;EAAoB,CAAC;AAC3C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;kBAAoB,CAAC;AACtD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,wEAAwE;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,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`. Both are additive: an older
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,OAAO,CAAC,YAAY,CAAC;AAGjD,mGAAmG;AACnG,MAAM,CAAC,MAAM,SAAS,GAA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yB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AAGpG,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;IACzD,mFAAmF;IACnF,uFAAuF;IACvF,mFAAmF;IACnF,cAAc,EAAE,CAAC;SACd,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;SAC/B,OAAO,EAAE;SACT,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;CACrC,CAAC,CAAC;AAGH,iEAAiE;AACjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAGnE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAGpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tai42/api-client",
3
- "version": "21.0.0",
3
+ "version": "22.0.0",
4
4
  "description": "Typed client for the tai42-skeleton HTTP API.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "tai42 <oss@tai42.ai>",
package/src/index.ts CHANGED
@@ -76,6 +76,8 @@ export type { ApiConfig, RequestOptions } from './http';
76
76
  export { apiDownload, apiRequest, apiText } from './http';
77
77
  export type {
78
78
  AnswerFormat,
79
+ AnswerPageWording,
80
+ AnswerWording,
79
81
  ApiConversationRouteCreate,
80
82
  ApplyResult,
81
83
  AttachmentMediaItem,
@@ -90,6 +92,7 @@ export type {
90
92
  ChannelConversationRouteCreate,
91
93
  Channels,
92
94
  ChannelTemplate,
95
+ ChoiceWording,
93
96
  ClaimLinkCreated,
94
97
  CompletedOrigin,
95
98
  ConnectionView,
@@ -123,11 +126,13 @@ export type {
123
126
  ConversationThreadModeState,
124
127
  ConversationThreadsPage,
125
128
  ConversationTranscriptPage,
129
+ CountdownWording,
126
130
  DashboardMetrics,
127
131
  DiscoveredServer,
128
132
  DisplayBlock,
129
133
  DisplayBlockKind,
130
134
  Extension,
135
+ FieldWording,
131
136
  FleetOutcome,
132
137
  FleetReloadResult,
133
138
  FleetReportFanout,
@@ -143,6 +148,7 @@ export type {
143
148
  FormPages,
144
149
  FormReactions,
145
150
  FormUpdate,
151
+ FormWording,
146
152
  FreshLife,
147
153
  GrantLevel,
148
154
  HeldPendingSave,
@@ -159,6 +165,7 @@ export type {
159
165
  InviteRow,
160
166
  InvokeMemberActionResult,
161
167
  KindStatus,
168
+ LineWording,
162
169
  LoginFormField,
163
170
  LoginMethod,
164
171
  LoginMethods,
@@ -207,6 +214,7 @@ export type {
207
214
  Notifications,
208
215
  OAuthCompleteResult,
209
216
  ObservabilityCapabilities,
217
+ PageCopy,
210
218
  ParkedCallerAsk,
211
219
  ParkedStatus,
212
220
  PatternEntry,
@@ -286,6 +294,7 @@ export type {
286
294
  StateTemplateParameter,
287
295
  StateTemplateTrace,
288
296
  StateUpdate,
297
+ StatusWording,
289
298
  StorageInfo,
290
299
  StorageResourceStat,
291
300
  StudioPluginListingEntry,
@@ -316,6 +325,7 @@ export type {
316
325
  TriggerLinkRecord,
317
326
  ValidateConditionResult,
318
327
  VisitOutcome,
328
+ Wording,
319
329
  WorkerKind,
320
330
  WorkerLastOp,
321
331
  WorkerState,
@@ -88,16 +88,195 @@ export type FormPageKind = z.infer<typeof formPageKind>;
88
88
  * instead of, for a review page) its input fields; it defaults to empty, so a page that
89
89
  * carries none renders exactly as before. `kind` marks a `review` page — a terminal
90
90
  * summary step that shows the readback of entered values and the confirm/submit footer
91
- * and carries no new input fields; it defaults to `input`. Both are additive: an older
91
+ * and carries no new input fields; it defaults to `input`. `button_label` is the text of
92
+ * the page's primary button — the one that advances from an input page, or submits from
93
+ * the last — in the sender's words and the end-user's language; absent (`null`), the
94
+ * surface shows its own generic word ("Next"/"Submit"/"Confirm"). All additive: an older
92
95
  * payload ({title, fields}) parses unchanged.
93
96
  */
94
- export const formPage = openapi.formPage;
97
+ export const formPage = openapi.formPage.extend({
98
+ button_label: z.string().nullable().default(null),
99
+ });
95
100
  export type FormPage = z.infer<typeof formPage>;
96
101
 
97
102
  /** The `form` pages list (`format_payload.pages`), safeParsed as a whole by the preview. */
98
103
  export const formPages = z.array(formPage);
99
104
  export type FormPages = z.infer<typeof formPages>;
100
105
 
106
+ // The one catalogue of a send's platform-drawn texts (`format_payload.wording`): a
107
+ // question's or a notification's buttons, headings, input hints, message lines,
108
+ // answer-page sentences, refusal sentences, settled-card badges and screen-reader labels,
109
+ // grouped into six chapters. Every leaf is the sender's own words in the end-user's
110
+ // language; absent (or `null`), the surface shows its own generic word. Mirrors the
111
+ // skeleton's `Wording` model member-for-member. A renderer safeParses this off the loose
112
+ // `format_payload`, so a malformed shape falls back to the default words rather than
113
+ // crashing the card (the labels are chrome, never an answer). The Studio inbox draws only
114
+ // the subset of members it has a control for; the rest parse and are ignored.
115
+
116
+ /**
117
+ * One form field's platform-drawn words (`wording.form.fields[name]`): `choice_label` is
118
+ * the placeholder of the field's picker (its empty-state prompt).
119
+ */
120
+ export const fieldWording = z.object({
121
+ choice_label: z.string().nullish(),
122
+ });
123
+ export type FieldWording = z.infer<typeof fieldWording>;
124
+
125
+ /**
126
+ * A form's platform-drawn chrome (`wording.form`): `title` heads the form surface;
127
+ * `open`/`cancel` label the buttons that open and close it; `back` the button that returns
128
+ * to the previous step; `submit` the terminal button of a form with no pages;
129
+ * `review_empty` the review step's line before anything is filled; `fields` carries
130
+ * per-field words keyed by property name. The inbox draws the form inline, so it reads
131
+ * `back`, `submit` and `fields`; `title`/`open`/`cancel`/`review_empty` parse unused.
132
+ */
133
+ export const formWording = z.object({
134
+ title: z.string().nullish(),
135
+ open: z.string().nullish(),
136
+ cancel: z.string().nullish(),
137
+ back: z.string().nullish(),
138
+ submit: z.string().nullish(),
139
+ review_empty: z.string().nullish(),
140
+ fields: z.record(z.string(), fieldWording).nullish(),
141
+ });
142
+ export type FormWording = z.infer<typeof formWording>;
143
+
144
+ /**
145
+ * A choice list's platform-drawn words (`wording.choice`): `label` is the word on the
146
+ * control that presents the list, `reply_hint` the line under a numbered-text list, and
147
+ * `group_label` the accessible name of a flat group of option buttons. The inbox reads
148
+ * `label` (the select field's label and picker placeholder); the rest parse unused.
149
+ */
150
+ export const choiceWording = z.object({
151
+ label: z.string().nullish(),
152
+ reply_hint: z.string().nullish(),
153
+ group_label: z.string().nullish(),
154
+ });
155
+ export type ChoiceWording = z.infer<typeof choiceWording>;
156
+
157
+ /**
158
+ * A non-form question's answer controls and refusal sentences (`wording.answer`): `open`
159
+ * labels the control that opens a `confirm`/`external` question's answer page, `confirm`
160
+ * its affirmative control, `decline` its negative control, `submit` the button that sends a
161
+ * typed or picked answer, `reply_hint` the hint in an empty reply input. `rejected` /
162
+ * `rejected_final` are the sentences the end user reads when an answer is refused; the
163
+ * inbox draws neither (web-only). The inbox reads `open`, `confirm`, `decline`, `submit`
164
+ * and `reply_hint` where it draws the matching control.
165
+ */
166
+ export const answerWording = z.object({
167
+ open: z.string().nullish(),
168
+ confirm: z.string().nullish(),
169
+ decline: z.string().nullish(),
170
+ submit: z.string().nullish(),
171
+ reply_hint: z.string().nullish(),
172
+ rejected: z.string().nullish(),
173
+ rejected_final: z.string().nullish(),
174
+ });
175
+ export type AnswerWording = z.infer<typeof answerWording>;
176
+
177
+ /**
178
+ * The lines of a delivery message (`wording.lines`): `answer_link` carries the tappable
179
+ * answer link, `deadline` names the deadline, `reply` tells the end user how to reply, and
180
+ * `options` lists the choices. Drawn by the chat channels; the inbox draws none of them.
181
+ */
182
+ export const lineWording = z.object({
183
+ answer_link: z.string().nullish(),
184
+ deadline: z.string().nullish(),
185
+ reply: z.string().nullish(),
186
+ options: z.string().nullish(),
187
+ });
188
+ export type LineWording = z.infer<typeof lineWording>;
189
+
190
+ /** The heading and sentence of one platform-drawn answer page (`wording.answer_page.*`). */
191
+ export const pageCopy = z.object({
192
+ heading: z.string().nullish(),
193
+ text: z.string().nullish(),
194
+ });
195
+ export type PageCopy = z.infer<typeof pageCopy>;
196
+
197
+ /**
198
+ * The form page's own sentences (`wording.answer_page.form`): `failed` when a send did not
199
+ * land, `network_error` when the browser could not reach the server, `update_failed` when a
200
+ * reacting form could not refresh, `choose_one` for an empty required multi-choice, and
201
+ * `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
202
+ * none of them.
203
+ */
204
+ export const formPageWording = z.object({
205
+ failed: z.string().nullish(),
206
+ network_error: z.string().nullish(),
207
+ update_failed: z.string().nullish(),
208
+ choose_one: z.string().nullish(),
209
+ date_unavailable: z.string().nullish(),
210
+ });
211
+ export type FormPageWording = z.infer<typeof formPageWording>;
212
+
213
+ /**
214
+ * The pages a question's link opens (`wording.answer_page`): `confirm` the confirm page's
215
+ * copy, `done` the already-answered page's, `awaiting` the reply-on-the-channel page's,
216
+ * `submitted` the form page's post-submit copy, and `form` the form page's own
217
+ * validation/error sentences. Drawn by the callback pages; the inbox draws none of them.
218
+ */
219
+ export const answerPageWording = z.object({
220
+ confirm: pageCopy.nullish(),
221
+ done: pageCopy.nullish(),
222
+ awaiting: pageCopy.nullish(),
223
+ submitted: pageCopy.nullish(),
224
+ form: formPageWording.nullish(),
225
+ });
226
+ export type AnswerPageWording = z.infer<typeof answerPageWording>;
227
+
228
+ /**
229
+ * A live question card's countdown words (`wording.status.countdown`): `seconds_left` the
230
+ * visible plural line, `one_second_left` the visible singular, and `under_minute` /
231
+ * `under_half_minute` / `under_ten_seconds` the spoken lines at the three thresholds. Drawn
232
+ * by the web widget; the inbox draws no countdown.
233
+ */
234
+ export const countdownWording = z.object({
235
+ seconds_left: z.string().nullish(),
236
+ one_second_left: z.string().nullish(),
237
+ under_minute: z.string().nullish(),
238
+ under_half_minute: z.string().nullish(),
239
+ under_ten_seconds: z.string().nullish(),
240
+ });
241
+ export type CountdownWording = z.infer<typeof countdownWording>;
242
+
243
+ /**
244
+ * In-flight and settled status copy (`wording.status`): `sending` the screen-reader label
245
+ * while a send is in flight, `answered` / `expired` / `closed` the badges once a question
246
+ * settles, `sent` the badge after an ask-less form is submitted, `unavailable` the line
247
+ * when a form's door no longer resolves, and `countdown` the live-countdown words. Drawn by
248
+ * the web widget; the inbox draws none of them.
249
+ */
250
+ export const statusWording = z.object({
251
+ sending: z.string().nullish(),
252
+ answered: z.string().nullish(),
253
+ expired: z.string().nullish(),
254
+ closed: z.string().nullish(),
255
+ sent: z.string().nullish(),
256
+ unavailable: z.string().nullish(),
257
+ countdown: countdownWording.nullish(),
258
+ });
259
+ export type StatusWording = z.infer<typeof statusWording>;
260
+
261
+ /**
262
+ * The one catalogue of a send's platform-drawn texts (`format_payload.wording`), grouped
263
+ * by what each word decorates: the form (`form`), the choice list (`choice`), a question's
264
+ * answer controls and refusal sentences (`answer`), the lines of the delivery message
265
+ * (`lines`), the pages a question's link opens (`answer_page`), and in-flight and settled
266
+ * status (`status`). A page's primary button is the one text not here — it is on the page
267
+ * (`pages[].button_label`). Every leaf is the sender's own words in the end-user's
268
+ * language; absent (or `null`), the surface shows its own word.
269
+ */
270
+ export const wording = z.object({
271
+ form: formWording.nullish(),
272
+ choice: choiceWording.nullish(),
273
+ answer: answerWording.nullish(),
274
+ lines: lineWording.nullish(),
275
+ answer_page: answerPageWording.nullish(),
276
+ status: statusWording.nullish(),
277
+ });
278
+ export type Wording = z.infer<typeof wording>;
279
+
101
280
  // The form reactions and the form update are hand-written: the spec carries them inside an
102
281
  // open `format_payload` and an open reaction `update`.
103
282