@botpress/webchat 1.3.1 → 1.3.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/adapters/messaging-to-target.d.ts +58 -26
- package/dist/adapters/target.d.ts +5 -0
- package/dist/adapters/webchat-to-target.d.ts +56 -32
- package/dist/client/MessagingClient/client.d.ts +1 -0
- package/dist/client/types.d.ts +1 -0
- package/dist/components/Block.d.ts +7 -5
- package/dist/contexts/WebchatContext.d.ts +5 -8
- package/dist/gen/client/api.d.ts +37 -10
- package/dist/gen/signals/{customSignal.t.d.ts → custom.t.d.ts} +1 -1
- package/dist/gen/signals/index.d.ts +16 -16
- package/dist/gen/signals/{messageCreatedSignal.t.d.ts → messageCreated.t.d.ts} +1 -1
- package/dist/gen/signals/{webchatConfigSignal.t.d.ts → webchatConfig.t.d.ts} +1 -1
- package/dist/gen/signals/{webchatVisibilitySignal.t.d.ts → webchatVisibility.t.d.ts} +1 -1
- package/dist/index.js +6923 -6940
- package/dist/index.umd.cjs +77 -77
- package/dist/types/block-type.d.ts +3 -3
- package/openapi.ts +4 -5
- package/package.json +2 -1
- package/dist/gen/models/conversation.j.d.ts +0 -20
- package/dist/gen/models/conversation.t.d.ts +0 -10
- package/dist/gen/models/conversation.z.d.ts +0 -15
- package/dist/gen/models/index.d.ts +0 -1014
- package/dist/gen/models/message.j.d.ts +0 -490
- package/dist/gen/models/message.t.d.ts +0 -122
- package/dist/gen/models/message.z.d.ts +0 -439
- package/dist/gen/models/user.j.d.ts +0 -26
- package/dist/gen/models/user.t.d.ts +0 -12
- package/dist/gen/models/user.z.d.ts +0 -21
- /package/dist/gen/signals/{customSignal.j.d.ts → custom.j.d.ts} +0 -0
- /package/dist/gen/signals/{customSignal.z.d.ts → custom.z.d.ts} +0 -0
- /package/dist/gen/signals/{messageCreatedSignal.j.d.ts → messageCreated.j.d.ts} +0 -0
- /package/dist/gen/signals/{messageCreatedSignal.z.d.ts → messageCreated.z.d.ts} +0 -0
- /package/dist/gen/signals/{webchatConfigSignal.j.d.ts → webchatConfig.j.d.ts} +0 -0
- /package/dist/gen/signals/{webchatConfigSignal.z.d.ts → webchatConfig.z.d.ts} +0 -0
- /package/dist/gen/signals/{webchatVisibilitySignal.j.d.ts → webchatVisibility.j.d.ts} +0 -0
- /package/dist/gen/signals/{webchatVisibilitySignal.z.d.ts → webchatVisibility.z.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as adapters from 'webchat-adapters';
|
|
2
2
|
import * as target from './target';
|
|
3
3
|
type WithBubble<T extends target.Message> = target.BubbleOf<T>;
|
|
4
|
-
export type MessagingToTargetAdapters = adapters.Adapter<adapters.messaging.Messages, target.
|
|
4
|
+
export type MessagingToTargetAdapters = adapters.Adapter<adapters.messaging.Messages, target.AdaptersOutput>;
|
|
5
5
|
export declare const audioAdapter: ({ type, audio }: {
|
|
6
6
|
type: "audio";
|
|
7
7
|
audio: string;
|
|
@@ -9,8 +9,10 @@ export declare const audioAdapter: ({ type, audio }: {
|
|
|
9
9
|
avatarUrl?: string | undefined;
|
|
10
10
|
title?: string | undefined;
|
|
11
11
|
}) => {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
payload: {
|
|
13
|
+
type: "audio";
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
14
16
|
};
|
|
15
17
|
export declare const cardAdapter: (card: {
|
|
16
18
|
title: string;
|
|
@@ -32,7 +34,9 @@ export declare const cardAdapter: (card: {
|
|
|
32
34
|
avatarUrl?: string | undefined;
|
|
33
35
|
subtitle?: string | undefined;
|
|
34
36
|
image?: string | undefined;
|
|
35
|
-
}) =>
|
|
37
|
+
}) => {
|
|
38
|
+
payload: WithBubble<target.ColumnMessage>;
|
|
39
|
+
};
|
|
36
40
|
export declare const carouselAdapter: ({ items }: {
|
|
37
41
|
type: "carousel";
|
|
38
42
|
items: {
|
|
@@ -59,8 +63,10 @@ export declare const carouselAdapter: ({ items }: {
|
|
|
59
63
|
className?: string | undefined;
|
|
60
64
|
avatarUrl?: string | undefined;
|
|
61
65
|
}) => {
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
payload: {
|
|
67
|
+
type: "carousel";
|
|
68
|
+
blocks: target.ColumnMessage[];
|
|
69
|
+
};
|
|
64
70
|
};
|
|
65
71
|
export declare const choiceAdapter: (x: {
|
|
66
72
|
type: "single-choice";
|
|
@@ -72,7 +78,10 @@ export declare const choiceAdapter: (x: {
|
|
|
72
78
|
className?: string | undefined;
|
|
73
79
|
avatarUrl?: string | undefined;
|
|
74
80
|
disableFreeText?: boolean | undefined;
|
|
75
|
-
}) =>
|
|
81
|
+
}) => {
|
|
82
|
+
disableInput: boolean | undefined;
|
|
83
|
+
payload: target.Message;
|
|
84
|
+
};
|
|
76
85
|
export declare const dropdownAdapter: (x: {
|
|
77
86
|
options: {
|
|
78
87
|
value: string;
|
|
@@ -90,7 +99,10 @@ export declare const dropdownAdapter: (x: {
|
|
|
90
99
|
displayInKeyboard?: boolean | undefined;
|
|
91
100
|
markdown?: boolean | undefined;
|
|
92
101
|
text?: string | undefined;
|
|
93
|
-
}) =>
|
|
102
|
+
}) => {
|
|
103
|
+
disableInput: true;
|
|
104
|
+
payload: WithBubble<target.ColumnMessage>;
|
|
105
|
+
};
|
|
94
106
|
export declare const fileAdapter: ({ file, ...props }: {
|
|
95
107
|
type: "file";
|
|
96
108
|
file: string;
|
|
@@ -98,11 +110,13 @@ export declare const fileAdapter: ({ file, ...props }: {
|
|
|
98
110
|
avatarUrl?: string | undefined;
|
|
99
111
|
title?: string | undefined;
|
|
100
112
|
}) => {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
payload: {
|
|
114
|
+
type: "file";
|
|
115
|
+
className?: string | undefined;
|
|
116
|
+
avatarUrl?: string | undefined;
|
|
117
|
+
title?: string | undefined;
|
|
118
|
+
url: string;
|
|
119
|
+
};
|
|
106
120
|
};
|
|
107
121
|
export declare const imageAdapter: ({ type, image }: {
|
|
108
122
|
type: "image";
|
|
@@ -110,8 +124,10 @@ export declare const imageAdapter: ({ type, image }: {
|
|
|
110
124
|
className?: string | undefined;
|
|
111
125
|
avatarUrl?: string | undefined;
|
|
112
126
|
}) => {
|
|
113
|
-
|
|
114
|
-
|
|
127
|
+
payload: {
|
|
128
|
+
type: "image";
|
|
129
|
+
url: string;
|
|
130
|
+
};
|
|
115
131
|
};
|
|
116
132
|
export declare const locationAdapter: ({ type, latitude, longitude, title, address }: {
|
|
117
133
|
type: "location";
|
|
@@ -122,10 +138,22 @@ export declare const locationAdapter: ({ type, latitude, longitude, title, addre
|
|
|
122
138
|
address?: string | undefined;
|
|
123
139
|
title?: string | undefined;
|
|
124
140
|
}) => {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
payload: {
|
|
142
|
+
type: "location";
|
|
143
|
+
latitude: number;
|
|
144
|
+
longitude: number;
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export declare const quickReplyAdapter: ({ text, payload }: {
|
|
149
|
+
type: "quick_reply";
|
|
150
|
+
text: string;
|
|
151
|
+
payload?: string | undefined;
|
|
152
|
+
}) => {
|
|
153
|
+
payload: {
|
|
154
|
+
type: "text";
|
|
155
|
+
text: string;
|
|
156
|
+
};
|
|
129
157
|
};
|
|
130
158
|
export declare const textAdapter: ({ type, text }: {
|
|
131
159
|
type: "text";
|
|
@@ -133,10 +161,12 @@ export declare const textAdapter: ({ type, text }: {
|
|
|
133
161
|
className?: string | undefined;
|
|
134
162
|
avatarUrl?: string | undefined;
|
|
135
163
|
markdown?: boolean | undefined;
|
|
136
|
-
}) =>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
164
|
+
}) => {
|
|
165
|
+
payload: WithBubble<{
|
|
166
|
+
type: "text";
|
|
167
|
+
text: string;
|
|
168
|
+
}>;
|
|
169
|
+
};
|
|
140
170
|
export declare const videoAdapter: ({ type, video }: {
|
|
141
171
|
type: "video";
|
|
142
172
|
video: string;
|
|
@@ -144,8 +174,10 @@ export declare const videoAdapter: ({ type, video }: {
|
|
|
144
174
|
avatarUrl?: string | undefined;
|
|
145
175
|
title?: string | undefined;
|
|
146
176
|
}) => {
|
|
147
|
-
|
|
148
|
-
|
|
177
|
+
payload: {
|
|
178
|
+
type: "video";
|
|
179
|
+
url: string;
|
|
180
|
+
};
|
|
149
181
|
};
|
|
150
|
-
export declare const messageAdapter: (message: adapters.messaging.Message) => target.
|
|
182
|
+
export declare const messageAdapter: (message: adapters.messaging.Message) => target.AdapterOutput;
|
|
151
183
|
export {};
|
|
@@ -75,3 +75,8 @@ export type RowOf<T extends Message> = Omit<RowMessage, 'blocks'> & {
|
|
|
75
75
|
blocks: T[];
|
|
76
76
|
};
|
|
77
77
|
export type Messages = adapters.MessagesOf<Message>;
|
|
78
|
+
export type AdapterOutput = {
|
|
79
|
+
payload: Message;
|
|
80
|
+
disableInput?: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type AdaptersOutput = Record<keyof Messages, AdapterOutput>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as adapters from 'webchat-adapters';
|
|
2
2
|
import * as target from './target';
|
|
3
|
-
export type WebchatToTargetAdapters = adapters.Adapter<adapters.webchat.Messages, target.
|
|
3
|
+
export type WebchatToTargetAdapters = adapters.Adapter<adapters.webchat.Messages, target.AdaptersOutput>;
|
|
4
4
|
export declare const audioAdapter: (webchatMessage: {
|
|
5
5
|
type: "audio";
|
|
6
6
|
audioUrl: string;
|
|
7
7
|
className?: string | undefined;
|
|
8
8
|
}) => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
payload: {
|
|
10
|
+
type: "audio";
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
11
13
|
};
|
|
12
14
|
export declare const cardAdapter: (webchatMessage: {
|
|
13
15
|
title: string;
|
|
@@ -20,8 +22,10 @@ export declare const cardAdapter: (webchatMessage: {
|
|
|
20
22
|
className?: string | undefined;
|
|
21
23
|
subtitle?: string | undefined;
|
|
22
24
|
imageUrl?: string | undefined;
|
|
23
|
-
}) =>
|
|
24
|
-
|
|
25
|
+
}) => {
|
|
26
|
+
payload: Omit<target.BubbleMessage, "block"> & {
|
|
27
|
+
block: target.ColumnMessage;
|
|
28
|
+
};
|
|
25
29
|
};
|
|
26
30
|
export declare const carouselAdapter: (webchatMessage: {
|
|
27
31
|
type: "carousel";
|
|
@@ -38,8 +42,10 @@ export declare const carouselAdapter: (webchatMessage: {
|
|
|
38
42
|
}[];
|
|
39
43
|
className?: string | undefined;
|
|
40
44
|
}) => {
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
payload: {
|
|
46
|
+
type: "carousel";
|
|
47
|
+
blocks: target.ColumnMessage[];
|
|
48
|
+
};
|
|
43
49
|
};
|
|
44
50
|
export declare const choiceAdapter: (webchatMessage: {
|
|
45
51
|
options: {
|
|
@@ -50,7 +56,10 @@ export declare const choiceAdapter: (webchatMessage: {
|
|
|
50
56
|
text: string;
|
|
51
57
|
disableFreeText?: boolean | undefined;
|
|
52
58
|
className?: string | undefined;
|
|
53
|
-
}) =>
|
|
59
|
+
}) => {
|
|
60
|
+
disableInput: boolean | undefined;
|
|
61
|
+
payload: target.Message;
|
|
62
|
+
};
|
|
54
63
|
export declare const dropdownAdapter: (webchatMessage: {
|
|
55
64
|
options: {
|
|
56
65
|
value: string;
|
|
@@ -59,8 +68,11 @@ export declare const dropdownAdapter: (webchatMessage: {
|
|
|
59
68
|
type: "dropdown";
|
|
60
69
|
text: string;
|
|
61
70
|
className?: string | undefined;
|
|
62
|
-
}) =>
|
|
63
|
-
|
|
71
|
+
}) => {
|
|
72
|
+
disableInput: true;
|
|
73
|
+
payload: Omit<target.BubbleMessage, "block"> & {
|
|
74
|
+
block: target.ColumnMessage;
|
|
75
|
+
};
|
|
64
76
|
};
|
|
65
77
|
export declare const fileAdapter: (webchatMessage: {
|
|
66
78
|
type: "file";
|
|
@@ -68,19 +80,23 @@ export declare const fileAdapter: (webchatMessage: {
|
|
|
68
80
|
title?: string | undefined;
|
|
69
81
|
className?: string | undefined;
|
|
70
82
|
}) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
payload: {
|
|
84
|
+
type: "file";
|
|
85
|
+
className?: string | undefined;
|
|
86
|
+
avatarUrl?: string | undefined;
|
|
87
|
+
title?: string | undefined;
|
|
88
|
+
url: string;
|
|
89
|
+
};
|
|
76
90
|
};
|
|
77
91
|
export declare const imageAdapter: (webchatMessage: {
|
|
78
92
|
type: "image";
|
|
79
93
|
imageUrl: string;
|
|
80
94
|
className?: string | undefined;
|
|
81
95
|
}) => {
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
payload: {
|
|
97
|
+
type: "image";
|
|
98
|
+
url: string;
|
|
99
|
+
};
|
|
84
100
|
};
|
|
85
101
|
export declare const locationAdapter: (webchatMessage: {
|
|
86
102
|
type: "location";
|
|
@@ -90,29 +106,35 @@ export declare const locationAdapter: (webchatMessage: {
|
|
|
90
106
|
address?: string | undefined;
|
|
91
107
|
className?: string | undefined;
|
|
92
108
|
}) => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
109
|
+
payload: {
|
|
110
|
+
type: "location";
|
|
111
|
+
latitude: number;
|
|
112
|
+
longitude: number;
|
|
113
|
+
title: string;
|
|
114
|
+
};
|
|
97
115
|
};
|
|
98
116
|
export declare const markdownAdapter: (webchatMessage: {
|
|
99
117
|
type: "markdown";
|
|
100
118
|
markdown: string;
|
|
101
119
|
className?: string | undefined;
|
|
102
|
-
}) =>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
120
|
+
}) => {
|
|
121
|
+
payload: Omit<target.BubbleMessage, "block"> & {
|
|
122
|
+
block: {
|
|
123
|
+
type: "text";
|
|
124
|
+
text: string;
|
|
125
|
+
};
|
|
106
126
|
};
|
|
107
127
|
};
|
|
108
128
|
export declare const textAdapter: (webchatMessage: {
|
|
109
129
|
type: "text";
|
|
110
130
|
text: string;
|
|
111
131
|
className?: string | undefined;
|
|
112
|
-
}) =>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
132
|
+
}) => {
|
|
133
|
+
payload: Omit<target.BubbleMessage, "block"> & {
|
|
134
|
+
block: {
|
|
135
|
+
type: "text";
|
|
136
|
+
text: string;
|
|
137
|
+
};
|
|
116
138
|
};
|
|
117
139
|
};
|
|
118
140
|
export declare const videoAdapter: (webchatMessage: {
|
|
@@ -120,7 +142,9 @@ export declare const videoAdapter: (webchatMessage: {
|
|
|
120
142
|
videoUrl: string;
|
|
121
143
|
className?: string | undefined;
|
|
122
144
|
}) => {
|
|
123
|
-
|
|
124
|
-
|
|
145
|
+
payload: {
|
|
146
|
+
type: "video";
|
|
147
|
+
url: string;
|
|
148
|
+
};
|
|
125
149
|
};
|
|
126
|
-
export declare const messageAdapter: (message: adapters.webchat.Message) => target.
|
|
150
|
+
export declare const messageAdapter: (message: adapters.webchat.Message) => target.AdapterOutput;
|
|
@@ -22,6 +22,7 @@ export declare class MessagingClient implements WebchatClient {
|
|
|
22
22
|
newConversation(): Promise<void>;
|
|
23
23
|
listMessages(limit?: number): Promise<{
|
|
24
24
|
payload: import("../../adapters/target").Message;
|
|
25
|
+
disableInput: boolean | undefined;
|
|
25
26
|
id: string;
|
|
26
27
|
conversationId: string;
|
|
27
28
|
authorId: string | undefined;
|
package/dist/client/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
block:
|
|
5
|
-
}
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { BlockObjects, BlockType, CommonBlockProps } from '../types';
|
|
3
|
+
type BlockProps<T extends BlockType> = CommonBlockProps & {
|
|
4
|
+
block: BlockObjects[T];
|
|
5
|
+
};
|
|
6
|
+
export declare const Block: <T extends "text" | "image" | "button" | "audio" | "video" | "file" | "location" | "column" | "row" | "bubble" | "carousel" | "dropdown">({ block, styles, ...props }: BlockProps<T>) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
|
-
import { Theme, Configuration,
|
|
1
|
+
import { CSSProperties, FC, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Theme, Configuration, BlockObjects, MessageObject, CommonBlockProps, BlockType } from '../types';
|
|
3
3
|
import { EventEmitter, Events } from '../utils';
|
|
4
4
|
import { WebchatClient } from '../client';
|
|
5
5
|
export type StyleOptions = {
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
};
|
|
9
|
-
export type Renderers
|
|
10
|
-
[T in
|
|
11
|
-
type: T;
|
|
12
|
-
}> & {
|
|
13
|
-
styles: BlockStyles;
|
|
14
|
-
}>;
|
|
9
|
+
export type Renderers = {
|
|
10
|
+
[T in BlockType]: FC<CommonBlockProps & BlockObjects[T]>;
|
|
15
11
|
};
|
|
16
12
|
export type ModalProps = {
|
|
17
13
|
title: string | null;
|
|
@@ -19,6 +15,7 @@ export type ModalProps = {
|
|
|
19
15
|
};
|
|
20
16
|
export type ContextVaue = {
|
|
21
17
|
theme: Theme;
|
|
18
|
+
messageContainerRef: RefObject<HTMLUListElement>;
|
|
22
19
|
renderers: Renderers;
|
|
23
20
|
messages: MessageObject[];
|
|
24
21
|
setMessages: React.Dispatch<React.SetStateAction<MessageObject[]>>;
|
package/dist/gen/client/api.d.ts
CHANGED
|
@@ -129,11 +129,11 @@ export interface CreateEventBodyPayloadOneOf {
|
|
|
129
129
|
'type': CreateEventBodyPayloadOneOfTypeEnum;
|
|
130
130
|
/**
|
|
131
131
|
*
|
|
132
|
-
* @type {{ [key: string]: any
|
|
132
|
+
* @type {{ [key: string]: any; }}
|
|
133
133
|
* @memberof CreateEventBodyPayloadOneOf
|
|
134
134
|
*/
|
|
135
135
|
'data': {
|
|
136
|
-
[key: string]: any
|
|
136
|
+
[key: string]: any;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
export declare const CreateEventBodyPayloadOneOfTypeEnum: {
|
|
@@ -154,10 +154,12 @@ export interface CreateEventBodyPayloadOneOf1 {
|
|
|
154
154
|
'type': CreateEventBodyPayloadOneOf1TypeEnum;
|
|
155
155
|
/**
|
|
156
156
|
*
|
|
157
|
-
* @type {
|
|
157
|
+
* @type {{ [key: string]: any; }}
|
|
158
158
|
* @memberof CreateEventBodyPayloadOneOf1
|
|
159
159
|
*/
|
|
160
|
-
'data':
|
|
160
|
+
'data': {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
};
|
|
161
163
|
}
|
|
162
164
|
export declare const CreateEventBodyPayloadOneOf1TypeEnum: {
|
|
163
165
|
readonly ConversationStarted: "conversation_started";
|
|
@@ -700,11 +702,11 @@ export interface CreateUserBody {
|
|
|
700
702
|
'pictureUrl'?: string;
|
|
701
703
|
/**
|
|
702
704
|
* User data
|
|
703
|
-
* @type {{ [key: string]: any
|
|
705
|
+
* @type {{ [key: string]: any; }}
|
|
704
706
|
* @memberof CreateUserBody
|
|
705
707
|
*/
|
|
706
708
|
'userData'?: {
|
|
707
|
-
[key: string]: any
|
|
709
|
+
[key: string]: any;
|
|
708
710
|
};
|
|
709
711
|
}
|
|
710
712
|
/**
|
|
@@ -861,10 +863,10 @@ export interface ListConversationMessagesResponse {
|
|
|
861
863
|
export interface ListConversationsResponse {
|
|
862
864
|
/**
|
|
863
865
|
*
|
|
864
|
-
* @type {Array<
|
|
866
|
+
* @type {Array<ListConversationsResponseConversationsInner>}
|
|
865
867
|
* @memberof ListConversationsResponse
|
|
866
868
|
*/
|
|
867
|
-
'conversations': Array<
|
|
869
|
+
'conversations': Array<ListConversationsResponseConversationsInner>;
|
|
868
870
|
/**
|
|
869
871
|
*
|
|
870
872
|
* @type {ListParticipantsResponseMeta}
|
|
@@ -872,6 +874,31 @@ export interface ListConversationsResponse {
|
|
|
872
874
|
*/
|
|
873
875
|
'meta': ListParticipantsResponseMeta;
|
|
874
876
|
}
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @export
|
|
880
|
+
* @interface ListConversationsResponseConversationsInner
|
|
881
|
+
*/
|
|
882
|
+
export interface ListConversationsResponseConversationsInner {
|
|
883
|
+
/**
|
|
884
|
+
* Id of the [Conversation](#schema_conversation)
|
|
885
|
+
* @type {string}
|
|
886
|
+
* @memberof ListConversationsResponseConversationsInner
|
|
887
|
+
*/
|
|
888
|
+
'id': string;
|
|
889
|
+
/**
|
|
890
|
+
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof ListConversationsResponseConversationsInner
|
|
893
|
+
*/
|
|
894
|
+
'createdAt': string;
|
|
895
|
+
/**
|
|
896
|
+
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof ListConversationsResponseConversationsInner
|
|
899
|
+
*/
|
|
900
|
+
'updatedAt': string;
|
|
901
|
+
}
|
|
875
902
|
/**
|
|
876
903
|
*
|
|
877
904
|
* @export
|
|
@@ -961,11 +988,11 @@ export interface UpdateUserBody {
|
|
|
961
988
|
'pictureUrl'?: string;
|
|
962
989
|
/**
|
|
963
990
|
* User data
|
|
964
|
-
* @type {{ [key: string]: any
|
|
991
|
+
* @type {{ [key: string]: any; }}
|
|
965
992
|
* @memberof UpdateUserBody
|
|
966
993
|
*/
|
|
967
994
|
'userData'?: {
|
|
968
|
-
[key: string]: any
|
|
995
|
+
[key: string]: any;
|
|
969
996
|
};
|
|
970
997
|
}
|
|
971
998
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { MessageCreated } from './messageCreated.t';
|
|
2
|
+
import type { WebchatVisibility } from './webchatVisibility.t';
|
|
3
|
+
import type { WebchatConfig } from './webchatConfig.t';
|
|
4
|
+
import type { Custom } from './custom.t';
|
|
5
5
|
export declare const zod: {
|
|
6
|
-
|
|
6
|
+
messageCreated: import("zod").ZodObject<{
|
|
7
7
|
type: import("zod").ZodLiteral<"message_created">;
|
|
8
8
|
data: import("zod").ZodObject<{
|
|
9
9
|
id: import("zod").ZodString;
|
|
@@ -609,7 +609,7 @@ export declare const zod: {
|
|
|
609
609
|
createdAt: string;
|
|
610
610
|
};
|
|
611
611
|
}>;
|
|
612
|
-
|
|
612
|
+
webchatVisibility: import("zod").ZodObject<{
|
|
613
613
|
type: import("zod").ZodLiteral<"webchat_visibility">;
|
|
614
614
|
data: import("zod").ZodObject<{
|
|
615
615
|
visibility: import("zod").ZodEnum<["show", "hide", "toggle"]>;
|
|
@@ -629,7 +629,7 @@ export declare const zod: {
|
|
|
629
629
|
visibility: "show" | "hide" | "toggle";
|
|
630
630
|
};
|
|
631
631
|
}>;
|
|
632
|
-
|
|
632
|
+
webchatConfig: import("zod").ZodObject<{
|
|
633
633
|
type: import("zod").ZodLiteral<"webchat_config">;
|
|
634
634
|
data: import("zod").ZodObject<{
|
|
635
635
|
config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
@@ -649,7 +649,7 @@ export declare const zod: {
|
|
|
649
649
|
config: Record<string, any>;
|
|
650
650
|
};
|
|
651
651
|
}>;
|
|
652
|
-
|
|
652
|
+
custom: import("zod").ZodObject<{
|
|
653
653
|
type: import("zod").ZodLiteral<"custom">;
|
|
654
654
|
data: import("zod").ZodObject<{
|
|
655
655
|
event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
@@ -671,7 +671,7 @@ export declare const zod: {
|
|
|
671
671
|
}>;
|
|
672
672
|
};
|
|
673
673
|
export declare const json: {
|
|
674
|
-
|
|
674
|
+
messageCreated: {
|
|
675
675
|
type: string;
|
|
676
676
|
properties: {
|
|
677
677
|
type: {
|
|
@@ -1171,7 +1171,7 @@ export declare const json: {
|
|
|
1171
1171
|
additionalProperties: boolean;
|
|
1172
1172
|
$schema: string;
|
|
1173
1173
|
};
|
|
1174
|
-
|
|
1174
|
+
webchatVisibility: {
|
|
1175
1175
|
type: string;
|
|
1176
1176
|
properties: {
|
|
1177
1177
|
type: {
|
|
@@ -1194,7 +1194,7 @@ export declare const json: {
|
|
|
1194
1194
|
additionalProperties: boolean;
|
|
1195
1195
|
$schema: string;
|
|
1196
1196
|
};
|
|
1197
|
-
|
|
1197
|
+
webchatConfig: {
|
|
1198
1198
|
type: string;
|
|
1199
1199
|
properties: {
|
|
1200
1200
|
type: {
|
|
@@ -1217,7 +1217,7 @@ export declare const json: {
|
|
|
1217
1217
|
additionalProperties: boolean;
|
|
1218
1218
|
$schema: string;
|
|
1219
1219
|
};
|
|
1220
|
-
|
|
1220
|
+
custom: {
|
|
1221
1221
|
type: string;
|
|
1222
1222
|
properties: {
|
|
1223
1223
|
type: {
|
|
@@ -1242,8 +1242,8 @@ export declare const json: {
|
|
|
1242
1242
|
};
|
|
1243
1243
|
};
|
|
1244
1244
|
export type Types = {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1245
|
+
messageCreated: MessageCreated;
|
|
1246
|
+
webchatVisibility: WebchatVisibility;
|
|
1247
|
+
webchatConfig: WebchatConfig;
|
|
1248
|
+
custom: Custom;
|
|
1249
1249
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface MessageCreated {
|
|
7
7
|
type: "message_created";
|
|
8
8
|
data: {
|
|
9
9
|
id: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface WebchatVisibility {
|
|
7
7
|
type: "webchat_visibility";
|
|
8
8
|
data: {
|
|
9
9
|
visibility: "show" | "hide" | "toggle";
|