@botpress/webchat 1.3.0 → 1.3.2

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.
@@ -0,0 +1,4 @@
1
+ export * from 'webchat-adapters';
2
+ export * as target from './target';
3
+ export * as messagingToTarget from './messaging-to-target';
4
+ export * as webchatToTarget from './webchat-to-target';
@@ -0,0 +1,151 @@
1
+ import * as adapters from 'webchat-adapters';
2
+ import * as target from './target';
3
+ type WithBubble<T extends target.Message> = target.BubbleOf<T>;
4
+ export type MessagingToTargetAdapters = adapters.Adapter<adapters.messaging.Messages, target.Messages>;
5
+ export declare const audioAdapter: ({ type, audio }: {
6
+ type: "audio";
7
+ audio: string;
8
+ className?: string | undefined;
9
+ avatarUrl?: string | undefined;
10
+ title?: string | undefined;
11
+ }) => {
12
+ type: "audio";
13
+ url: string;
14
+ };
15
+ export declare const cardAdapter: (card: {
16
+ title: string;
17
+ type: "card";
18
+ actions: ({
19
+ title: string;
20
+ text: string;
21
+ action: "Say something";
22
+ } | {
23
+ title: string;
24
+ action: "Open URL";
25
+ url: string;
26
+ } | {
27
+ title: string;
28
+ action: "Postback";
29
+ payload: string;
30
+ })[];
31
+ className?: string | undefined;
32
+ avatarUrl?: string | undefined;
33
+ subtitle?: string | undefined;
34
+ image?: string | undefined;
35
+ }) => WithBubble<target.ColumnMessage>;
36
+ export declare const carouselAdapter: ({ items }: {
37
+ type: "carousel";
38
+ items: {
39
+ title: string;
40
+ type: "card";
41
+ actions: ({
42
+ title: string;
43
+ text: string;
44
+ action: "Say something";
45
+ } | {
46
+ title: string;
47
+ action: "Open URL";
48
+ url: string;
49
+ } | {
50
+ title: string;
51
+ action: "Postback";
52
+ payload: string;
53
+ })[];
54
+ className?: string | undefined;
55
+ avatarUrl?: string | undefined;
56
+ subtitle?: string | undefined;
57
+ image?: string | undefined;
58
+ }[];
59
+ className?: string | undefined;
60
+ avatarUrl?: string | undefined;
61
+ }) => {
62
+ type: "carousel";
63
+ blocks: target.ColumnMessage[];
64
+ };
65
+ export declare const choiceAdapter: (x: {
66
+ type: "single-choice";
67
+ text: string;
68
+ choices: {
69
+ title: string;
70
+ value: string;
71
+ }[];
72
+ className?: string | undefined;
73
+ avatarUrl?: string | undefined;
74
+ disableFreeText?: boolean | undefined;
75
+ }) => target.Message;
76
+ export declare const dropdownAdapter: (x: {
77
+ options: {
78
+ value: string;
79
+ label: string;
80
+ }[];
81
+ type: "dropdown";
82
+ className?: string | undefined;
83
+ avatarUrl?: string | undefined;
84
+ message?: string | undefined;
85
+ allowCreation?: boolean | undefined;
86
+ placeholderText?: string | undefined;
87
+ allowMultiple?: boolean | undefined;
88
+ buttonText?: string | undefined;
89
+ width?: number | undefined;
90
+ displayInKeyboard?: boolean | undefined;
91
+ markdown?: boolean | undefined;
92
+ text?: string | undefined;
93
+ }) => WithBubble<target.ColumnMessage>;
94
+ export declare const fileAdapter: ({ file, ...props }: {
95
+ type: "file";
96
+ file: string;
97
+ className?: string | undefined;
98
+ avatarUrl?: string | undefined;
99
+ title?: string | undefined;
100
+ }) => {
101
+ type: "file";
102
+ className?: string | undefined;
103
+ avatarUrl?: string | undefined;
104
+ title?: string | undefined;
105
+ url: string;
106
+ };
107
+ export declare const imageAdapter: ({ type, image }: {
108
+ type: "image";
109
+ image: string;
110
+ className?: string | undefined;
111
+ avatarUrl?: string | undefined;
112
+ }) => {
113
+ type: "image";
114
+ url: string;
115
+ };
116
+ export declare const locationAdapter: ({ type, latitude, longitude, title, address }: {
117
+ type: "location";
118
+ latitude: number;
119
+ longitude: number;
120
+ className?: string | undefined;
121
+ avatarUrl?: string | undefined;
122
+ address?: string | undefined;
123
+ title?: string | undefined;
124
+ }) => {
125
+ type: "location";
126
+ latitude: number;
127
+ longitude: number;
128
+ title: string;
129
+ };
130
+ export declare const textAdapter: ({ type, text }: {
131
+ type: "text";
132
+ text: string;
133
+ className?: string | undefined;
134
+ avatarUrl?: string | undefined;
135
+ markdown?: boolean | undefined;
136
+ }) => WithBubble<{
137
+ type: "text";
138
+ text: string;
139
+ }>;
140
+ export declare const videoAdapter: ({ type, video }: {
141
+ type: "video";
142
+ video: string;
143
+ className?: string | undefined;
144
+ avatarUrl?: string | undefined;
145
+ title?: string | undefined;
146
+ }) => {
147
+ type: "video";
148
+ url: string;
149
+ };
150
+ export declare const messageAdapter: (message: adapters.messaging.Message) => target.Message;
151
+ export {};
@@ -0,0 +1,77 @@
1
+ import * as adapters from 'webchat-adapters';
2
+ export type AudioMessage = {
3
+ type: 'audio';
4
+ url: string;
5
+ };
6
+ export type BubbleMessage = {
7
+ type: 'bubble';
8
+ block: Message;
9
+ };
10
+ export type ButtonMessage = {
11
+ type: 'button';
12
+ variant: 'action' | 'link';
13
+ reusable?: boolean;
14
+ groupId?: string;
15
+ text: string;
16
+ buttonValue: string;
17
+ };
18
+ export type CarouselMessage = {
19
+ type: 'carousel';
20
+ blocks: Message[];
21
+ };
22
+ export type ColumnMessage = {
23
+ type: 'column';
24
+ blocks: Message[];
25
+ horizontalAlignment?: 'left' | 'center' | 'right';
26
+ verticalAlignment?: 'top' | 'center' | 'bottom' | 'stretch';
27
+ };
28
+ export type DropdownMessage = {
29
+ label?: string;
30
+ type: 'dropdown';
31
+ reusable?: boolean;
32
+ options: {
33
+ label: string;
34
+ value: string;
35
+ }[];
36
+ };
37
+ export type FileMessage = {
38
+ type: 'file';
39
+ url: string;
40
+ title?: string;
41
+ };
42
+ export type ImageMessage = {
43
+ type: 'image';
44
+ orientation?: 'portrait' | 'landscape' | 'square' | 'auto';
45
+ url: string;
46
+ };
47
+ export type LocationMessage = {
48
+ type: 'location';
49
+ latitude: number;
50
+ longitude: number;
51
+ title?: string;
52
+ };
53
+ export type RowMessage = {
54
+ type: 'row';
55
+ blocks: Message[];
56
+ horizontalAlignment?: 'left' | 'center' | 'right' | 'stretch';
57
+ verticalAlignment?: 'top' | 'center' | 'bottom';
58
+ };
59
+ export type TextMessage = {
60
+ type: 'text';
61
+ text: string;
62
+ };
63
+ export type VideoMessage = {
64
+ type: 'video';
65
+ url: string;
66
+ };
67
+ export type Message = AudioMessage | BubbleMessage | ButtonMessage | CarouselMessage | ColumnMessage | DropdownMessage | FileMessage | ImageMessage | LocationMessage | RowMessage | TextMessage | VideoMessage;
68
+ export type BubbleOf<T extends Message> = Omit<BubbleMessage, 'block'> & {
69
+ block: T;
70
+ };
71
+ export type ColumnOf<T extends Message> = Omit<ColumnMessage, 'blocks'> & {
72
+ blocks: T[];
73
+ };
74
+ export type RowOf<T extends Message> = Omit<RowMessage, 'blocks'> & {
75
+ blocks: T[];
76
+ };
77
+ export type Messages = adapters.MessagesOf<Message>;
@@ -0,0 +1,126 @@
1
+ import * as adapters from 'webchat-adapters';
2
+ import * as target from './target';
3
+ export type WebchatToTargetAdapters = adapters.Adapter<adapters.webchat.Messages, target.Messages>;
4
+ export declare const audioAdapter: (webchatMessage: {
5
+ type: "audio";
6
+ audioUrl: string;
7
+ className?: string | undefined;
8
+ }) => {
9
+ type: "audio";
10
+ url: string;
11
+ };
12
+ export declare const cardAdapter: (webchatMessage: {
13
+ title: string;
14
+ type: "card";
15
+ actions: {
16
+ value: string;
17
+ action: "url" | "postback" | "say";
18
+ label: string;
19
+ }[];
20
+ className?: string | undefined;
21
+ subtitle?: string | undefined;
22
+ imageUrl?: string | undefined;
23
+ }) => Omit<target.BubbleMessage, "block"> & {
24
+ block: target.ColumnMessage;
25
+ };
26
+ export declare const carouselAdapter: (webchatMessage: {
27
+ type: "carousel";
28
+ items: {
29
+ title: string;
30
+ actions: {
31
+ value: string;
32
+ action: "url" | "postback" | "say";
33
+ label: string;
34
+ }[];
35
+ className?: string | undefined;
36
+ subtitle?: string | undefined;
37
+ imageUrl?: string | undefined;
38
+ }[];
39
+ className?: string | undefined;
40
+ }) => {
41
+ type: "carousel";
42
+ blocks: target.ColumnMessage[];
43
+ };
44
+ export declare const choiceAdapter: (webchatMessage: {
45
+ options: {
46
+ value: string;
47
+ label: string;
48
+ }[];
49
+ type: "choice";
50
+ text: string;
51
+ disableFreeText?: boolean | undefined;
52
+ className?: string | undefined;
53
+ }) => target.Message;
54
+ export declare const dropdownAdapter: (webchatMessage: {
55
+ options: {
56
+ value: string;
57
+ label: string;
58
+ }[];
59
+ type: "dropdown";
60
+ text: string;
61
+ className?: string | undefined;
62
+ }) => Omit<target.BubbleMessage, "block"> & {
63
+ block: target.ColumnMessage;
64
+ };
65
+ export declare const fileAdapter: (webchatMessage: {
66
+ type: "file";
67
+ fileUrl: string;
68
+ title?: string | undefined;
69
+ className?: string | undefined;
70
+ }) => {
71
+ type: "file";
72
+ className?: string | undefined;
73
+ avatarUrl?: string | undefined;
74
+ title?: string | undefined;
75
+ url: string;
76
+ };
77
+ export declare const imageAdapter: (webchatMessage: {
78
+ type: "image";
79
+ imageUrl: string;
80
+ className?: string | undefined;
81
+ }) => {
82
+ type: "image";
83
+ url: string;
84
+ };
85
+ export declare const locationAdapter: (webchatMessage: {
86
+ type: "location";
87
+ latitude: number;
88
+ longitude: number;
89
+ title?: string | undefined;
90
+ address?: string | undefined;
91
+ className?: string | undefined;
92
+ }) => {
93
+ type: "location";
94
+ latitude: number;
95
+ longitude: number;
96
+ title: string;
97
+ };
98
+ export declare const markdownAdapter: (webchatMessage: {
99
+ type: "markdown";
100
+ markdown: string;
101
+ className?: string | undefined;
102
+ }) => Omit<target.BubbleMessage, "block"> & {
103
+ block: {
104
+ type: "text";
105
+ text: string;
106
+ };
107
+ };
108
+ export declare const textAdapter: (webchatMessage: {
109
+ type: "text";
110
+ text: string;
111
+ className?: string | undefined;
112
+ }) => Omit<target.BubbleMessage, "block"> & {
113
+ block: {
114
+ type: "text";
115
+ text: string;
116
+ };
117
+ };
118
+ export declare const videoAdapter: (webchatMessage: {
119
+ type: "video";
120
+ videoUrl: string;
121
+ className?: string | undefined;
122
+ }) => {
123
+ type: "video";
124
+ url: string;
125
+ };
126
+ export declare const messageAdapter: (message: adapters.webchat.Message) => target.Message;
@@ -21,7 +21,7 @@ export declare class MessagingClient implements WebchatClient {
21
21
  conversationExists(id: string): Promise<boolean>;
22
22
  newConversation(): Promise<void>;
23
23
  listMessages(limit?: number): Promise<{
24
- payload: import("webchat-adapters/src/target").Message;
24
+ payload: import("../../adapters/target").Message;
25
25
  id: string;
26
26
  conversationId: string;
27
27
  authorId: string | undefined;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const Audio: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").AudioMessage & import("react").RefAttributes<HTMLAudioElement>>;
3
+ export declare const Audio: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").AudioMessage & import("react").RefAttributes<HTMLAudioElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const Carousel: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").CarouselMessage & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const Carousel: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").CarouselMessage & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const File: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").FileMessage & import("react").RefAttributes<HTMLAnchorElement>>;
3
+ export declare const File: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").FileMessage & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const Image: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").ImageMessage & import("react").RefAttributes<HTMLImageElement>>;
3
+ export declare const Image: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").ImageMessage & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const Location: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").LocationMessage & import("react").RefAttributes<HTMLAnchorElement>>;
3
+ export declare const Location: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").LocationMessage & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonBlockProps } from '../../types';
3
- export declare const Video: import("react").ForwardRefExoticComponent<CommonBlockProps & import("webchat-adapters/src/target").VideoMessage & import("react").RefAttributes<HTMLVideoElement>>;
3
+ export declare const Video: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../adapters/target").VideoMessage & import("react").RefAttributes<HTMLVideoElement>>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, FC, ReactNode } from 'react';
1
+ import { CSSProperties, FC, ReactNode, RefObject } from 'react';
2
2
  import { Theme, Configuration, BlockObject, BlockStyles, MessageObject } from '../types';
