@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.
Files changed (36) hide show
  1. package/dist/adapters/messaging-to-target.d.ts +58 -26
  2. package/dist/adapters/target.d.ts +5 -0
  3. package/dist/adapters/webchat-to-target.d.ts +56 -32
  4. package/dist/client/MessagingClient/client.d.ts +1 -0
  5. package/dist/client/types.d.ts +1 -0
  6. package/dist/components/Block.d.ts +7 -5
  7. package/dist/contexts/WebchatContext.d.ts +5 -8
  8. package/dist/gen/client/api.d.ts +37 -10
  9. package/dist/gen/signals/{customSignal.t.d.ts → custom.t.d.ts} +1 -1
  10. package/dist/gen/signals/index.d.ts +16 -16
  11. package/dist/gen/signals/{messageCreatedSignal.t.d.ts → messageCreated.t.d.ts} +1 -1
  12. package/dist/gen/signals/{webchatConfigSignal.t.d.ts → webchatConfig.t.d.ts} +1 -1
  13. package/dist/gen/signals/{webchatVisibilitySignal.t.d.ts → webchatVisibility.t.d.ts} +1 -1
  14. package/dist/index.js +6923 -6940
  15. package/dist/index.umd.cjs +77 -77
  16. package/dist/types/block-type.d.ts +3 -3
  17. package/openapi.ts +4 -5
  18. package/package.json +2 -1
  19. package/dist/gen/models/conversation.j.d.ts +0 -20
  20. package/dist/gen/models/conversation.t.d.ts +0 -10
  21. package/dist/gen/models/conversation.z.d.ts +0 -15
  22. package/dist/gen/models/index.d.ts +0 -1014
  23. package/dist/gen/models/message.j.d.ts +0 -490
  24. package/dist/gen/models/message.t.d.ts +0 -122
  25. package/dist/gen/models/message.z.d.ts +0 -439
  26. package/dist/gen/models/user.j.d.ts +0 -26
  27. package/dist/gen/models/user.t.d.ts +0 -12
  28. package/dist/gen/models/user.z.d.ts +0 -21
  29. /package/dist/gen/signals/{customSignal.j.d.ts → custom.j.d.ts} +0 -0
  30. /package/dist/gen/signals/{customSignal.z.d.ts → custom.z.d.ts} +0 -0
  31. /package/dist/gen/signals/{messageCreatedSignal.j.d.ts → messageCreated.j.d.ts} +0 -0
  32. /package/dist/gen/signals/{messageCreatedSignal.z.d.ts → messageCreated.z.d.ts} +0 -0
  33. /package/dist/gen/signals/{webchatConfigSignal.j.d.ts → webchatConfig.j.d.ts} +0 -0
  34. /package/dist/gen/signals/{webchatConfigSignal.z.d.ts → webchatConfig.z.d.ts} +0 -0
  35. /package/dist/gen/signals/{webchatVisibilitySignal.j.d.ts → webchatVisibility.j.d.ts} +0 -0
  36. /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.Messages>;
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
- type: "audio";
13
- url: string;
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
- }) => WithBubble<target.ColumnMessage>;
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
- type: "carousel";
63
- blocks: target.ColumnMessage[];
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
- }) => target.Message;
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
- }) => WithBubble<target.ColumnMessage>;
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
- type: "file";
102
- className?: string | undefined;
103
- avatarUrl?: string | undefined;
104
- title?: string | undefined;
105
- url: string;
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
- type: "image";
114
- url: string;
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
- type: "location";
126
- latitude: number;
127
- longitude: number;
128
- title: string;
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
- }) => WithBubble<{
137
- type: "text";
138
- text: string;
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
- type: "video";
148
- url: string;
177
+ payload: {
178
+ type: "video";
179
+ url: string;
180
+ };
149
181
  };
