@open-wa/schema 5.0.0 → 5.1.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.
- package/dist/generated/index.cjs +8 -2
- package/dist/generated/index.cjs.map +1 -1
- package/dist/generated/index.d.cts +715 -1
- package/dist/generated/index.d.cts.map +1 -1
- package/dist/generated/index.d.mts +715 -1
- package/dist/generated/index.d.mts.map +1 -1
- package/dist/generated/index.mjs +8 -2
- package/dist/generated/index.mjs.map +1 -1
- package/dist/{index-ChYFQM1K.d.cts → index-DTztyYhw.d.cts} +893 -3
- package/dist/index-DTztyYhw.d.cts.map +1 -0
- package/dist/{index-BHcd0h7x.d.mts → index-nVKR0RmZ.d.mts} +893 -3
- package/dist/index-nVKR0RmZ.d.mts.map +1 -0
- package/dist/index.cjs +51 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/methods/index.cjs +5 -1
- package/dist/methods/index.d.cts +2 -2
- package/dist/methods/index.d.mts +2 -2
- package/dist/methods/index.mjs +2 -2
- package/dist/{methods-CZqeUhKy.mjs → methods-BSv5O3bS.mjs} +317 -2
- package/dist/methods-BSv5O3bS.mjs.map +1 -0
- package/dist/{methods-Dizm7Fn9.cjs → methods-DO0JONvB.cjs} +472 -1
- package/dist/methods-DO0JONvB.cjs.map +1 -0
- package/package.json +4 -3
- package/src/__tests__/generators.contract.test.ts +181 -0
- package/src/__tests__/registry.contract.test.ts +81 -0
- package/src/client-config.ts +30 -0
- package/src/codecs.test.ts +41 -0
- package/src/codecs.ts +191 -0
- package/src/common-types.ts +280 -0
- package/src/config.ts +47 -0
- package/src/enums.ts +63 -0
- package/src/events/groups.ts +33 -0
- package/src/events/index.ts +4 -0
- package/src/events/messaging.ts +86 -0
- package/src/events/registry.ts +124 -0
- package/src/events/state.ts +59 -0
- package/src/generated/AliasMap.ts +216 -0
- package/src/generated/BaseClient.ts +878 -0
- package/src/generated/BaseNamespacedClient.ts +214 -0
- package/src/generated/index.ts +5 -0
- package/src/generated/openapi.json +8949 -0
- package/src/generated/types.ts +383 -0
- package/src/http-manifest.ts +97 -0
- package/src/implementor.test.ts +88 -0
- package/src/implementor.ts +75 -0
- package/src/index.ts +44 -0
- package/src/interactive.ts +151 -0
- package/src/methods/business.ts +51 -0
- package/src/methods/chats.ts +263 -0
- package/src/methods/communities.ts +119 -0
- package/src/methods/contacts.ts +158 -0
- package/src/methods/groups.ts +376 -0
- package/src/methods/index.ts +34 -0
- package/src/methods/interactive.ts +21 -0
- package/src/methods/labels.ts +86 -0
- package/src/methods/media.ts +36 -0
- package/src/methods/messaging.ts +828 -0
- package/src/methods/session.ts +261 -0
- package/src/methods/status.ts +120 -0
- package/src/parameters.ts +237 -0
- package/src/registry.test.ts +30 -0
- package/src/registry.ts +601 -0
- package/dist/index-BHcd0h7x.d.mts.map +0 -1
- package/dist/index-ChYFQM1K.d.cts.map +0 -1
- package/dist/methods-CZqeUhKy.mjs.map +0 -1
- package/dist/methods-Dizm7Fn9.cjs.map +0 -1
|
@@ -1059,8 +1059,372 @@ declare const downloadMedia: OpenWAMethodSchema<z.ZodObject<{
|
|
|
1059
1059
|
}, z.core.$loose>;
|
|
1060
1060
|
path: z.ZodString;
|
|
1061
1061
|
}, z.core.$strip>, z.ZodString>;
|
|
1062
|
+
//#endregion
|
|
1063
|
+
//#region src/methods/interactive.d.ts
|
|
1064
|
+
declare const SendInteractiveInputSchema: z.ZodObject<{
|
|
1065
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1066
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1067
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1068
|
+
body: z.ZodString;
|
|
1069
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
type: z.ZodLiteral<"buttons">;
|
|
1071
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1072
|
+
type: z.ZodLiteral<"text">;
|
|
1073
|
+
text: z.ZodString;
|
|
1074
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1075
|
+
source: z.ZodString;
|
|
1076
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
type: z.ZodLiteral<"image">;
|
|
1079
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1080
|
+
source: z.ZodString;
|
|
1081
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
type: z.ZodLiteral<"video">;
|
|
1084
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1085
|
+
source: z.ZodString;
|
|
1086
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
type: z.ZodLiteral<"document">;
|
|
1089
|
+
}, z.core.$strict>], "type">>;
|
|
1090
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1091
|
+
type: z.ZodLiteral<"reply">;
|
|
1092
|
+
id: z.ZodString;
|
|
1093
|
+
label: z.ZodString;
|
|
1094
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1095
|
+
type: z.ZodLiteral<"url">;
|
|
1096
|
+
label: z.ZodString;
|
|
1097
|
+
url: z.ZodURL;
|
|
1098
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1099
|
+
type: z.ZodLiteral<"call">;
|
|
1100
|
+
label: z.ZodString;
|
|
1101
|
+
phoneNumber: z.ZodString;
|
|
1102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1103
|
+
type: z.ZodLiteral<"copy">;
|
|
1104
|
+
label: z.ZodString;
|
|
1105
|
+
code: z.ZodString;
|
|
1106
|
+
}, z.core.$strict>], "type">>;
|
|
1107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1108
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1109
|
+
body: z.ZodString;
|
|
1110
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
type: z.ZodLiteral<"list">;
|
|
1112
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1114
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1115
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1117
|
+
id: z.ZodString;
|
|
1118
|
+
title: z.ZodString;
|
|
1119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1121
|
+
}, z.core.$strict>>;
|
|
1122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1123
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1124
|
+
body: z.ZodString;
|
|
1125
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
type: z.ZodLiteral<"form">;
|
|
1127
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1129
|
+
type: z.ZodEnum<{
|
|
1130
|
+
multiSelect: "multiSelect";
|
|
1131
|
+
singleSelect: "singleSelect";
|
|
1132
|
+
}>;
|
|
1133
|
+
id: z.ZodString;
|
|
1134
|
+
label: z.ZodString;
|
|
1135
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
id: z.ZodString;
|
|
1137
|
+
label: z.ZodString;
|
|
1138
|
+
}, z.core.$strict>>;
|
|
1139
|
+
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1140
|
+
}, z.core.$strict>>;
|
|
1141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1142
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1143
|
+
body: z.ZodString;
|
|
1144
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
type: z.ZodLiteral<"carousel">;
|
|
1146
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1147
|
+
body: z.ZodString;
|
|
1148
|
+
header: z.ZodObject<{
|
|
1149
|
+
source: z.ZodString;
|
|
1150
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
type: z.ZodLiteral<"image">;
|
|
1153
|
+
}, z.core.$strict>;
|
|
1154
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1155
|
+
type: z.ZodLiteral<"reply">;
|
|
1156
|
+
id: z.ZodString;
|
|
1157
|
+
label: z.ZodString;
|
|
1158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1159
|
+
type: z.ZodLiteral<"url">;
|
|
1160
|
+
label: z.ZodString;
|
|
1161
|
+
url: z.ZodURL;
|
|
1162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1163
|
+
type: z.ZodLiteral<"call">;
|
|
1164
|
+
label: z.ZodString;
|
|
1165
|
+
phoneNumber: z.ZodString;
|
|
1166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1167
|
+
type: z.ZodLiteral<"copy">;
|
|
1168
|
+
label: z.ZodString;
|
|
1169
|
+
code: z.ZodString;
|
|
1170
|
+
}, z.core.$strict>], "type">>;
|
|
1171
|
+
}, z.core.$strict>>;
|
|
1172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1173
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1174
|
+
body: z.ZodString;
|
|
1175
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
type: z.ZodLiteral<"booking">;
|
|
1177
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1179
|
+
booking: z.ZodObject<{
|
|
1180
|
+
startAt: z.ZodISODateTime;
|
|
1181
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1182
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1184
|
+
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1185
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
1187
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
1189
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
meetingType: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
}, z.core.$strict>>;
|
|
1196
|
+
}, z.core.$strict>;
|
|
1197
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1198
|
+
type: z.ZodLiteral<"url">;
|
|
1199
|
+
label: z.ZodString;
|
|
1200
|
+
url: z.ZodURL;
|
|
1201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1202
|
+
type: z.ZodLiteral<"call">;
|
|
1203
|
+
label: z.ZodString;
|
|
1204
|
+
phoneNumber: z.ZodString;
|
|
1205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1206
|
+
type: z.ZodLiteral<"copy">;
|
|
1207
|
+
label: z.ZodString;
|
|
1208
|
+
code: z.ZodString;
|
|
1209
|
+
}, z.core.$strict>], "type">>>;
|
|
1210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1211
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1212
|
+
body: z.ZodString;
|
|
1213
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
type: z.ZodLiteral<"native">;
|
|
1215
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1216
|
+
type: z.ZodLiteral<"text">;
|
|
1217
|
+
text: z.ZodString;
|
|
1218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1219
|
+
source: z.ZodString;
|
|
1220
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1222
|
+
type: z.ZodLiteral<"image">;
|
|
1223
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1224
|
+
source: z.ZodString;
|
|
1225
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
type: z.ZodLiteral<"video">;
|
|
1228
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1229
|
+
source: z.ZodString;
|
|
1230
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
type: z.ZodLiteral<"document">;
|
|
1233
|
+
}, z.core.$strict>], "type">>;
|
|
1234
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1235
|
+
name: z.ZodString;
|
|
1236
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1237
|
+
}, z.core.$strict>>;
|
|
1238
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1239
|
+
}, z.core.$strict>], "type">;
|
|
1240
|
+
}, z.core.$strict>;
|
|
1241
|
+
declare const SendRawMessageInputSchema: z.ZodObject<{
|
|
1242
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1243
|
+
payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1244
|
+
}, z.core.$strict>;
|
|
1245
|
+
declare const sendInteractive: OpenWAMethodSchema<z.ZodObject<{
|
|
1246
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1247
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1248
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1249
|
+
body: z.ZodString;
|
|
1250
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
type: z.ZodLiteral<"buttons">;
|
|
1252
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1253
|
+
type: z.ZodLiteral<"text">;
|
|
1254
|
+
text: z.ZodString;
|
|
1255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1256
|
+
source: z.ZodString;
|
|
1257
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1259
|
+
type: z.ZodLiteral<"image">;
|
|
1260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1261
|
+
source: z.ZodString;
|
|
1262
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
type: z.ZodLiteral<"video">;
|
|
1265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1266
|
+
source: z.ZodString;
|
|
1267
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
type: z.ZodLiteral<"document">;
|
|
1270
|
+
}, z.core.$strict>], "type">>;
|
|
1271
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1272
|
+
type: z.ZodLiteral<"reply">;
|
|
1273
|
+
id: z.ZodString;
|
|
1274
|
+
label: z.ZodString;
|
|
1275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1276
|
+
type: z.ZodLiteral<"url">;
|
|
1277
|
+
label: z.ZodString;
|
|
1278
|
+
url: z.ZodURL;
|
|
1279
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1280
|
+
type: z.ZodLiteral<"call">;
|
|
1281
|
+
label: z.ZodString;
|
|
1282
|
+
phoneNumber: z.ZodString;
|
|
1283
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1284
|
+
type: z.ZodLiteral<"copy">;
|
|
1285
|
+
label: z.ZodString;
|
|
1286
|
+
code: z.ZodString;
|
|
1287
|
+
}, z.core.$strict>], "type">>;
|
|
1288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1289
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1290
|
+
body: z.ZodString;
|
|
1291
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
type: z.ZodLiteral<"list">;
|
|
1293
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1295
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1296
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1298
|
+
id: z.ZodString;
|
|
1299
|
+
title: z.ZodString;
|
|
1300
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.core.$strict>>;
|
|
1302
|
+
}, z.core.$strict>>;
|
|
1303
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1304
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1305
|
+
body: z.ZodString;
|
|
1306
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
type: z.ZodLiteral<"form">;
|
|
1308
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1310
|
+
type: z.ZodEnum<{
|
|
1311
|
+
multiSelect: "multiSelect";
|
|
1312
|
+
singleSelect: "singleSelect";
|
|
1313
|
+
}>;
|
|
1314
|
+
id: z.ZodString;
|
|
1315
|
+
label: z.ZodString;
|
|
1316
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1317
|
+
id: z.ZodString;
|
|
1318
|
+
label: z.ZodString;
|
|
1319
|
+
}, z.core.$strict>>;
|
|
1320
|
+
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1321
|
+
}, z.core.$strict>>;
|
|
1322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1323
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1324
|
+
body: z.ZodString;
|
|
1325
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
type: z.ZodLiteral<"carousel">;
|
|
1327
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1328
|
+
body: z.ZodString;
|
|
1329
|
+
header: z.ZodObject<{
|
|
1330
|
+
source: z.ZodString;
|
|
1331
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
type: z.ZodLiteral<"image">;
|
|
1334
|
+
}, z.core.$strict>;
|
|
1335
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1336
|
+
type: z.ZodLiteral<"reply">;
|
|
1337
|
+
id: z.ZodString;
|
|
1338
|
+
label: z.ZodString;
|
|
1339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1340
|
+
type: z.ZodLiteral<"url">;
|
|
1341
|
+
label: z.ZodString;
|
|
1342
|
+
url: z.ZodURL;
|
|
1343
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1344
|
+
type: z.ZodLiteral<"call">;
|
|
1345
|
+
label: z.ZodString;
|
|
1346
|
+
phoneNumber: z.ZodString;
|
|
1347
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1348
|
+
type: z.ZodLiteral<"copy">;
|
|
1349
|
+
label: z.ZodString;
|
|
1350
|
+
code: z.ZodString;
|
|
1351
|
+
}, z.core.$strict>], "type">>;
|
|
1352
|
+
}, z.core.$strict>>;
|
|
1353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1354
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1355
|
+
body: z.ZodString;
|
|
1356
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
type: z.ZodLiteral<"booking">;
|
|
1358
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1360
|
+
booking: z.ZodObject<{
|
|
1361
|
+
startAt: z.ZodISODateTime;
|
|
1362
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1363
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1365
|
+
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1366
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
1368
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1369
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
1370
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
meetingType: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, z.core.$strict>>;
|
|
1377
|
+
}, z.core.$strict>;
|
|
1378
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1379
|
+
type: z.ZodLiteral<"url">;
|
|
1380
|
+
label: z.ZodString;
|
|
1381
|
+
url: z.ZodURL;
|
|
1382
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1383
|
+
type: z.ZodLiteral<"call">;
|
|
1384
|
+
label: z.ZodString;
|
|
1385
|
+
phoneNumber: z.ZodString;
|
|
1386
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1387
|
+
type: z.ZodLiteral<"copy">;
|
|
1388
|
+
label: z.ZodString;
|
|
1389
|
+
code: z.ZodString;
|
|
1390
|
+
}, z.core.$strict>], "type">>>;
|
|
1391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1392
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1393
|
+
body: z.ZodString;
|
|
1394
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
type: z.ZodLiteral<"native">;
|
|
1396
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1397
|
+
type: z.ZodLiteral<"text">;
|
|
1398
|
+
text: z.ZodString;
|
|
1399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1400
|
+
source: z.ZodString;
|
|
1401
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
type: z.ZodLiteral<"image">;
|
|
1404
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1405
|
+
source: z.ZodString;
|
|
1406
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
type: z.ZodLiteral<"video">;
|
|
1409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1410
|
+
source: z.ZodString;
|
|
1411
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1413
|
+
type: z.ZodLiteral<"document">;
|
|
1414
|
+
}, z.core.$strict>], "type">>;
|
|
1415
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
name: z.ZodString;
|
|
1417
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1418
|
+
}, z.core.$strict>>;
|
|
1419
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1420
|
+
}, z.core.$strict>], "type">;
|
|
1421
|
+
}, z.core.$strict>, z.ZodString>;
|
|
1422
|
+
declare const sendRawMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
1423
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1424
|
+
payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1425
|
+
}, z.core.$strict>, z.ZodString>;
|
|
1062
1426
|
declare namespace index_d_exports {
|
|
1063
|
-
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1427
|
+
export { SendInteractiveInputSchema, SendRawMessageInputSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1064
1428
|
}
|
|
1065
1429
|
//#endregion
|
|
1066
1430
|
//#region src/events/registry.d.ts
|
|
@@ -1125,6 +1489,8 @@ declare const anyMessageEvent: z.ZodFunction<any, any>;
|
|
|
1125
1489
|
declare const messageDeletedEvent: z.ZodFunction<any, any>;
|
|
1126
1490
|
declare const ackEvent: z.ZodFunction<any, any>;
|
|
1127
1491
|
declare const reactionEvent: z.ZodFunction<any, any>;
|
|
1492
|
+
declare const interactiveResponseEvent: z.ZodFunction<any, any>;
|
|
1493
|
+
declare const formResponseEvent: z.ZodFunction<any, any>;
|
|
1128
1494
|
//#endregion
|
|
1129
1495
|
//#region src/events/state.d.ts
|
|
1130
1496
|
declare const StateEnum: z.ZodEnum<{
|
|
@@ -1261,5 +1627,529 @@ declare const messageIdsParam: z.ZodUnion<readonly [z.ZodArray<z.ZodCodec<z.ZodS
|
|
|
1261
1627
|
declare const mentionedJidListParam: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
1262
1628
|
declare const messageOptionsParam: z.ZodOptional<z.ZodAny>;
|
|
1263
1629
|
//#endregion
|
|
1264
|
-
|
|
1265
|
-
|
|
1630
|
+
//#region src/interactive.d.ts
|
|
1631
|
+
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
1632
|
+
[key: string]: JsonValue;
|
|
1633
|
+
};
|
|
1634
|
+
declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
1635
|
+
declare const JsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1636
|
+
declare const ReplyActionSchema: z.ZodObject<{
|
|
1637
|
+
type: z.ZodLiteral<"reply">;
|
|
1638
|
+
id: z.ZodString;
|
|
1639
|
+
label: z.ZodString;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
declare const LinkActionSchema: z.ZodObject<{
|
|
1642
|
+
type: z.ZodLiteral<"url">;
|
|
1643
|
+
label: z.ZodString;
|
|
1644
|
+
url: z.ZodURL;
|
|
1645
|
+
}, z.core.$strict>;
|
|
1646
|
+
declare const CallActionSchema: z.ZodObject<{
|
|
1647
|
+
type: z.ZodLiteral<"call">;
|
|
1648
|
+
label: z.ZodString;
|
|
1649
|
+
phoneNumber: z.ZodString;
|
|
1650
|
+
}, z.core.$strict>;
|
|
1651
|
+
declare const CopyActionSchema: z.ZodObject<{
|
|
1652
|
+
type: z.ZodLiteral<"copy">;
|
|
1653
|
+
label: z.ZodString;
|
|
1654
|
+
code: z.ZodString;
|
|
1655
|
+
}, z.core.$strict>;
|
|
1656
|
+
declare const InteractiveActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1657
|
+
type: z.ZodLiteral<"reply">;
|
|
1658
|
+
id: z.ZodString;
|
|
1659
|
+
label: z.ZodString;
|
|
1660
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1661
|
+
type: z.ZodLiteral<"url">;
|
|
1662
|
+
label: z.ZodString;
|
|
1663
|
+
url: z.ZodURL;
|
|
1664
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1665
|
+
type: z.ZodLiteral<"call">;
|
|
1666
|
+
label: z.ZodString;
|
|
1667
|
+
phoneNumber: z.ZodString;
|
|
1668
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1669
|
+
type: z.ZodLiteral<"copy">;
|
|
1670
|
+
label: z.ZodString;
|
|
1671
|
+
code: z.ZodString;
|
|
1672
|
+
}, z.core.$strict>], "type">;
|
|
1673
|
+
declare const NativeActionSchema: z.ZodObject<{
|
|
1674
|
+
name: z.ZodString;
|
|
1675
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1676
|
+
}, z.core.$strict>;
|
|
1677
|
+
declare const InteractiveHeaderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1678
|
+
type: z.ZodLiteral<"text">;
|
|
1679
|
+
text: z.ZodString;
|
|
1680
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1681
|
+
source: z.ZodString;
|
|
1682
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
type: z.ZodLiteral<"image">;
|
|
1685
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1686
|
+
source: z.ZodString;
|
|
1687
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
type: z.ZodLiteral<"video">;
|
|
1690
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1691
|
+
source: z.ZodString;
|
|
1692
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
type: z.ZodLiteral<"document">;
|
|
1695
|
+
}, z.core.$strict>], "type">;
|
|
1696
|
+
declare const ButtonsContentSchema: z.ZodObject<{
|
|
1697
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1698
|
+
body: z.ZodString;
|
|
1699
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
type: z.ZodLiteral<"buttons">;
|
|
1701
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1702
|
+
type: z.ZodLiteral<"text">;
|
|
1703
|
+
text: z.ZodString;
|
|
1704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1705
|
+
source: z.ZodString;
|
|
1706
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1708
|
+
type: z.ZodLiteral<"image">;
|
|
1709
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1710
|
+
source: z.ZodString;
|
|
1711
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
type: z.ZodLiteral<"video">;
|
|
1714
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1715
|
+
source: z.ZodString;
|
|
1716
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1717
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
type: z.ZodLiteral<"document">;
|
|
1719
|
+
}, z.core.$strict>], "type">>;
|
|
1720
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1721
|
+
type: z.ZodLiteral<"reply">;
|
|
1722
|
+
id: z.ZodString;
|
|
1723
|
+
label: z.ZodString;
|
|
1724
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1725
|
+
type: z.ZodLiteral<"url">;
|
|
1726
|
+
label: z.ZodString;
|
|
1727
|
+
url: z.ZodURL;
|
|
1728
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1729
|
+
type: z.ZodLiteral<"call">;
|
|
1730
|
+
label: z.ZodString;
|
|
1731
|
+
phoneNumber: z.ZodString;
|
|
1732
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1733
|
+
type: z.ZodLiteral<"copy">;
|
|
1734
|
+
label: z.ZodString;
|
|
1735
|
+
code: z.ZodString;
|
|
1736
|
+
}, z.core.$strict>], "type">>;
|
|
1737
|
+
}, z.core.$strict>;
|
|
1738
|
+
declare const ListRowSchema: z.ZodObject<{
|
|
1739
|
+
id: z.ZodString;
|
|
1740
|
+
title: z.ZodString;
|
|
1741
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
}, z.core.$strict>;
|
|
1743
|
+
declare const ListContentSchema: z.ZodObject<{
|
|
1744
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1745
|
+
body: z.ZodString;
|
|
1746
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
type: z.ZodLiteral<"list">;
|
|
1748
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1750
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1751
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1753
|
+
id: z.ZodString;
|
|
1754
|
+
title: z.ZodString;
|
|
1755
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1756
|
+
}, z.core.$strict>>;
|
|
1757
|
+
}, z.core.$strict>>;
|
|
1758
|
+
}, z.core.$strict>;
|
|
1759
|
+
declare const FormQuestionSchema: z.ZodObject<{
|
|
1760
|
+
type: z.ZodEnum<{
|
|
1761
|
+
multiSelect: "multiSelect";
|
|
1762
|
+
singleSelect: "singleSelect";
|
|
1763
|
+
}>;
|
|
1764
|
+
id: z.ZodString;
|
|
1765
|
+
label: z.ZodString;
|
|
1766
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1767
|
+
id: z.ZodString;
|
|
1768
|
+
label: z.ZodString;
|
|
1769
|
+
}, z.core.$strict>>;
|
|
1770
|
+
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1771
|
+
}, z.core.$strict>;
|
|
1772
|
+
declare const FormContentSchema: z.ZodObject<{
|
|
1773
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1774
|
+
body: z.ZodString;
|
|
1775
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
type: z.ZodLiteral<"form">;
|
|
1777
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1779
|
+
type: z.ZodEnum<{
|
|
1780
|
+
multiSelect: "multiSelect";
|
|
1781
|
+
singleSelect: "singleSelect";
|
|
1782
|
+
}>;
|
|
1783
|
+
id: z.ZodString;
|
|
1784
|
+
label: z.ZodString;
|
|
1785
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1786
|
+
id: z.ZodString;
|
|
1787
|
+
label: z.ZodString;
|
|
1788
|
+
}, z.core.$strict>>;
|
|
1789
|
+
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1790
|
+
}, z.core.$strict>>;
|
|
1791
|
+
}, z.core.$strict>;
|
|
1792
|
+
declare const CarouselCardSchema: z.ZodObject<{
|
|
1793
|
+
body: z.ZodString;
|
|
1794
|
+
header: z.ZodObject<{
|
|
1795
|
+
source: z.ZodString;
|
|
1796
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1798
|
+
type: z.ZodLiteral<"image">;
|
|
1799
|
+
}, z.core.$strict>;
|
|
1800
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1801
|
+
type: z.ZodLiteral<"reply">;
|
|
1802
|
+
id: z.ZodString;
|
|
1803
|
+
label: z.ZodString;
|
|
1804
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1805
|
+
type: z.ZodLiteral<"url">;
|
|
1806
|
+
label: z.ZodString;
|
|
1807
|
+
url: z.ZodURL;
|
|
1808
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1809
|
+
type: z.ZodLiteral<"call">;
|
|
1810
|
+
label: z.ZodString;
|
|
1811
|
+
phoneNumber: z.ZodString;
|
|
1812
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1813
|
+
type: z.ZodLiteral<"copy">;
|
|
1814
|
+
label: z.ZodString;
|
|
1815
|
+
code: z.ZodString;
|
|
1816
|
+
}, z.core.$strict>], "type">>;
|
|
1817
|
+
}, z.core.$strict>;
|
|
1818
|
+
declare const CarouselContentSchema: z.ZodObject<{
|
|
1819
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1820
|
+
body: z.ZodString;
|
|
1821
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
type: z.ZodLiteral<"carousel">;
|
|
1823
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1824
|
+
body: z.ZodString;
|
|
1825
|
+
header: z.ZodObject<{
|
|
1826
|
+
source: z.ZodString;
|
|
1827
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
type: z.ZodLiteral<"image">;
|
|
1830
|
+
}, z.core.$strict>;
|
|
1831
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1832
|
+
type: z.ZodLiteral<"reply">;
|
|
1833
|
+
id: z.ZodString;
|
|
1834
|
+
label: z.ZodString;
|
|
1835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1836
|
+
type: z.ZodLiteral<"url">;
|
|
1837
|
+
label: z.ZodString;
|
|
1838
|
+
url: z.ZodURL;
|
|
1839
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1840
|
+
type: z.ZodLiteral<"call">;
|
|
1841
|
+
label: z.ZodString;
|
|
1842
|
+
phoneNumber: z.ZodString;
|
|
1843
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1844
|
+
type: z.ZodLiteral<"copy">;
|
|
1845
|
+
label: z.ZodString;
|
|
1846
|
+
code: z.ZodString;
|
|
1847
|
+
}, z.core.$strict>], "type">>;
|
|
1848
|
+
}, z.core.$strict>>;
|
|
1849
|
+
}, z.core.$strict>;
|
|
1850
|
+
declare const BookingContentSchema: z.ZodObject<{
|
|
1851
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1852
|
+
body: z.ZodString;
|
|
1853
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
type: z.ZodLiteral<"booking">;
|
|
1855
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1856
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1857
|
+
booking: z.ZodObject<{
|
|
1858
|
+
startAt: z.ZodISODateTime;
|
|
1859
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1860
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1862
|
+
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1863
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
1865
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
1867
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
meetingType: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
}, z.core.$strict>>;
|
|
1874
|
+
}, z.core.$strict>;
|
|
1875
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1876
|
+
type: z.ZodLiteral<"url">;
|
|
1877
|
+
label: z.ZodString;
|
|
1878
|
+
url: z.ZodURL;
|
|
1879
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1880
|
+
type: z.ZodLiteral<"call">;
|
|
1881
|
+
label: z.ZodString;
|
|
1882
|
+
phoneNumber: z.ZodString;
|
|
1883
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1884
|
+
type: z.ZodLiteral<"copy">;
|
|
1885
|
+
label: z.ZodString;
|
|
1886
|
+
code: z.ZodString;
|
|
1887
|
+
}, z.core.$strict>], "type">>>;
|
|
1888
|
+
}, z.core.$strict>;
|
|
1889
|
+
declare const NativeContentSchema: z.ZodObject<{
|
|
1890
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1891
|
+
body: z.ZodString;
|
|
1892
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
type: z.ZodLiteral<"native">;
|
|
1894
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1895
|
+
type: z.ZodLiteral<"text">;
|
|
1896
|
+
text: z.ZodString;
|
|
1897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1898
|
+
source: z.ZodString;
|
|
1899
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
type: z.ZodLiteral<"image">;
|
|
1902
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1903
|
+
source: z.ZodString;
|
|
1904
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
type: z.ZodLiteral<"video">;
|
|
1907
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1908
|
+
source: z.ZodString;
|
|
1909
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1911
|
+
type: z.ZodLiteral<"document">;
|
|
1912
|
+
}, z.core.$strict>], "type">>;
|
|
1913
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1914
|
+
name: z.ZodString;
|
|
1915
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1916
|
+
}, z.core.$strict>>;
|
|
1917
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1918
|
+
}, z.core.$strict>;
|
|
1919
|
+
declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1920
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1921
|
+
body: z.ZodString;
|
|
1922
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1923
|
+
type: z.ZodLiteral<"buttons">;
|
|
1924
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1925
|
+
type: z.ZodLiteral<"text">;
|
|
1926
|
+
text: z.ZodString;
|
|
1927
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1928
|
+
source: z.ZodString;
|
|
1929
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1930
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
type: z.ZodLiteral<"image">;
|
|
1932
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1933
|
+
source: z.ZodString;
|
|
1934
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1936
|
+
type: z.ZodLiteral<"video">;
|
|
1937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1938
|
+
source: z.ZodString;
|
|
1939
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1941
|
+
type: z.ZodLiteral<"document">;
|
|
1942
|
+
}, z.core.$strict>], "type">>;
|
|
1943
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1944
|
+
type: z.ZodLiteral<"reply">;
|
|
1945
|
+
id: z.ZodString;
|
|
1946
|
+
label: z.ZodString;
|
|
1947
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1948
|
+
type: z.ZodLiteral<"url">;
|
|
1949
|
+
label: z.ZodString;
|
|
1950
|
+
url: z.ZodURL;
|
|
1951
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1952
|
+
type: z.ZodLiteral<"call">;
|
|
1953
|
+
label: z.ZodString;
|
|
1954
|
+
phoneNumber: z.ZodString;
|
|
1955
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1956
|
+
type: z.ZodLiteral<"copy">;
|
|
1957
|
+
label: z.ZodString;
|
|
1958
|
+
code: z.ZodString;
|
|
1959
|
+
}, z.core.$strict>], "type">>;
|
|
1960
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1961
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1962
|
+
body: z.ZodString;
|
|
1963
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
type: z.ZodLiteral<"list">;
|
|
1965
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1967
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1968
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1970
|
+
id: z.ZodString;
|
|
1971
|
+
title: z.ZodString;
|
|
1972
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
}, z.core.$strict>>;
|
|
1974
|
+
}, z.core.$strict>>;
|
|
1975
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1976
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1977
|
+
body: z.ZodString;
|
|
1978
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
type: z.ZodLiteral<"form">;
|
|
1980
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1981
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1982
|
+
type: z.ZodEnum<{
|
|
1983
|
+
multiSelect: "multiSelect";
|
|
1984
|
+
singleSelect: "singleSelect";
|
|
1985
|
+
}>;
|
|
1986
|
+
id: z.ZodString;
|
|
1987
|
+
label: z.ZodString;
|
|
1988
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1989
|
+
id: z.ZodString;
|
|
1990
|
+
label: z.ZodString;
|
|
1991
|
+
}, z.core.$strict>>;
|
|
1992
|
+
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1993
|
+
}, z.core.$strict>>;
|
|
1994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1995
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1996
|
+
body: z.ZodString;
|
|
1997
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
type: z.ZodLiteral<"carousel">;
|
|
1999
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
2000
|
+
body: z.ZodString;
|
|
2001
|
+
header: z.ZodObject<{
|
|
2002
|
+
source: z.ZodString;
|
|
2003
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
type: z.ZodLiteral<"image">;
|
|
2006
|
+
}, z.core.$strict>;
|
|
2007
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2008
|
+
type: z.ZodLiteral<"reply">;
|
|
2009
|
+
id: z.ZodString;
|
|
2010
|
+
label: z.ZodString;
|
|
2011
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2012
|
+
type: z.ZodLiteral<"url">;
|
|
2013
|
+
label: z.ZodString;
|
|
2014
|
+
url: z.ZodURL;
|
|
2015
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2016
|
+
type: z.ZodLiteral<"call">;
|
|
2017
|
+
label: z.ZodString;
|
|
2018
|
+
phoneNumber: z.ZodString;
|
|
2019
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2020
|
+
type: z.ZodLiteral<"copy">;
|
|
2021
|
+
label: z.ZodString;
|
|
2022
|
+
code: z.ZodString;
|
|
2023
|
+
}, z.core.$strict>], "type">>;
|
|
2024
|
+
}, z.core.$strict>>;
|
|
2025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2026
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2027
|
+
body: z.ZodString;
|
|
2028
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
type: z.ZodLiteral<"booking">;
|
|
2030
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
2032
|
+
booking: z.ZodObject<{
|
|
2033
|
+
startAt: z.ZodISODateTime;
|
|
2034
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2035
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
2037
|
+
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
2038
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
2040
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
2042
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
meetingType: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
manageBooking: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
}, z.core.$strict>>;
|
|
2049
|
+
}, z.core.$strict>;
|
|
2050
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2051
|
+
type: z.ZodLiteral<"url">;
|
|
2052
|
+
label: z.ZodString;
|
|
2053
|
+
url: z.ZodURL;
|
|
2054
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2055
|
+
type: z.ZodLiteral<"call">;
|
|
2056
|
+
label: z.ZodString;
|
|
2057
|
+
phoneNumber: z.ZodString;
|
|
2058
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2059
|
+
type: z.ZodLiteral<"copy">;
|
|
2060
|
+
label: z.ZodString;
|
|
2061
|
+
code: z.ZodString;
|
|
2062
|
+
}, z.core.$strict>], "type">>>;
|
|
2063
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2064
|
+
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2065
|
+
body: z.ZodString;
|
|
2066
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
2067
|
+
type: z.ZodLiteral<"native">;
|
|
2068
|
+
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2069
|
+
type: z.ZodLiteral<"text">;
|
|
2070
|
+
text: z.ZodString;
|
|
2071
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2072
|
+
source: z.ZodString;
|
|
2073
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2074
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2075
|
+
type: z.ZodLiteral<"image">;
|
|
2076
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2077
|
+
source: z.ZodString;
|
|
2078
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2080
|
+
type: z.ZodLiteral<"video">;
|
|
2081
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2082
|
+
source: z.ZodString;
|
|
2083
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2084
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2085
|
+
type: z.ZodLiteral<"document">;
|
|
2086
|
+
}, z.core.$strict>], "type">>;
|
|
2087
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
2088
|
+
name: z.ZodString;
|
|
2089
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
2090
|
+
}, z.core.$strict>>;
|
|
2091
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
2092
|
+
}, z.core.$strict>], "type">;
|
|
2093
|
+
type InteractiveContent = z.input<typeof InteractiveContentSchema>;
|
|
2094
|
+
type InteractiveAction = z.infer<typeof InteractiveActionSchema>;
|
|
2095
|
+
type InteractiveHeader = z.infer<typeof InteractiveHeaderSchema>;
|
|
2096
|
+
type FormQuestion = z.infer<typeof FormQuestionSchema>;
|
|
2097
|
+
declare function defineInteractiveMessage<T extends InteractiveContent>(content: T): Extract<z.output<typeof InteractiveContentSchema>, {
|
|
2098
|
+
type: T['type'];
|
|
2099
|
+
}>;
|
|
2100
|
+
declare const FormResponseSchema: z.ZodObject<{
|
|
2101
|
+
messageId: z.ZodString;
|
|
2102
|
+
chatId: z.ZodString;
|
|
2103
|
+
senderId: z.ZodString;
|
|
2104
|
+
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2106
|
+
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2107
|
+
type: z.ZodLiteral<"form">;
|
|
2108
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2109
|
+
}, z.core.$strip>;
|
|
2110
|
+
declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2111
|
+
messageId: z.ZodString;
|
|
2112
|
+
chatId: z.ZodString;
|
|
2113
|
+
senderId: z.ZodString;
|
|
2114
|
+
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2116
|
+
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2117
|
+
type: z.ZodLiteral<"form">;
|
|
2118
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2120
|
+
messageId: z.ZodString;
|
|
2121
|
+
chatId: z.ZodString;
|
|
2122
|
+
senderId: z.ZodString;
|
|
2123
|
+
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2125
|
+
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2126
|
+
type: z.ZodLiteral<"reply">;
|
|
2127
|
+
id: z.ZodString;
|
|
2128
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2130
|
+
messageId: z.ZodString;
|
|
2131
|
+
chatId: z.ZodString;
|
|
2132
|
+
senderId: z.ZodString;
|
|
2133
|
+
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2135
|
+
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2136
|
+
type: z.ZodLiteral<"list">;
|
|
2137
|
+
id: z.ZodString;
|
|
2138
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2140
|
+
messageId: z.ZodString;
|
|
2141
|
+
chatId: z.ZodString;
|
|
2142
|
+
senderId: z.ZodString;
|
|
2143
|
+
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2145
|
+
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2146
|
+
type: z.ZodLiteral<"native">;
|
|
2147
|
+
name: z.ZodString;
|
|
2148
|
+
parameters: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2149
|
+
parseError: z.ZodOptional<z.ZodString>;
|
|
2150
|
+
}, z.core.$strip>], "type">;
|
|
2151
|
+
type FormResponse = z.infer<typeof FormResponseSchema>;
|
|
2152
|
+
type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
|
|
2153
|
+
//#endregion
|
|
2154
|
+
export { statusTextParam as $, CloudUploadOptions as $i, getGroupInfo as $n, sendAdvancedButtons as $r, QueueOptions as $t, audioDataParam as A, ContactSchema as Ai, addLabel as An, getChat as Ar, hexColorCodec as At, imageDataParam as B, Location as Bi, postVideoStatus as Bn, unpinChat as Br, chatStateEvent as Bt, LinkActionSchema as C, Viewport as Ca, unstarMessage as Ci, isPlugged as Cn, getProfilePicture as Cr, createFileCodec as Ct, NativeContentSchema as D, validateConfig as Da, ChatSchema as Di, getBusinessProducts as Dn, deleteChat as Dr, fileToStreamCodec as Dt, NativeActionSchema as E, parseConfig as Ea, ChatId as Ei, setProfilePicture as En, clearChat as Er, fileToDataUrlCodec as Et, contentParam as F, GroupId as Fi, deleteStatus as Fn, muteChat as Fr, unixSecondsToDate as Ft, longitudeParam as G, MessageIdReturnSchema as Gi, getCommunityParticipantIds as Gn, getMessageInfo as Gr, formResponseEvent as Gt, includeNotificationsParam as H, Message as Hi, getCommunityAdminIds as Hn, forwardMessages as Hr, stateChangedEvent as Ht, documentDataParam as I, GroupMetadata as Ii, getStatus as In, pinChat as Ir, urlToDataUrlCodec as It, messageIdsParam as J, SimpleListener as Ji, approveGroupJoinRequest as Jn, getStarredMessages as Jr, messageEvent as Jt, mentionedJidListParam as K, MessageSchema as Ki, getCommunityParticipants as Kn, getMessagesForLLM as Kr, interactiveResponseEvent as Kt, fileDataParam as L, GroupMetadataSchema as Li, getStories as Ln, setChatEphemeral as Lr, addedToGroupEvent as Lt, chatIdParam as M, DataURL as Mi, getChatsByLabel as Mn, isChatOnline as Mr, jsonStringCodec as Mt, communityIdParam as N, GroupChatId as Ni, removeLabel as Nn, markAsRead as Nr, messageIdCodec as Nt, ReplyActionSchema as O, Contact as Oi, getBusinessProfile as On, getAllChatIds as Or, fileToTempPathCodec as Ot, contactIdParam as P, GroupChatIdSchema as Pi, deleteAllStatus as Pn, markAsUnread as Pr, unixMillisToDate as Pt, skipMyMessagesParam as Q, CLOUD_PROVIDERS as Qi, getGroupAdmins as Qn, react as Qr, EventStatus as Qt, filenameParam as R, Id as Ri, postImageStatus as Rn, unarchiveChat as Rr, participantsChangedEvent as Rt, JsonValueSchema as S, StrictConfigSchema as Sa, starMessage as Si, healthCheck as Sn, getNumberProfile as Sr, contactIdCodec as St, ListRowSchema as T, getDefaultConfig as Ta, Chat as Ti, setMyStatus as Tn, archiveChat as Tr, fileToBufferCodec as Tt, latitudeParam as U, MessageAck as Ui, getCommunityAdmins as Un, getAllMessages as Ur, ackEvent as Ut, includeMeParam as V, LocationSchema as Vi, getAllCommunities as Vn, deleteMessage as Vr, logoutEvent as Vt, locationNameParam as W, MessageId as Wi, getCommunityInfo as Wn, getMessageById as Wr, anyMessageEvent as Wt, nameParam as X, ClientConfigSchema as Xi, demoteParticipant as Xn, getVCards as Xr, EventDefinition as Xt, messageOptionsParam as Y, ClientConfig as Yi, createGroup as Yn, getUnsentMessages as Yr, reactionEvent as Yt, onlyLocalParam as Z, migrateV4Config as Zi, getAllGroups as Zn, loadEarlierMessages as Zr, EventMetadata as Zt, InteractiveHeaderSchema as _, S3Sync as _a, sendText as _i, getMe as _n, checkReadReceipts as _r, MessageIdSchema as _t, CarouselContentSchema as a, DevTools as aa, sendFileFromUrl as ai, SendInteractiveInputSchema as an, leaveGroup as ar, withNewMessagesOnlyParam as at, JsonObjectSchema as b, SessionDataSchema as ba, sendVideoAsGif as bi, getUserAgent as bn, getCommonGroups as br, base64ToDataUrlCodec as bt, FormQuestion as c, LoggingTransport as ca, sendListMessage as ci, sendRawMessage as cn, removeParticipant as cr, ChatIdSchema as ct, FormResponseSchema as d, OnError as da, sendMultipleContacts as di, getBatteryLevel as dn, setGroupEditToAdminsOnly as dr, FileToDataUrlSchema as dt, CloudUploadOptionsSchema as ea, sendAudio as ei, QueueOptionsSchema as en, getGroupInviteLink as er, stickerDataParam as et, InteractiveAction as f, PartialConfig as fa, sendPaymentRequest as fi, getConnectionState as fn, setGroupIcon as fr, GroupIdCodecSchema as ft, InteractiveHeader as g, QRFormat as ga, sendSeen as gi, getLoadedMessageCount as gn, checkNumberStatus as gr, MessageIdCodecSchema as gt, InteractiveContentSchema as h, ProxyServerCredentialsSchema as ha, sendReplyWithMentions as hi, getLicenseType as hn, blockContact as hr, IsoDatetimeToDateSchema as ht, CarouselCardSchema as i, DeepPartialConfig as ia, sendFile as ii, index_d_exports as in, joinGroupViaLink as ir, waitForIdParam as it, captionParam as j, Content as ji, getAllLabels as jn, getChatWithNonContacts as jr, isoDatetimeToDate as jt, defineInteractiveMessage as k, ContactId as ki, getOrder as kn, getAllChats as kr, groupIdCodec as kt, FormQuestionSchema as l, LoggingTransportSchema as la, sendLocation as li, decryptMedia as ln, revokeGroupInviteLink as lr, ContactIdCodecSchema as lt, InteractiveContent as m, ProxyServerCredentials as ma, sendPtt as mi, getHostNumber as mn, setGroupToAdminsOnly as mr, HexColorSchema as mt, ButtonsContentSchema as n, ConfigSchema as na, sendButtons as ni, defineListenerV2 as nn, getGroupMembersId as nr, userAgentParam as nt, CopyActionSchema as o, DevToolsSchema as oa, sendImage as oi, SendRawMessageInputSchema as on, promoteParticipant as or, Base64ToDataUrlSchema as ot, InteractiveActionSchema as p, PartialConfigSchema as pa, sendPoll as pi, getFeatures as pn, setGroupTitle as pr, GroupIdSchema as pt, messageIdParam as q, MessageTypes as qi, addParticipant as qn, getMyLastMessage as qr, messageDeletedEvent as qt, CallActionSchema as r, DIRECTORY_STRATEGY as ra, sendContact as ri, eventRegistry as rn, getKickedGroups as rr, videoDataParam as rt, FormContentSchema as s, LicenseType as sa, sendLinkWithAutoPreview as si, sendInteractive as sn, rejectGroupJoinRequest as sr, ChatIdCodecSchema as st, BookingContentSchema as t, Config as ta, sendBanner as ti, QueueOverloadStrategy as tn, getGroupMembers as tr, toParam as tt, FormResponse as u, NotificationLanguage as ua, sendMessageWithThumb as ui, downloadMedia as un, setGroupDescription as ur, ContactIdSchema as ut, InteractiveResponse as v, S3SyncSchema as va, sendTextWithMentions as vi, getProcessStats as vn, getAllContacts as vr, UnixMillisToDateSchema as vt, ListContentSchema as w, ViewportSchema as wa, Base64 as wi, setMyName as wn, unblockContact as wr, fileToBase64Codec as wt, JsonValue as x, StrictConfig as xa, sendYouTubeLink as xi, getWAVersion as xn, getContact as xr, chatIdCodec as xt, InteractiveResponseSchema as y, SessionData as ya, sendVCard as yi, getSnapshot as yn, getBlockedIds as yr, UnixSecondsToDateSchema as yt, groupIdParam as z, IdSchema as zi, postTextStatus as zn, unmuteChat as zr, StateEnum as zt };
|
|
2155
|
+
//# sourceMappingURL=index-DTztyYhw.d.cts.map
|