3
3
  import { EventEmitter, Events } from '../utils';
4
4
  import { WebchatClient } from '../client';
@@ -19,6 +19,7 @@ export type ModalProps = {
19
19
  };
20
20
  export type ContextVaue = {
21
21
  theme: Theme;
22
+ messageContainerRef: RefObject<HTMLUListElement>;
22
23
  renderers: Renderers;
23
24
  messages: MessageObject[];
24
25
  setMessages: React.Dispatch<React.SetStateAction<MessageObject[]>>;
@@ -700,11 +700,11 @@ export interface CreateUserBody {
700
700
  'pictureUrl'?: string;
701
701
  /**
702
702
  * User data
703
- * @type {{ [key: string]: any; }}
703
+ * @type {{ [key: string]: any | null; }}
704
704
  * @memberof CreateUserBody
705
705
  */
706
706
  'userData'?: {
707
- [key: string]: any;
707
+ [key: string]: any | null;
708
708
  };
709
709
  }
710
710
  /**
@@ -848,10 +848,10 @@ export interface ListConversationMessagesResponse {
848
848
  'messages': Array<Message>;
849
849
  /**
850
850
  *
851
- * @type {ListConversationsResponseMeta}
851
+ * @type {ListParticipantsResponseMeta}
852
852
  * @memberof ListConversationMessagesResponse
853
853
  */
854
- 'meta': ListConversationsResponseMeta;
854
+ 'meta': ListParticipantsResponseMeta;
855
855
  }