150
- export declare const messageAdapter: (message: adapters.messaging.Message) => target.Message;
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.Messages>;
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
- type: "audio";
10
- url: string;
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
- }) => Omit<target.BubbleMessage, "block"> & {
24
- block: target.ColumnMessage;
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
- type: "carousel";
42
- blocks: target.ColumnMessage[];
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
- }) => target.Message;
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
- }) => Omit<target.BubbleMessage, "block"> & {
63
- block: target.ColumnMessage;
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
- type: "file";
72
- className?: string | undefined;
73
- avatarUrl?: string | undefined;
74
- title?: string | undefined;
75
- url: string;
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
- type: "image";
83
- url: string;
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
- type: "location";
94
- latitude: number;
95
- longitude: number;
96
- title: string;
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
- }) => Omit<target.BubbleMessage, "block"> & {
103
- block: {
104
- type: "text";
105
- text: string;
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
- }) => Omit<target.BubbleMessage, "block"> & {
113
- block: {
114
- type: "text";
115
- text: string;
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
- type: "video";
124
- url: string;
145
+ payload: {
146
+ type: "video";
147
+ url: string;
148
+ };
125
149
  };
126
- export declare const messageAdapter: (message: adapters.webchat.Message) => target.Message;
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;
@@ -10,6 +10,7 @@ export type Message = {
10
10
  conversationId: string;
11
11
  authorId: string | undefined;
12
12
  sentOn: Date;
13
+ disableInput?: boolean;
13
14
  payload: BlockObject;
14
15
  };
15
16
  export type Events = {
@@ -1,5 +1,7 @@
1
- /// <reference types="react" />
2
- import { BlockMap, BlockTypes, CommonBlockProps } from '../types';
3
- export declare const Block: <T extends BlockTypes>({ block, styles, ...props }: {
4
- block: BlockMap[T];
5
- } & CommonBlockProps) => JSX.Element;
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, BlockObject, BlockStyles, MessageObject } from '../types';
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<P extends BlockObject = BlockObject> = {
10
- [T in P['type']]: FC<Extract<P, {
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[]>>;
@@ -129,11 +129,11 @@ export interface CreateEventBodyPayloadOneOf {
129
129
  'type': CreateEventBodyPayloadOneOfTypeEnum;
130
130
  /**
131
131
  *
132
- * @type {{ [key: string]: any | null; }}
132
+ * @type {{ [key: string]: any; }}
133
133
  * @memberof CreateEventBodyPayloadOneOf
134
134
  */
135
135
  'data': {
136
- [key: string]: any | null;
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 {object}
157
+ * @type {{ [key: string]: any; }}
158
158
  * @memberof CreateEventBodyPayloadOneOf1
159
159
  */
160
- 'data': object;
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 | null; }}
705
+ * @type {{ [key: string]: any; }}
704
706
  * @memberof CreateUserBody
705
707
  */
706
708
  'userData'?: {
707
- [key: string]: any | null;
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<Conversation>}
866
+ * @type {Array<ListConversationsResponseConversationsInner>}
865
867
  * @memberof ListConversationsResponse
866
868
  */
867
- 'conversations': Array<Conversation>;
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 | null; }}
991
+ * @type {{ [key: string]: any; }}
965
992
  * @memberof UpdateUserBody
966
993
  */
967
994
  'userData'?: {
968
- [key: string]: any | null;
995
+ [key: string]: any;
969
996
  };
970
997
  }
971
998
  /**
@@ -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 CustomSignal {
6
+ export interface Custom {
7
7
  type: "custom";
8
8
  data: {
9
9
  event: {
@@ -1,9 +1,9 @@
1
- import type { MessageCreatedSignal } from './messageCreatedSignal.t';
2
- import type { WebchatVisibilitySignal } from './webchatVisibilitySignal.t';
3
- import type { WebchatConfigSignal } from './webchatConfigSignal.t';
4
- import type { CustomSignal } from './customSignal.t';
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
- messageCreatedSignal: import("zod").ZodObject<{
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
- webchatVisibilitySignal: import("zod").ZodObject<{
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
- webchatConfigSignal: import("zod").ZodObject<{
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
- customSignal: import("zod").ZodObject<{
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
- messageCreatedSignal: {
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
- webchatVisibilitySignal: {
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
- webchatConfigSignal: {
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
- customSignal: {
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
- messageCreatedSignal: MessageCreatedSignal;
1246
- webchatVisibilitySignal: WebchatVisibilitySignal;
1247
- webchatConfigSignal: WebchatConfigSignal;
1248
- customSignal: CustomSignal;
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 MessageCreatedSignal {
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 WebchatConfigSignal {
6
+ export interface WebchatConfig {
7
7
  type: "webchat_config";
8
8
  data: {
9
9
  config: {
@@ -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 WebchatVisibilitySignal {
6
+ export interface WebchatVisibility {
7
7
  type: "webchat_visibility";
8
8
  data: {
9
9
  visibility: "show" | "hide" | "toggle";