@botpress/webchat 2.5.0 → 2.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.
Files changed (168) hide show
  1. package/.storybook/main.ts +6 -1
  2. package/.turbo/turbo-build.log +12 -9
  3. package/dist/index.d.ts +14197 -15
  4. package/dist/index.js +11228 -10200
  5. package/dist/index.umd.cjs +72 -68
  6. package/dist/style.css +1 -1
  7. package/package.json +4 -2
  8. package/dist/adapters/index.d.ts +0 -2
  9. package/dist/adapters/target.d.ts +0 -83
  10. package/dist/adapters/typings.d.ts +0 -7
  11. package/dist/adapters/webchat-to-target.d.ts +0 -8
  12. package/dist/adapters/webchat.d.ts +0 -5
  13. package/dist/client/client.d.ts +0 -37
  14. package/dist/client/index.d.ts +0 -4
  15. package/dist/client/legacyClient.d.ts +0 -55
  16. package/dist/client/state-machine.d.ts +0 -40
  17. package/dist/client/types.d.ts +0 -35
  18. package/dist/components/Avatar.d.ts +0 -8
  19. package/dist/components/Block.d.ts +0 -9
  20. package/dist/components/Chat.d.ts +0 -30
  21. package/dist/components/CloseWindowButton.d.ts +0 -7
  22. package/dist/components/Composer/Composer.d.ts +0 -18
  23. package/dist/components/Composer/index.d.ts +0 -1
  24. package/dist/components/Composer/parts/FileAttachment.d.ts +0 -11
  25. package/dist/components/Composer/parts/FileInputButton.d.ts +0 -7
  26. package/dist/components/Composer/parts/SpeechRecognition.d.ts +0 -6
  27. package/dist/components/Composer/parts/TextInput.d.ts +0 -13
  28. package/dist/components/Composer/parts/index.d.ts +0 -4
  29. package/dist/components/Container/Container.d.ts +0 -16
  30. package/dist/components/Container/index.d.ts +0 -1
  31. package/dist/components/Fab/Fab.d.ts +0 -1
  32. package/dist/components/Fab/index.d.ts +0 -1
  33. package/dist/components/Header/Header.d.ts +0 -12
  34. package/dist/components/Header/index.d.ts +0 -1
  35. package/dist/components/Loader/Loader.d.ts +0 -5
  36. package/dist/components/Loader/index.d.ts +0 -1
  37. package/dist/components/Marquee/Marquee.d.ts +0 -7
  38. package/dist/components/Marquee/index.d.ts +0 -1
  39. package/dist/components/Message/Message.d.ts +0 -12
  40. package/dist/components/Message/index.d.ts +0 -1
  41. package/dist/components/MessageList/MessageList.d.ts +0 -16
  42. package/dist/components/MessageList/index.d.ts +0 -1
  43. package/dist/components/Modal/Modal.d.ts +0 -17
  44. package/dist/components/Modal/index.d.ts +0 -1
  45. package/dist/components/RestartConversationButton.d.ts +0 -7
  46. package/dist/components/TypingIndicator/TypingIndicator.d.ts +0 -2
  47. package/dist/components/TypingIndicator/index.d.ts +0 -1
  48. package/dist/components/Webchat.d.ts +0 -13
  49. package/dist/components/index.d.ts +0 -14
  50. package/dist/components/renderers/Audio/Audio.d.ts +0 -6
  51. package/dist/components/renderers/Audio/index.d.ts +0 -1
  52. package/dist/components/renderers/Bubble/Bubble.d.ts +0 -5
  53. package/dist/components/renderers/Bubble/index.d.ts +0 -1
  54. package/dist/components/renderers/Button/Button.d.ts +0 -4
  55. package/dist/components/renderers/Button/index.d.ts +0 -1
  56. package/dist/components/renderers/Carousel/Carousel.d.ts +0 -6
  57. package/dist/components/renderers/Carousel/index.d.ts +0 -1
  58. package/dist/components/renderers/Column/Column.d.ts +0 -5
  59. package/dist/components/renderers/Column/index.d.ts +0 -1
  60. package/dist/components/renderers/Custom/Custom.d.ts +0 -14
  61. package/dist/components/renderers/Custom/index.d.ts +0 -1
  62. package/dist/components/renderers/Dropdown/Dropdown.d.ts +0 -5
  63. package/dist/components/renderers/Dropdown/index.d.ts +0 -1
  64. package/dist/components/renderers/File/File.d.ts +0 -6
  65. package/dist/components/renderers/File/index.d.ts +0 -1
  66. package/dist/components/renderers/Image/Image.d.ts +0 -6
  67. package/dist/components/renderers/Image/index.d.ts +0 -1
  68. package/dist/components/renderers/Location/Location.d.ts +0 -6
  69. package/dist/components/renderers/Location/index.d.ts +0 -1
  70. package/dist/components/renderers/Row/Row.d.ts +0 -5
  71. package/dist/components/renderers/Row/index.d.ts +0 -1
  72. package/dist/components/renderers/Text/Text.d.ts +0 -4
  73. package/dist/components/renderers/Text/index.d.ts +0 -1
  74. package/dist/components/renderers/Video/Video.d.ts +0 -6
  75. package/dist/components/renderers/Video/index.d.ts +0 -1
  76. package/dist/components/renderers/index.d.ts +0 -2
  77. package/dist/contexts/MessageContext.d.ts +0 -8
  78. package/dist/contexts/ModalContext.d.ts +0 -14
  79. package/dist/contexts/index.d.ts +0 -2
  80. package/dist/gen/client/errors.d.ts +0 -211
  81. package/dist/gen/client/index.d.ts +0 -71
  82. package/dist/gen/client/models.d.ts +0 -259
  83. package/dist/gen/client/operations/addParticipant.d.ts +0 -57
  84. package/dist/gen/client/operations/createConversation.d.ts +0 -39
  85. package/dist/gen/client/operations/createEvent.d.ts +0 -79
  86. package/dist/gen/client/operations/createFile.d.ts +0 -65
  87. package/dist/gen/client/operations/createMessage.d.ts +0 -324
  88. package/dist/gen/client/operations/createUser.d.ts +0 -66
  89. package/dist/gen/client/operations/deleteConversation.d.ts +0 -22
  90. package/dist/gen/client/operations/deleteMessage.d.ts +0 -22
  91. package/dist/gen/client/operations/deleteUser.d.ts +0 -21
  92. package/dist/gen/client/operations/getConversation.d.ts +0 -36
  93. package/dist/gen/client/operations/getEvent.d.ts +0 -58
  94. package/dist/gen/client/operations/getMessage.d.ts +0 -182
  95. package/dist/gen/client/operations/getParticipant.d.ts +0 -54
  96. package/dist/gen/client/operations/getUser.d.ts +0 -52
  97. package/dist/gen/client/operations/listConversationMessages.d.ts +0 -186
  98. package/dist/gen/client/operations/listConversations.d.ts +0 -42
  99. package/dist/gen/client/operations/listParticipants.d.ts +0 -57
  100. package/dist/gen/client/operations/listenConversation.d.ts +0 -22
  101. package/dist/gen/client/operations/removeParticipant.d.ts +0 -23
  102. package/dist/gen/client/operations/updateUser.d.ts +0 -66
  103. package/dist/gen/client/to-axios.d.ts +0 -16
  104. package/dist/gen/signals/custom.t.d.ts +0 -8
  105. package/dist/gen/signals/custom.z.d.ts +0 -22
  106. package/dist/gen/signals/index.d.ts +0 -1035
  107. package/dist/gen/signals/messageCreated.t.d.ts +0 -163
  108. package/dist/gen/signals/messageCreated.z.d.ts +0 -930
  109. package/dist/gen/signals/typingStarted.t.d.ts +0 -6
  110. package/dist/gen/signals/typingStarted.z.d.ts +0 -22
  111. package/dist/gen/signals/typingStopped.t.d.ts +0 -4
  112. package/dist/gen/signals/typingStopped.z.d.ts +0 -12
  113. package/dist/gen/signals/webchatConfig.t.d.ts +0 -8
  114. package/dist/gen/signals/webchatConfig.z.d.ts +0 -22
  115. package/dist/gen/signals/webchatVisibility.t.d.ts +0 -6
  116. package/dist/gen/signals/webchatVisibility.z.d.ts +0 -22
  117. package/dist/get-client.d.ts +0 -7
  118. package/dist/hooks/index.d.ts +0 -5
  119. package/dist/hooks/useClient.d.ts +0 -6
  120. package/dist/hooks/useImageSize.d.ts +0 -2
  121. package/dist/hooks/useIsTyping.d.ts +0 -4
  122. package/dist/hooks/useRefresh.d.ts +0 -10
  123. package/dist/hooks/useWebchatClient.d.ts +0 -50
  124. package/dist/providers/ModalProvider.d.ts +0 -8
  125. package/dist/providers/StylesheetProvider.d.ts +0 -4
  126. package/dist/providers/index.d.ts +0 -2
  127. package/dist/schemas/configuration.d.ts +0 -157
  128. package/dist/schemas/index.d.ts +0 -3
  129. package/dist/schemas/init.d.ts +0 -8487
  130. package/dist/schemas/theme.d.ts +0 -4358
  131. package/dist/stores/composerFileStore.d.ts +0 -21
  132. package/dist/stores/customComponentsStore.d.ts +0 -9
  133. package/dist/stores/index.d.ts +0 -5
  134. package/dist/stores/messageHistoryStore.d.ts +0 -20
  135. package/dist/stores/messagesStore.d.ts +0 -21
  136. package/dist/stores/userStore.d.ts +0 -32
  137. package/dist/stores/webchatStore.d.ts +0 -13
  138. package/dist/stories/Messages/Audio.stories.d.ts +0 -6
  139. package/dist/stories/Messages/Bloc.stories.d.ts +0 -6
  140. package/dist/stories/Messages/Card.stories.d.ts +0 -6
  141. package/dist/stories/Messages/Carousel.stories.d.ts +0 -6
  142. package/dist/stories/Messages/Choice.stories.d.ts +0 -6
  143. package/dist/stories/Messages/Custom.stories.d.ts +0 -12
  144. package/dist/stories/Messages/Dropdown.stories.d.ts +0 -6
  145. package/dist/stories/Messages/File.stories.d.ts +0 -6
  146. package/dist/stories/Messages/FileAttachmentCard.stories.d.ts +0 -6
  147. package/dist/stories/Messages/Image.stories.d.ts +0 -6
  148. package/dist/stories/Messages/Location.stories.d.ts +0 -6
  149. package/dist/stories/Messages/Text.stories.d.ts +0 -6
  150. package/dist/stories/Messages/Video.stories.d.ts +0 -6
  151. package/dist/styles/classes.d.ts +0 -410
  152. package/dist/styles/index.d.ts +0 -1
  153. package/dist/types/block-type.d.ts +0 -58
  154. package/dist/types/configuration.d.ts +0 -5
  155. package/dist/types/image.d.ts +0 -11
  156. package/dist/types/index.d.ts +0 -5
  157. package/dist/types/init.d.ts +0 -6
  158. package/dist/types/theme.d.ts +0 -7
  159. package/dist/utils/colors.d.ts +0 -21
  160. package/dist/utils/colors.test.d.ts +0 -1
  161. package/dist/utils/eventEmitter.d.ts +0 -12
  162. package/dist/utils/generateCSS.d.ts +0 -1
  163. package/dist/utils/hashStringToInt.d.ts +0 -1
  164. package/dist/utils/images.d.ts +0 -2
  165. package/dist/utils/index.d.ts +0 -7
  166. package/dist/utils/message.d.ts +0 -8
  167. package/dist/utils/message.test.d.ts +0 -1
  168. package/dist/utils/theme.d.ts +0 -2
