@botpress/webchat 1.3.3 → 1.3.4

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 (34) hide show
  1. package/.turbo/turbo-build.log +23 -0
  2. package/dist/adapters/messaging-to-target.d.ts +15 -15
  3. package/dist/adapters/webchat-to-target.d.ts +3 -3
  4. package/dist/client/PushpinClient/inner-client/index.d.ts +2 -2
  5. package/dist/gen/client/index.d.ts +78 -13
  6. package/dist/gen/client/models.d.ts +210 -0
  7. package/dist/gen/client/operations/addParticipant.d.ts +51 -0
  8. package/dist/gen/client/operations/createConversation.d.ts +39 -0
  9. package/dist/gen/client/operations/createEvent.d.ts +79 -0
  10. package/dist/gen/client/operations/createMessage.d.ts +274 -0
  11. package/dist/gen/client/operations/createUser.d.ts +60 -0
  12. package/dist/gen/client/operations/deleteConversation.d.ts +22 -0
  13. package/dist/gen/client/operations/deleteMessage.d.ts +22 -0
  14. package/dist/gen/client/operations/deleteUser.d.ts +21 -0
  15. package/dist/gen/client/operations/getConversation.d.ts +36 -0
  16. package/dist/gen/client/operations/getEvent.d.ts +58 -0
  17. package/dist/gen/client/operations/getMessage.d.ts +157 -0
  18. package/dist/gen/client/operations/getParticipant.d.ts +48 -0
  19. package/dist/gen/client/operations/getUser.d.ts +46 -0
  20. package/dist/gen/client/operations/listConversationMessages.d.ts +161 -0
  21. package/dist/gen/client/operations/listConversations.d.ts +42 -0
  22. package/dist/gen/client/operations/listParticipants.d.ts +51 -0
  23. package/dist/gen/client/operations/listenConversation.d.ts +22 -0
  24. package/dist/gen/client/operations/removeParticipant.d.ts +23 -0
  25. package/dist/gen/client/operations/updateUser.d.ts +60 -0
  26. package/dist/index.js +32872 -21167
  27. package/dist/index.umd.cjs +278 -95
  28. package/openapi.ts +5 -9
  29. package/package.json +3 -1
  30. package/dist/gen/client/api.d.ts +0 -2039
  31. package/dist/gen/client/base.d.ts +0 -54
  32. package/dist/gen/client/client.d.ts +0 -61
  33. package/dist/gen/client/common.d.ts +0 -65
  34. package/dist/gen/client/configuration.d.ts +0 -83
@@ -0,0 +1,46 @@
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
+ * Id of the [User](#schema_user)
35
+ */
36
+ id: string;
37
+ /**
38
+ * Creation date of the [User](#schema_user) in ISO 8601 format
39
+ */
40
+ createdAt: string;
41
+ /**
42
+ * Updating date of the [User](#schema_user) in ISO 8601 format
43
+ */
44
+ updatedAt: string;
45
+ };
46
+ }
@@ -0,0 +1,161 @@
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
+ /**
38
+ * CSS className to apply to the message
39
+ */
40
+ className?: string;
41
+ type: "audio";
42
+ } | {
43
+ title: string;
44
+ subtitle?: string;
45
+ imageUrl?: string;
46
+ actions: {
47
+ action: "postback" | "url" | "say";
48
+ label: string;
49
+ value: string;
50
+ }[];
51
+ type: "card";
52
+ /**
53
+ * CSS className to apply to the message
54
+ */
55
+ className?: string;
56
+ } | {
57
+ items: {
58
+ title: string;
59
+ subtitle?: string;
60
+ imageUrl?: string;
61
+ actions: {
62
+ action: "postback" | "url" | "say";
63
+ label: string;
64
+ value: string;
65
+ }[];
66
+ /**
67
+ * CSS className to apply to the message
68
+ */
69
+ className?: string;
70
+ }[];
71
+ /**
72
+ * CSS className to apply to the message
73
+ */
74
+ className?: string;
75
+ type: "carousel";
76
+ } | {
77
+ text: string;
78
+ options: {
79
+ label: string;
80
+ value: string;
81
+ }[];
82
+ /**
83
+ * CSS className to apply to the message
84
+ */
85
+ className?: string;
86
+ type: "choice";
87
+ disableFreeText?: boolean;
88
+ } | {
89
+ text: string;
90
+ options: {
91
+ label: string;
92
+ value: string;
93
+ }[];
94
+ /**
95
+ * CSS className to apply to the message
96
+ */
97
+ className?: string;
98
+ type: "dropdown";
99
+ } | {
100
+ fileUrl: string;
101
+ title?: string;
102
+ /**
103
+ * CSS className to apply to the message
104
+ */
105
+ className?: string;
106
+ type: "file";
107
+ } | {
108
+ imageUrl: string;
109
+ /**
110
+ * CSS className to apply to the message
111
+ */
112
+ className?: string;
113
+ type: "image";
114
+ } | {
115
+ latitude: number;
116
+ longitude: number;
117
+ address?: string;
118
+ title?: string;
119
+ /**
120
+ * CSS className to apply to the message
121
+ */
122
+ className?: string;
123
+ type: "location";
124
+ } | {
125
+ markdown: string;
126
+ /**
127
+ * CSS className to apply to the message
128
+ */
129
+ className?: string;
130
+ type: "markdown";
131
+ } | {
132
+ text: string;
133
+ /**
134
+ * CSS className to apply to the message
135
+ */
136
+ className?: string;
137
+ type: "text";
138
+ } | {
139
+ videoUrl: string;
140
+ /**
141
+ * CSS className to apply to the message
142
+ */
143
+ className?: string;
144
+ type: "video";
145
+ };
146
+ /**
147
+ * ID of the [User](#schema_user)
148
+ */
149
+ userId: string;
150
+ /**
151
+ * ID of the [Conversation](#schema_conversation)
152
+ */
153
+ conversationId: string;
154
+ }[];
155
+ meta: {
156
+ /**
157
+ * 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.
158
+ */
159
+ nextToken?: string;
160
+ };
161
+ }
@@ -0,0 +1,42 @@
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
+ }
@@ -0,0 +1,51 @@
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
+ * Id of the [User](#schema_user)
34
+ */
35
+ id: string;
36
+ /**
37
+ * Creation date of the [User](#schema_user) in ISO 8601 format
38
+ */
39
+ createdAt: string;
40
+ /**
41
+ * Updating date of the [User](#schema_user) in ISO 8601 format
42
+ */
43
+ updatedAt: string;
44
+ }[];
45
+ meta: {
46
+ /**
47
+ * 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.
48
+ */
49
+ nextToken?: string;
50
+ };
51
+ }
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,60 @@
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
+ };
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
+ * Id of the [User](#schema_user)
49
+ */
50
+ id: string;
51
+ /**
52
+ * Creation date of the [User](#schema_user) in ISO 8601 format
53
+ */
54
+ createdAt: string;
55
+ /**
56
+ * Updating date of the [User](#schema_user) in ISO 8601 format
57
+ */
58
+ updatedAt: string;
59
+ };
60
+ }