856
856
  /**
857
857
  *
@@ -867,23 +867,10 @@ export interface ListConversationsResponse {
867
867
  'conversations': Array<Conversation>;
868
868
  /**
869
869
  *
870
- * @type {ListConversationsResponseMeta}
870
+ * @type {ListParticipantsResponseMeta}
871
871
  * @memberof ListConversationsResponse
872
872
  */
873
- 'meta': ListConversationsResponseMeta;
874
- }
875
- /**
876
- *
877
- * @export
878
- * @interface ListConversationsResponseMeta
879
- */
880
- export interface ListConversationsResponseMeta {
881
- /**
882
- * 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.
883
- * @type {string}
884
- * @memberof ListConversationsResponseMeta
885
- */
886
- 'nextToken'?: string;
873
+ 'meta': ListParticipantsResponseMeta;
887
874
  }
888
875
  /**
889
876
  *
@@ -899,10 +886,23 @@ export interface ListParticipantsResponse {
899
886
  'participants': Array<User>;
900
887
  /**
901
888
  *
902
- * @type {ListConversationsResponseMeta}
889
+ * @type {ListParticipantsResponseMeta}
903
890
  * @memberof ListParticipantsResponse
904
891
  */
905
- 'meta': ListConversationsResponseMeta;
892
+ 'meta': ListParticipantsResponseMeta;
893
+ }
894
+ /**
895
+ *
896
+ * @export
897
+ * @interface ListParticipantsResponseMeta
898
+ */
899
+ export interface ListParticipantsResponseMeta {
900
+ /**
901
+ * 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.
902
+ * @type {string}
903
+ * @memberof ListParticipantsResponseMeta
904
+ */
905
+ 'nextToken'?: string;
906
906
  }