@@ -1,182 +0,0 @@
1
- export interface GetMessageRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface GetMessageRequestQuery {
5
- }
6
- export interface GetMessageRequestParams {
7
- id: string;
8
- }
9
- export interface GetMessageRequestBody {
10
- }
11
- export type GetMessageInput = GetMessageRequestBody & GetMessageRequestHeaders & GetMessageRequestQuery & GetMessageRequestParams;
12
- export type GetMessageRequest = {
13
- headers: GetMessageRequestHeaders;
14
- query: GetMessageRequestQuery;
15
- params: GetMessageRequestParams;
16
- body: GetMessageRequestBody;
17
- };
18
- export declare const parseReq: (input: GetMessageInput) => GetMessageRequest & {
19
- path: string;
20
- };
21
- export interface GetMessageResponse {
22
- /**
23
- * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
24
- */
25
- message: {
26
- /**
27
- * Id of the [Message](#schema_message)
28
- */
29
- id: string;
30
- /**
31
- * Creation date of the [Message](#schema_message) in ISO 8601 format
32
- */
33
- createdAt: string;
34
- /**
35
- * Payload is the content type of the message.
36
- */
37
- payload: {
38
- audioUrl: string;
39
- type: "audio";
40
- [k: string]: any;
41
- } | {
42
- title: string;
43
- subtitle?: string;
44
- imageUrl?: string;
45
- actions: {
46
- action: "postback" | "url" | "say";
47
- label: string;
48
- value: string;
49
- [k: string]: any;
50
- }[];
51
- type: "card";
52
- [k: string]: any;
53
- } | {
54
- items: {
55
- title: string;
56
- subtitle?: string;
57
- imageUrl?: string;
58
- actions: {
59
- action: "postback" | "url" | "say";
60
- label: string;
61
- value: string;
62
- [k: string]: any;
63
- }[];
64
- [k: string]: any;
65
- }[];
66
- type: "carousel";
67
- [k: string]: any;
68
- } | {
69
- text: string;
70
- options: {
71
- label: string;
72
- value: string;
73
- [k: string]: any;
74
- }[];
75
- type: "choice";
76
- disableFreeText?: boolean;
77
- [k: string]: any;
78
- } | {
79
- text: string;
80
- options: {
81
- label: string;
82
- value: string;
83
- [k: string]: any;
84
- }[];
85
- type: "dropdown";
86
- [k: string]: any;
87
- } | {
88
- fileUrl: string;
89
- title?: string;
90
- type: "file";
91
- [k: string]: any;
92
- } | {
93
- imageUrl: string;
94
- type: "image";
95
- [k: string]: any;
96
- } | {
97
- latitude: number;
98
- longitude: number;
99
- address?: string;
100
- title?: string;
101
- type: "location";
102
- [k: string]: any;
103
- } | {
104
- markdown: string;
105
- type: "markdown";
106
- [k: string]: any;
107
- } | {
108
- text: string;
109
- type: "text";
110
- [k: string]: any;
111
- } | {
112
- videoUrl: string;
113
- type: "video";
114
- [k: string]: any;
115
- } | {
116
- items: ({
117
- type: "text";
118
- payload: {
119
- text: string;
120
- [k: string]: any;
121
- };
122
- [k: string]: any;
123
- } | {
124
- type: "markdown";
125
- payload: {
126
- markdown: string;
127
- [k: string]: any;
128
- };
129
- [k: string]: any;
130
- } | {
131
- type: "image";
132
- payload: {
133
- imageUrl: string;
134
- [k: string]: any;
135
- };
136
- [k: string]: any;
137
- } | {
138
- type: "audio";
139
- payload: {
140
- audioUrl: string;
141
- [k: string]: any;
142
- };
143
- [k: string]: any;
144
- } | {
145
- type: "video";
146
- payload: {
147
- videoUrl: string;
148
- [k: string]: any;
149
- };
150
- [k: string]: any;
151
- } | {
152
- type: "file";
153
- payload: {
154
- fileUrl: string;
155
- title?: string;
156
- [k: string]: any;
157
- };
158
- [k: string]: any;
159
- } | {
160
- type: "location";
161
- payload: {
162
- latitude: number;
163
- longitude: number;
164
- address?: string;
165
- title?: string;
166
- [k: string]: any;
167
- };
168
- [k: string]: any;
169
- })[];
170
- type: "bloc";
171
- [k: string]: any;
172
- };
173
- /**
174
- * ID of the [User](#schema_user)
175
- */
176
- userId: string;
177
- /**
178
- * ID of the [Conversation](#schema_conversation)
179
- */
180
- conversationId: string;
181
- };
182
- }
@@ -1,54 +0,0 @@
1
- export interface GetParticipantRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface GetParticipantRequestQuery {
5
- }
6
- export interface GetParticipantRequestParams {
7
- id: string;
8
- userId: string;
9
- }
10
- export interface GetParticipantRequestBody {
11
- }
12
- export type GetParticipantInput = GetParticipantRequestBody & GetParticipantRequestHeaders & GetParticipantRequestQuery & GetParticipantRequestParams;
13
- export type GetParticipantRequest = {
14
- headers: GetParticipantRequestHeaders;
15
- query: GetParticipantRequestQuery;
16
- params: GetParticipantRequestParams;
17
- body: GetParticipantRequestBody;
18
- };
19
- export declare const parseReq: (input: GetParticipantInput) => GetParticipantRequest & {
20
- path: string;
21
- };
22
- export interface GetParticipantResponse {
23
- /**
24
- * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
25
- */
26
- participant: {
27
- /**
28
- * Name of the [User](#schema_user)
29
- */
30
- name?: string;
31
- /**
32
- * Picture url of the [User](#schema_user)
33
- */
34
- pictureUrl?: string;
35
- /**
36
- * User data
37
- */
38
- data?: {
39
- [k: string]: any;
40
- };
41
- /**
42
- * Id of the [User](#schema_user)
43
- */
44
- id: string;
45
- /**
46
- * Creation date of the [User](#schema_user) in ISO 8601 format
47
- */
48
- createdAt: string;
49
- /**
50
- * Updating date of the [User](#schema_user) in ISO 8601 format
51
- */
52
- updatedAt: string;
53
- };
54
- }
@@ -1,52 +0,0 @@
1
- export interface GetUserRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface GetUserRequestQuery {
5
- }
6
- export interface GetUserRequestParams {
7
- }
8
- export interface GetUserRequestBody {
9
- }
10
- export type GetUserInput = GetUserRequestBody & GetUserRequestHeaders & GetUserRequestQuery & GetUserRequestParams;
11
- export type GetUserRequest = {
12
- headers: GetUserRequestHeaders;
13
- query: GetUserRequestQuery;
14
- params: GetUserRequestParams;
15
- body: GetUserRequestBody;
16
- };
17
- export declare const parseReq: (input: GetUserInput) => GetUserRequest & {
18
- path: string;
19
- };
20
- export interface GetUserResponse {
21
- /**
22
- * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
23
- */
24
- user: {
25
- /**
26
- * Name of the [User](#schema_user)
27
- */
28
- name?: string;
29
- /**
30
- * Picture url of the [User](#schema_user)
31
- */
32
- pictureUrl?: string;
33
- /**
34
- * User data
35
- */
36
- data?: {
37
- [k: string]: any;
38
- };
39
- /**
40
- * Id of the [User](#schema_user)
41
- */
42
- id: string;
43
- /**
44
- * Creation date of the [User](#schema_user) in ISO 8601 format
45
- */
46
- createdAt: string;
47
- /**
48
- * Updating date of the [User](#schema_user) in ISO 8601 format
49
- */
50
- updatedAt: string;
51
- };
52
- }
@@ -1,186 +0,0 @@
1
- export interface ListConversationMessagesRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface ListConversationMessagesRequestQuery {
5
- nextToken?: string;
6
- }
7
- export interface ListConversationMessagesRequestParams {
8
- id: string;
9
- }
10
- export interface ListConversationMessagesRequestBody {
11
- }
12
- export type ListConversationMessagesInput = ListConversationMessagesRequestBody & ListConversationMessagesRequestHeaders & ListConversationMessagesRequestQuery & ListConversationMessagesRequestParams;
13
- export type ListConversationMessagesRequest = {
14
- headers: ListConversationMessagesRequestHeaders;
15
- query: ListConversationMessagesRequestQuery;
16
- params: ListConversationMessagesRequestParams;
17
- body: ListConversationMessagesRequestBody;
18
- };
19
- export declare const parseReq: (input: ListConversationMessagesInput) => ListConversationMessagesRequest & {
20
- path: string;
21
- };
22
- export interface ListConversationMessagesResponse {
23
- messages: {
24
- /**
25
- * Id of the [Message](#schema_message)
26
- */
27
- id: string;
28
- /**
29
- * Creation date of the [Message](#schema_message) in ISO 8601 format
30
- */
31
- createdAt: string;
32
- /**
33
- * Payload is the content type of the message.
34
- */
35
- payload: {
36
- audioUrl: string;
37
- type: "audio";
38
- [k: string]: any;
39
- } | {
40
- title: string;
41
- subtitle?: string;
42
- imageUrl?: string;
43
- actions: {
44
- action: "postback" | "url" | "say";
45
- label: string;
46
- value: string;
47
- [k: string]: any;
48
- }[];
49
- type: "card";
50
- [k: string]: any;
51
- } | {
52
- items: {
53
- title: string;
54
- subtitle?: string;
55
- imageUrl?: string;
56
- actions: {
57
- action: "postback" | "url" | "say";
58
- label: string;
59
- value: string;
60
- [k: string]: any;
61
- }[];
62
- [k: string]: any;
63
- }[];
64
- type: "carousel";
65
- [k: string]: any;
66
- } | {
67
- text: string;
68
- options: {
69
- label: string;
70
- value: string;
71
- [k: string]: any;
72
- }[];
73
- type: "choice";
74
- disableFreeText?: boolean;
75
- [k: string]: any;
76
- } | {
77
- text: string;
78
- options: {
79
- label: string;
80
- value: string;
81
- [k: string]: any;
82
- }[];
83
- type: "dropdown";
84
- [k: string]: any;
85
- } | {
86
- fileUrl: string;
87
- title?: string;
88
- type: "file";
89
- [k: string]: any;
90
- } | {
91
- imageUrl: string;
92
- type: "image";
93
- [k: string]: any;
94
- } | {
95
- latitude: number;
96
- longitude: number;
97
- address?: string;
98
- title?: string;
99
- type: "location";
100
- [k: string]: any;
101
- } | {
102
- markdown: string;
103
- type: "markdown";
104
- [k: string]: any;
105
- } | {
106
- text: string;
107
- type: "text";
108
- [k: string]: any;
109
- } | {
110
- videoUrl: string;
111
- type: "video";
112
- [k: string]: any;
113
- } | {
114
- items: ({
115
- type: "text";
116
- payload: {
117
- text: string;
118
- [k: string]: any;
119
- };
120
- [k: string]: any;
121
- } | {
122
- type: "markdown";
123
- payload: {
124
- markdown: string;
125
- [k: string]: any;
126
- };
127
- [k: string]: any;
128
- } | {
129
- type: "image";
130
- payload: {
131
- imageUrl: string;
132
- [k: string]: any;
133
- };
134
- [k: string]: any;
135
- } | {
136
- type: "audio";
137
- payload: {
138
- audioUrl: string;
139
- [k: string]: any;
140
- };
141
- [k: string]: any;
142
- } | {
143
- type: "video";
144
- payload: {
145
- videoUrl: string;
146
- [k: string]: any;
147
- };
148
- [k: string]: any;
149
- } | {
150
- type: "file";
151
- payload: {
152
- fileUrl: string;
153
- title?: string;
154
- [k: string]: any;
155
- };
156
- [k: string]: any;
157
- } | {
158
- type: "location";
159
- payload: {
160
- latitude: number;
161
- longitude: number;
162
- address?: string;
163
- title?: string;
164
- [k: string]: any;
165
- };
166
- [k: string]: any;
167
- })[];
168
- type: "bloc";
169
- [k: string]: any;
170
- };
171
- /**
172
- * ID of the [User](#schema_user)
173
- */
174
- userId: string;
175
- /**
176
- * ID of the [Conversation](#schema_conversation)
177
- */
178
- conversationId: string;
179
- }[];
180
- meta: {
181
- /**
182
- * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
183
- */
184
- nextToken?: string;
185
- };
186
- }
@@ -1,42 +0,0 @@
1
- export interface ListConversationsRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface ListConversationsRequestQuery {
5
- nextToken?: string;
6
- }
7
- export interface ListConversationsRequestParams {
8
- }
9
- export interface ListConversationsRequestBody {
10
- }
11
- export type ListConversationsInput = ListConversationsRequestBody & ListConversationsRequestHeaders & ListConversationsRequestQuery & ListConversationsRequestParams;
12
- export type ListConversationsRequest = {
13
- headers: ListConversationsRequestHeaders;
14
- query: ListConversationsRequestQuery;
15
- params: ListConversationsRequestParams;
16
- body: ListConversationsRequestBody;
17
- };
18
- export declare const parseReq: (input: ListConversationsInput) => ListConversationsRequest & {
19
- path: string;
20
- };
21
- export interface ListConversationsResponse {
22
- conversations: {
23
- /**
24
- * Id of the [Conversation](#schema_conversation)
25
- */
26
- id: string;
27
- /**
28
- * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
29
- */
30
- createdAt: string;
31
- /**
32
- * Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
33
- */
34
- updatedAt: string;
35
- }[];
36
- meta: {
37
- /**
38
- * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
39
- */
40
- nextToken?: string;
41
- };
42
- }
@@ -1,57 +0,0 @@
1
- export interface ListParticipantsRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface ListParticipantsRequestQuery {
5
- nextToken?: string;
6
- }
7
- export interface ListParticipantsRequestParams {
8
- id: string;
9
- }
10
- export interface ListParticipantsRequestBody {
11
- }
12
- export type ListParticipantsInput = ListParticipantsRequestBody & ListParticipantsRequestHeaders & ListParticipantsRequestQuery & ListParticipantsRequestParams;
13
- export type ListParticipantsRequest = {
14
- headers: ListParticipantsRequestHeaders;
15
- query: ListParticipantsRequestQuery;
16
- params: ListParticipantsRequestParams;
17
- body: ListParticipantsRequestBody;
18
- };
19
- export declare const parseReq: (input: ListParticipantsInput) => ListParticipantsRequest & {
20
- path: string;
21
- };
22
- export interface ListParticipantsResponse {
23
- participants: {
24
- /**
25
- * Name of the [User](#schema_user)
26
- */
27
- name?: string;
28
- /**
29
- * Picture url of the [User](#schema_user)
30
- */
31
- pictureUrl?: string;
32
- /**
33
- * User data
34
- */
35
- data?: {
36
- [k: string]: any;
37
- };
38
- /**
39
- * Id of the [User](#schema_user)
40
- */
41
- id: string;
42
- /**
43
- * Creation date of the [User](#schema_user) in ISO 8601 format
44
- */
45
- createdAt: string;
46
- /**
47
- * Updating date of the [User](#schema_user) in ISO 8601 format
48
- */
49
- updatedAt: string;
50
- }[];
51
- meta: {
52
- /**
53
- * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
54
- */
55
- nextToken?: string;
56
- };
57
- }
@@ -1,22 +0,0 @@
1
- export interface ListenConversationRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface ListenConversationRequestQuery {
5
- }
6
- export interface ListenConversationRequestParams {
7
- id: string;
8
- }
9
- export interface ListenConversationRequestBody {
10
- }
11
- export type ListenConversationInput = ListenConversationRequestBody & ListenConversationRequestHeaders & ListenConversationRequestQuery & ListenConversationRequestParams;
12
- export type ListenConversationRequest = {
13
- headers: ListenConversationRequestHeaders;
14
- query: ListenConversationRequestQuery;
15
- params: ListenConversationRequestParams;
16
- body: ListenConversationRequestBody;
17
- };
18
- export declare const parseReq: (input: ListenConversationInput) => ListenConversationRequest & {
19
- path: string;
20
- };
21
- export interface ListenConversationResponse {
22
- }
@@ -1,23 +0,0 @@
1
- export interface RemoveParticipantRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface RemoveParticipantRequestQuery {
5
- }
6
- export interface RemoveParticipantRequestParams {
7
- id: string;
8
- userId: string;
9
- }
10
- export interface RemoveParticipantRequestBody {
11
- }
12
- export type RemoveParticipantInput = RemoveParticipantRequestBody & RemoveParticipantRequestHeaders & RemoveParticipantRequestQuery & RemoveParticipantRequestParams;
13
- export type RemoveParticipantRequest = {
14
- headers: RemoveParticipantRequestHeaders;
15
- query: RemoveParticipantRequestQuery;
16
- params: RemoveParticipantRequestParams;
17
- body: RemoveParticipantRequestBody;
18
- };
19
- export declare const parseReq: (input: RemoveParticipantInput) => RemoveParticipantRequest & {
20
- path: string;
21
- };
22
- export interface RemoveParticipantResponse {
23
- }
@@ -1,66 +0,0 @@
1
- export interface UpdateUserRequestHeaders {
2
- "x-user-key": string;
3
- }
4
- export interface UpdateUserRequestQuery {
5
- }
6
- export interface UpdateUserRequestParams {
7
- }
8
- export interface UpdateUserRequestBody {
9
- /**
10
- * Name of the [User](#schema_user) (not a unique identifier)
11
- */
12
- name?: string;
13
- /**
14
- * Picture url of the [User](#schema_user)
15
- */
16
- pictureUrl?: string;
17
- /**
18
- * User data
19
- */
20
- userData?: {
21
- [k: string]: any;
22
- } | null;
23
- }
24
- export type UpdateUserInput = UpdateUserRequestBody & UpdateUserRequestHeaders & UpdateUserRequestQuery & UpdateUserRequestParams;
25
- export type UpdateUserRequest = {
26
- headers: UpdateUserRequestHeaders;
27
- query: UpdateUserRequestQuery;
28
- params: UpdateUserRequestParams;
29
- body: UpdateUserRequestBody;
30
- };
31
- export declare const parseReq: (input: UpdateUserInput) => UpdateUserRequest & {
32
- path: string;
33
- };
34
- export interface UpdateUserResponse {
35
- /**
36
- * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
37
- */
38
- user: {
39
- /**
40
- * Name of the [User](#schema_user)
41
- */
42
- name?: string;
43
- /**
44
- * Picture url of the [User](#schema_user)
45
- */
46
- pictureUrl?: string;
47
- /**
48
- * User data
49
- */
50
- data?: {
51
- [k: string]: any;
52
- };
53
- /**
54
- * Id of the [User](#schema_user)
55
- */
56
- id: string;
57
- /**
58
- * Creation date of the [User](#schema_user) in ISO 8601 format
59
- */
60
- createdAt: string;
61
- /**
62
- * Updating date of the [User](#schema_user) in ISO 8601 format
63
- */
64
- updatedAt: string;
65
- };
66
- }