@rannah-labs/react-voice-orb 1.1.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/README.md +240 -0
- package/assets/orb-ss.png +0 -0
- package/assets/thing.png +0 -0
- package/dist/bun-server/src/types/index.d.ts +37 -0
- package/dist/bun-server/src/types/index.js +2 -0
- package/dist/src/app/Types/TranscriberStuff.d.ts +0 -0
- package/dist/src/app/Types/TranscriberStuff.js +1 -0
- package/dist/src/app/Types/apiModels.d.ts +31 -0
- package/dist/src/app/Types/apiModels.js +2 -0
- package/dist/src/app/Types/api_types.d.ts +34 -0
- package/dist/src/app/Types/api_types.js +2 -0
- package/dist/src/app/Types/better-trpc.d.ts +5 -0
- package/dist/src/app/Types/better-trpc.js +23 -0
- package/dist/src/app/Types/browser-only.d.ts +1 -0
- package/dist/src/app/Types/browser-only.js +12 -0
- package/dist/src/app/Types/builltInNodesTemplates.d.ts +1070 -0
- package/dist/src/app/Types/builltInNodesTemplates.js +1341 -0
- package/dist/src/app/Types/defaults.d.ts +7 -0
- package/dist/src/app/Types/defaults.js +210 -0
- package/dist/src/app/Types/demo_extension.d.ts +11 -0
- package/dist/src/app/Types/demo_extension.js +190 -0
- package/dist/src/app/Types/envObject.d.ts +97 -0
- package/dist/src/app/Types/envObject.js +5 -0
- package/dist/src/app/Types/firebase.d.ts +30413 -0
- package/dist/src/app/Types/firebase.js +6696 -0
- package/dist/src/app/Types/gen_openapi.d.ts +130 -0
- package/dist/src/app/Types/gen_openapi.js +2 -0
- package/dist/src/app/Types/global_types.d.ts +254 -0
- package/dist/src/app/Types/global_types.js +6 -0
- package/dist/src/app/Types/messages_types.d.ts +76 -0
- package/dist/src/app/Types/messages_types.js +1 -0
- package/dist/src/app/Types/vapi_types.d.ts +358 -0
- package/dist/src/app/Types/vapi_types.js +2 -0
- package/dist/src/app/Types/vf_types.d.ts +33 -0
- package/dist/src/app/Types/vf_types.js +2 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.d.ts +11 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.js +397 -0
- package/dist/src/public_packages/react-voice-orb/src/index.d.ts +5 -0
- package/dist/src/public_packages/react-voice-orb/src/index.js +16 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.d.ts +21 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.js +81 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.d.ts +23 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.js +202 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.d.ts +1 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.js +79 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.d.ts +3 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.js +17 -0
- package/dist/src/public_packages/react-voice-orb/tsconfig.tsbuildinfo +1 -0
- package/dist/vg-docker/src/+global_consts/client.d.ts +84 -0
- package/dist/vg-docker/src/+global_consts/client.js +105 -0
- package/package.json +46 -0
- package/scripts/post-tsc.ts +74 -0
- package/src/animation-orb.tsx +441 -0
- package/src/index.ts +5 -0
- package/src/providers/AIAudioProvider.tsx +100 -0
- package/src/providers/ThemeProvider.tsx +211 -0
- package/src/scripts/same-script.ts +73 -0
- package/src/spinner.tsx +19 -0
- package/tsconfig.json +34 -0
- package/webpack.config.js +141 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { UserModel, VG_SUPPORTED_LLM, WorkspaceMemberModel } from "./firebase";
|
|
2
|
+
export interface OAPI_AgentModel {
|
|
3
|
+
agentPlatform?: `vf` | `vg` | 'oai-assistants';
|
|
4
|
+
ID?: string;
|
|
5
|
+
storageID?: string;
|
|
6
|
+
VF_DIALOGUE_API_KEY?: string;
|
|
7
|
+
VF_PROJECT_API_KEY?: string;
|
|
8
|
+
VF_PROJECT_ID?: string;
|
|
9
|
+
VF_KB_API_KEY?: string;
|
|
10
|
+
theme?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
roundedImageURL?: string;
|
|
14
|
+
rectangeImageURL?: string;
|
|
15
|
+
messageDelayMS?: number;
|
|
16
|
+
scrollAnimation?: boolean;
|
|
17
|
+
proactiveMessage?: string;
|
|
18
|
+
acceptFileUpload?: boolean;
|
|
19
|
+
recordChatHistory?: boolean;
|
|
20
|
+
chatBgURL?: string;
|
|
21
|
+
disableSmoothScroll?: boolean;
|
|
22
|
+
ownerID?: string;
|
|
23
|
+
isDeployed?: boolean;
|
|
24
|
+
tokensUsage?: any;
|
|
25
|
+
maxTokensUsage?: any;
|
|
26
|
+
lastModified?: number;
|
|
27
|
+
fontFamily?: string;
|
|
28
|
+
branding?: string;
|
|
29
|
+
customThemeJSONString?: string;
|
|
30
|
+
autoStartWidget?: boolean;
|
|
31
|
+
allTimeTriggers?: number;
|
|
32
|
+
syncBrowser?: boolean;
|
|
33
|
+
delayBeforeSubmit?: number;
|
|
34
|
+
region?: 'voiceglow-eu' | '(default)';
|
|
35
|
+
listenForUrlChanges?: boolean;
|
|
36
|
+
chatForget?: boolean;
|
|
37
|
+
lang?: string;
|
|
38
|
+
customButtonJSON_STRING?: string;
|
|
39
|
+
enableAudioSupport?: boolean;
|
|
40
|
+
AITranslateTo?: string;
|
|
41
|
+
enableAITranslate?: boolean;
|
|
42
|
+
disableNoReplyListener?: boolean;
|
|
43
|
+
enableHumanHandoff?: boolean;
|
|
44
|
+
alwaysShowHandoff?: boolean;
|
|
45
|
+
manualControl?: boolean;
|
|
46
|
+
enableVGHandoff?: boolean;
|
|
47
|
+
fixedHandoffPopup?: boolean;
|
|
48
|
+
buttonsLayout?: 'horizontal' | 'vertical';
|
|
49
|
+
ADVANCED_customCSS?: string;
|
|
50
|
+
messagesLimit?: number;
|
|
51
|
+
whatsappToken?: string;
|
|
52
|
+
whatsappNumberId?: string;
|
|
53
|
+
whatsappBusniessId?: string;
|
|
54
|
+
waTestNumber?: string;
|
|
55
|
+
waVerifyPassed?: boolean;
|
|
56
|
+
waTestPassed?: boolean;
|
|
57
|
+
webhookUrl?: string;
|
|
58
|
+
gcloudPrivateKey?: string;
|
|
59
|
+
gcloudClientEmail?: string;
|
|
60
|
+
smartInit?: boolean;
|
|
61
|
+
UIhandoffTitle?: string;
|
|
62
|
+
UIhandoffSubtitle?: string;
|
|
63
|
+
igVerified?: boolean;
|
|
64
|
+
igAccessToken?: string;
|
|
65
|
+
showHandoffEvenIfOffline?: boolean;
|
|
66
|
+
vg_prompt?: string;
|
|
67
|
+
vg_initMessages?: string[];
|
|
68
|
+
vg_systemPrompt?: string;
|
|
69
|
+
vg_temperature?: number;
|
|
70
|
+
vg_defaultModel?: VG_SUPPORTED_LLM;
|
|
71
|
+
vg_maxTokens?: number;
|
|
72
|
+
vg_kbDefaultDimension?: number;
|
|
73
|
+
vg_kbTopChunks?: number;
|
|
74
|
+
SECRET_API_KEY?: string;
|
|
75
|
+
vg_kbCharCount?: number;
|
|
76
|
+
vg_kbDocsNum?: number;
|
|
77
|
+
vg_enableUIEngine?: boolean;
|
|
78
|
+
vg_enableAboutContext?: boolean;
|
|
79
|
+
avatarImageUrl?: string;
|
|
80
|
+
headerImageUrl?: string;
|
|
81
|
+
bannerImageUrl?: string;
|
|
82
|
+
enableQuickFileUpload?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export interface OPAI_WorkspaceModel extends UserModel {
|
|
85
|
+
workspaceName?: string;
|
|
86
|
+
workspaceEmails?: string[];
|
|
87
|
+
ts?: number;
|
|
88
|
+
ownerId?: string;
|
|
89
|
+
usersPerms_JSON_STRING?: string;
|
|
90
|
+
usersPerms?: WorkspaceMemberModel[];
|
|
91
|
+
workspacePhotoURL?: string;
|
|
92
|
+
workspaceSecret?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface OAPI_UserModel {
|
|
95
|
+
uid?: string;
|
|
96
|
+
displayName?: string;
|
|
97
|
+
email?: string;
|
|
98
|
+
joinedAt?: number;
|
|
99
|
+
photoURL?: string;
|
|
100
|
+
widgets?: [] | "loading";
|
|
101
|
+
pass?: boolean;
|
|
102
|
+
origin?: 'google' | 'email';
|
|
103
|
+
location?: 'voiceglow-eu' | '(default)';
|
|
104
|
+
loadTokens?: number;
|
|
105
|
+
hasEverPaid?: boolean;
|
|
106
|
+
freeLTsTS?: number;
|
|
107
|
+
referredFrom?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface OAPI_AgencyModel {
|
|
110
|
+
ID?: string;
|
|
111
|
+
userId?: string;
|
|
112
|
+
name?: string;
|
|
113
|
+
squarePhotoURL?: string;
|
|
114
|
+
darkModeSquarePhotourl?: string;
|
|
115
|
+
brandingText?: string;
|
|
116
|
+
ts?: number;
|
|
117
|
+
themeVariant?: "default" | "bordered" | "flat" | "faded";
|
|
118
|
+
themeColorUsage?: "gradient" | "colorful" | "plain";
|
|
119
|
+
googleFont?: string;
|
|
120
|
+
mainWebsite?: string;
|
|
121
|
+
supportEmail?: string;
|
|
122
|
+
tosPage?: string;
|
|
123
|
+
privacyPolicypPage?: string;
|
|
124
|
+
secret?: string;
|
|
125
|
+
OPENAI_API_KEY?: string;
|
|
126
|
+
OPENAI_DEFAULT_MODEL?: 'gpt-3.5-turbo' | 'gpt-4-1106-preview';
|
|
127
|
+
address?: string;
|
|
128
|
+
customCSS?: string;
|
|
129
|
+
enableHumanHandoff?: boolean;
|
|
130
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
export type VF_RUNTIME_MESSAGE = "launch" | "text" | "choice" | "MultiSelect" | "cardV2" | "carousel" | "visual" | "GetBrowserData" | "Embed" | "location" | "iFrame" | "FileUpload" | "MultiFileUpload" | "GoogleForm" | "EmailForm" | "SetConvoData" | "VoiceNote" | "SetRuntime" | "no-reply" | "VGVF_Channel" | "VFVG_Channel" | "VG_Response" | "knowledgeBase" | "jsx" | "Flowise" | "MultiDropdown" | "Slider" | "Attachment" | "info:default" | "info:success" | "info:danger" | "info:primary" | "end" | "debug" | "stealth" | "debug:success" | "debug:error" | "debug:tell";
|
|
3
|
+
export interface VF_RUNTIME_INTERACT_RESPONSE<T = any> {
|
|
4
|
+
type: VF_RUNTIME_MESSAGE;
|
|
5
|
+
payload?: T;
|
|
6
|
+
}
|
|
7
|
+
export interface ChatRuntime {
|
|
8
|
+
ID?: string;
|
|
9
|
+
storageID?: string;
|
|
10
|
+
VF_DIALOGUE_API_KEY?: string;
|
|
11
|
+
VF_PROJECT_API_KEY?: string;
|
|
12
|
+
VF_PROJECT_ID?: string;
|
|
13
|
+
VF_KB_API_KEY?: string;
|
|
14
|
+
theme?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
roundedImageURL?: string;
|
|
18
|
+
rectangeImageURL?: string;
|
|
19
|
+
messageDelayMS?: number;
|
|
20
|
+
scrollAnimation?: boolean;
|
|
21
|
+
proactiveMessage?: string;
|
|
22
|
+
acceptFileUpload?: boolean;
|
|
23
|
+
recordChatHistory?: boolean;
|
|
24
|
+
chatBgURL?: string;
|
|
25
|
+
disableSmoothScroll?: boolean;
|
|
26
|
+
ownerID?: string;
|
|
27
|
+
isDeployed?: boolean;
|
|
28
|
+
tokensUsage?: any;
|
|
29
|
+
maxTokensUsage?: any;
|
|
30
|
+
lastModified?: number;
|
|
31
|
+
fontFamily?: string;
|
|
32
|
+
branding?: string;
|
|
33
|
+
customThemeJSONString?: string;
|
|
34
|
+
autoStartWidget?: boolean;
|
|
35
|
+
allTimeTriggers?: number;
|
|
36
|
+
syncBrowser?: boolean;
|
|
37
|
+
delayBeforeSubmit?: number;
|
|
38
|
+
region?: "voiceglow-eu" | "(default)";
|
|
39
|
+
listenForUrlChanges?: boolean;
|
|
40
|
+
chatForget?: boolean;
|
|
41
|
+
lang?: string;
|
|
42
|
+
customButtonJSON_STRING?: string;
|
|
43
|
+
whatsappToken?: string;
|
|
44
|
+
whatsappNumberId?: string;
|
|
45
|
+
whatsappBusniessId?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface WidgetModel extends ChatRuntime {
|
|
48
|
+
ownerID?: string;
|
|
49
|
+
ownerEmail?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface UserModel {
|
|
52
|
+
uid?: string;
|
|
53
|
+
displayName?: string;
|
|
54
|
+
email?: string;
|
|
55
|
+
joinedAt?: number;
|
|
56
|
+
photoURL?: string;
|
|
57
|
+
widgets?: [] | "loading";
|
|
58
|
+
pass?: boolean;
|
|
59
|
+
origin?: "google" | "email";
|
|
60
|
+
location?: "voiceglow-eu" | "(default)";
|
|
61
|
+
loadTokens?: number;
|
|
62
|
+
hasEverPaid?: boolean;
|
|
63
|
+
freeLTsTS?: number;
|
|
64
|
+
referredFrom?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface UserLNSModel extends UserModel {
|
|
67
|
+
password?: string;
|
|
68
|
+
username?: string;
|
|
69
|
+
LNS_ID?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface LNSClientModel {
|
|
72
|
+
LNS_ID?: string;
|
|
73
|
+
VF_KB_KEY?: string;
|
|
74
|
+
owner_password?: string;
|
|
75
|
+
owner_username?: string;
|
|
76
|
+
client_fullname?: string;
|
|
77
|
+
client_photoURL?: string;
|
|
78
|
+
instagram_username?: string;
|
|
79
|
+
instagram_email?: string;
|
|
80
|
+
instagram_password?: string;
|
|
81
|
+
instagram_photo?: string;
|
|
82
|
+
instagram_reply_bot_status?: boolean;
|
|
83
|
+
instagram_dm_bot_status?: boolean;
|
|
84
|
+
instagram_search_bot_status?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface LNSContactModel {
|
|
87
|
+
internalID?: string;
|
|
88
|
+
profile_link?: string;
|
|
89
|
+
username?: string;
|
|
90
|
+
displayName?: string;
|
|
91
|
+
photoURL?: string;
|
|
92
|
+
website?: string;
|
|
93
|
+
description?: string;
|
|
94
|
+
origin?: `instagram` | `linkedin` | `facebook` | `whatsapp`;
|
|
95
|
+
ts?: number;
|
|
96
|
+
last_interaction?: number;
|
|
97
|
+
is_manual?: boolean;
|
|
98
|
+
metadata?: any;
|
|
99
|
+
index?: number;
|
|
100
|
+
messages?: number;
|
|
101
|
+
last_message_by?: any;
|
|
102
|
+
last_message_ts?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface LNSMessageModel {
|
|
105
|
+
from?: "human" | "ai";
|
|
106
|
+
content?: string;
|
|
107
|
+
index?: number;
|
|
108
|
+
ts?: number;
|
|
109
|
+
}
|
|
110
|
+
export interface BotModel {
|
|
111
|
+
origin: "instagram";
|
|
112
|
+
email?: string;
|
|
113
|
+
password?: string;
|
|
114
|
+
type?: "dm";
|
|
115
|
+
intervalMS?: number;
|
|
116
|
+
daysTracker?: number;
|
|
117
|
+
progress?: number;
|
|
118
|
+
batchSize?: number;
|
|
119
|
+
index?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface BotsController {
|
|
122
|
+
for: "instagram";
|
|
123
|
+
botType: "dm";
|
|
124
|
+
dailyBatchSize: number;
|
|
125
|
+
numberOfBots: number;
|
|
126
|
+
}
|
|
127
|
+
export interface WidgetThemeModel {
|
|
128
|
+
ID?: string;
|
|
129
|
+
themeName?: string;
|
|
130
|
+
themeType?: "dark" | "light";
|
|
131
|
+
primary?: string;
|
|
132
|
+
nineColorPallet?: any;
|
|
133
|
+
ownerID?: string;
|
|
134
|
+
ts?: number;
|
|
135
|
+
}
|
|
136
|
+
export interface OTPModel {
|
|
137
|
+
code?: string;
|
|
138
|
+
emailAssoc?: string;
|
|
139
|
+
expiry: number;
|
|
140
|
+
ts?: number;
|
|
141
|
+
}
|
|
142
|
+
export interface VGChannelResponse {
|
|
143
|
+
origin?: string;
|
|
144
|
+
type?: string;
|
|
145
|
+
data?: any;
|
|
146
|
+
}
|
|
147
|
+
export interface VGAPIChannelProps {
|
|
148
|
+
function: "VG_PushMessage" | "VG_GetRuntimeData";
|
|
149
|
+
payload: string;
|
|
150
|
+
}
|
|
151
|
+
export interface OrderModel {
|
|
152
|
+
ID?: string;
|
|
153
|
+
userId?: string;
|
|
154
|
+
email?: string;
|
|
155
|
+
tokensToCharge?: number;
|
|
156
|
+
USDToPay?: number;
|
|
157
|
+
fulfilled?: boolean;
|
|
158
|
+
ts?: number;
|
|
159
|
+
paypalOrderID?: string;
|
|
160
|
+
referredFrom?: string;
|
|
161
|
+
referredFulfilled?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface AgencyModel {
|
|
164
|
+
ID?: string;
|
|
165
|
+
userId?: string;
|
|
166
|
+
name?: string;
|
|
167
|
+
squarePhotoURL?: string;
|
|
168
|
+
darkModeSquarePhotourl?: string;
|
|
169
|
+
brandingText?: string;
|
|
170
|
+
customDomain?: string;
|
|
171
|
+
VGsubDomain?: string;
|
|
172
|
+
ts?: number;
|
|
173
|
+
customThemeJSONString?: string;
|
|
174
|
+
isVerifiedSubDomain?: boolean;
|
|
175
|
+
isVerifiedCustomDomain?: boolean;
|
|
176
|
+
withVGBranding?: boolean;
|
|
177
|
+
themeVariant?: "default" | "bordered" | "flat" | "faded";
|
|
178
|
+
themeColorUsage?: "gradient" | "colorful" | "plain";
|
|
179
|
+
googleFont?: string;
|
|
180
|
+
clientsJSONSTRING?: string;
|
|
181
|
+
customDomainConfig?: string;
|
|
182
|
+
mainWebsite?: string;
|
|
183
|
+
supportEmail?: string;
|
|
184
|
+
tosPage?: string;
|
|
185
|
+
privacyPolicypPage?: string;
|
|
186
|
+
secret?: string;
|
|
187
|
+
}
|
|
188
|
+
export type ClientDashboardTab = "/convos" | "/kb" | "/analytics" | "/theme" | "/settings";
|
|
189
|
+
export interface ClientModel {
|
|
190
|
+
ID?: string;
|
|
191
|
+
agencyId?: string;
|
|
192
|
+
userId?: string;
|
|
193
|
+
ownerID?: string;
|
|
194
|
+
name?: string;
|
|
195
|
+
email?: string;
|
|
196
|
+
squarePhotoURL?: string;
|
|
197
|
+
widgets?: WidgetModel[];
|
|
198
|
+
widgetIDs?: string[];
|
|
199
|
+
dashboardUsername?: string;
|
|
200
|
+
dashboardPassword?: string;
|
|
201
|
+
ts?: number;
|
|
202
|
+
canAccess?: string[];
|
|
203
|
+
magicCode?: string;
|
|
204
|
+
index?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface ClientPageModel {
|
|
207
|
+
label?: string;
|
|
208
|
+
desc?: any;
|
|
209
|
+
href?: string;
|
|
210
|
+
icon?: any;
|
|
211
|
+
isDisabled?: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface WidgetConvoModel {
|
|
214
|
+
ID?: string;
|
|
215
|
+
userID?: string;
|
|
216
|
+
userName?: string;
|
|
217
|
+
userEmail?: string;
|
|
218
|
+
userImage?: string;
|
|
219
|
+
userPhone?: string;
|
|
220
|
+
userBrowser?: string;
|
|
221
|
+
userProfilePic?: string;
|
|
222
|
+
origin?: "web-chat";
|
|
223
|
+
messagesNum?: number;
|
|
224
|
+
ts?: number;
|
|
225
|
+
tags?: string[];
|
|
226
|
+
convoTimeSeconds?: number;
|
|
227
|
+
firstMessageTS?: number;
|
|
228
|
+
lastMessageTS?: number;
|
|
229
|
+
}
|
|
230
|
+
export interface AnalyticLoadModel {
|
|
231
|
+
ID?: string;
|
|
232
|
+
firebaseCollection?: "voiceglow/{id}/loads";
|
|
233
|
+
ipAddress?: string;
|
|
234
|
+
countryCode?: string;
|
|
235
|
+
langCode?: string;
|
|
236
|
+
browser?: string;
|
|
237
|
+
platform?: string;
|
|
238
|
+
origin?: MessageOriginType;
|
|
239
|
+
ts?: number;
|
|
240
|
+
}
|
|
241
|
+
export interface VFPayloadModel {
|
|
242
|
+
type?: string;
|
|
243
|
+
payload?: any;
|
|
244
|
+
}
|
|
245
|
+
export interface API_RESPONSE_BASE<t = any> {
|
|
246
|
+
success: boolean;
|
|
247
|
+
message?: string;
|
|
248
|
+
content?: t;
|
|
249
|
+
}
|
|
250
|
+
export type MessageOriginType = "web-chat" | "whatsapp" | "instagram" | "telegram" | "discord";
|
|
251
|
+
export type themes = "purple" | "blue";
|
|
252
|
+
export declare const DEFAULT_FREE_LTS_NUM = 1000;
|
|
253
|
+
export type AgencyThemeVariants = "flat" | "bordered" | "solid" | "faded";
|
|
254
|
+
export declare const FB_ALL_BUCKETS_ARRAY: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** @format */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FB_ALL_BUCKETS_ARRAY = exports.DEFAULT_FREE_LTS_NUM = void 0;
|
|
5
|
+
exports.DEFAULT_FREE_LTS_NUM = 1000;
|
|
6
|
+
exports.FB_ALL_BUCKETS_ARRAY = ["voiceglow-eu", "(default)"];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for a text message.
|
|
3
|
+
* @interface
|
|
4
|
+
*/
|
|
5
|
+
interface TextPayload {
|
|
6
|
+
/**
|
|
7
|
+
* Payload of the text message.
|
|
8
|
+
*/
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* General interface for any Button.
|
|
13
|
+
* @interface
|
|
14
|
+
*/
|
|
15
|
+
interface ButtonModel {
|
|
16
|
+
name: string;
|
|
17
|
+
request: {
|
|
18
|
+
type: "open_url";
|
|
19
|
+
payload: {
|
|
20
|
+
url: string;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
type: "text";
|
|
24
|
+
payload: {
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Interface for a choice message with buttons.
|
|
31
|
+
* @interface
|
|
32
|
+
*/
|
|
33
|
+
interface ChoicePayload {
|
|
34
|
+
/**
|
|
35
|
+
* Payload of the choice message.
|
|
36
|
+
*/
|
|
37
|
+
buttons: ButtonModel[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Interface for an image message.
|
|
41
|
+
* @interface
|
|
42
|
+
*/
|
|
43
|
+
interface ImagePayload {
|
|
44
|
+
/**
|
|
45
|
+
* Payload of the image message.
|
|
46
|
+
*/
|
|
47
|
+
image: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Interface for a card message with buttons.
|
|
51
|
+
* @interface
|
|
52
|
+
*/
|
|
53
|
+
interface CardPayload {
|
|
54
|
+
/**
|
|
55
|
+
* Payload of the card message.
|
|
56
|
+
*/
|
|
57
|
+
imageUrl?: string;
|
|
58
|
+
title: string;
|
|
59
|
+
description?: {
|
|
60
|
+
text: string;
|
|
61
|
+
};
|
|
62
|
+
buttons?: ButtonModel[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Interface for a carousel payload containing an array of cards.
|
|
66
|
+
* @interface
|
|
67
|
+
*/
|
|
68
|
+
interface CarouselPayload {
|
|
69
|
+
cards: CardPayload[];
|
|
70
|
+
}
|
|
71
|
+
type MessageType = "text" | "choice" | "visual" | "cardV2" | "carousel";
|
|
72
|
+
interface Message {
|
|
73
|
+
type: MessageType;
|
|
74
|
+
payload: TextPayload | ChoicePayload | ImagePayload | CardPayload | CarouselPayload;
|
|
75
|
+
}
|
|
76
|
+
type FinalResponse = Message[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|