@sapia-ai/chatbot-v3 1.5.0 → 1.6.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/{EmbeddedVideoPlayer-Dn-boxdp.js → EmbeddedVideoPlayer-Bhz8DKO8.js} +14 -14
- package/dist/{Preview-CtMz5fNh.js → Preview-B1ZmYM9V.js} +3 -3
- package/dist/api/client.d.ts +8 -1
- package/dist/api/types/messages.d.ts +8 -1
- package/dist/api/types/responses.d.ts +54 -12
- package/dist/api.js +2 -2
- package/dist/{client-DfRBtXIE.js → client-C2MWNOYf.js} +552 -545
- package/dist/core/bubbles/cards.d.ts +3 -1
- package/dist/core/bubbles/demographicRun.d.ts +57 -0
- package/dist/core/bubbles/selection.d.ts +3 -1
- package/dist/core/bubbles/types.d.ts +11 -0
- package/dist/core/interview/engine.d.ts +33 -2
- package/dist/core/interview/reveal.d.ts +5 -2
- package/dist/core/store.d.ts +10 -2
- package/dist/core/theme/branding.d.ts +5 -2
- package/dist/{dist-Cl2Oi3Sl.js → dist-CoO0i-y0.js} +3 -3
- package/dist/embed/createChatbot.d.ts +0 -2
- package/dist/{fix-webm-duration-CVQSf7rp.js → fix-webm-duration-CXijcUXq.js} +2 -2
- package/dist/index.js +5987 -5684
- package/dist/{jsx-runtime-CdNykazB.js → jsx-runtime-BcXxfixh.js} +2 -2
- package/dist/react/SapiaChatbot.d.ts +1 -3
- package/dist/react/strings.d.ts +5 -4
- package/dist/react/useDemographicForm.d.ts +14 -0
- package/dist/{react-BIgNJUOD.js → react-Cp-K_L89.js} +3 -3
- package/dist/{react-DlJlpUiG.js → react-D3tMg8u4.js} +3 -3
- package/dist/{react-DEJ3NRa3.js → react-D8jZKei2.js} +3 -3
- package/dist/{react-BKViU2cv.js → react-DtGzNzM1.js} +3 -3
- package/dist/{react-BC7MhdYE.js → react-LDcTld2q.js} +3 -3
- package/dist/{react-78ZA32q8.js → react-g5b2mM7w.js} +3 -3
- package/dist/{react-BSaO3Elx.js → react-hklchtwF.js} +3 -3
- package/dist/{react-eOBKoj54.js → react-vc8uDric.js} +3 -3
- package/dist/{react-D4Z0N-x7.js → react-wrZMUHWq.js} +2 -2
- package/dist/ui/chat/ActionDock/ActionDock.d.ts +5 -0
- package/dist/ui/chat/ChatLog/ChatLog.d.ts +3 -7
- package/dist/ui/chat/DemographicDetailsCard/DemographicDetailsCard.d.ts +14 -0
- package/dist/ui/chat/TypingIndicator/TypingIndicator.d.ts +9 -25
- package/dist/ui/chat/types.d.ts +8 -1
- package/dist/ui/inputs/DemographicForm/DemographicForm.d.ts +35 -0
- package/dist/ui/inputs/LocationAnswerInput/LocationCombobox.d.ts +4 -2
- package/dist/ui/inputs/OptionList/OptionList.d.ts +4 -0
- package/dist/ui/inputs/formCard.d.ts +12 -0
- package/dist/ui/shell/LogoTile/LogoTile.d.ts +6 -1
- package/dist-umd/sapia-chatbot.umd.js +274 -274
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { t as n } from "./jsx-runtime-
|
|
1
|
+
import { H as e } from "./client-C2MWNOYf.js";
|
|
2
|
+
import { t } from "./react-wrZMUHWq.js";
|
|
3
|
+
import { t as n } from "./jsx-runtime-BcXxfixh.js";
|
|
4
4
|
import { t as r } from "./defineProperty-DiFpLzd2.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.6_@svta+cml-structured-field-values@1.1.3_@svta+cm_a4f64f295cc2a316f39ce360b0a6e480/node_modules/react-player/dist/patterns.js
|
|
6
6
|
var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, o = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, s = /\.(m3u8)($|\?)/i, c = /\.(mpd)($|\?)/i, l = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/, u = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, d = /vimeo\.com\/(?!progressive_redirect).+/, f = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, p = /open\.spotify\.com\/(\w+)\/(\w+)/i, m = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/, h = /tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/, g = (e, t) => {
|
|
@@ -34,7 +34,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
34
34
|
canEnablePIP: () => !0,
|
|
35
35
|
player: (0, i.lazy)(() => import(
|
|
36
36
|
/* webpackChunkName: 'reactPlayerHls' */
|
|
37
|
-
"./react-
|
|
37
|
+
"./react-D8jZKei2.js"
|
|
38
38
|
))
|
|
39
39
|
},
|
|
40
40
|
{
|
|
@@ -44,7 +44,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
44
44
|
canEnablePIP: () => !0,
|
|
45
45
|
player: (0, i.lazy)(() => import(
|
|
46
46
|
/* webpackChunkName: 'reactPlayerDash' */
|
|
47
|
-
"./react-
|
|
47
|
+
"./react-D3tMg8u4.js"
|
|
48
48
|
))
|
|
49
49
|
},
|
|
50
50
|
{
|
|
@@ -54,7 +54,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
54
54
|
canEnablePIP: () => !0,
|
|
55
55
|
player: (0, i.lazy)(() => import(
|
|
56
56
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
57
|
-
"./dist-
|
|
57
|
+
"./dist-CoO0i-y0.js"
|
|
58
58
|
))
|
|
59
59
|
},
|
|
60
60
|
{
|
|
@@ -63,7 +63,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
63
63
|
canPlay: _.youtube,
|
|
64
64
|
player: (0, i.lazy)(() => import(
|
|
65
65
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
66
|
-
"./react-
|
|
66
|
+
"./react-DtGzNzM1.js"
|
|
67
67
|
))
|
|
68
68
|
},
|
|
69
69
|
{
|
|
@@ -72,7 +72,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
72
72
|
canPlay: _.vimeo,
|
|
73
73
|
player: (0, i.lazy)(() => import(
|
|
74
74
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
75
|
-
"./react-
|
|
75
|
+
"./react-LDcTld2q.js"
|
|
76
76
|
))
|
|
77
77
|
},
|
|
78
78
|
{
|
|
@@ -82,7 +82,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
82
82
|
canEnablePIP: () => !0,
|
|
83
83
|
player: (0, i.lazy)(() => import(
|
|
84
84
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
85
|
-
"./react-
|
|
85
|
+
"./react-g5b2mM7w.js"
|
|
86
86
|
))
|
|
87
87
|
},
|
|
88
88
|
{
|
|
@@ -92,7 +92,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
92
92
|
canEnablePIP: () => !1,
|
|
93
93
|
player: (0, i.lazy)(() => import(
|
|
94
94
|
/* webpackChunkName: 'reactPlayerSpotify' */
|
|
95
|
-
"./react-
|
|
95
|
+
"./react-Cp-K_L89.js"
|
|
96
96
|
))
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -102,7 +102,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
102
102
|
canEnablePIP: () => !1,
|
|
103
103
|
player: (0, i.lazy)(() => import(
|
|
104
104
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
105
|
-
"./react-
|
|
105
|
+
"./react-vc8uDric.js"
|
|
106
106
|
))
|
|
107
107
|
},
|
|
108
108
|
{
|
|
@@ -112,7 +112,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
112
112
|
canEnablePIP: () => !1,
|
|
113
113
|
player: (0, i.lazy)(() => import(
|
|
114
114
|
/* webpackChunkName: 'reactPlayerTiktok' */
|
|
115
|
-
"./react-
|
|
115
|
+
"./react-hklchtwF.js"
|
|
116
116
|
))
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -181,7 +181,7 @@ var i = /* @__PURE__ */ e(t(), 1), a = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3
|
|
|
181
181
|
x.displayName = "Player";
|
|
182
182
|
var ee = x, te = (0, i.lazy)(() => import(
|
|
183
183
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
184
|
-
"./Preview-
|
|
184
|
+
"./Preview-B1ZmYM9V.js"
|
|
185
185
|
)), S = [], ne = (e, t) => {
|
|
186
186
|
let n = (n) => {
|
|
187
187
|
for (let t of [...S, ...e]) if (n && t.canPlay(n)) return t;
|
|
@@ -1297,4 +1297,4 @@ var $ = n(), xe = (e) => {
|
|
|
1297
1297
|
//#endregion
|
|
1298
1298
|
export { Me as EmbeddedVideoPlayer };
|
|
1299
1299
|
|
|
1300
|
-
//# sourceMappingURL=EmbeddedVideoPlayer-
|
|
1300
|
+
//# sourceMappingURL=EmbeddedVideoPlayer-Bhz8DKO8.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./react-
|
|
1
|
+
import { H as e } from "./client-C2MWNOYf.js";
|
|
2
|
+
import { t } from "./react-wrZMUHWq.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.6_@svta+cml-structured-field-values@1.1.3_@svta+cm_a4f64f295cc2a316f39ce360b0a6e480/node_modules/react-player/dist/Preview.js
|
|
4
4
|
var n = /* @__PURE__ */ e(t(), 1), r = "64px", i = {}, a = ({ src: e, light: t, oEmbedUrl: a, onClickPreview: o, playIcon: s, previewTabIndex: c, previewAriaLabel: l }) => {
|
|
5
5
|
let [u, d] = (0, n.useState)(null);
|
|
@@ -81,4 +81,4 @@ var n = /* @__PURE__ */ e(t(), 1), r = "64px", i = {}, a = ({ src: e, light: t,
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { a as default };
|
|
83
83
|
|
|
84
|
-
//# sourceMappingURL=Preview-
|
|
84
|
+
//# sourceMappingURL=Preview-B1ZmYM9V.js.map
|
package/dist/api/client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ChatbotClientConfig } from './config';
|
|
|
3
3
|
import { UnauthorizedError } from './errors';
|
|
4
4
|
import { HeldFiToken } from './fiToken';
|
|
5
5
|
import { CandidateResponseInput, EditCandidateResponseInput, Question } from './types/messages';
|
|
6
|
-
import { AccessManagementResponse, AssessmentSummary, CustomerSatisfactionFormField, DetectAgcResponse, EditAnswerResponse, ExtractHumanNameResponse, ExtractHumanNameType, NextResponse, PiiFormField, ResolvedFeatureFlags, StartAtsResponse, TranslationResponse, VerifyAccessResponse, VideoSignedUrlResponse } from './types/responses';
|
|
6
|
+
import { AccessManagementResponse, AssessmentSummary, CustomerSatisfactionFormField, DemographicFormField, DetectAgcResponse, EditAnswerResponse, ExtractHumanNameResponse, ExtractHumanNameType, NextResponse, PiiFormField, ResolvedFeatureFlags, StartAtsResponse, TranslationResponse, VerifyAccessResponse, VideoSignedUrlResponse } from './types/responses';
|
|
7
7
|
export type ChatbotApiClientOptions = ChatbotClientConfig & {
|
|
8
8
|
/** Injectable for tests / instrumented hosts. */
|
|
9
9
|
httpClient?: AxiosInstance;
|
|
@@ -34,8 +34,15 @@ export type NextStreamHandlers = {
|
|
|
34
34
|
onPiiForm?: (fields: PiiFormField[]) => void;
|
|
35
35
|
/** The rating and comment asked after the interview, emitted in place of their prompts. */
|
|
36
36
|
onCustomerSatisfactionForm?: (fields: CustomerSatisfactionFormField[]) => void;
|
|
37
|
+
/** Every diversity question, emitted in place of their prompts. */
|
|
38
|
+
onDemographicForm?: (fields: DemographicFormField[]) => void;
|
|
37
39
|
/** Aborts the in-flight stream (new request / unmount). */
|
|
38
40
|
signal?: AbortSignal;
|
|
41
|
+
/**
|
|
42
|
+
* false asks the backend to send each message whole instead of pacing it word by word. Left
|
|
43
|
+
* out, the backend keeps pacing.
|
|
44
|
+
*/
|
|
45
|
+
streamText?: boolean;
|
|
39
46
|
};
|
|
40
47
|
export declare class ChatbotApiClient {
|
|
41
48
|
private readonly http;
|
|
@@ -175,7 +175,14 @@ export declare enum ContentComponent {
|
|
|
175
175
|
* The interviewer's one line above the feedback card. The run may open on either prompt, so
|
|
176
176
|
* neither prompt's own text can stand in for it.
|
|
177
177
|
*/
|
|
178
|
-
CUSTOMER_SATISFACTION_INTRO = "CustomerSatisfactionIntro"
|
|
178
|
+
CUSTOMER_SATISFACTION_INTRO = "CustomerSatisfactionIntro",
|
|
179
|
+
/**
|
|
180
|
+
* The bubble is a placeholder for the diversity card. Synthesised by the widget: the backend
|
|
181
|
+
* describes the run in a DEMOGRAPHIC_FORM event.
|
|
182
|
+
*/
|
|
183
|
+
DEMOGRAPHIC_FORM = "DemographicForm",
|
|
184
|
+
/** The bubble is a placeholder for the answered diversity questions, standing in for the run. */
|
|
185
|
+
DEMOGRAPHIC_DETAILS = "DemographicDetails"
|
|
179
186
|
}
|
|
180
187
|
/**
|
|
181
188
|
* Whole-bubble values the backend uses to mark a content bubble as a card placeholder. The stream
|
|
@@ -22,8 +22,8 @@ export type StartAtsResponse = {
|
|
|
22
22
|
isTermsAndConditionsAccepted: boolean;
|
|
23
23
|
candidateCountryCode?: string;
|
|
24
24
|
assessmentIsReusedMessage?: AgentResponse;
|
|
25
|
-
/**
|
|
26
|
-
|
|
25
|
+
/** Absent until the candidate has given their name, e.g. the first load of a PII assessment. */
|
|
26
|
+
candidateFirstName?: string;
|
|
27
27
|
/**
|
|
28
28
|
* The cohort title, shown as the role in the header and welcome. Read this rather than
|
|
29
29
|
* `branding.title`, which the BE has already interpolated into customer-authored copy.
|
|
@@ -117,6 +117,7 @@ export declare enum AgUiEventType {
|
|
|
117
117
|
AGC_GUIDANCE = "AGC_GUIDANCE",
|
|
118
118
|
PII_FORM = "PII_FORM",
|
|
119
119
|
CUSTOMER_SATISFACTION_FORM = "CUSTOMER_SATISFACTION_FORM",
|
|
120
|
+
DEMOGRAPHIC_FORM = "DEMOGRAPHIC_FORM",
|
|
120
121
|
TEXT_MESSAGE_START = "TEXT_MESSAGE_START",
|
|
121
122
|
TEXT_MESSAGE_CONTENT = "TEXT_MESSAGE_CONTENT",
|
|
122
123
|
TEXT_MESSAGE_END = "TEXT_MESSAGE_END",
|
|
@@ -221,12 +222,13 @@ export type PiiResponsesMessage = Message<{
|
|
|
221
222
|
responses: PiiFormField[];
|
|
222
223
|
}>;
|
|
223
224
|
/**
|
|
224
|
-
* Which family a folded form belongs to.
|
|
225
|
-
*
|
|
225
|
+
* Which family a folded form belongs to. Every family but PII carries it: the PII payload shipped
|
|
226
|
+
* first with the same shape and no marker, so an absent formType means PII.
|
|
226
227
|
*/
|
|
227
228
|
export declare enum FormType {
|
|
228
229
|
PII = "PII",
|
|
229
|
-
CUSTOMER_SATISFACTION = "CUSTOMER_SATISFACTION"
|
|
230
|
+
CUSTOMER_SATISFACTION = "CUSTOMER_SATISFACTION",
|
|
231
|
+
DEMOGRAPHIC = "DEMOGRAPHIC"
|
|
230
232
|
}
|
|
231
233
|
/** Whether a feedback field collects the rating or the free-text comment. */
|
|
232
234
|
export declare enum CustomerSatisfactionFieldType {
|
|
@@ -266,13 +268,49 @@ export type CustomerSatisfactionFormMessage = Message<CustomerSatisfactionPayloa
|
|
|
266
268
|
export type CustomerSatisfactionResponsesMessage = Message<CustomerSatisfactionPayload & {
|
|
267
269
|
responses: CustomerSatisfactionFormField[];
|
|
268
270
|
}>;
|
|
271
|
+
/**
|
|
272
|
+
* One diversity question of the run (AG-UI DEMOGRAPHIC_FORM). The backend sends the fields in
|
|
273
|
+
* dialogue order, which is the order answers must be posted in. Unlike the other two families the
|
|
274
|
+
* widget has no copy of its own for these: `prompt` is the template's wording and is the field's
|
|
275
|
+
* label.
|
|
276
|
+
*/
|
|
277
|
+
export type DemographicFormField = {
|
|
278
|
+
questionId: string;
|
|
279
|
+
masterId?: string;
|
|
280
|
+
/** The DEMOGRAPHIC_TYPE tag's value (gender, ethnicity, …). Carried by the backend, not read. */
|
|
281
|
+
deiType?: string;
|
|
282
|
+
component?: string | null;
|
|
283
|
+
questionTypes: QuestionType[];
|
|
284
|
+
prompt: string;
|
|
285
|
+
options?: MCQQuestionOption[];
|
|
286
|
+
rules?: QuestionRule[];
|
|
287
|
+
/** Set only on a reloaded run's responses: what the candidate gave, ready to display. */
|
|
288
|
+
answer?: string;
|
|
289
|
+
/** That answer's underlying value — the option value(s) rather than the labels shown. */
|
|
290
|
+
value?: string;
|
|
291
|
+
};
|
|
292
|
+
type DemographicPayload = {
|
|
293
|
+
_id: string;
|
|
294
|
+
formType: FormType.DEMOGRAPHIC;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* A diversity run as a reloaded transcript carries it, folded the way the other two families are:
|
|
298
|
+
* the form, and — once posted — the responses, which leave out any question posted blank.
|
|
299
|
+
*/
|
|
300
|
+
export type DemographicFormMessage = Message<DemographicPayload & {
|
|
301
|
+
fields: DemographicFormField[];
|
|
302
|
+
}>;
|
|
303
|
+
/** @see DemographicFormMessage */
|
|
304
|
+
export type DemographicResponsesMessage = Message<DemographicPayload & {
|
|
305
|
+
responses: DemographicFormField[];
|
|
306
|
+
}>;
|
|
269
307
|
/** Anything /start can put in `chatLogs`: a stored turn, or a form run folded into two messages. */
|
|
270
|
-
export type ChatLog = CandidateResponse | AgentResponse | PiiFormMessage | PiiResponsesMessage | CustomerSatisfactionFormMessage | CustomerSatisfactionResponsesMessage;
|
|
308
|
+
export type ChatLog = CandidateResponse | AgentResponse | PiiFormMessage | PiiResponsesMessage | CustomerSatisfactionFormMessage | CustomerSatisfactionResponsesMessage | DemographicFormMessage | DemographicResponsesMessage;
|
|
271
309
|
/**
|
|
272
|
-
* The folded halves of a
|
|
310
|
+
* The folded halves of a form run are told apart by their payload key alone: neither carries the
|
|
273
311
|
* `question` an answer has or the `types`/`contents` a prompt has, so a reader that goes by those
|
|
274
|
-
* would take them for an empty question and draw nothing.
|
|
275
|
-
* so
|
|
312
|
+
* would take them for an empty question and draw nothing. Every family folds into the same keys,
|
|
313
|
+
* so the formType marker is what sorts them — and an unmarked one is PII.
|
|
276
314
|
*/
|
|
277
315
|
export declare const isPiiFormMessage: (chatLog: ChatLog) => chatLog is PiiFormMessage;
|
|
278
316
|
/** @see isPiiFormMessage */
|
|
@@ -281,6 +319,10 @@ export declare const isPiiResponsesMessage: (chatLog: ChatLog) => chatLog is Pii
|
|
|
281
319
|
export declare const isCustomerSatisfactionFormMessage: (chatLog: ChatLog) => chatLog is CustomerSatisfactionFormMessage;
|
|
282
320
|
/** @see CustomerSatisfactionFormMessage */
|
|
283
321
|
export declare const isCustomerSatisfactionResponsesMessage: (chatLog: ChatLog) => chatLog is CustomerSatisfactionResponsesMessage;
|
|
322
|
+
/** @see DemographicFormMessage */
|
|
323
|
+
export declare const isDemographicFormMessage: (chatLog: ChatLog) => chatLog is DemographicFormMessage;
|
|
324
|
+
/** @see DemographicFormMessage */
|
|
325
|
+
export declare const isDemographicResponsesMessage: (chatLog: ChatLog) => chatLog is DemographicResponsesMessage;
|
|
284
326
|
/** STATE_SNAPSHOT.snapshot.question — same data as our Question, but `types` is `questionTypes`. */
|
|
285
327
|
export type SnapshotQuestion = {
|
|
286
328
|
_id: string;
|
|
@@ -315,10 +357,10 @@ export type AgUiFrame = {
|
|
|
315
357
|
/** ASSESSMENT_LINK payload — the assessment's resume link (present only on that frame). */
|
|
316
358
|
url?: string;
|
|
317
359
|
/**
|
|
318
|
-
* PII_FORM / CUSTOMER_SATISFACTION_FORM payload — every field of the run, in
|
|
319
|
-
* the backend's spelling. Which
|
|
360
|
+
* PII_FORM / CUSTOMER_SATISFACTION_FORM / DEMOGRAPHIC_FORM payload — every field of the run, in
|
|
361
|
+
* dialogue order, in the backend's spelling. Which family it is follows from `type`.
|
|
320
362
|
*/
|
|
321
|
-
fields?: PiiFormFieldWire[] | CustomerSatisfactionFormField[];
|
|
363
|
+
fields?: PiiFormFieldWire[] | CustomerSatisfactionFormField[] | DemographicFormField[];
|
|
322
364
|
/** TEXT_MESSAGE_* message id, shape "<baseId>:<contentIndex>"; segments bundled messages. */
|
|
323
365
|
messageId?: string;
|
|
324
366
|
delta?: string;
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n,
|
|
2
|
-
export {
|
|
1
|
+
import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, P as l, R as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I, z as L } from "./client-C2MWNOYf.js";
|
|
2
|
+
export { c as API_ORIGIN_BY_ENV, E as AgUiEventType, b as AssessmentStatus, k as AssessmentSummaryCategory, y as ButtonType, l as CHATBOT_API_PATH, j as ChatbotApiClient, p as ContentComponent, N as ContentMarker, I as ContentType, x as CustomerSatisfactionFieldType, i as DEFAULT_LOCAL_API_ORIGIN, a as ENVIRONMENTS, m as FeatureFlagKey, D as FormType, h as MessageIdentifier, F as MessageKind, d as MessageSender, t as PHService, A as PiiFormFieldKind, g as PiiFormWireType, P as PiiQuestionType, f as QuestionType, o as REGIONS, r as RuleName, C as SessionLapsedError, e as UnauthorizedError, n as VideoQuestionType, u as buildChatbotBaseUrl, w as isCustomerSatisfactionFormMessage, M as isCustomerSatisfactionResponsesMessage, _ as isDemographicFormMessage, v as isDemographicResponsesMessage, S as isNotFound, O as isPiiFormMessage, T as isPiiResponsesMessage, s as isUnauthorized, L as resolveApiOrigin };
|