@opencx/widget 3.0.2 → 3.0.3
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/basic.cjs +1 -1
- package/dist/basic.d.ts +2 -0
- package/dist/basic.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +2 -0
- package/dist/react.js +2 -2
- package/dist/{types/src → src}/designs/react/components/lib/dialog.d.ts +2 -2
- package/dist/src/headless/core/sdk/schema.d.ts +593 -0
- package/dist/{useUploadFiles-DJElNIQi.js → useUploadFiles-D-VrK2va.js} +2 -2
- package/dist/{useUploadFiles-DJElNIQi.js.map → useUploadFiles-D-VrK2va.js.map} +1 -1
- package/dist/{useUploadFiles-DMskqhR-.cjs → useUploadFiles-gTXt3hYW.cjs} +2 -2
- package/dist/{useUploadFiles-DMskqhR-.cjs.map → useUploadFiles-gTXt3hYW.cjs.map} +1 -1
- package/dist-embed/script.js +1 -1
- package/package.json +5 -5
- /package/dist/{types/src → src}/designs/react/basic/WidgetPopoverTrigger.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/index.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/chat-screen/ChatFooter.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/chat-screen/ChatHeader.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/chat-screen/ChatMain.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/chat-screen/ChatScreen.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/root-screen.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/screens/welcome-screen/WelcomeScreen.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/utils/group-messages-by-type.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/basic/widget-interaction-tests/widget.test.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/BotOrAgentMessage.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/BotOrAgentMessageGroup.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/BotOrAgentMessageWrapper.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/Fallback.component.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/Loading.component.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/OpenLogoSvg.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/RenderFile.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/SuggestedReplies.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/Text.component.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/UserMessageGroup.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/VoteButtons.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/MotionDiv.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/avatar.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/button.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/dropdown-menu.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/input.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/popover.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/skeleton.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/switch.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/tooltip.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/utils/cn.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/lib/wobble.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/components/markdown.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/constants.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/hooks/useLocale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/hooks/useWidgetContentHeight.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/index.d.ts +0 -0
- /package/dist/{types/src → src}/designs/react/render.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/ar.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/de.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/en.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/fr.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/index.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/nl.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/pt.locale.d.ts +0 -0
- /package/dist/{types/src → src}/designs/translation/translation.types.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/api.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/context/contact.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/context/message.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/context/session.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/context/widget.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/index.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/sdk/index.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/types/WidgetConfig.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/types/agent-or-bot.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/types/helpers.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/types/messages.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/types/schemas.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/utils/Poller.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/utils/PubSub.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/utils/PubSub.test.d.ts +0 -0
- /package/dist/{types/src → src}/headless/core/utils/uuid.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/ComponentRegistry.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/WidgetProvider.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useConfig.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useContact.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useIsAwaitingBotReply.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useMessages.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/usePreludeData.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/usePubsub.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useSession.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useUploadFiles.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/hooks/useVote.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/index.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/types/components.d.ts +0 -0
- /package/dist/{types/src → src}/headless/react/utils/create-safe-context.d.ts +0 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/backend/widget/v2/prelude": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/** Get the prelude for the widget */
|
|
14
|
+
get: operations["widgetPrelude"];
|
|
15
|
+
put?: never;
|
|
16
|
+
post?: never;
|
|
17
|
+
delete?: never;
|
|
18
|
+
options?: never;
|
|
19
|
+
head?: never;
|
|
20
|
+
patch?: never;
|
|
21
|
+
trace?: never;
|
|
22
|
+
};
|
|
23
|
+
"/backend/widget/v2/session/{sessionId}": {
|
|
24
|
+
parameters: {
|
|
25
|
+
query?: never;
|
|
26
|
+
header?: never;
|
|
27
|
+
path?: never;
|
|
28
|
+
cookie?: never;
|
|
29
|
+
};
|
|
30
|
+
get: operations["getSession"];
|
|
31
|
+
put?: never;
|
|
32
|
+
post?: never;
|
|
33
|
+
delete?: never;
|
|
34
|
+
options?: never;
|
|
35
|
+
head?: never;
|
|
36
|
+
patch?: never;
|
|
37
|
+
trace?: never;
|
|
38
|
+
};
|
|
39
|
+
"/backend/widget/v2/session/history/{sessionId}": {
|
|
40
|
+
parameters: {
|
|
41
|
+
query?: never;
|
|
42
|
+
header?: never;
|
|
43
|
+
path?: never;
|
|
44
|
+
cookie?: never;
|
|
45
|
+
};
|
|
46
|
+
get: operations["getSessionHistory"];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
55
|
+
"/backend/widget/v2/create-session": {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
61
|
+
};
|
|
62
|
+
get?: never;
|
|
63
|
+
put?: never;
|
|
64
|
+
post: operations["createChatSession"];
|
|
65
|
+
delete?: never;
|
|
66
|
+
options?: never;
|
|
67
|
+
head?: never;
|
|
68
|
+
patch?: never;
|
|
69
|
+
trace?: never;
|
|
70
|
+
};
|
|
71
|
+
"/backend/widget/v2/chat/send": {
|
|
72
|
+
parameters: {
|
|
73
|
+
query?: never;
|
|
74
|
+
header?: never;
|
|
75
|
+
path?: never;
|
|
76
|
+
cookie?: never;
|
|
77
|
+
};
|
|
78
|
+
get?: never;
|
|
79
|
+
put?: never;
|
|
80
|
+
post: operations["chatSend"];
|
|
81
|
+
delete?: never;
|
|
82
|
+
options?: never;
|
|
83
|
+
head?: never;
|
|
84
|
+
patch?: never;
|
|
85
|
+
trace?: never;
|
|
86
|
+
};
|
|
87
|
+
"/backend/widget/v2/upload": {
|
|
88
|
+
parameters: {
|
|
89
|
+
query?: never;
|
|
90
|
+
header?: never;
|
|
91
|
+
path?: never;
|
|
92
|
+
cookie?: never;
|
|
93
|
+
};
|
|
94
|
+
get?: never;
|
|
95
|
+
put?: never;
|
|
96
|
+
/** Upload file */
|
|
97
|
+
post: operations["uploadFile"];
|
|
98
|
+
delete?: never;
|
|
99
|
+
options?: never;
|
|
100
|
+
head?: never;
|
|
101
|
+
patch?: never;
|
|
102
|
+
trace?: never;
|
|
103
|
+
};
|
|
104
|
+
"/backend/widget/v2/chat/vote": {
|
|
105
|
+
parameters: {
|
|
106
|
+
query?: never;
|
|
107
|
+
header?: never;
|
|
108
|
+
path?: never;
|
|
109
|
+
cookie?: never;
|
|
110
|
+
};
|
|
111
|
+
get?: never;
|
|
112
|
+
put?: never;
|
|
113
|
+
post: operations["voteMessage"];
|
|
114
|
+
delete?: never;
|
|
115
|
+
options?: never;
|
|
116
|
+
head?: never;
|
|
117
|
+
patch?: never;
|
|
118
|
+
trace?: never;
|
|
119
|
+
};
|
|
120
|
+
"/backend/widget/v2/contact/create-unverified": {
|
|
121
|
+
parameters: {
|
|
122
|
+
query?: never;
|
|
123
|
+
header?: never;
|
|
124
|
+
path?: never;
|
|
125
|
+
cookie?: never;
|
|
126
|
+
};
|
|
127
|
+
get?: never;
|
|
128
|
+
put?: never;
|
|
129
|
+
/** Create an unverified contact for the widget */
|
|
130
|
+
post: operations["createUnverifiedContact"];
|
|
131
|
+
delete?: never;
|
|
132
|
+
options?: never;
|
|
133
|
+
head?: never;
|
|
134
|
+
patch?: never;
|
|
135
|
+
trace?: never;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export type webhooks = Record<string, never>;
|
|
139
|
+
export interface components {
|
|
140
|
+
schemas: {
|
|
141
|
+
CreateUnverifiedContactDto: {
|
|
142
|
+
email?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
};
|
|
145
|
+
FileUploadDto: {
|
|
146
|
+
/** Format: binary */
|
|
147
|
+
file: string;
|
|
148
|
+
};
|
|
149
|
+
HandleContactMessageOutputDto: {
|
|
150
|
+
/** @enum {boolean} */
|
|
151
|
+
success: true;
|
|
152
|
+
code?: string | "session_assigned_to_human_agent";
|
|
153
|
+
options?: {
|
|
154
|
+
/** @enum {string} */
|
|
155
|
+
type: "options";
|
|
156
|
+
value: string[];
|
|
157
|
+
};
|
|
158
|
+
autopilotResponse?: {
|
|
159
|
+
/** @enum {string} */
|
|
160
|
+
type: "text";
|
|
161
|
+
value: {
|
|
162
|
+
error: boolean;
|
|
163
|
+
content: string;
|
|
164
|
+
};
|
|
165
|
+
id?: string;
|
|
166
|
+
};
|
|
167
|
+
uiResponse?: {
|
|
168
|
+
/** @enum {string} */
|
|
169
|
+
type: "ui";
|
|
170
|
+
value: {
|
|
171
|
+
/** @enum {string} */
|
|
172
|
+
type: "ui_component";
|
|
173
|
+
request_response?: unknown;
|
|
174
|
+
name: string;
|
|
175
|
+
content?: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
sessionIsHandedOff?: boolean;
|
|
179
|
+
} | {
|
|
180
|
+
/** @enum {boolean} */
|
|
181
|
+
success: false;
|
|
182
|
+
error: {
|
|
183
|
+
code?: string;
|
|
184
|
+
message?: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
HttpChatInputDto: {
|
|
188
|
+
/** Format: uuid */
|
|
189
|
+
uuid: string;
|
|
190
|
+
content: string;
|
|
191
|
+
session_id: string;
|
|
192
|
+
headers?: {
|
|
193
|
+
[key: string]: string;
|
|
194
|
+
} | null;
|
|
195
|
+
bot_token: string;
|
|
196
|
+
query_params?: {
|
|
197
|
+
[key: string]: string;
|
|
198
|
+
} | null;
|
|
199
|
+
user?: {
|
|
200
|
+
email?: string;
|
|
201
|
+
name?: string;
|
|
202
|
+
phone?: string;
|
|
203
|
+
avatar?: string;
|
|
204
|
+
customData?: {
|
|
205
|
+
[key: string]: string;
|
|
206
|
+
};
|
|
207
|
+
} | null;
|
|
208
|
+
language?: string | null;
|
|
209
|
+
attachments?: {
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
size: number;
|
|
213
|
+
type: string;
|
|
214
|
+
url: string;
|
|
215
|
+
}[] | null;
|
|
216
|
+
};
|
|
217
|
+
UploadWidgetFileResponseDto: {
|
|
218
|
+
fileName: string;
|
|
219
|
+
fileUrl: string;
|
|
220
|
+
};
|
|
221
|
+
WidgetContactTokenResponseDto: {
|
|
222
|
+
/** @description The JWT token to use for further requests */
|
|
223
|
+
token: string;
|
|
224
|
+
};
|
|
225
|
+
WidgetHistoryDto: {
|
|
226
|
+
publicId: string;
|
|
227
|
+
/** @enum {string} */
|
|
228
|
+
type: "message" | "handoff" | "handoff_to_zendesk" | "agent_message" | "agent_joined" | "agent_comment" | "agent_took_session_from_ai" | "agent_reopened_session" | "ai_decided_to_resolve_the_issue" | "email_draft_message" | "followup" | "ai_assumed_the_session_resolved" | "user_confirmed_the_session_resolved";
|
|
229
|
+
content: {
|
|
230
|
+
text?: string | null;
|
|
231
|
+
};
|
|
232
|
+
sender: {
|
|
233
|
+
/** @enum {string} */
|
|
234
|
+
kind: "user" | "agent" | "ai" | "none" | "unknown";
|
|
235
|
+
name?: string | null;
|
|
236
|
+
avatar?: string | null;
|
|
237
|
+
};
|
|
238
|
+
sentAt?: string | null;
|
|
239
|
+
actionCalls?: {
|
|
240
|
+
actionName: string;
|
|
241
|
+
args: {
|
|
242
|
+
[key: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
result?: {
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
} | null;
|
|
247
|
+
}[] | null;
|
|
248
|
+
attachments?: {
|
|
249
|
+
id: string;
|
|
250
|
+
name: string;
|
|
251
|
+
size: number;
|
|
252
|
+
type: string;
|
|
253
|
+
url: string;
|
|
254
|
+
}[] | null;
|
|
255
|
+
};
|
|
256
|
+
WidgetPreludeDto: {
|
|
257
|
+
initialQuestions: string[];
|
|
258
|
+
aiEnabled: boolean;
|
|
259
|
+
officeHours: unknown & {
|
|
260
|
+
monday?: {
|
|
261
|
+
from: string;
|
|
262
|
+
to: string;
|
|
263
|
+
};
|
|
264
|
+
tuesday?: {
|
|
265
|
+
from: string;
|
|
266
|
+
to: string;
|
|
267
|
+
};
|
|
268
|
+
wednesday?: {
|
|
269
|
+
from: string;
|
|
270
|
+
to: string;
|
|
271
|
+
};
|
|
272
|
+
thursday?: {
|
|
273
|
+
from: string;
|
|
274
|
+
to: string;
|
|
275
|
+
};
|
|
276
|
+
friday?: {
|
|
277
|
+
from: string;
|
|
278
|
+
to: string;
|
|
279
|
+
};
|
|
280
|
+
saturday?: {
|
|
281
|
+
from: string;
|
|
282
|
+
to: string;
|
|
283
|
+
};
|
|
284
|
+
sunday?: {
|
|
285
|
+
from: string;
|
|
286
|
+
to: string;
|
|
287
|
+
};
|
|
288
|
+
Everyday?: {
|
|
289
|
+
from: string;
|
|
290
|
+
to: string;
|
|
291
|
+
};
|
|
292
|
+
WeekDays?: {
|
|
293
|
+
from: string;
|
|
294
|
+
to: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
officeHoursTimezone: string | null;
|
|
298
|
+
organizationName: string;
|
|
299
|
+
};
|
|
300
|
+
/** @description WidgetSession */
|
|
301
|
+
WidgetSessionDto: {
|
|
302
|
+
/** Format: uuid */
|
|
303
|
+
id: string;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
updatedAt: string;
|
|
306
|
+
isHandedOff: boolean;
|
|
307
|
+
isOpened: boolean;
|
|
308
|
+
assignee: {
|
|
309
|
+
/** @enum {string} */
|
|
310
|
+
kind: "human" | "ai" | "none" | "unknown";
|
|
311
|
+
name: string | null;
|
|
312
|
+
avatarUrl: string | null;
|
|
313
|
+
};
|
|
314
|
+
channel: string;
|
|
315
|
+
isVerified: boolean;
|
|
316
|
+
};
|
|
317
|
+
WidgetVoteDto: {
|
|
318
|
+
/** @enum {string} */
|
|
319
|
+
action: "upvote" | "downvote";
|
|
320
|
+
sessionId: string;
|
|
321
|
+
messagePublicId: string;
|
|
322
|
+
};
|
|
323
|
+
WidgetVoteResponseDto: {
|
|
324
|
+
messagePublicId: string | null;
|
|
325
|
+
success: boolean;
|
|
326
|
+
};
|
|
327
|
+
ErrorDto: {
|
|
328
|
+
statusCode?: number;
|
|
329
|
+
message?: string;
|
|
330
|
+
error?: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
responses: never;
|
|
334
|
+
parameters: never;
|
|
335
|
+
requestBodies: never;
|
|
336
|
+
headers: never;
|
|
337
|
+
pathItems: never;
|
|
338
|
+
}
|
|
339
|
+
export type $defs = Record<string, never>;
|
|
340
|
+
export interface operations {
|
|
341
|
+
widgetPrelude: {
|
|
342
|
+
parameters: {
|
|
343
|
+
query?: never;
|
|
344
|
+
header: {
|
|
345
|
+
"X-Bot-Token": string;
|
|
346
|
+
};
|
|
347
|
+
path?: never;
|
|
348
|
+
cookie?: never;
|
|
349
|
+
};
|
|
350
|
+
requestBody?: never;
|
|
351
|
+
responses: {
|
|
352
|
+
200: {
|
|
353
|
+
headers: {
|
|
354
|
+
[name: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
content: {
|
|
357
|
+
"application/json": components["schemas"]["WidgetPreludeDto"];
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
/** @description Internal Server Error */
|
|
361
|
+
500: {
|
|
362
|
+
headers: {
|
|
363
|
+
[name: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
content: {
|
|
366
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
getSession: {
|
|
372
|
+
parameters: {
|
|
373
|
+
query?: never;
|
|
374
|
+
header?: never;
|
|
375
|
+
path: {
|
|
376
|
+
sessionId: string;
|
|
377
|
+
};
|
|
378
|
+
cookie?: never;
|
|
379
|
+
};
|
|
380
|
+
requestBody?: never;
|
|
381
|
+
responses: {
|
|
382
|
+
200: {
|
|
383
|
+
headers: {
|
|
384
|
+
[name: string]: unknown;
|
|
385
|
+
};
|
|
386
|
+
content: {
|
|
387
|
+
"application/json": components["schemas"]["WidgetSessionDto"];
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
/** @description Internal Server Error */
|
|
391
|
+
500: {
|
|
392
|
+
headers: {
|
|
393
|
+
[name: string]: unknown;
|
|
394
|
+
};
|
|
395
|
+
content: {
|
|
396
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
getSessionHistory: {
|
|
402
|
+
parameters: {
|
|
403
|
+
query?: {
|
|
404
|
+
/** @description The timestamp of the last message received by the widget in order to get any messages after. */
|
|
405
|
+
lastMessageTimestamp?: string;
|
|
406
|
+
};
|
|
407
|
+
header?: never;
|
|
408
|
+
path: {
|
|
409
|
+
sessionId: string;
|
|
410
|
+
};
|
|
411
|
+
cookie?: never;
|
|
412
|
+
};
|
|
413
|
+
requestBody?: never;
|
|
414
|
+
responses: {
|
|
415
|
+
200: {
|
|
416
|
+
headers: {
|
|
417
|
+
[name: string]: unknown;
|
|
418
|
+
};
|
|
419
|
+
content: {
|
|
420
|
+
"application/json": components["schemas"]["WidgetHistoryDto"][];
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
/** @description Internal Server Error */
|
|
424
|
+
500: {
|
|
425
|
+
headers: {
|
|
426
|
+
[name: string]: unknown;
|
|
427
|
+
};
|
|
428
|
+
content: {
|
|
429
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
createChatSession: {
|
|
435
|
+
parameters: {
|
|
436
|
+
query?: never;
|
|
437
|
+
header?: never;
|
|
438
|
+
path?: never;
|
|
439
|
+
cookie?: never;
|
|
440
|
+
};
|
|
441
|
+
requestBody?: never;
|
|
442
|
+
responses: {
|
|
443
|
+
200: {
|
|
444
|
+
headers: {
|
|
445
|
+
[name: string]: unknown;
|
|
446
|
+
};
|
|
447
|
+
content: {
|
|
448
|
+
"application/json": components["schemas"]["WidgetSessionDto"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
/** @description Internal Server Error */
|
|
452
|
+
500: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: unknown;
|
|
455
|
+
};
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
chatSend: {
|
|
463
|
+
parameters: {
|
|
464
|
+
query?: never;
|
|
465
|
+
header?: never;
|
|
466
|
+
path?: never;
|
|
467
|
+
cookie?: never;
|
|
468
|
+
};
|
|
469
|
+
requestBody: {
|
|
470
|
+
content: {
|
|
471
|
+
"application/json": components["schemas"]["HttpChatInputDto"];
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
responses: {
|
|
475
|
+
200: {
|
|
476
|
+
headers: {
|
|
477
|
+
[name: string]: unknown;
|
|
478
|
+
};
|
|
479
|
+
content: {
|
|
480
|
+
"application/json": components["schemas"]["HandleContactMessageOutputDto"];
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
/** @description Internal Server Error */
|
|
484
|
+
500: {
|
|
485
|
+
headers: {
|
|
486
|
+
[name: string]: unknown;
|
|
487
|
+
};
|
|
488
|
+
content: {
|
|
489
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
uploadFile: {
|
|
495
|
+
parameters: {
|
|
496
|
+
query?: never;
|
|
497
|
+
header?: never;
|
|
498
|
+
path?: never;
|
|
499
|
+
cookie?: never;
|
|
500
|
+
};
|
|
501
|
+
/** @description The file to upload */
|
|
502
|
+
requestBody: {
|
|
503
|
+
content: {
|
|
504
|
+
"multipart/form-data": components["schemas"]["FileUploadDto"];
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
responses: {
|
|
508
|
+
200: {
|
|
509
|
+
headers: {
|
|
510
|
+
[name: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
content: {
|
|
513
|
+
"application/json": components["schemas"]["UploadWidgetFileResponseDto"];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
/** @description Internal Server Error */
|
|
517
|
+
500: {
|
|
518
|
+
headers: {
|
|
519
|
+
[name: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
content: {
|
|
522
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
voteMessage: {
|
|
528
|
+
parameters: {
|
|
529
|
+
query?: never;
|
|
530
|
+
header?: never;
|
|
531
|
+
path?: never;
|
|
532
|
+
cookie?: never;
|
|
533
|
+
};
|
|
534
|
+
requestBody: {
|
|
535
|
+
content: {
|
|
536
|
+
"application/json": components["schemas"]["WidgetVoteDto"];
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
responses: {
|
|
540
|
+
200: {
|
|
541
|
+
headers: {
|
|
542
|
+
[name: string]: unknown;
|
|
543
|
+
};
|
|
544
|
+
content: {
|
|
545
|
+
"application/json": components["schemas"]["WidgetVoteResponseDto"];
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
/** @description Internal Server Error */
|
|
549
|
+
500: {
|
|
550
|
+
headers: {
|
|
551
|
+
[name: string]: unknown;
|
|
552
|
+
};
|
|
553
|
+
content: {
|
|
554
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
createUnverifiedContact: {
|
|
560
|
+
parameters: {
|
|
561
|
+
query?: never;
|
|
562
|
+
header: {
|
|
563
|
+
"x-bot-token": string;
|
|
564
|
+
};
|
|
565
|
+
path?: never;
|
|
566
|
+
cookie?: never;
|
|
567
|
+
};
|
|
568
|
+
requestBody: {
|
|
569
|
+
content: {
|
|
570
|
+
"application/json": components["schemas"]["CreateUnverifiedContactDto"];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
responses: {
|
|
574
|
+
200: {
|
|
575
|
+
headers: {
|
|
576
|
+
[name: string]: unknown;
|
|
577
|
+
};
|
|
578
|
+
content: {
|
|
579
|
+
"application/json": components["schemas"]["WidgetContactTokenResponseDto"];
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
/** @description Internal Server Error */
|
|
583
|
+
500: {
|
|
584
|
+
headers: {
|
|
585
|
+
[name: string]: unknown;
|
|
586
|
+
};
|
|
587
|
+
content: {
|
|
588
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
}
|
|
@@ -50,7 +50,7 @@ function nn(e) {
|
|
|
50
50
|
return r;
|
|
51
51
|
}, t.Provider];
|
|
52
52
|
}
|
|
53
|
-
const rn = "3.0.
|
|
53
|
+
const rn = "3.0.3", [te, on] = nn();
|
|
54
54
|
function tr({
|
|
55
55
|
options: e,
|
|
56
56
|
children: t,
|
|
@@ -1333,4 +1333,4 @@ export {
|
|
|
1333
1333
|
ir as m,
|
|
1334
1334
|
te as u
|
|
1335
1335
|
};
|
|
1336
|
-
//# sourceMappingURL=useUploadFiles-
|
|
1336
|
+
//# sourceMappingURL=useUploadFiles-D-VrK2va.js.map
|