@opencx/widget-core 5.0.0-beta.6 → 5.0.0-beta.9
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.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1157 -977
- package/dist/index.js.map +1 -1
- package/dist/src/api/api-caller.d.ts +96 -1
- package/dist/src/api/api-caller.d.ts.map +1 -1
- package/dist/src/api/elicitation.d.ts +60 -0
- package/dist/src/api/elicitation.d.ts.map +1 -0
- package/dist/src/api/schema.d.ts +572 -52
- package/dist/src/api/schema.d.ts.map +1 -1
- package/dist/src/context/active-session-polling.ctx.d.ts +2 -0
- package/dist/src/context/active-session-polling.ctx.d.ts.map +1 -1
- package/dist/src/context/message.ctx.d.ts +4 -0
- package/dist/src/context/message.ctx.d.ts.map +1 -1
- package/dist/src/context/session.ctx.d.ts +5 -0
- package/dist/src/context/session.ctx.d.ts.map +1 -1
- package/dist/src/context/widget.ctx.d.ts +6 -1
- package/dist/src/context/widget.ctx.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/messages.d.ts +2 -0
- package/dist/src/types/messages.d.ts.map +1 -1
- package/dist/src/types/widget-config.d.ts +2 -0
- package/dist/src/types/widget-config.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts +0 -2
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts +0 -2
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts +0 -2
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api-caller.mock.d.ts +0 -2
- package/dist/src/__tests__/api-caller.mock.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts +0 -2
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts +0 -1
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts +0 -1
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/resolve-client-presentation.spec.d.ts +0 -2
- package/dist/src/__tests__/context/resolve-client-presentation.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts +0 -2
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts +0 -2
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts +0 -2
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts +0 -1
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/upload.ctx.spec.d.ts +0 -2
- package/dist/src/__tests__/context/upload.ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/widget-ctx.conversations.spec.d.ts +0 -1
- package/dist/src/__tests__/context/widget-ctx.conversations.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts +0 -1
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts.map +0 -1
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts +0 -2
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts.map +0 -1
- package/dist/src/__tests__/test-utils.d.ts +0 -452
- package/dist/src/__tests__/test-utils.d.ts.map +0 -1
- package/dist/src/__tests__/translation.spec.d.ts +0 -2
- package/dist/src/__tests__/translation.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/Poller.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/Poller.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-ctx.client-context.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.client-context.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-ctx.mentions.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.mentions.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-ctx.page-mark-chips.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.page-mark-chips.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-ctx.send-acceptance.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.send-acceptance.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-ctx.send-features.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.send-features.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=reconcile-after-stream.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-after-stream.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/reconcile-after-stream.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-client-presentation.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/resolve-client-presentation.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restore-last-session.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/restore-last-session.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-ctx.stale-token-retry.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/session-ctx.stale-token-retry.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-ctx.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/storage-ctx.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=streaming-engine.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-engine.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/streaming-engine.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload.ctx.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/upload.ctx.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=widget-ctx.conversations.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget-ctx.conversations.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/widget-ctx.conversations.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=widget-ctx.features.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget-ctx.features.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/widget-ctx.features.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dictation-commands.utils.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/dictation/dictation-commands.utils.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import { ApiCaller } from '../api/api-caller';
|
|
2
|
-
import { Dto } from '../api/client';
|
|
3
|
-
type AgentFeaturesDto = Dto['WidgetAgentFeaturesDto'];
|
|
4
|
-
export declare const TestUtils: {
|
|
5
|
-
agentFeatures: (overrides?: Partial<AgentFeaturesDto>) => AgentFeaturesDto;
|
|
6
|
-
sleep: (ms: number) => Promise<unknown>;
|
|
7
|
-
mock: {
|
|
8
|
-
ApiCaller: {
|
|
9
|
-
createSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
10
|
-
parameters: {
|
|
11
|
-
query?: never;
|
|
12
|
-
header?: never;
|
|
13
|
-
path?: never;
|
|
14
|
-
cookie?: never;
|
|
15
|
-
};
|
|
16
|
-
requestBody: {
|
|
17
|
-
content: {
|
|
18
|
-
"application/json": import('../api/schema').components["schemas"]["CreateWidgetSessionDto"];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
responses: {
|
|
22
|
-
200: {
|
|
23
|
-
headers: {
|
|
24
|
-
[name: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
content: {
|
|
27
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
500: {
|
|
31
|
-
headers: {
|
|
32
|
-
[name: string]: unknown;
|
|
33
|
-
};
|
|
34
|
-
content: {
|
|
35
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
body: {
|
|
41
|
-
customData?: {
|
|
42
|
-
[key: string]: string | number | boolean;
|
|
43
|
-
};
|
|
44
|
-
} | null;
|
|
45
|
-
signal: AbortSignal | undefined;
|
|
46
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
47
|
-
createUnverifiedContact(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
48
|
-
parameters: {
|
|
49
|
-
query?: never;
|
|
50
|
-
header: {
|
|
51
|
-
"x-bot-token": string;
|
|
52
|
-
};
|
|
53
|
-
path?: never;
|
|
54
|
-
cookie?: never;
|
|
55
|
-
};
|
|
56
|
-
requestBody: {
|
|
57
|
-
content: {
|
|
58
|
-
"application/json": import('../api/schema').components["schemas"]["CreateUnverifiedContactDto"];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
responses: {
|
|
62
|
-
200: {
|
|
63
|
-
headers: {
|
|
64
|
-
[name: string]: unknown;
|
|
65
|
-
};
|
|
66
|
-
content: {
|
|
67
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetContactTokenResponseDto"];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
500: {
|
|
71
|
-
headers: {
|
|
72
|
-
[name: string]: unknown;
|
|
73
|
-
};
|
|
74
|
-
content: {
|
|
75
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}, {
|
|
80
|
-
params: {
|
|
81
|
-
header: {
|
|
82
|
-
'x-bot-token': string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
body: {
|
|
86
|
-
email?: string | null;
|
|
87
|
-
non_verified_name?: string | null;
|
|
88
|
-
non_verified_custom_data?: {
|
|
89
|
-
[key: string]: string | number | boolean;
|
|
90
|
-
} | null;
|
|
91
|
-
};
|
|
92
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
93
|
-
getSessions(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
94
|
-
parameters: {
|
|
95
|
-
query: {
|
|
96
|
-
filters: string;
|
|
97
|
-
offset?: string;
|
|
98
|
-
};
|
|
99
|
-
header?: never;
|
|
100
|
-
path?: never;
|
|
101
|
-
cookie?: never;
|
|
102
|
-
};
|
|
103
|
-
requestBody?: never;
|
|
104
|
-
responses: {
|
|
105
|
-
200: {
|
|
106
|
-
headers: {
|
|
107
|
-
[name: string]: unknown;
|
|
108
|
-
};
|
|
109
|
-
content: {
|
|
110
|
-
"application/json": import('../api/schema').components["schemas"]["PaginatedWidgetSessionsDto"];
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
500: {
|
|
114
|
-
headers: {
|
|
115
|
-
[name: string]: unknown;
|
|
116
|
-
};
|
|
117
|
-
content: {
|
|
118
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
}, {
|
|
123
|
-
params: {
|
|
124
|
-
query: {
|
|
125
|
-
offset: string | undefined;
|
|
126
|
-
filters: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
signal: AbortSignal | undefined;
|
|
130
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
131
|
-
sendMessage(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
132
|
-
parameters: {
|
|
133
|
-
query?: never;
|
|
134
|
-
header?: never;
|
|
135
|
-
path?: never;
|
|
136
|
-
cookie?: never;
|
|
137
|
-
};
|
|
138
|
-
requestBody: {
|
|
139
|
-
content: {
|
|
140
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSendMessageInputDto"];
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
responses: {
|
|
144
|
-
200: {
|
|
145
|
-
headers: {
|
|
146
|
-
[name: string]: unknown;
|
|
147
|
-
};
|
|
148
|
-
content: {
|
|
149
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSendMessageOutputDto"];
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
500: {
|
|
153
|
-
headers: {
|
|
154
|
-
[name: string]: unknown;
|
|
155
|
-
};
|
|
156
|
-
content: {
|
|
157
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
}, {
|
|
162
|
-
body: {
|
|
163
|
-
uuid: string;
|
|
164
|
-
content: string;
|
|
165
|
-
session_id: string;
|
|
166
|
-
bot_token: string;
|
|
167
|
-
headers?: {
|
|
168
|
-
[key: string]: string;
|
|
169
|
-
} | null;
|
|
170
|
-
query_params?: {
|
|
171
|
-
[key: string]: string;
|
|
172
|
-
} | null;
|
|
173
|
-
body_properties?: {
|
|
174
|
-
[key: string]: unknown;
|
|
175
|
-
} | null;
|
|
176
|
-
language?: string | null;
|
|
177
|
-
attachments?: import('../api/schema').components["schemas"]["ChatAttachmentDto"][] | null;
|
|
178
|
-
clientContext?: {
|
|
179
|
-
[key: string]: unknown;
|
|
180
|
-
} | null;
|
|
181
|
-
presentation?: import('../api/schema').components["schemas"]["WidgetPresentationOverrideDto"];
|
|
182
|
-
capabilities?: {
|
|
183
|
-
structured_questions?: boolean;
|
|
184
|
-
rich_replies?: boolean;
|
|
185
|
-
page_effects?: boolean;
|
|
186
|
-
} | null;
|
|
187
|
-
features?: {
|
|
188
|
-
preamble?: boolean;
|
|
189
|
-
inline_ui?: boolean;
|
|
190
|
-
page_context?: boolean;
|
|
191
|
-
client_tools?: boolean;
|
|
192
|
-
} | null;
|
|
193
|
-
custom_data?: {
|
|
194
|
-
[key: string]: unknown;
|
|
195
|
-
} | null;
|
|
196
|
-
exit_mode_prompt?: string;
|
|
197
|
-
action_form_submitted_prompt?: string;
|
|
198
|
-
initial_messages?: {
|
|
199
|
-
uuid: string;
|
|
200
|
-
content: string;
|
|
201
|
-
}[];
|
|
202
|
-
};
|
|
203
|
-
signal: AbortSignal | undefined;
|
|
204
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
205
|
-
setAuthToken(target: typeof ApiCaller, _returnValue: void | undefined): void;
|
|
206
|
-
getStreamTransportOptions(target: typeof ApiCaller, _returnValue: Partial<{
|
|
207
|
-
api: string;
|
|
208
|
-
reconnectApi: (sessionId: string) => string;
|
|
209
|
-
headers: Record<string, string>;
|
|
210
|
-
}> | undefined): void;
|
|
211
|
-
stopStream(target: typeof ApiCaller, _returnValue: void | undefined): void;
|
|
212
|
-
uploadFile(target: typeof ApiCaller, _returnValue: Partial<{
|
|
213
|
-
fileName: string;
|
|
214
|
-
fileUrl: string;
|
|
215
|
-
}> | undefined): void;
|
|
216
|
-
vote(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
217
|
-
parameters: {
|
|
218
|
-
query?: never;
|
|
219
|
-
header?: never;
|
|
220
|
-
path?: never;
|
|
221
|
-
cookie?: never;
|
|
222
|
-
};
|
|
223
|
-
requestBody: {
|
|
224
|
-
content: {
|
|
225
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetVoteDto"];
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
responses: {
|
|
229
|
-
200: {
|
|
230
|
-
headers: {
|
|
231
|
-
[name: string]: unknown;
|
|
232
|
-
};
|
|
233
|
-
content: {
|
|
234
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetVoteResponseDto"];
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
500: {
|
|
238
|
-
headers: {
|
|
239
|
-
[name: string]: unknown;
|
|
240
|
-
};
|
|
241
|
-
content: {
|
|
242
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
}, {
|
|
247
|
-
body: {
|
|
248
|
-
action: "upvote" | "downvote";
|
|
249
|
-
sessionId: string;
|
|
250
|
-
messagePublicId: string;
|
|
251
|
-
};
|
|
252
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
253
|
-
getExternalWidgetConfig(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
254
|
-
parameters: {
|
|
255
|
-
query?: never;
|
|
256
|
-
header: {
|
|
257
|
-
"x-bot-token": string;
|
|
258
|
-
};
|
|
259
|
-
path?: never;
|
|
260
|
-
cookie?: never;
|
|
261
|
-
};
|
|
262
|
-
requestBody?: never;
|
|
263
|
-
responses: {
|
|
264
|
-
200: {
|
|
265
|
-
headers: {
|
|
266
|
-
[name: string]: unknown;
|
|
267
|
-
};
|
|
268
|
-
content: {
|
|
269
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetConfigDto"] | import('../api/schema').components["schemas"]["WidgetPreludeDto"];
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
500: {
|
|
273
|
-
headers: {
|
|
274
|
-
[name: string]: unknown;
|
|
275
|
-
};
|
|
276
|
-
content: {
|
|
277
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
}, {
|
|
282
|
-
params: {
|
|
283
|
-
header: {
|
|
284
|
-
'x-bot-token': string;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
288
|
-
pollSessionAndHistory(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
289
|
-
parameters: {
|
|
290
|
-
query?: never;
|
|
291
|
-
header?: never;
|
|
292
|
-
path: {
|
|
293
|
-
sessionId: string;
|
|
294
|
-
};
|
|
295
|
-
cookie?: never;
|
|
296
|
-
};
|
|
297
|
-
requestBody?: never;
|
|
298
|
-
responses: {
|
|
299
|
-
200: {
|
|
300
|
-
headers: {
|
|
301
|
-
[name: string]: unknown;
|
|
302
|
-
};
|
|
303
|
-
content: {
|
|
304
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSessionAndHistoryDto"];
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
500: {
|
|
308
|
-
headers: {
|
|
309
|
-
[name: string]: unknown;
|
|
310
|
-
};
|
|
311
|
-
content: {
|
|
312
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
}, {
|
|
317
|
-
params: {
|
|
318
|
-
path: {
|
|
319
|
-
sessionId: string;
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
signal: AbortSignal;
|
|
323
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
324
|
-
resolveSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
325
|
-
parameters: {
|
|
326
|
-
query?: never;
|
|
327
|
-
header?: never;
|
|
328
|
-
path?: never;
|
|
329
|
-
cookie?: never;
|
|
330
|
-
};
|
|
331
|
-
requestBody: {
|
|
332
|
-
content: {
|
|
333
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetResolveSessionInputDto"];
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
responses: {
|
|
337
|
-
200: {
|
|
338
|
-
headers: {
|
|
339
|
-
[name: string]: unknown;
|
|
340
|
-
};
|
|
341
|
-
content: {
|
|
342
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
500: {
|
|
346
|
-
headers: {
|
|
347
|
-
[name: string]: unknown;
|
|
348
|
-
};
|
|
349
|
-
content: {
|
|
350
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
}, {
|
|
355
|
-
body: {
|
|
356
|
-
session_id: string;
|
|
357
|
-
};
|
|
358
|
-
signal: AbortSignal | undefined;
|
|
359
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
360
|
-
createStateCheckpoint(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
361
|
-
parameters: {
|
|
362
|
-
query?: never;
|
|
363
|
-
header?: never;
|
|
364
|
-
path?: never;
|
|
365
|
-
cookie?: never;
|
|
366
|
-
};
|
|
367
|
-
requestBody: {
|
|
368
|
-
content: {
|
|
369
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointInputDto"];
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
responses: {
|
|
373
|
-
200: {
|
|
374
|
-
headers: {
|
|
375
|
-
[name: string]: unknown;
|
|
376
|
-
};
|
|
377
|
-
content: {
|
|
378
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointOutputDto"];
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
500: {
|
|
382
|
-
headers: {
|
|
383
|
-
[name: string]: unknown;
|
|
384
|
-
};
|
|
385
|
-
content: {
|
|
386
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
}, {
|
|
391
|
-
body: {
|
|
392
|
-
session_id: string;
|
|
393
|
-
payload: {
|
|
394
|
-
[key: string]: unknown;
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
398
|
-
submitCsat(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
|
|
399
|
-
parameters: {
|
|
400
|
-
query?: never;
|
|
401
|
-
header?: never;
|
|
402
|
-
path?: never;
|
|
403
|
-
cookie?: never;
|
|
404
|
-
};
|
|
405
|
-
requestBody: {
|
|
406
|
-
content: {
|
|
407
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatInputDto"];
|
|
408
|
-
};
|
|
409
|
-
};
|
|
410
|
-
responses: {
|
|
411
|
-
200: {
|
|
412
|
-
headers: {
|
|
413
|
-
[name: string]: unknown;
|
|
414
|
-
};
|
|
415
|
-
content: {
|
|
416
|
-
"application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatOutputDto"];
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
500: {
|
|
420
|
-
headers: {
|
|
421
|
-
[name: string]: unknown;
|
|
422
|
-
};
|
|
423
|
-
content: {
|
|
424
|
-
"application/json": import('../api/schema').components["schemas"]["ErrorDto"];
|
|
425
|
-
};
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
}, {
|
|
429
|
-
body: {
|
|
430
|
-
session_id: string;
|
|
431
|
-
score: number;
|
|
432
|
-
feedback?: string;
|
|
433
|
-
system_message_uuid?: string;
|
|
434
|
-
};
|
|
435
|
-
}, `${string}/${string}`>> | undefined): void;
|
|
436
|
-
getAgentTurnMessages(target: typeof ApiCaller, returnValue: Partial<{
|
|
437
|
-
turns: {
|
|
438
|
-
turn_id: string;
|
|
439
|
-
ui_parts: ({
|
|
440
|
-
type: string;
|
|
441
|
-
} & {
|
|
442
|
-
[key: string]: unknown;
|
|
443
|
-
})[] | null;
|
|
444
|
-
message_uuids: string[];
|
|
445
|
-
}[];
|
|
446
|
-
} | null> | undefined): void;
|
|
447
|
-
createDictationSession(target: typeof ApiCaller, returnValue: Partial<import('../dictation/dictation-session').DictationMint> | undefined): void;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
export {};
|
|
452
|
-
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/__tests__/test-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,KAAK,gBAAgB,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAgBtD,eAAO,MAAM,SAAS;gCAXT,OAAO,CAAC,gBAAgB,CAAC,KACnC,gBAAgB;gBAYL,MAAM;;;;;yBAoJJ,CAAX;0BAAuB,CAAC;wBAAqB,CAAC;0BACnC,CAAZ;;;;4CAEY,6CAAe;;;;;;;;;gDAOf,6CAAa;;;;;;;;gDAQP,6CACtB;;;;;;;;;;;;;;yBAhJc,CAAJ;;;;wBAGA,CAAD;0BAEA,CAAC;;;;4CACkC,6CAChC;;;;;;;;;gDASA,6CAAsB;;;;;;;;gDAO5B,6CACW;;;;;;;;;;;;;;;;;;;;;;8BAWK,CAAH;;0BACG,CAAd;wBAAqB,CAAC;0BACV,CAAjB;;;;;;;;;gDAQqB,6CAAI;;;;;;;;gDAMR,6CACd;;;;;;;;;;;;;;;yBAsGW,CAAC;0BAAuB,CAAC;wBAC5B,CAAD;0BACC,CAAX;;;;4CAEwB,6CACV;;;;;;;;;gDAQX,6CACY;;;;;;;;gDAMF,6CACP;;;;;;;;;;;;;;;;;;;;kCAyCk8X,6CAAsB;;;;mCAA8M,6CAAsB;;4CAAkW,CAAC;oCAA+B,CAAC;oCAA+B,CAAC;;;gCAAmd,CAAC;iCAA4B,CAAC;oCAA+B,CAAC;oCAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAArzX,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAAiP,6CAAsB;;;;;;;;gDAA+O,6CAAsB;;;;;;;;;;;;;yBA7P1hE,CAAC;;;;wBAGT,CAAF;0BACI,CAAC;;;;;;;;;gDAYI,6CACK,sBACN,6CAAoB;;;;;;;;gDAOL,6CACL;;;;;;;;;;;;;yBAwGV,CAAR;0BAAuB,CAAC;;;;0BACyB,CAAC;;;;;;;;;gDAQN,6CAC5B;;;;;;;;gDAQF,6CAAO;;;;;;;;;;;;;;yBAyGk5E,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAA6P,6CAAsB;;;;;;;;gDAA0O,6CAAsB;;;;;;;;;;;;yBA1BxmG,CAAJ;0BAAuB,CAAC;wBAAsB,CAAA;0BAC3B,CAAC;;;;4CAEZ,6CAAiB;;;;;;;;;gDAQV,6CACT;;;;;;;;gDAQa,6CACZ;;;;;;;;;;;;;;yBAKykJ,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAA4P,6CAAsB;;;;;;;;gDAAmP,6CAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CADhyK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/translation.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Poller.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/utils/Poller.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveState.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/utils/PrimitiveState.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"companion-layout.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/utils/companion-layout.spec.ts"],"names":[],"mappings":""}
|