907
907
  /**
908
908
  * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
@@ -961,11 +961,11 @@ export interface UpdateUserBody {
961
961
  'pictureUrl'?: string;
962
962
  /**
963
963
  * User data
964
- * @type {{ [key: string]: any; }}
964
+ * @type {{ [key: string]: any | null; }}
965
965
  * @memberof UpdateUserBody
966
966
  */
967
967
  'userData'?: {
968
- [key: string]: any;
968
+ [key: string]: any | null;
969
969
  };
970
970
  }
971
971
  /**
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { Configuration, DefaultApiGetConversationRequest, DefaultApiCreateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiListConversationsRequest, DefaultApiListenConversationRequest, DefaultApiListConversationMessagesRequest, DefaultApiAddParticipantRequest, DefaultApiRemoveParticipantRequest, DefaultApiGetParticipantRequest, DefaultApiListParticipantsRequest, DefaultApiGetMessageRequest, DefaultApiCreateMessageRequest, DefaultApiDeleteMessageRequest, DefaultApiGetUserRequest, DefaultApiCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetEventRequest, DefaultApiCreateEventRequest } from '.';
2
+ import { Configuration, DefaultApiAddParticipantRequest, DefaultApiCreateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiGetConversationRequest, DefaultApiGetParticipantRequest, DefaultApiListConversationMessagesRequest, DefaultApiListConversationsRequest, DefaultApiListParticipantsRequest, DefaultApiListenConversationRequest, DefaultApiRemoveParticipantRequest, DefaultApiCreateMessageRequest, DefaultApiDeleteMessageRequest, DefaultApiGetMessageRequest, DefaultApiCreateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetUserRequest, DefaultApiUpdateUserRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest } from '.';
3
3
  type SimplifyOptions = {
4
4
  deep?: boolean;
5
5
  };
@@ -19,43 +19,43 @@ type Except<ObjectType, KeysType extends keyof ObjectType> = {
19
19
  export declare class ApiClient {
20
20
  private _innerClient;
21
21
  constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance);
22
- getConversation: (props: GetConversationProps) => Promise<import("./api").GetConversationResponse>;
22
+ addParticipant: ({ id, xUserKey, ...addParticipantBody }: AddParticipantProps) => Promise<import("./api").AddParticipantResponse>;
23
23
  createConversation: ({ xUserKey, ...createConversationBody }: CreateConversationProps) => Promise<import("./api").CreateConversationResponse>;
24
24
  deleteConversation: (props: DeleteConversationProps) => Promise<object>;
25
+ getConversation: (props: GetConversationProps) => Promise<import("./api").GetConversationResponse>;
26
+ getParticipant: (props: GetParticipantProps) => Promise<import("./api").GetParticipantResponse>;
27
+ listConversationMessages: (props: ListConversationMessagesProps) => Promise<import("./api").ListConversationMessagesResponse>;
25
28
  listConversations: (props: ListConversationsProps) => Promise<import("./api").ListConversationsResponse>;
29
+ listParticipants: (props: ListParticipantsProps) => Promise<import("./api").ListParticipantsResponse>;
26
30
  listenConversation: (props: ListenConversationProps) => Promise<object>;
27
- listConversationMessages: (props: ListConversationMessagesProps) => Promise<import("./api").ListConversationMessagesResponse>;
28
- addParticipant: ({ id, xUserKey, ...addParticipantBody }: AddParticipantProps) => Promise<import("./api").AddParticipantResponse>;
29
31
  removeParticipant: (props: RemoveParticipantProps) => Promise<object>;
30
- getParticipant: (props: GetParticipantProps) => Promise<import("./api").GetParticipantResponse>;
31
- listParticipants: (props: ListParticipantsProps) => Promise<import("./api").ListParticipantsResponse>;
32
- getMessage: (props: GetMessageProps) => Promise<import("./api").GetMessageResponse>;
33
32
  createMessage: ({ xUserKey, ...createMessageBody }: CreateMessageProps) => Promise<import("./api").CreateMessageResponse>;
34
33
  deleteMessage: (props: DeleteMessageProps) => Promise<object>;
35
- getUser: (props: GetUserProps) => Promise<import("./api").GetUserResponse>;
34
+ getMessage: (props: GetMessageProps) => Promise<import("./api").GetMessageResponse>;
36
35
  createUser: (createUserBody: CreateUserProps) => Promise<import("./api").CreateUserResponse>;
37
- updateUser: ({ xUserKey, ...updateUserBody }: UpdateUserProps) => Promise<import("./api").UpdateUserResponse>;
38
36
  deleteUser: (props: DeleteUserProps) => Promise<object>;
39
- getEvent: (props: GetEventProps) => Promise<import("./api").GetEventResponse>;
37
+ getUser: (props: GetUserProps) => Promise<import("./api").GetUserResponse>;
38
+ updateUser: ({ xUserKey, ...updateUserBody }: UpdateUserProps) => Promise<import("./api").UpdateUserResponse>;
40
39
  createEvent: ({ xUserKey, ...createEventBody }: CreateEventProps) => Promise<import("./api").CreateEventResponse>;
40
+ getEvent: (props: GetEventProps) => Promise<import("./api").GetEventResponse>;
41
41
  }
42
- export type GetConversationProps = Merge<DefaultApiGetConversationRequest, {}>;
42
+ export type AddParticipantProps = Merge<Except<DefaultApiAddParticipantRequest, 'addParticipantBody'>, NonNullable<DefaultApiAddParticipantRequest['addParticipantBody']>>;
43
43
  export type CreateConversationProps = Merge<Except<DefaultApiCreateConversationRequest, 'createConversationBody'>, NonNullable<DefaultApiCreateConversationRequest['createConversationBody']>>;
44
44
  export type DeleteConversationProps = Merge<DefaultApiDeleteConversationRequest, {}>;
45
+ export type GetConversationProps = Merge<DefaultApiGetConversationRequest, {}>;
46
+ export type GetParticipantProps = Merge<DefaultApiGetParticipantRequest, {}>;
47
+ export type ListConversationMessagesProps = Merge<DefaultApiListConversationMessagesRequest, {}>;
45
48
  export type ListConversationsProps = Merge<DefaultApiListConversationsRequest, {}>;
49
+ export type ListParticipantsProps = Merge<DefaultApiListParticipantsRequest, {}>;
46
50
  export type ListenConversationProps = Merge<DefaultApiListenConversationRequest, {}>;
47
- export type ListConversationMessagesProps = Merge<DefaultApiListConversationMessagesRequest, {}>;
48
- export type AddParticipantProps = Merge<Except<DefaultApiAddParticipantRequest, 'addParticipantBody'>, NonNullable<DefaultApiAddParticipantRequest['addParticipantBody']>>;
49
51
  export type RemoveParticipantProps = Merge<DefaultApiRemoveParticipantRequest, {}>;
50
- export type GetParticipantProps = Merge<DefaultApiGetParticipantRequest, {}>;
51
- export type ListParticipantsProps = Merge<DefaultApiListParticipantsRequest, {}>;
52
- export type GetMessageProps = Merge<DefaultApiGetMessageRequest, {}>;
53
52
  export type CreateMessageProps = Merge<Except<DefaultApiCreateMessageRequest, 'createMessageBody'>, NonNullable<DefaultApiCreateMessageRequest['createMessageBody']>>;
54
53
  export type DeleteMessageProps = Merge<DefaultApiDeleteMessageRequest, {}>;
55
- export type GetUserProps = Merge<DefaultApiGetUserRequest, {}>;
54
+ export type GetMessageProps = Merge<DefaultApiGetMessageRequest, {}>;
56
55
  export type CreateUserProps = Merge<Except<DefaultApiCreateUserRequest, 'createUserBody'>, NonNullable<DefaultApiCreateUserRequest['createUserBody']>>;
57
- export type UpdateUserProps = Merge<Except<DefaultApiUpdateUserRequest, 'updateUserBody'>, NonNullable<DefaultApiUpdateUserRequest['updateUserBody']>>;
58
56
  export type DeleteUserProps = Merge<DefaultApiDeleteUserRequest, {}>;
59
- export type GetEventProps = Merge<DefaultApiGetEventRequest, {}>;
57
+ export type GetUserProps = Merge<DefaultApiGetUserRequest, {}>;
58
+ export type UpdateUserProps = Merge<Except<DefaultApiUpdateUserRequest, 'updateUserBody'>, NonNullable<DefaultApiUpdateUserRequest['updateUserBody']>>;
60
59
  export type CreateEventProps = Merge<Except<DefaultApiCreateEventRequest, 'createEventBody'>, NonNullable<DefaultApiCreateEventRequest['createEventBody']>>;
60
+ export type GetEventProps = Merge<DefaultApiGetEventRequest, {}>;
61
61
  export {};